:root {
  --ink: #140a05; --wood: #22120a; --wood-2: #2e180c; --wood-3: #432412; --line: rgba(217, 164, 65, .32);
  --brass: #d9a441; --gold: #f2c21b; --chalk: #f5e8cb; --chalk-2: #e2d2b2; --dim: #c2a982; --leaf: #8fd14f; --coral: #f07a5a; --sky: #7cc0dd;
  --display: 'Lilita One', 'Arial Black', Impact, system-ui, sans-serif; --body: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--chalk-2); font: 500 17px/1.62 var(--body); }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe27a; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--chalk); letter-spacing: .01em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 12px; color: var(--gold); }
h2 { font-size: clamp(26px, 4vw, 32px); margin: 48px 0 12px; }
h3 { font-size: 22px; margin: 32px 0 8px; }
h4 { font-size: 18px; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin: 4px 0; }
b, strong { color: var(--chalk); font-weight: 800; }
.lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.num, td.n { font-variant-numeric: tabular-nums; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: linear-gradient(#2a160bf2, #1d0f07f2); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.top .in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--display); font-size: 22px; line-height: 1; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span small { display: block; font-size: 11px; letter-spacing: .3em; color: var(--chalk); margin-top: 3px; }
.top nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-weight: 800; font-size: 15px; }
.top nav a { color: var(--chalk-2); text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold); }
.play { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 18px; border-radius: 12px; font-family: var(--display); font-size: 17px;
  text-decoration: none; color: #2a1404; background: linear-gradient(#ffd84a, #e3a316); box-shadow: inset 0 -3px 0 rgba(120, 60, 0, .35), inset 0 0 0 2px #fff0a8, 0 4px 0 #7a4a08; white-space: nowrap; }
.play:hover { color: #2a1404; filter: brightness(1.06); }
.play.big { min-height: 52px; font-size: 21px; padding: 8px 26px; }
@media (max-width: 760px) { .top nav { display: none; } .brand span small { display: none; } .brand { font-size: 20px; } .top .play { margin-left: auto; } }

/* page grid */
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 16px 64px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
.wrap.full { grid-template-columns: minmax(0, 1fr); }
main { min-width: 0; }
main > .lede { font-size: 20px; color: var(--chalk); max-width: 60ch; }
main p, main li { max-width: 70ch; }
.side { position: sticky; top: 84px; align-self: start; font-size: 15px; }
.side .grp { margin-bottom: 22px; }
.side a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--chalk-2); text-decoration: none; font-weight: 700; }
.side a:hover { background: var(--wood-2); color: var(--chalk); }
.side a[aria-current] { background: var(--wood-3); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.side .lbl { display: block; padding: 0 10px 6px; }
.mnav { display: none; }
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .side { display: none; }
  .mnav { display: block; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--wood); }
  .mnav summary { cursor: pointer; padding: 12px 14px; font-weight: 800; color: var(--chalk); list-style: none; display: flex; justify-content: space-between; }
  .mnav summary::after { content: '▾'; color: var(--gold); }
  .mnav[open] summary::after { content: '▴'; }
  .mnav .side { display: block; position: static; padding: 0 6px 10px; }
}
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 10px; }
.crumbs a { color: var(--dim); }

/* blocks */
.note { border-radius: 14px; padding: 14px 16px; background: var(--wood); box-shadow: inset 0 0 0 1px var(--line); margin: 18px 0; max-width: 72ch; }
.note.tip { box-shadow: inset 4px 0 0 var(--leaf), inset 0 0 0 1px var(--line); }
.note.warn { box-shadow: inset 4px 0 0 var(--coral), inset 0 0 0 1px var(--line); }
.note > :last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 22px; margin: 22px 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; max-width: none; }
.steps > li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 20px; color: #2a1404; background: linear-gradient(#ffd84a, #e3a316); }
.steps h3 { margin: 6px 0 6px; }
.shot { margin: 18px 0; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 22px; align-items: start; }
.shot.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
.shot.flip figure { order: 2; }
.shot figure, figure.phone { margin: 0; }
.shot img, figure.phone img { display: block; width: 100%; border-radius: 22px; box-shadow: 0 0 0 2px var(--brass), 0 0 0 6px #0c0603, 0 14px 30px rgba(0, 0, 0, .55); }
figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; }
@media (max-width: 640px) { .shot, .shot.flip { grid-template-columns: minmax(0, 1fr); } .shot figure { max-width: 260px; } .shot.flip figure { order: 0; } }
.phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; margin: 20px 0; }
.wide { margin: 18px 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(0, 0, 0, .5); }
.wide img { display: block; width: 100%; }
.tbl-wrap { overflow-x: auto; margin: 16px 0 22px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; vertical-align: top; }
th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--wood-2); font-weight: 800; white-space: nowrap; }
tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
td + td, th + th { border-left: 1px solid rgba(217, 164, 65, .12); }
td.n, th.n { text-align: right; white-space: nowrap; }
td b { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--wood-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 800; color: var(--chalk-2); white-space: nowrap; }
.chip.gold { color: #2a1404; background: var(--gold); box-shadow: none; }
.k { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 6px; background: var(--wood-3); color: var(--chalk); font-weight: 800; font-size: .9em; text-align: center; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 18px 0 8px; }
.card { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: var(--wood); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--chalk-2); transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--brass), 0 10px 22px rgba(0, 0, 0, .45); color: var(--chalk-2); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .t { padding: 12px 14px 14px; display: grid; gap: 2px; align-content: start; }
.card h3 { margin: 0; font-size: 20px; }
.card .s { font-size: 14px; color: var(--dim); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.tile { display: block; padding: 16px; border-radius: 14px; background: var(--wood); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--chalk-2); }
.tile:hover { box-shadow: inset 0 0 0 2px var(--brass); color: var(--chalk-2); }
.tile h3 { margin: 0 0 4px; font-size: 20px; color: var(--gold); }
.tile p { margin: 0; font-size: 15px; }

/* hero */
.hero { position: relative; border-radius: 20px; overflow: hidden; margin: 0 0 26px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .55); background: var(--wood); }
.hero > img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.hero .over { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(12, 6, 2, .92) 55%); }
.hero .over h1 { margin: 0; }
.hero .over p { margin: 6px 0 0; color: var(--chalk); font-size: 18px; max-width: 60ch; }
@media (max-width: 640px) { .hero > img { aspect-ratio: 4 / 3; } .hero .over { position: static; padding: 16px 16px 18px; background: var(--wood); } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0 0 24px; }
.facts div { padding: 10px 14px; border-radius: 12px; background: var(--wood); box-shadow: inset 0 0 0 1px var(--line); }
.facts .v { display: block; color: var(--chalk); font-weight: 800; font-size: 16px; }

/* timeline of ages */
.ages { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 14px; }
.ages li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; max-width: none; }
.ages .no { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 24px; color: var(--gold); background: var(--wood-2); box-shadow: inset 0 0 0 1px var(--line); }
.ages h3 { margin: 2px 0 2px; font-size: 21px; }
.ages .y { font-size: 14px; color: var(--dim); font-weight: 800; }
.ages p { margin: 6px 0 0; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 16px 0; }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 14px; background: var(--wood); box-shadow: inset 0 0 0 1px var(--line); }
.person img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--wood-2); }
.person h4 { margin: 0; font-size: 18px; }
.person .ti { font-size: 13px; color: var(--dim); font-weight: 800; }
.person p { font-size: 15px; margin: 6px 0 0; }
.person .fd { display: block; font-size: 11px; font-style: italic; color: var(--dim); margin-top: 6px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--wood); padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--dim); }
.foot .in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.foot a { color: var(--chalk-2); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 800; }
.pager small { display: block; color: var(--dim); font-weight: 700; }
