:root {
    --ink-900: #07091a;
    --ink-800: #0c1024;
    --ink-700: #131836;
    --ink-600: #1a2148;
    --ink-500: #232c5e;
    --line: #2a3470;
    --line-soft: #1d2752;
    --gold: #e9c46a;
    --gold-bright: #ffd770;
    --gold-soft: rgba(233, 196, 106, 0.12);
    --plasma: #5af1ff;
    --plasma-soft: rgba(90, 241, 255, 0.1);
    --berry: #ff3d7f;
    --berry-soft: rgba(255, 61, 127, 0.12);
    --text: #eef1fa;
    --text-mute: #aab3c8;
    --text-dim: #6a7290;
    --radius: 14px;
    --radius-sm: 8px;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--ink-900);
    background-image:
        radial-gradient(ellipse 60% 50% at 15% 5%, rgba(90, 241, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 40% 40% at 90% 20%, rgba(255, 61, 127, 0.06), transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(233, 196, 106, 0.04), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Top accent ribbon — fixed at top of viewport */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--berry), var(--gold), var(--plasma));
    z-index: 100;
    box-shadow: 0 0 24px rgba(233, 196, 106, 0.35);
}

.container {
    max-width: 980px;
    margin: 60px auto 0;
    padding: 0 28px;
    position: relative;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-mute);
    margin-bottom: 38px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.025);
    padding: 9px 18px;
    border-radius: 30px;
    border: 1px solid var(--line-soft);
    backdrop-filter: blur(8px);
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s var(--transition);
}

.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb .sep { color: var(--text-dim); font-weight: 700; }
.breadcrumb span:not(.sep) { color: var(--text); }

/* Article header — magazine style */
.post-header {
    position: relative;
    padding: 30px 0 50px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 50px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 22px;
}

.kicker::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
}

h1 {
    font-family: 'Playfair Display', 'Outfit', Georgia, serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: #fff;
    margin: 0 0 26px;
}

h1 .accent {
    background: linear-gradient(110deg, var(--gold-bright) 20%, var(--plasma) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.lede {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
    max-width: 78ch;
    font-weight: 400;
}

.lede strong { color: var(--gold-bright); font-weight: 600; }

/* Meta row */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 26px;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .dot { color: var(--gold); }

/* Hero figure — magazine showcase */
.hero-figure {
    position: relative;
    margin: 0 0 50px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ink-700);
    aspect-ratio: 2376 / 934;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(233, 196, 106, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 12s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-figure:hover img { transform: scale(1.04); }

.hero-figure::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, transparent 55%, rgba(7, 9, 26, 0.55) 90%, rgba(7, 9, 26, 0.85) 100%),
        linear-gradient(110deg, rgba(7, 9, 26, 0.35) 0%, transparent 30%);
    pointer-events: none;
    z-index: 1;
}

.hero-figure::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--berry), var(--gold), var(--plasma));
    z-index: 3;
}

.hero-figure figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 26px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 2;
}

.hero-figure .caption-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.4px;
    flex-wrap: wrap;
}

.hero-figure .caption-tag {
    background: var(--gold-soft);
    border: 1px solid rgba(233, 196, 106, 0.35);
    color: var(--gold-bright);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-figure .caption-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--gold);
    background: rgba(7, 9, 26, 0.55);
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.hero-figure .caption-meta .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--berry);
    box-shadow: 0 0 10px var(--berry);
    animation: heroPulse 1.6s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

/* Quick facts — asymmetric tilted card stack feel */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    margin: 0 0 55px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
    position: relative;
}

.quick-facts::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--gold-soft) 0%, transparent 50%),
        linear-gradient(-45deg, var(--plasma-soft) 0%, transparent 50%);
    pointer-events: none;
}

.fact {
    padding: 22px 18px;
    text-align: left;
    border-right: 1px solid var(--line-soft);
    position: relative;
    z-index: 1;
}

.fact:last-child { border-right: none; }

.fact-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-weight: 600;
}

.fact-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.fact-value .unit {
    font-size: 13px;
    color: var(--gold);
    font-weight: 500;
    margin-left: 2px;
    font-family: 'JetBrains Mono', monospace;
}

/* Section headers — numbered */
h2 {
    font-family: 'Playfair Display', 'Outfit', Georgia, serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 70px 0 24px;
    position: relative;
    padding-left: 0;
    counter-increment: section;
    display: flex;
    align-items: baseline;
    gap: 18px;
}

h2::before {
    content: '0' counter(section);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--gold-soft);
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid rgba(233, 196, 106, 0.25);
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}

article { counter-reset: section; }

/* Body paragraphs */
article p {
    font-size: 16.5px;
    line-height: 1.85;
    margin: 0 0 22px;
    color: var(--text-mute);
}

article p strong { color: #fff; font-weight: 600; }
article p em { color: var(--gold); font-style: italic; font-weight: 500; }

/* Drop cap on first body paragraph */
article > p:first-of-type::first-letter,
article section:first-of-type p:first-of-type::first-letter,
article p.has-dropcap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4.2em;
    font-weight: 700;
    float: left;
    line-height: 0.9;
    margin: 6px 14px 0 0;
    color: var(--gold);
    text-shadow: 0 4px 24px rgba(233, 196, 106, 0.3);
}

article a {
    color: var(--plasma);
    text-decoration: none;
    border-bottom: 1px solid rgba(90, 241, 255, 0.3);
    transition: all 0.25s var(--transition);
    font-weight: 500;
}

article a:hover {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
    text-shadow: 0 0 12px rgba(255, 215, 112, 0.5);
}

/* Lists — pin-style markers */
article ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 12px;
}

article ul li {
    position: relative;
    padding: 16px 20px 16px 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    color: var(--text-mute);
    line-height: 1.65;
    font-size: 15.5px;
    transition: all 0.3s var(--transition);
}

article ul li:hover {
    border-color: var(--gold);
    transform: translateX(4px);
    background: linear-gradient(135deg, var(--gold-soft), transparent);
}

article ul li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, var(--gold-bright), var(--gold) 45%, transparent 50%);
    box-shadow: 0 0 12px rgba(233, 196, 106, 0.5);
}

article ul li strong { color: #fff; font-weight: 600; }

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

th, td {
    padding: 16px 22px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
}

th {
    background: rgba(0, 0, 0, 0.25);
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 1px solid var(--line);
}

td {
    color: var(--text-mute);
    font-size: 15px;
}

td:first-child {
    color: #fff;
    font-weight: 500;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
    transition: background 0.25s var(--transition);
}

tbody tr:hover td { background: rgba(233, 196, 106, 0.04); }

/* Pull quote / editor note */
.editor-note {
    position: relative;
    margin: 50px 0;
    padding: 36px 42px 36px 60px;
    background: linear-gradient(135deg, rgba(90, 241, 255, 0.04) 0%, rgba(233, 196, 106, 0.04) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
    font-style: italic;
    font-family: 'Playfair Display', Georgia, serif;
}

.editor-note::before {
    content: '"';
    position: absolute;
    left: 18px;
    top: 6px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: var(--gold);
    line-height: 1;
    opacity: 0.6;
}

.editor-note strong {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* FAQ — custom open/close visual via details */
.faq-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.faq {
    background: var(--ink-700);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--transition);
}

.faq:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.faq h4 {
    margin: 0;
    padding: 22px 60px 22px 26px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    cursor: pointer;
    line-height: 1.4;
}

.faq h4::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 18px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.faq p {
    margin: 0;
    padding: 0 26px 24px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text-mute);
}

/* Tag chips for keywords inline */
.tag {
    display: inline-block;
    padding: 2px 9px;
    background: var(--gold-soft);
    border: 1px solid rgba(233, 196, 106, 0.25);
    border-radius: 4px;
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    margin: 0 2px;
}

/* Section divider — decorative */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    gap: 14px;
    color: var(--text-dim);
    font-size: 14px;
    letter-spacing: 4px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Footer */
.site-footer {
    margin-top: 90px;
    padding: 50px 28px 40px;
    background: linear-gradient(180deg, transparent, var(--ink-800));
    border-top: 1px solid var(--line-soft);
    text-align: center;
}

.site-footer .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

.site-footer p {
    margin: 6px 0;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
}

.site-footer .age {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border: 1px solid var(--berry);
    border-radius: 4px;
    color: var(--berry);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 18px; margin-top: 40px; }
    .quick-facts { grid-template-columns: repeat(2, 1fr); }
    .fact { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .fact:nth-child(even) { border-right: none; }
    .fact:nth-last-child(-n+2) { border-bottom: none; }
    h1 { font-size: 30px; letter-spacing: -0.5px; }
    h2 { font-size: 22px; gap: 12px; }
    h2::before { font-size: 11px; padding: 3px 7px; }
    .lede { font-size: 16px; }
    article p { font-size: 15.5px; line-height: 1.75; }
    article > p:first-of-type::first-letter,
    article p.has-dropcap::first-letter { font-size: 3.2em; margin: 4px 10px 0 0; }
    .hero-figure { margin: 0 0 32px; border-radius: 10px; }
    .hero-figure figcaption { padding: 12px 14px 14px; gap: 8px; }
    .hero-figure .caption-left { font-size: 10px; gap: 8px; }
    .hero-figure .caption-tag { font-size: 9px; padding: 3px 7px; letter-spacing: 1px; }
    .hero-figure .caption-meta { font-size: 10px; padding: 4px 9px; }
    .editor-note { padding: 28px 24px 28px 24px; font-size: 15px; }
    .editor-note::before { font-size: 56px; left: 12px; top: 0; }
    .faq h4 { padding: 18px 50px 18px 20px; font-size: 16px; }
    th, td { padding: 12px 14px; font-size: 13px; }
}
