:root {
    --primary: #4a40e0;
    --primary-dim: #3d30d4;
    --secondary: #6249b2;
    --surface: #f5f6f7;
    --surface-low: #eff1f2;
    --surface-lowest: #ffffff;
    --surface-high: #e3e5e7;
    --surface-variant: #dadddf;
    --on-surface: #2c2f30;
    --muted: #5f6667;
    --shadow-soft: 0 12px 40px rgba(44, 47, 48, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 3px solid rgba(74, 64, 224, 0.42);
    outline-offset: 4px;
    border-radius: 0.35rem;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 246, 247, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-high);
    padding: 1.25rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-inner {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.brand-group {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
}

.back-arrow-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    background: transparent;
    border: 0;
    flex-shrink: 0;
}

.desktop-nav-links {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--on-surface);
    text-decoration: none;
    font-size: 0.85rem;
}

.nav-link:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 1.5rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(171, 173, 174, 0.2);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-link {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--on-surface);
    text-decoration: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.nav-dropdown-link:hover {
    color: var(--primary);
}

.page-shell {
    padding: 4rem 0 5rem;
}

.article-card {
    max-width: 840px;
    margin: 0 auto;
    background: var(--surface-lowest);
    border: 1px solid rgba(171, 173, 174, 0.22);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    padding: 3rem;
}

.article-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: #6b7172;
    margin-bottom: 1rem;
}

.article-card h1 {
    font-size: 3rem;
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

.article-card h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.article-card p,
.article-card li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #404546;
}

.article-card p + p {
    margin-top: 1rem;
}

.article-card ul,
.article-card ol {
    margin: 1rem 0 0 1.4rem;
}

.article-card li + li {
    margin-top: 0.65rem;
}

.article-card a {
    color: var(--primary);
    font-weight: 600;
}

.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--surface-variant);
}

.footer-inner {
    text-align: center;
    color: #6b7172;
}

.footer-inner p {
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .back-arrow-button {
        display: inline-flex;
    }

    .desktop-nav-links {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .page-shell {
        padding: 3rem 0 4rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .article-card h1 {
        font-size: 2.2rem;
    }

    .article-card h2 {
        font-size: 1.35rem;
    }
}
