/* Layout: an outback survey map. Umber ground with contour lines, a red-dust band carrying the chain of five keepers, then the saga in its two arcs as cover rows with dispatch-style notes. */
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(../fonts/oswald-latin-500-normal.woff2) format("woff2") }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(../fonts/oswald-latin-700-normal.woff2) format("woff2") }
@font-face { font-family: "Spectral"; font-weight: 400; font-display: swap; src: url(../fonts/spectral-latin-400-normal.woff2) format("woff2") }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/spectral-latin-400-italic.woff2) format("woff2") }
@font-face { font-family: "Spectral"; font-weight: 600; font-display: swap; src: url(../fonts/spectral-latin-600-normal.woff2) format("woff2") }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap; src: url(../fonts/courier-prime-latin-400-normal.woff2) format("woff2") }

:root {
  /* one fixed look on purpose: burnt umber earth, bone, red dust, faded survey gold */
  --umber: #1d1512;
  --earth: #2a1e19;
  --bone: #eee3cc;
  --dust: #b4442a;
  --dust-hi: #d0583a;
  --gold: #c9a25a;
  --mustard: #c9a25a;
  --muted: #b3a48c;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --type: "Courier Prime", "Courier New", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { transition: none !important } }
body { margin: 0; background: var(--umber); color: var(--bone); font: 400 19px/1.65 var(--serif); -webkit-font-smoothing: antialiased }
img { max-width: 100%; display: block }
a { color: inherit }
p { margin: 0 }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.02; letter-spacing: .01em; text-wrap: balance }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)) }
.label { font: 400 14px/1.3 var(--type); letter-spacing: .06em; text-transform: uppercase }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px }

.btn { text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; font: 500 18px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; background: var(--dust); color: #fff; border: 1px solid var(--dust); border-radius: 2px; transition: background .15s }
.btn:hover { background: var(--dust-hi) }
.btn.ghost { background: transparent; border-color: rgba(238,227,204,.4); color: var(--bone) }
.btn.ghost:hover { border-color: var(--bone); background: transparent }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--umber) }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(29,21,18,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #3b2c25 }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 11px }
.mark { display: flex; align-items: baseline; gap: 14px; text-decoration: none }
.mark b { font: 700 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase }
.mark b span { color: var(--dust-hi) }
.mark small { font: 400 13px/1 var(--type); color: var(--muted) }
.bar .btn { min-height: 40px; font-size: 15px; padding: 0 16px; white-space: nowrap }

/* hero on the survey map */
.hero { position: relative; padding-block: 72px 80px; background: url(../covers/contours.svg) center / cover no-repeat, radial-gradient(ellipse 80% 70% at 30% 30%, #34241c, var(--umber)) }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center }
.hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0 }
.coord { color: var(--gold) }
.hero h1 { font-size: clamp(42px, 6.2vw, 84px) }
.hero h1 em { font-style: normal; color: var(--dust-hi) }
.lede { font-size: 21px; color: #ddd0b6; max-width: 54ch }
.ctas { display: flex; flex-wrap: wrap; gap: 14px }
.note { font: 400 14px/1.5 var(--type); color: var(--muted) }
.cover-stack { position: relative; justify-self: center; width: min(340px, 100%); aspect-ratio: 2 / 3.1 }
.cover-stack img { position: absolute; width: 82%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 30px 60px -18px rgba(0,0,0,.85) }
.cover-stack img:nth-child(1) { right: 0; top: 0; filter: brightness(.55) }
.cover-stack img:nth-child(2) { left: 0; bottom: 0 }
.pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--dust-hi); box-shadow: 0 0 0 5px rgba(208,88,58,.25) }

/* premise */
.premise { border-block: 1px solid #3b2c25; background: var(--earth) }
.premise .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 }
.fact { padding: 28px 26px; border-left: 1px solid #3b2c25; display: grid; gap: 6px; align-content: start }
.fact:first-child { border-left: 0; padding-left: 0 }
.fact .label { color: var(--gold) }
.fact p { font-size: 18px; color: #ddd0b6 }

/* the keepers */
.keepers { background: var(--dust); color: #fff; padding-block: 56px 60px }
.keepers-head { display: grid; gap: 10px; margin-bottom: 30px; max-width: 760px }
.keepers-head .label { color: #ffd9c8 }
.keepers-head h2 { font-size: clamp(32px, 4.4vw, 50px) }
.keepers-head p { color: #fbe6da; font-size: 19px }
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative }
.chain::before { content: ""; position: absolute; left: 10%; right: 10%; top: 17px; height: 2px; background: rgba(255,255,255,.55) }
.keeper { display: grid; justify-items: center; text-align: center; gap: 6px; padding-inline: 8px; position: relative }
.keeper i { width: 36px; height: 36px; border-radius: 50%; background: var(--umber); border: 2px solid #fff; display: grid; place-items: center; font: 700 15px/1 var(--display); font-style: normal; color: var(--gold) }
.keeper b { font: 700 21px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em }
.keeper span { font: 400 14px/1.4 var(--type); color: #fbe6da }

/* arcs */
.arc { padding-block: 76px 20px }
.arc + .arc { padding-top: 56px }
.arc-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: end; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid #3b2c25 }
.arc-head .roman { grid-row: span 2; font: 700 clamp(70px, 10vw, 120px)/.8 var(--display); color: var(--dust) }
.arc-head .label { color: var(--gold) }
.arc-head h2 { font-size: clamp(32px, 4.4vw, 52px) }
.arc-head p { grid-column: 2; color: var(--muted); max-width: 62ch; font-size: 18px }
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 22px }
.book { display: grid; gap: 12px; align-content: start; min-width: 0 }
.book img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 18px 34px -16px rgba(0,0,0,.9); transition: transform .2s }
.book:hover img { transform: translateY(-4px) }
.book .label { color: var(--gold); display: flex; justify-content: space-between; gap: 8px; font-size: 13px }
.book h3 { font-size: 23px; letter-spacing: .02em }
.hook { font: 400 17px/1.45 var(--serif); font-style: italic; color: var(--bone) }
.book p:not(.hook):not(.label) { font-size: 16px; line-height: 1.55; color: var(--muted) }
.who { font: 400 13px/1.4 var(--type); color: var(--dust-hi); border-top: 1px dashed #4a372e; padding-top: 8px }
.arc-cta { display: flex; justify-content: center; padding-block: 44px 20px }

/* epigraph */
.epigraph { padding-block: 64px; text-align: center }
.epigraph blockquote { margin: 0 auto; max-width: 30ch; font: 400 clamp(28px, 3.6vw, 40px)/1.3 var(--serif); font-style: italic; color: var(--bone) }
.epigraph cite { display: block; margin-top: 18px; font: 400 14px/1.3 var(--type); font-style: normal; color: var(--gold); letter-spacing: .06em; text-transform: uppercase }

/* games */
.games { background: var(--earth); border-top: 1px solid #3b2c25; padding-block: 64px }
.games-head { display: grid; gap: 10px; margin-bottom: 26px }
.games-head .label { color: var(--gold) }
.games-head h2 { font-size: clamp(30px, 4vw, 46px) }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.game { display: grid; text-decoration: none; background: var(--umber); border: 1px solid #3b2c25; transition: border-color .15s }
.game:hover { border-color: var(--dust-hi) }
.game img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover }
.game div { padding: 14px 16px 18px; display: grid; gap: 4px }
.game b { font: 700 22px/1.1 var(--display); text-transform: uppercase }
.game span { font-size: 16px; color: var(--muted) }

/* final */
.final { padding-block: 84px; text-align: center; background: url(../covers/contours.svg) center / cover no-repeat, var(--umber) }
.final .wrap { display: grid; gap: 22px; justify-items: center }
.final .label { color: var(--gold) }
.final h2 { font-size: clamp(40px, 6vw, 76px); max-width: 16ch }
.final h2 em { font-style: normal; color: var(--dust-hi) }
.final p { color: #ddd0b6; max-width: 50ch }
footer { border-top: 1px solid #3b2c25 }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; font: 400 14px/1.4 var(--type); color: var(--muted) }
footer nav { display: flex; gap: 20px }
footer a { text-decoration: none }
footer a:hover { color: var(--bone) }

@media (max-width: 1000px) {
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) }
  .cover-stack { width: min(300px, 78%) }
  .premise .wrap { grid-template-columns: minmax(0, 1fr) }
  .fact { border-left: 0; border-top: 1px solid #3b2c25; padding-left: 0 }
  .fact:first-child { border-top: 0 }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 18px }
  .chain::before { left: 17px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto }
  .keeper { grid-template-columns: 36px minmax(0, 1fr); justify-items: start; text-align: left; gap: 2px 16px; padding: 0 }
  .keeper i { grid-row: span 2 }
  .game-grid { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 600px) {
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px }
  .book h3 { font-size: 20px }
  .arc-head { grid-template-columns: minmax(0, 1fr) }
  .arc-head .roman { grid-row: auto; font-size: 64px }
  .arc-head p { grid-column: 1 }
  .mark small { display: none }
  .hero { padding-block: 40px 56px }
  .ctas .btn { font-size: 16px; padding: 0 16px; line-height: 1.2; padding-block: 12px }
}

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px) }
[hidden] { display: none !important }
.legal { padding-block: 56px 72px }
.legal .wrap { max-width: 780px; display: grid; gap: 16px }
.legal h1 { font-size: clamp(44px, 6vw, 68px) }
.legal h2 { font-size: 28px; margin-top: 14px; color: var(--mustard) }
.legal p { color: #ddd0b6 }
.legal strong { color: var(--bone) }
.mail { user-select: all; color: var(--mustard); font-family: var(--type); font-size: 16px }
