:root {
    --ink: #14201A;
    --ink-soft: #4E5C53;
    --paper: #FFFFFF;
    --surface: #F5F7F3;
    --surface-2: #EAEFE6;
    --line: #DCE4D6;
    --accent: #245423;
    --accent-deep: #16330F;
    --accent-soft: #E3ECE0;
    --gold: #A8863E;
    --gold-soft: #F6EFE0;
    --cta-bg: #16330F;
    --cta-ink: #F3F6FB;
    --cta-ink-soft: #C3D1EC;
    --paper-inverse: transparent;
    --brand-blue: #2563EB;
    --brand-blue-deep: #1E40AF;
    --brand-blue-soft: #DBEAFE;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #EAF0E7;
        --ink-soft: #A5B6A9;
        --paper: #0C130E;
        --surface: #121B14;
        --surface-2: #182419;
        --line: #263424;
        --accent: #5FA25C;
        --accent-deep: #BEE0B8;
        --accent-soft: #17281A;
        --gold: #D6B676;
        --gold-soft: #241D10;
        --paper-inverse: #FFFFFF;
        --brand-blue: #5B8DEF;
        --brand-blue-deep: #BFD3FA;
        --brand-blue-soft: #17233F;
    }
}
:root[data-theme="dark"] {
    --ink: #EAF0E7;
    --ink-soft: #A5B6A9;
    --paper: #0C130E;
    --surface: #121B14;
    --surface-2: #182419;
    --line: #263424;
    --accent: #5FA25C;
    --accent-deep: #BEE0B8;
    --accent-soft: #17281A;
    --gold: #D6B676;
    --gold-soft: #241D10;
    --paper-inverse: #FFFFFF;
    --brand-blue: #5B8DEF;
    --brand-blue-deep: #BFD3FA;
    --brand-blue-soft: #17233F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    text-wrap: balance;
    letter-spacing: -0.01em;
}
.wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.kicker {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

/* Site header */
.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.site-header .wrap {
    max-width: 1080px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
}
.brand {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--paper-inverse);
}
.brand img { height: 30px; width: auto; flex-shrink: 0; object-fit: contain; object-position: left center; }
.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-nav a {
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
}
.site-nav a.current { color: var(--accent); font-weight: 600; }
.cta-button {
    display: inline-block;
    background: var(--brand-blue);
    color: #fff !important;
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, transform .08s ease;
}
.cta-button:hover { background: color-mix(in srgb, var(--brand-blue) 82%, black); }
.cta-button:active { transform: translateY(1px); }
.cta-button.gold { background: var(--gold); }
.cta-button.gold:hover { background: color-mix(in srgb, var(--gold) 82%, black); }

/* Trust bar */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 8px;
}
.trust-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
}

/* Post-article conversion CTA — deliberately stays a dark surface in
   both themes (not tied to --accent-deep, which flips to a pale tint
   in dark mode for use as on-dark text elsewhere). */
.convert-cta {
    margin-top: 48px;
    background: var(--cta-bg);
    color: var(--cta-ink);
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
}
.convert-cta h2 {
    color: var(--cta-ink);
    font-size: 26px;
    margin-bottom: 10px;
}
.convert-cta p {
    color: var(--cta-ink-soft);
    font-size: 15.5px;
    margin-bottom: 20px;
}
.convert-cta .cta-button {
    font-size: 15.5px;
    padding: 13px 26px;
}
.convert-cta .fine-print {
    margin-top: 14px;
    color: var(--cta-ink-soft);
    font-size: 13px;
}

/* Related articles */
.related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.related h2 {
    font-size: 20px;
    margin-bottom: 16px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.related-grid a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    font-size: 14.5px;
    font-weight: 600;
    transition: border-color .15s ease;
}
.related-grid a:hover { border-color: var(--accent); }
.related-grid .read-more {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}

/* Footer */
.site-footer {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.site-footer .wrap {
    max-width: 1080px;
    padding-top: 28px;
    padding-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-footer .brand img { height: 26px; }
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    text-decoration: none;
    font-size: 13.5px;
    color: var(--ink-soft);
}
.footer-copy {
    font-size: 12.5px;
    color: var(--ink-soft);
}
