:root {
    --black: #0a0a0a;
    --black-light: #111111;
    --black-card: #161616;
    --black-hover: #1c1c1c;
    --gold: #C9A84C;
    --gold-light: #DABB6A;
    --gold-dark: #A68A3A;
    --gold-muted: rgba(201, 168, 76, 0.15);
    --gray: #888888;
    --gray-light: #b0b0b0;
    --gray-dark: #444444;
    --white: #f0f0f0;
    --white-pure: #ffffff;
    --border: #222222;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --transition: 0.2s ease;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --max-width: 1140px;
    --header-h: 64px;
}

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

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

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover, a:focus-visible {
    color: var(--gold-light);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--black);
    padding: 8px 24px;
    border-radius: var(--radius);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

/* ─── Header ─── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--gold);
}

.logo-text strong {
    color: var(--gold);
}

.logo-icon {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.menu-toggle:hover {
    background: var(--black-card);
}

/* ─── Navigation ─── */

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav .nav-list a {
    display: block;
    padding: 8px 14px;
    color: var(--gray-light);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a:focus-visible {
    color: var(--white);
    background: var(--black-card);
}

.main-nav .nav-list a.active {
    color: var(--gold);
    background: var(--gold-muted);
}

/* ─── Main Content ─── */

main {
    flex: 1;
    padding: 48px 0;
}

/* ─── Hero ─── */

.hero {
    text-align: center;
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white-pure);
}

.hero h1 span {
    color: var(--gold);
}

.hero .hero-sub {
    font-size: 1.1rem;
    color: var(--gray-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Section Headings ─── */

.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-pure);
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.section-header.center {
    text-align: center;
}

.section-header.center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--gray);
    margin-top: 12px;
    font-size: 0.95rem;
}

/* ─── Homepage Sections ─── */

.home-section {
    margin-bottom: 64px;
}

/* ─── Card Grid ─── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--gold-dark);
    background: var(--black-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    background: var(--gold-muted);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white-pure);
    line-height: 1.35;
    margin-bottom: 10px;
}

.card h3 a {
    color: inherit;
}

.card h3 a:hover {
    color: var(--gold);
}

.card p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--gray);
}

.card-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── Feature List ─── */

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition);
}

.feature-item:hover {
    border-color: var(--gold-dark);
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-muted);
    border-radius: var(--radius);
    color: var(--gold);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white-pure);
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--gray-light);
    line-height: 1.55;
}

/* ─── Article Page ─── */

.article-page {
    max-width: 780px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--white-pure);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray);
}

.article-meta a {
    color: var(--gold);
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-light);
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white-pure);
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white-pure);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--gold-muted);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--white);
    font-style: italic;
}

.article-content strong {
    color: var(--white-pure);
    font-weight: 600;
}

/* ─── Breadcrumb ─── */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.825rem;
    color: var(--gray);
    margin-bottom: 24px;
    gap: 4px;
}

.breadcrumb li::after {
    content: '›';
    margin-left: 8px;
    color: var(--gray-dark);
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--gold);
}

/* ─── Category Page ─── */

.category-hero {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.category-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--white-pure);
    line-height: 1.25;
    margin-bottom: 12px;
}

.category-hero p {
    color: var(--gray-light);
    font-size: 1.05rem;
    max-width: 640px;
}

/* ─── FAQ ─── */

.faq-list {
    max-width: 780px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--black-card);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--white-pure);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--black-hover);
}

.faq-question svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--gold);
    transition: transform var(--transition);
}

.faq-item.open .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 18px;
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ─── Glossary ─── */

.glossary-list {
    display: grid;
    gap: 16px;
}

.glossary-item {
    padding: 24px;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.glossary-item dt {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.glossary-item dd {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ─── Author Card ─── */

.author-card {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 2rem;
    font-weight: 700;
}

.author-info h2,
.author-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 4px;
}

.author-role {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}

.author-info p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.author-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.author-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--gold-muted);
    color: var(--gold);
    border-radius: 4px;
    font-weight: 500;
}

/* ─── Related Articles ─── */

.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.related-articles h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 20px;
}

/* ─── Info Box ─── */

.info-box {
    padding: 24px;
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius-lg);
    background: var(--gold-muted);
    margin: 24px 0;
}

.info-box h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 8px;
}

.info-box p {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─── Age Badge ─── */

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 12px;
}

/* ─── Contact Form ─── */

.contact-form {
    max-width: 540px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn:hover {
    background: var(--gold-light);
    color: var(--black);
}

/* ─── Page Content (trust pages) ─── */

.page-content {
    max-width: 780px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--white-pure);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white-pure);
    margin-top: 36px;
    margin-bottom: 14px;
}

.page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white-pure);
    margin-top: 28px;
    margin-bottom: 10px;
}

.page-content p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    color: var(--gray-light);
    padding-left: 24px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content strong {
    color: var(--white-pure);
}

/* ─── 404 ─── */

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page p {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 32px;
}

/* ─── Footer ─── */

.site-footer {
    background: var(--black-light);
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-col p {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: var(--gray);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-dark);
    max-width: 640px;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }

    main {
        padding: 32px 0;
    }

    .hero {
        padding: 40px 0 32px;
        margin-bottom: 32px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--black-light);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav .nav-list a {
        padding: 12px 16px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-tags {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-section {
        margin-bottom: 48px;
    }

    .article-content {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .card {
        padding: 20px;
    }
}
