
:root {
  --orange: #E4572E;
  --orange-ink: #C8431F;
  --ink: #141B22;
  --text: #1E2730;
  --muted: #55606B;
  --paper: #FFFFFF;
  --soft: #FFF4EE;
  --line: #E7E2DD;
  --card: #FFFFFF;
  --chip: #FBE7DF;
  --focus: #1F6FEB;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 27, 34, .06), 0 8px 24px rgba(20, 27, 34, .06);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --orange-ink: #FF7A52;
    --ink: #F4F1EE;
    --text: #E6E9EC;
    --muted: #A9B3BC;
    --paper: #10161C;
    --soft: #18212A;
    --line: #2A353F;
    --card: #161E26;
    --chip: #3A2219;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
#view:focus { outline: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.brand-word span { color: var(--orange-ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--orange-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #CF4A23; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-ink); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { color: #fff; background: #CF4A23; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Sections */
section { padding: clamp(48px, 8vw, 88px) 0; }
.soft { background: var(--soft); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--orange-ink); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
.equator { position: relative; height: 3px; background: linear-gradient(90deg, transparent, var(--orange) 15%, var(--orange) 85%, transparent); opacity: .5; margin-top: 48px; }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; justify-self: start; order: -1; }
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-size: 2rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.stat small { display: block; color: var(--muted); font-size: .75rem; margin-top: 8px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--text); }
.card h3 { margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card .meta { margin-top: auto; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tag { display: inline-block; align-self: flex-start; background: var(--chip); color: var(--orange-ink); font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.card.feature { grid-column: span 2; background: var(--ink); color: #E6E9EC; border-color: var(--ink); }
.card.feature h3 { color: #fff; font-size: 1.7rem; }
.card.feature p, .card.feature .meta { color: #B8C2CB; }
@media (prefers-color-scheme: dark) { .card.feature { background: #1E2A35; border-color: #2A353F; } }
@media (max-width: 600px) { .card.feature { grid-column: auto; } }

/* Series */
.series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .series { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.series-item { border-radius: var(--radius); padding: 20px; background: var(--card); border: 1px solid var(--line); }
.series-item h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.series-item p { font-size: .9rem; color: var(--muted); margin: 0; }
.series-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; }

/* Filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font-family: var(--body); font-weight: 600; font-size: .88rem; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Article */
.article-head { padding: 48px 0 24px; }
.article-head .dek { font-size: 1.2rem; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); font-weight: 500; margin-top: 16px; }
.prose { padding-bottom: 32px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.callout { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.callout b { color: var(--ink); }
.sources { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: .9rem; }
.sources h2 { font-size: 1.1rem; margin-top: 0; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1em; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); color: var(--ink); }
.table-wrap { overflow-x: auto; }

/* Chart */
.chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart h3 { margin-bottom: 4px; }
.chart .note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 72px; gap: 12px; align-items: center; margin: 12px 0; font-size: .92rem; }
.bar-track { background: var(--soft); height: 22px; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--orange); border-radius: 6px; width: 0; transition: width .8s ease; }
.bar-row b { font-family: var(--display); color: var(--ink); text-align: right; }
@media (max-width: 500px) { .bar-row { grid-template-columns: 84px 1fr 56px; font-size: .85rem; } }

/* Countdown and timeline */
.countdown { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 8px; }
.count-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 20px; min-width: 120px; }
@media (prefers-color-scheme: dark) { .count-box { background: #1E2A35; } }
.count-box b { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.count-box span { font-size: .82rem; color: #C9D1D8; }
.timeline { list-style: none; padding: 0; margin: 24px 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--orange); }
.timeline li.key::before { background: var(--orange); }
.timeline time { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* Join */
.join { background: var(--ink); color: #E6E9EC; border-radius: 24px; padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (prefers-color-scheme: dark) { .join { background: #1E2A35; } }
.join h2 { color: #fff; }
.join p { color: #B8C2CB; }
.join form { display: grid; gap: 12px; }
.join label { font-weight: 600; font-size: .9rem; color: #fff; }
.join input { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid #3A4651; background: #0E141A; color: #fff; padding: 0 16px; font: inherit; }
.join .msg { font-weight: 600; color: #FFB59C; min-height: 1.5em; margin: 0; }
.join .or { font-size: .85rem; color: #B8C2CB; margin: 4px 0 0; }
.btn-wa { background: #25D366; color: #0B2E1A; }
.btn-wa:hover { background: #20BD5B; color: #0B2E1A; }
@media (max-width: 800px) { .join { grid-template-columns: 1fr; } }

/* Offers */
.offer { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.offer h3 { margin-top: 0; }
.offer ul { padding-left: 1.1em; margin: 0; color: var(--muted); font-size: .95rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--chip); color: var(--orange-ink); font-family: var(--display); font-weight: 700; display: grid; place-items: center; }

/* Covers */
.thumb { margin: -22px -22px 16px; border-radius: 15px 15px 0 0; overflow: hidden; aspect-ratio: 1200 / 630; background: #141B22; }
.thumb svg, .cover-wrap svg { width: 100%; height: 100%; display: block; }
.card.feature .thumb { aspect-ratio: 1200 / 520; }
.cover-wrap { margin-bottom: 28px; }
.cover-wrap svg { border-radius: 16px; aspect-ratio: 1200 / 630; height: auto; }
a.card:hover .thumb svg { transform: scale(1.03); }
.thumb svg { transition: transform .3s ease; }

/* YouTube prompts */
.btn-yt { background: #FF0033; color: #fff; }
.btn-yt:hover { background: #D9002B; color: #fff; }
.btn-yt svg, .social svg { width: 20px; height: 20px; flex: none; }
.yt { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--soft); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.yt b { display: block; color: var(--ink); }
.yt span { color: var(--muted); font-size: .9rem; }
.feature-video { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); margin-bottom: 24px; }
.feature-video:hover { border-color: var(--orange); color: var(--text); }
.feature-video h3 { margin: 10px 0 6px; }
.feature-video p { color: var(--muted); }
.fv-thumb { aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, #141B22, #2A3540); display: grid; place-items: center; }
.fv-thumb svg { width: 72px; height: 72px; }
@media (max-width: 700px) { .feature-video { grid-template-columns: 1fr; } }
.social { display: inline-flex; align-items: center; gap: 10px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; font-size: .92rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.foot h3 { font-size: 1rem; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--orange-ink); }
.legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
@media (max-width: 1000px) { .foot { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }

.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade, .bar-fill, .btn, .card { animation: none; transition: none; } }

/* ===== Multi-page additions ===== */
#main:focus { outline: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
a.card:hover .thumb img { transform: scale(1.03); }
a.card[hidden] { display: none; }
.cover-wrap img { width: 100%; height: auto; display: block; border-radius: 16px; aspect-ratio: 1200 / 630; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); }
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px 20px; margin: 0 0 28px; }
.toc b { display: block; color: var(--ink); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--orange-ink); text-decoration: underline; }
.prose h2 { scroll-margin-top: 90px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; }
.letters a { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--card); }
.letters a:hover { border-color: var(--orange); color: var(--orange-ink); }
.glossary { margin: 24px 0 0; }
.glossary .term { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.glossary dt { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--text); }
.glossary dd a { display: inline-block; margin-top: 6px; font-weight: 600; }
.glossary .term:target { background: var(--soft); border-radius: 12px; padding-left: 14px; padding-right: 14px; }
.series-item { transition: border-color .15s ease; }
a.series-item:hover { border-color: var(--orange); }
@media (max-width: 1000px) { .nav a { padding: 10px 8px; font-size: .88rem; } }
@media (max-width: 900px) { .nav a { padding: 14px 12px; font-size: .95rem; } }
