:root {
  --ink: #171b19;
  --paper: #ebe9df;
  --accent: #ffa06c;
  --display: "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--ink);
  color: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #ed7640; outline-offset: 4px; }
.wrap { width: min(100% - clamp(40px, 9vw, 160px), 1480px); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 12px; padding: 12px; z-index: 5; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 8px; }
.masthead { background: #151917; }
.header-inner, .brand, nav, .actions, .watch, .play { display: flex; align-items: center; }
.header-inner { min-height: 68px; justify-content: space-between; gap: 16px; }
.brand { gap: 10px; text-transform: uppercase; letter-spacing: .025em; font: 800 21px/1 var(--display); }
.brand img { object-fit: contain; }
nav { gap: clamp(16px, 3vw, 44px); font-size: 14px; }
nav a:hover, .watch:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-inner nav a[aria-current="page"] { color: var(--accent); }
.sign-in { border-left: 1px solid #51544b; padding-left: clamp(16px, 3vw, 40px); }
.sign-in span { color: var(--accent); margin-left: 4px; }
.hero {
  display: grid;
  align-items: end;
  background: linear-gradient(90deg, #101510ed, #11171170 40%, transparent 72%),
    linear-gradient(0deg, #11160f8c, transparent 38%), url("./media/river-crossing.webp") center center / cover;
  min-height: clamp(520px, 44vw, 760px);
}
.hero-inner { padding-block: clamp(54px, 5vw, 92px); }
h1, h2, h3 { font-family: var(--display); }
h1 { color: #faf6e9; margin: 22px 0 20px; font-size: clamp(90px, 8.4vw, 154px); font-weight: 900; line-height: .84; letter-spacing: -.05em; text-transform: uppercase; }
.hero-heading { display: block; margin-top: 22px; color: #f2d5b9; font: 600 13px/1.45 ui-monospace, "Courier New", monospace; letter-spacing: .08em; }
.hero-text { max-width: 405px; font-size: 17px; line-height: 1.5; color: #f0ede2; }
.actions { flex-wrap: wrap; gap: 16px 28px; margin-top: 28px; }
.play, .watch { min-height: 48px; gap: 11px; font-weight: 700; font-size: 15px; }
.play { background: var(--accent); color: #1a1b17; padding: 0 23px; }
.play:hover { background: #ffb38a; }
.play span { font-size: 20px; }
.play-icon { border: 1px solid currentColor; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.play-icon::before { content: ""; border-block: 4px solid transparent; border-left: 7px solid currentColor; margin-left: 2px; }
.arsenal { color: var(--ink); background: var(--paper); padding: clamp(40px,5vw,80px) 0; }
.arsenal-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 24px; margin-bottom: 30px; }
.arsenal .text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.arsenal .text-link:hover { text-decoration-thickness: 2px; }
h2 { font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -.045em; }
.units article > p:last-child, .overview-section p { font-size: 16px; line-height: 1.55; }
.units article > p:last-child { color: #494d43; }
.units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unit-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid #939689; }
.unit-icons li { display: grid; place-items: center; min-width: 0; }
.unit-icons img { display: block; width: min(100%, 64px); height: auto; aspect-ratio: 1; object-fit: contain; }
.units img { display: block; width: 100%; height: clamp(140px,15vw,225px); object-fit: contain; }
h3 { font-size: clamp(26px,2.5vw,40px); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 8px; }
.roster h1 { color: var(--ink); font-size: clamp(60px, 8vw, 116px); margin: 0 0 26px; }
.roster-nav { flex-wrap: wrap; gap: 0 clamp(18px, 3vw, 40px); padding-block: 8px; border-block: 1px solid #939689; }
.roster-nav a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 650; }
.roster-group { margin-top: clamp(40px, 5vw, 72px); }
.roster-group h2 { margin-bottom: 24px; scroll-margin-top: 20px; }
.roster-group .units { column-gap: clamp(22px, 4vw, 56px); }
.roster-group article { border-top: 1px solid #bbbdaf; padding-block: 12px 24px; }
.game-overview { padding-block: clamp(38px, 5vw, 76px); }
.overview-section { padding-block: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; }
.overview-section + .overview-section { border-top: 1px solid #4b4e45; }
.overview-section p { max-width: 60ch; color: #cfcec4; }
.overview-section p + p, .overview-section .text-link { margin-top: 14px; }
.overview-section .text-link { display: inline-block; }
.text-link { color: var(--accent); font-weight: 650; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 25px; border-top: 1px solid #4b4e45; font-size: 13px; }
footer nav { flex-wrap: wrap; font-size: inherit; }
.reference { color-scheme: light; background: var(--paper); color: var(--ink); padding-block: clamp(32px, 5vw, 72px); }
.reference-heading { max-width: 75ch; margin-bottom: clamp(24px, 4vw, 40px); }
.reference-heading h1 { color: var(--ink); font-size: clamp(38px, 7vw, 92px); line-height: .96; margin: 0 0 16px; }
.reference-heading p { color: #494d43; line-height: 1.5; }
.reference-heading .updated { font-size: 14px; margin-top: 14px; }
.document-links { flex-wrap: wrap; gap: 12px 24px; }
.document-links a { font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.reference-layout {
  display: grid;
  grid-template-columns: minmax(190px, .3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid #939689;
  padding-top: clamp(24px, 4vw, 46px);
}
.topic-nav {
  position: sticky;
  top: 20px;
  align-self: start;
  display: block;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 4px 12px 4px 4px;
}
.topic-nav ul { margin: 0; padding: 0; list-style: none; }
.topic-nav li a { display: block; min-height: 28px; padding: 5px 0; line-height: 1.35; }
.topic-nav .topic-title { display: block; margin-bottom: 6px; font-weight: 750; }
.topic-nav ul + .topic-title { margin-top: 18px; }
.reference-content { max-width: 72ch; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.reference-content section { padding-block: 24px; border-top: 1px solid #bbbdaf; }
.reference-content > section:first-child { border-top: 0; padding-top: 0; }
.reference-content [id] { scroll-margin-top: 20px; }
.reference-content h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 14px; }
.reference-content h3 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 12px; }
.reference-content p + p { margin-top: 12px; }
.reference-content li + li { margin-top: 6px; }
.reference-content a { text-decoration: underline; text-underline-offset: 4px; }
.reference-content .note, .reference-content .device-note, .contact-note { color: #494d43; font-size: 15px; }
.device-note strong { margin-right: 6px; }
.data-list { margin: 0; }
.data-list div + div { margin-top: 14px; }
.data-list dt { font-weight: 700; }
.data-list dd { margin: 0; }
.terms-document { margin-top: 36px; }
.reference-content .contact-section { padding: 24px; border: 1px solid #bbbdaf; background: #e1dfd4; }
.contact-link { display: inline-block; margin-block: 6px; font-weight: 700; }
dialog { width: min(960px, 94vw); padding: 0; border: 1px solid #66695e; background: #141715; color: var(--paper); }
dialog::backdrop { background: #090b09d9; }
.film-header { padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; }
.film-header h2 { font-size: 24px; }
.film-header button { padding: 10px; color: inherit; background: none; border: 0; }
dialog video { display: block; width: 100%; max-height: 74svh; aspect-ratio: 16 / 9; background: #101210; }
dialog video:fullscreen { object-fit: scale-down; }
@media (max-width: 680px) {
  .header-inner { min-height: 58px; flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .header-inner nav { flex-wrap: wrap; gap: 12px; font-size: 13px; }
  .sign-in { border: 0; padding-left: 0; white-space: nowrap; }
  .hero { min-height: 620px; background-image: linear-gradient(0deg,#11160ff7 8%,#11160fd6 36%,#10151040 68%,transparent),url("./media/river-crossing.webp"); background-position: 69% top; }
  .hero-inner { padding-block: 38px; }
  h1 { font-size: clamp(75px,17vw,108px); }
  .hero-text { font-size: 16px; }
  .actions { gap: 13px 18px; }
  .play { padding-inline: 16px; }
  .units, .overview-section { grid-template-columns: 1fr; }
  .units img { height: 160px; max-width: 330px; margin: auto; }
  footer { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .reference-layout { grid-template-columns: minmax(0, 1fr); }
  .topic-nav { position: static; max-height: none; overflow: visible; padding: 0 0 16px; border-bottom: 1px solid #bbbdaf; }
  .topic-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}

@media print {
  :root:has(.reference), .reference { color-scheme: light; color: #111; background: #fff; }
  body:has(.reference) > :is(.masthead, .skip-link, footer), .reference :is(.topic-nav, .document-links) { display: none; }
  .reference { padding: 0; }
  .reference .wrap { width: 100%; }
  .reference-layout { display: block; }
  .reference-content h2, .reference-content h3 { break-after: avoid; }
}
