:root {
    --color-primary: #AD2E6B;
    --color-primary-hover: #91275A;
    --color-accent: #78EFF2;
    --color-bg: #FFFFFF;
    --color-surface: #F7F5F6;
    --color-surface-alt: #F1D5E3;
    --color-text: #2D1822;
    --color-text-muted: #6D5561;
    --color-border: #E4D8DE;
    --color-dark-band: #2F0C1D;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.625;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

button:active {
    transform: translateY(1px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.875rem);
}

h4 {
    font-size: clamp(1.125rem, 1.5vw + 0.2rem, 1.5rem);
}

h5 {
    font-size: clamp(1rem, 1vw + 0.1rem, 1.25rem);
}

h6 {
    font-size: 0.875rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    h5 {
        font-size: 1rem;
    }

    a,
    p,
    span,
    code,
    td,
    th {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 640px) {
    .cookieConsentWrapper {
        flex-direction: column;
        text-align: left;
    }
}

/* ===== header ===== */
#header {
    background-color: var(--color-dark-band);
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

.mobile-menu-overlay {
    background-color: var(--color-dark-band);
}

.mobile-menu-overlay.open {
    display: flex !important;
}

/* ===== hero ===== */
#hero {
    overflow: hidden;
}

#hero h1 {
    hyphens: auto;
}

/* ===== hero_news ===== */
#hero-news {
    hyphens: auto;
}

#hero-news .shadow-inner {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ===== berita_terbaru ===== */
#berita-terbaru {
    overflow: hidden;
}

#berita-terbaru .js-news-card {
    transition: all 0.25s ease-in-out;
}

#berita-terbaru .js-news-card:hover {
    transform: translateY(-3px);
}

/* ===== viral_sekarang ===== */
#viral-sekarang {
    hyphens: auto;
}

#viral-modal:not(.hidden) {
    display: flex;
}

/* ===== dunia_gaming ===== */
#dunia-gaming {
    overflow: hidden;
}

#gaming-modal:not(.hidden) {
    display: flex;
}

/* ===== game_radar ===== */
#game-radar {
    hyphens: auto;
}

#game-radar .js-radar-card {
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

/* ===== fashion_spotlight ===== */
#fashion-spotlight {
    overflow: hidden;
}

#fashion-spotlight .shadow-inner {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* ===== style_guide ===== */
#style-guide {
    overflow: hidden;
}

#style-guide .js-modal-backdrop.is-active {
    display: flex !important;
}

/* ===== automotive_zone ===== */
#automotive-zone {
    overflow: hidden;
    background-color: var(--color-dark-band);
}

#automotive-zone .js-article-card {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45);
}

#automotive-zone .js-modal-dialog {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(120, 239, 242, 0.15);
}

/* ===== electric_mobility ===== */
#electric-mobility {
    overflow: hidden;
}

#electric-mobility .shadow-inner {
    box-shadow: inset 0 2px 8px 0 rgba(0, 0, 0, 0.4);
}

/* ===== grooming_fragrance ===== */
#grooming-fragrance {
    overflow: hidden;
    hyphens: auto;
}

#grooming-fragrance button {
    cursor: pointer;
}

/* ===== hobi_passion ===== */
#hobi-passion {
    overflow: hidden;
}

.js-hobby-card {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

/* ===== editors_choice ===== */
#editors-choice {
    overflow: hidden;
}

.js-article-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== most_read ===== */
#most-read article {
    hyphens: auto;
    outline: none;
}

#most-read article:focus-visible {
    outline: 2px solid #78EFF2;
    outline-offset: -2px;
}

#most-read-modal .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#most-read-modal .overflow-y-auto::-webkit-scrollbar-track {
    background: #2F0C1D;
}

#most-read-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #AD2E6B;
    border-radius: 3px;
}

/* ===== newsletter ===== */
#newsletter input::placeholder {
    color: #8F7483;
    opacity: 1;
}

#newsletter input:focus {
    box-shadow: 0 0 0 1px #78EFF2;
}

/* ===== footer ===== */
#footer {
    overflow: hidden;
}

#footer a {
    word-break: break-word;
}