:root {
  --bg: #14110f;
  --bg-2: #1c1815;
  --bg-3: #26201b;
  --text: #e8e1d4;
  --muted: #a69c8b;
  --gold: #c9a24a;
  --gold-2: #e6c479;
  --line: #3a322a;
  --light: #f3ead3;
  --radius: 10px;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--light); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--light); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2em 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; color: var(--gold-2); }
p { margin: 0 0 1.1em; }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 17, 15, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; color: var(--light); text-decoration: none; }
.logo span { color: var(--gold); }

.nav { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; letter-spacing: .03em; padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--light); border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: .4rem .7rem; font-size: 1rem; cursor: pointer; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(230, 196, 121, .35), transparent 60%),
    linear-gradient(180deg, #0c0a09 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .035) 46px 48px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .eyebrow { color: var(--gold); letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); letter-spacing: .04em; margin-bottom: .2em; }
.hero .subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--gold-2); margin-bottom: 1.5rem; }
.hero .lead { max-width: 620px; color: var(--text); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-2); text-decoration: none; font-size: .95rem;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold); color: #1a1408; }
.btn.primary { background: var(--gold); color: #1a1408; }
.btn.primary:hover { background: var(--gold-2); }

/* Page header */
.page-head { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head p { color: var(--muted); max-width: 680px; margin: 0; font-size: 1.1rem; }
.page-head h1 { margin-bottom: .3em; }

main { display: block; padding-bottom: 4rem; }
.section { padding-top: 1rem; }

/* Facts */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 2.5rem 0;
}
.facts div { background: var(--bg-2); padding: 1.1rem 1.3rem; }
.facts dt { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
.facts dd { margin: 0; line-height: 1.45; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.card {
  display: block; padding: 1.5rem; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
a.card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.card h3 { margin: 0 0 .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .voice { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .4rem; }

/* Figures */
figure { margin: 2rem 0; }
figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #eee; }
figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); }
figure.narrow { max-width: 420px; }
@media (min-width: 900px) {
  figure.float-right { float: right; width: 340px; margin: .5rem 0 1rem 2rem; }
}

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin-top: .6rem; font-size: .85rem; color: var(--muted); }

/* Pull quote / note */
.note {
  border-left: 3px solid var(--gold); background: var(--bg-2);
  padding: 1rem 1.4rem; margin: 2rem 0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
}
.note p:last-child { margin-bottom: 0; }

/* Timeline */
.timeline { list-style: none; margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.5rem; top: .7rem; width: 11px; height: 11px;
  margin-left: -5px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg);
}
.timeline time { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--gold-2); }
.timeline p { margin: .2rem 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-3); color: var(--gold-2); font-weight: 400; letter-spacing: .05em; font-size: .85rem; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--gold); width: 3rem; white-space: nowrap; }
td em { color: var(--muted); }

/* Act switcher */
.toc { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.toc a:hover { border-color: var(--gold); color: var(--light); }

.scene { margin-top: 2.5rem; padding-top: .5rem; scroll-margin-top: 80px; }
.scene-label { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }

/* Pager */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; }
.pager small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* Footer */
.site-footer { background: #0e0c0b; border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--light); }

.center { text-align: center; padding: 6rem 0; }
.center .big { font-family: var(--serif); font-size: 6rem; color: var(--gold); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .pager { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  h1, h2, h3 { color: #000; }
}
