:root {
    /* Luxury Gold Palette — matches homepage/about brand */
    --gold: #C9A962;
    --gold-light: #E5D4A1;
    --gold-dark: #8B7355;
    --gold-muted: #A69060;
    --gold-glow: rgba(201, 169, 98, 0.12);

    /* Rich Dark Palette */
    --bg-void: #050608;
    --bg-deep: #08090C;
    --bg-surface: #0D0F14;
    --bg-card: #111419;
    --bg-elevated: #181C24;

    /* Text */
    --text-primary: #F8F7F4;
    --text-secondary: #A8A5A0;
    --text-muted: #6B6862;
    --cream: #FAF7F0;

    /* Borders */
    --border: rgba(201, 169, 98, 0.08);
    --border-light: rgba(201, 169, 98, 0.15);

    /* Accent / status */
    --success: #5EEAD4;

    /* Legacy aliases — preserved so any hardcoded references keep working */
    --bg-dark: var(--bg-deep);
    --bg-darker: var(--bg-void);
    --bg-card-hover: var(--bg-elevated);
    --primary: var(--gold);
    --primary-light: var(--gold-light);
    --primary-dark: var(--gold-dark);
    --primary-muted: var(--gold-glow);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.highlight {
    color: var(--gold);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    background: rgba(8, 9, 12, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
}

/* Legacy aliases — for any article still using the old img+gold-span pattern */
.logo-img { height: 40px; width: auto; }
.logo-gold { color: var(--gold); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-deep);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.3);
}

/* Article Header */
.article-header {
    padding: 8rem 2rem 3rem;
    background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 100%);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    color: var(--text-muted);
}

.article-category {
    display: inline-block;
    background: var(--gold-glow);
    color: var(--gold);
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-item a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px dashed var(--border-light);
    transition: color 0.2s ease;
}

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

/* Hero Image */
.article-hero-image {
    width: 100%;
    max-width: 1000px;
    margin: -2rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.article-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Article Content */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.article-content {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 2rem;
    color: var(--cream);
    margin: 3rem 0 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--cream);
    margin: 2rem 0 1rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--gold);
}

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

/* Callout Boxes */
.callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

.callout-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.callout p {
    margin-bottom: 0;
}

.callout.success {
    border-left-color: var(--success);
}

.callout.success .callout-title {
    color: var(--success);
}

/* Keyword Box */
.keyword-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.keyword-box h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.keyword-box ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.keyword-box li {
    background: var(--bg-void);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Question/Answer Box */
.qa-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.qa-question {
    background: var(--bg-void);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 4px solid var(--gold);
}

.qa-answer {
    padding: 1.5rem;
}

.qa-answer p:last-child {
    margin-bottom: 0;
}

/* Checklist */
.checklist {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.checklist-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist-icon {
    color: var(--success);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Table of Contents */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 3rem;
}

.toc-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 1rem;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
}

.toc ol {
    padding-left: 1.25rem;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-void) 100%);
    border: 1px solid var(--border-light);
    padding: 3rem;
    border-radius: 4px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    font-size: 1.75rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button,
.cta-box .cta-button,
.article-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-deep) !important;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: none !important;
}

.cta-button:hover,
.cta-box .cta-button:hover,
.article-content .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.3);
    color: var(--bg-deep) !important;
    border-bottom: none !important;
}

/* Footer */
footer {
    background: var(--bg-void);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.75rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-copy-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-copy-row p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .footer-nav {
        gap: 0.75rem 1.25rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-hero-image img {
        height: 250px;
    }

    .article-container {
        padding: 2rem 1.5rem;
    }

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

    .article-content h2 {
        font-size: 1.625rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .keyword-box ul {
        grid-template-columns: 1fr;
    }
}
