/* Echoes of Empires — public site */
:root {
  --obsidian: #101010;
  --gold: #B89B60;
  --gold-soft: rgba(184, 155, 96, 0.35);
  --gold-faint: rgba(184, 155, 96, 0.14);
  --ivory: #F1EDE3;
  --ivory-dim: rgba(241, 237, 227, 0.72);
  --ivory-faint: rgba(241, 237, 227, 0.12);
  --charcoal: #242424;
  --gray: #8C8C8C;
  --burgundy: #542B2B;
  --ink: #1b1915;

  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-serif: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font: 400 16px/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
body::before { /* subtle film grain across the whole site */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: var(--grain); opacity: .06; mix-blend-mode: overlay;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--obsidian); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font: 500 11px/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow.plain::before { display: none; }
h1, h2, h3 { font-weight: 400; margin: 0; }
.display { font-family: var(--f-display); letter-spacing: .08em; line-height: 1.1; }
.serif { font-family: var(--f-serif); }
.section-title { font: 400 clamp(30px, 4vw, 46px)/1.12 var(--f-display); letter-spacing: .05em; margin-top: 18px; }
.lede { font: 400 clamp(20px, 2.2vw, 25px)/1.5 var(--f-serif); color: var(--ivory-dim); }
.muted { color: var(--gray); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px;
  font: 500 12px/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--gold); color: var(--obsidian); background: var(--gold); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn.ghost { background: transparent; color: var(--ivory); border-color: var(--ivory-faint); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.on-paper.ghost { color: var(--ink); border-color: rgba(27, 25, 21, .25); }
.btn.on-paper.ghost:hover { border-color: var(--burgundy); color: var(--burgundy); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.link-arrow {
  font: 500 12px/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  text-decoration: none; display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid transparent; padding-bottom: 4px;
}
.link-arrow:hover { border-bottom-color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(16, 16, 16, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-faint);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.wordmark svg { width: 34px; height: 34px; color: var(--gold); flex: none; }
.wordmark span { font: 500 16px/1 var(--f-display); letter-spacing: .24em; white-space: nowrap; }
.wordmark small { display: block; font: 400 9px/1 var(--f-sans); letter-spacing: .34em; color: var(--gray); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font: 500 12px/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ivory-dim); padding: 8px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--gold); }
.nav .yt { display: inline-flex; padding: 8px; border: 1px solid var(--ivory-faint); border-bottom-color: var(--ivory-faint); border-radius: 0; }
.nav .yt:hover { border-color: var(--gold); color: var(--gold); }
.nav .yt svg { width: 18px; height: 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--ivory-faint); color: var(--ivory); padding: 10px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    /* Anchored to the header: its backdrop-filter makes it the containing block, so position:fixed collapsed to zero height. */
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); overflow-y: auto;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--obsidian); padding: 24px var(--gutter);
    /* Closed state stays inside the viewport (an off-canvas translateX widened the page on phones). */
    opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { font-size: 14px; width: 100%; padding: 20px 0; border-bottom: 1px solid var(--ivory-faint); }
  .nav .yt { border: 0; border-bottom: 1px solid var(--ivory-faint); gap: 12px; padding: 20px 0; width: 100%; }
  .nav .yt::after { content: 'YouTube Channel'; }
  .wordmark small { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--gold-faint); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) sepia(.25) contrast(1.05) brightness(.6); }
.hero-media .engraving { position: absolute; right: -4%; bottom: 0; height: 100%; width: auto; color: var(--gold); opacity: .85; }
.hero::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(16,16,16,.96) 0%, rgba(16,16,16,.78) 42%, rgba(16,16,16,.25) 100%),
  linear-gradient(0deg, rgba(16,16,16,1) 0%, rgba(16,16,16,0) 40%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: clamp(64px, 10vh, 120px); }
.hero h1 { font: 400 clamp(46px, 8.6vw, 116px)/.98 var(--f-display); letter-spacing: .06em; margin: 26px 0 22px; }
.hero h1 span { display: block; }
.hero .tagline { font: italic 400 clamp(22px, 2.6vw, 32px)/1.3 var(--f-serif); color: var(--gold); margin: 0 0 28px; }
.hero .intro { max-width: 560px; font-size: 17px; color: var(--ivory-dim); margin: 0 0 40px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { position: absolute; right: var(--gutter); bottom: clamp(64px, 10vh, 120px); z-index: 2; writing-mode: vertical-rl; font: 500 10px/1 var(--f-sans); letter-spacing: .4em; color: var(--gray); text-transform: uppercase; }
@media (max-width: 860px) { .hero-meta { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--gold-faint); }
.paper { background: var(--ivory); color: var(--ink); }
.paper::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; pointer-events: none; }
.paper .eyebrow { color: var(--burgundy); }
.paper .muted { color: #6d675c; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }

.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; position: relative; }
.about .body p { font: 400 clamp(19px, 1.9vw, 22px)/1.65 var(--f-serif); margin: 0 0 1.2em; }
.about .body p:first-child::first-letter { font: 400 4.2em/.8 var(--f-display); float: left; margin: .08em .12em 0 0; color: var(--burgundy); }
.about .principles { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(27,25,21,.2); }
.about .principles div { padding: 22px 20px 0 0; }
.about .principles strong { display: block; font: 500 11px/1 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 10px; }
.about .principles span { font-size: 14px; color: #4a463e; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .principles { grid-template-columns: 1fr; } }

/* Areas of exploration */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gold-faint); border-left: 1px solid var(--gold-faint); }
.area {
  border-right: 1px solid var(--gold-faint); border-bottom: 1px solid var(--gold-faint);
  padding: 34px 28px 30px; text-decoration: none; display: flex; flex-direction: column; min-height: 250px;
  transition: background .3s;
}
.area:hover { background: rgba(184, 155, 96, .05); }
.area .num { font: 400 13px/1 var(--f-display); color: var(--gold); letter-spacing: .14em; }
.area h3 { font: 500 23px/1.2 var(--f-serif); margin: 28px 0 12px; }
.area p { font-size: 14px; color: var(--gray); margin: 0 0 auto; }
.area .count { margin-top: 24px; font: 500 10px/1 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-dim); display: flex; justify-content: space-between; }
.area:hover .count { color: var(--gold); }
@media (max-width: 1000px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } .area { min-height: 0; } }

/* Featured */
.featured { display: grid; grid-template-columns: 7fr 5fr; gap: 0; border: 1px solid var(--gold-soft); }
.featured .media { position: relative; min-height: 100%; background: var(--charcoal); overflow: hidden; display: block; }
.featured .media .thumb { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
@media (max-width: 900px) { .featured .media { aspect-ratio: 16 / 9; } }
.featured .media img { width: 100%; height: 100%; object-fit: cover; }
.featured .info { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; border-left: 1px solid var(--gold-soft); }
.featured h3 { font: 500 clamp(30px, 3.4vw, 42px)/1.1 var(--f-serif); margin: 18px 0 18px; }
.featured .synopsis { color: var(--ivory-dim); margin: 0 0 28px; }
.featured .actions { margin-top: auto; padding-top: 12px; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } .featured .info { border-left: 0; border-top: 1px solid var(--gold-soft); } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ivory-faint); margin: 0 0 32px; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--ivory-faint); }
.facts dt { font: 500 10px/1 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gray); margin-bottom: 7px; }
.facts dd { margin: 0; font-size: 14px; }
.paper .facts, .paper .facts div { border-color: rgba(27,25,21,.15); }

.coming-soon {
  border: 1px solid var(--gold-soft); padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 80px); text-align: center; position: relative;
  background: radial-gradient(ellipse at center, rgba(184,155,96,.07), transparent 70%);
}
.coming-soon::before, .coming-soon::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1px solid var(--gold); }
.coming-soon::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.coming-soon::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.coming-soon h3 { font: 400 clamp(26px, 3.2vw, 38px)/1.2 var(--f-display); letter-spacing: .06em; margin: 22px 0 16px; }
.coming-soon p { max-width: 540px; margin: 0 auto 30px; color: var(--ivory-dim); font: 400 20px/1.55 var(--f-serif); }
.ornament { color: var(--gold); width: 120px; height: 14px; margin: 0 auto; display: block; }

/* Thumbnails */
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--charcoal); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; filter: saturate(.9); }
a:hover .thumb img { transform: scale(1.03); filter: saturate(1); }
.thumb-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #2b2722 0%, #161514 75%);
}
.thumb-fallback::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--gold-faint); }
.thumb-fallback span { font: 400 clamp(34px, 5vw, 64px)/1 var(--f-display); color: var(--gold); letter-spacing: .06em; opacity: .8; }
.thumb-fallback small { display: block; font: 500 9px/1 var(--f-sans); letter-spacing: .34em; color: var(--gray); margin-top: 12px; text-transform: uppercase; }
.thumb .duration { position: absolute; right: 10px; bottom: 10px; background: rgba(16,16,16,.85); font: 500 11px/1 var(--f-sans); letter-spacing: .06em; padding: 6px 8px; color: var(--ivory); }
.thumb .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border: 1px solid rgba(241,237,227,.7); border-radius: 50%; display: grid; place-items: center; background: rgba(16,16,16,.35); opacity: 0; transition: opacity .3s; }
.thumb .play svg { width: 18px; height: 18px; margin-left: 3px; }
a:hover .thumb .play { opacity: 1; }

/* Episode cards (latest) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.card { text-decoration: none; display: block; }
.card .meta { display: flex; gap: 14px; align-items: center; margin: 22px 0 12px; font: 500 10px/1 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.card .meta span + span { color: var(--gray); }
.card h3 { font: 500 26px/1.18 var(--f-serif); margin: 0 0 12px; transition: color .2s; }
.card:hover h3 { color: var(--gold); }
.card p { font-size: 15px; color: var(--ivory-dim); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.empty-note { padding: 48px 0; border-top: 1px solid var(--ivory-faint); border-bottom: 1px solid var(--ivory-faint); text-align: center; color: var(--gray); font: italic 20px/1.5 var(--f-serif); }

/* ---------- Page header (Episodes) ---------- */
.page-head { padding: clamp(70px, 10vw, 130px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--gold-faint); position: relative; overflow: hidden; }
.page-head h1 { font: 400 clamp(40px, 6vw, 80px)/1.04 var(--f-display); letter-spacing: .06em; margin: 22px 0 18px; }
.page-head p { max-width: 620px; }
.page-head .bg-mark { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 460px; color: var(--gold); opacity: .07; pointer-events: none; }

/* Archive controls */
.controls { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0; border: 1px solid var(--gold-faint); margin: 48px 0 18px; }
.controls > * { border-right: 1px solid var(--gold-faint); }
.controls > *:last-child { border-right: 0; }
.field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 14px 20px; min-width: 0; }
.field label { font: 500 9px/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.field input, .field select {
  background: transparent; border: 0; color: var(--ivory); font: 400 15px/1.3 var(--f-sans); padding: 0; outline: none; width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.field select { padding-right: 22px; min-width: 170px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23B89B60'/%3E%3C/svg%3E") right center no-repeat; }
.field select option { background: var(--charcoal); color: var(--ivory); }
.field input::placeholder { color: rgba(241,237,227,.35); }
.field:focus-within { background: rgba(184,155,96,.05); }
.field.search { flex-direction: row; align-items: center; gap: 14px; }
.field.search svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.field.search div { flex: 1; display: flex; flex-direction: column; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--gray); margin-bottom: 40px; flex-wrap: wrap; }
.results-bar button { background: none; border: 0; color: var(--gold); cursor: pointer; font: 500 11px/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; }
@media (max-width: 960px) { .controls { grid-template-columns: 1fr 1fr; } .controls .search { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--gold-faint); } .controls > *:nth-child(3) { border-right: 0; } .controls > *:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid var(--gold-faint); } }

/* Archive list */
.library { border-top: 1px solid var(--gold-faint); }
.entry { display: grid; grid-template-columns: 110px minmax(240px, 400px) 1fr; gap: clamp(20px, 3vw, 44px); padding: 40px 0; border-bottom: 1px solid var(--gold-faint); text-decoration: none; align-items: start; }
.entry .no { font: 400 46px/1 var(--f-display); color: var(--gold); letter-spacing: .04em; }
.entry .no small { display: block; font: 500 9px/1 var(--f-sans); letter-spacing: .3em; color: var(--gray); margin-bottom: 12px; }
.entry h2 { font: 500 clamp(26px, 2.6vw, 34px)/1.15 var(--f-serif); margin: 0 0 14px; transition: color .2s; }
.entry:hover h2 { color: var(--gold); }
.entry .synopsis { color: var(--ivory-dim); margin: 0 0 22px; max-width: 62ch; }
.entry .tags { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 10px/1.4 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gray); margin-bottom: 22px; }
.entry .tags b { color: var(--ivory-dim); font-weight: 500; }
@media (max-width: 960px) { .entry { grid-template-columns: 1fr; gap: 18px; } .entry .no { font-size: 30px; } .entry .no small { display: inline; margin-right: 10px; } }

/* ---------- Episode page ---------- */
.ep-banner { position: relative; min-height: 68vh; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--gold-faint); }
.ep-banner .bg { position: absolute; inset: 0; }
.ep-banner .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.85); transform: scale(1.04); }
.ep-banner .bg .thumb-fallback span { opacity: .12; font-size: clamp(120px, 22vw, 300px); }
.ep-banner .bg .thumb-fallback small, .ep-banner .bg .thumb-fallback::before { display: none; }
.ep-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,16,16,1) 0%, rgba(16,16,16,.55) 50%, rgba(16,16,16,.3) 100%); }
.ep-banner .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 64px; width: 100%; }
.ep-banner h1 { font: 500 clamp(40px, 6.4vw, 86px)/1.02 var(--f-serif); margin: 22px 0 22px; max-width: 18ch; }
.ep-banner .sub { display: flex; flex-wrap: wrap; gap: 10px 30px; font: 500 11px/1.4 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); }
.ep-banner .sub span::before { content: '◆'; color: var(--gold); font-size: 7px; margin-right: 12px; vertical-align: 2px; }
.ep-banner .sub span:first-child::before { display: none; }
.breadcrumb { font: 500 11px/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gray); }
.breadcrumb a { text-decoration: none; color: var(--gold); }

.player { margin-top: -1px; padding: clamp(40px, 6vw, 80px) 0 0; }
.player .frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--gold-soft); background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .pending { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(ellipse, #1f1d1a, #0c0c0c 75%); }
.player .pending h2 { font: 400 clamp(20px, 2.6vw, 30px)/1.2 var(--f-display); letter-spacing: .08em; margin: 18px 0 10px; }
.player .pending p { color: var(--gray); margin: 0; }

.ep-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 7vw, 110px); padding: clamp(60px, 8vw, 110px) 0; }
.prose h2 { font: 400 13px/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 64px 0 22px; display: flex; align-items: center; gap: 16px; }
.prose h2::after { content: ''; flex: 1; height: 1px; background: var(--gold-faint); }
.prose h2:first-child { margin-top: 0; }
.prose p { font: 400 clamp(19px, 1.8vw, 21px)/1.75 var(--f-serif); color: rgba(241,237,227,.88); margin: 0 0 1.15em; }
.prose .first p:first-child::first-letter { font: 400 3.9em/.82 var(--f-display); float: left; margin: .06em .12em 0 0; color: var(--gold); }
.aside-block { border-top: 1px solid var(--gold-soft); padding-top: 22px; margin-bottom: 48px; }
.aside-block h3 { font: 500 10px/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.figures { list-style: none; margin: 0; padding: 0; }
.figures li { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--ivory-faint); }
.figures li:last-child { border-bottom: 0; }
.figures strong { display: block; font: 500 20px/1.25 var(--f-serif); }
.figures span { font-size: 14px; color: var(--gray); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--gold-soft); }
.timeline li { position: relative; padding-bottom: 18px; }
.timeline li::before { content: ''; position: absolute; left: -22px; top: 8px; width: 7px; height: 7px; background: var(--obsidian); border: 1px solid var(--gold); transform: rotate(45deg); }
.timeline b { display: block; font: 500 14px/1.3 var(--f-display); letter-spacing: .06em; color: var(--gold); }
.timeline span { font-size: 14px; color: var(--ivory-dim); }
.sources { list-style: none; counter-reset: src; padding: 0; margin: 0; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--ivory-faint); font-size: 15px; color: var(--ivory-dim); }
.sources li::before { content: counter(src, upper-roman) '.'; font: 400 14px/1.6 var(--f-display); color: var(--gold); }
.sources cite { font: italic 400 19px/1.4 var(--f-serif); color: var(--ivory); }
.sources a { color: var(--gold); text-underline-offset: 3px; }
@media (max-width: 960px) { .ep-body { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gold-soft); padding: 80px 0 36px; background: #0b0b0b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 60px; }
.footer-grid p { color: var(--gray); font-size: 14px; max-width: 360px; margin: 22px 0 0; }
.footer-grid h4 { font: 500 10px/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { text-decoration: none; color: var(--ivory-dim); font-size: 14px; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid .soon { color: rgba(140,140,140,.6); font-size: 14px; }
.footer-base { border-top: 1px solid var(--ivory-faint); padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--gray); letter-spacing: .04em; }
.footer-base .motto { font: italic 15px/1 var(--f-serif); color: var(--gold); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { transition: none !important; } }
.loading { color: var(--gray); font: italic 18px var(--f-serif); padding: 40px 0; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound h1 { font: 400 clamp(40px, 6vw, 72px)/1.1 var(--f-display); letter-spacing: .06em; margin: 22px 0 16px; }
.notfound p { color: var(--ivory-dim); font: 20px/1.5 var(--f-serif); margin: 0 0 32px; }
