@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101b1c;
  --ink-dark: #0d1617;
  --tide: #172526;
  --paper: #f5efe4;
  --muted: #bec8c3;
  --sea-glass: #a8ccc0;
  --line: #394b49;
  --copper: #ff9678;
  --black: #171714;
  --gutter: clamp(22px, 5.8vw, 104px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.65 var(--body);
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { color: inherit; font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}
::selection { background: var(--copper); color: var(--black); }

.container { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.section { scroll-margin-top: 94px; }
.skip {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: 1rem;
  padding: .65em 1em;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--black);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  background: #101b1c;
  border-block-end: 1px solid var(--line);
}
.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  text-decoration: none;
  text-transform: uppercase;
  font: 600 1.6rem/.9 var(--display);
  letter-spacing: .055em;
}
.brand img { width: 42px; }
.brand strong { color: var(--sea-glass); font-weight: 600; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 52px);
}
.site-nav a, .header-download {
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a { color: var(--muted); padding-block: 9px; }
.site-nav a:hover { color: var(--paper); }
.header-download {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .8em;
  border: 1px solid #815444;
  color: var(--copper);
  padding: .45rem .85rem;
}
.header-download:hover { background: #322521; color: var(--paper); }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 7px 11px;
  line-height: 1.4;
  cursor: pointer;
}
.menu-icon {
  width: 13px;
  height: 8px;
  border-block: 1px solid currentColor;
  display: inline-block;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  min-height: 650px;
  min-height: clamp(595px, 82svh, 830px);
  overflow: hidden;
  background: var(--ink-dark);
}
.hero-image { position: absolute; inset: 0; z-index: -1; }
.hero-image img { height: 100%; object-fit: cover; object-position: center 53%; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 16 18 / 93%) 0%, rgb(10 19 20 / 79%) 23%, rgb(10 19 20 / 40%) 48%, rgb(10 19 20 / 0%) 78%),
    linear-gradient(0deg, var(--ink) 0%, rgb(9 17 18 / 72%) 9%, rgb(9 17 18 / 0%) 34%);
}
.hero-image figcaption {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 30px;
  color: var(--paper);
  background: rgb(12 22 22 / 83%);
  border: 1px solid rgb(216 233 225 / 27%);
  padding: 5px 10px;
  font-size: .75rem;
}
.hero-copy { padding-block: 58px 96px; }
.eyebrow {
  color: var(--sea-glass);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-status {
  color: var(--paper);
  display: flex;
  gap: .75rem;
  align-items: center;
}
.hero-status span { width: 20px; height: 1px; background: var(--copper); }
.hero h1 {
  margin: 15px 0 0;
  font: 700 clamp(5.4rem, 10.4vw, 11.2rem)/.77 var(--display);
  letter-spacing: -.029em;
  text-transform: uppercase;
}
.hero h1 span { display: inline-block; margin-top: .105em; color: var(--copper); }
.hero-intro { margin-top: 31px; max-width: 390px; font-size: clamp(1rem, 1.5vw, 1.28rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.button {
  width: max-content;
  max-width: 100%;
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 9px 17px;
  border: 1px solid transparent;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button span { font-size: 1.2em; line-height: 1; }
.button-primary { color: var(--black); background: var(--copper); }
.button-primary:hover { background: #ffb097; }
.button-muted { background: rgb(16 27 28 / 85%); border-color: #627571; }
.button-muted:hover { border-color: var(--paper); background: var(--ink); }

.world, .story, .gallery, .updates, .download, .support { padding-block: clamp(65px, 8vw, 122px); }
.world-layout, .story-layout {
  display: grid;
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
}
h2 {
  font: 700 clamp(3.2rem, 6.4vw, 6.4rem)/.87 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.eyebrow + h2 { margin-block-start: .65rem; }
.world-copy p:not(.eyebrow), .story-copy p:not(.eyebrow), .updates p:not(.eyebrow),
.download p:not(.eyebrow), .support-intro p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.6;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  color: var(--copper);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.text-link:hover { color: var(--paper); }
.world-shot, .story-shot { position: relative; border: 1px solid var(--line); }
.world-shot figcaption, .story-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .9rem;
  color: var(--muted);
  font-size: .75rem;
}
.world-shot figcaption span:first-child { color: var(--paper); }
.feature-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(40px, 6vw, 80px);
}
.feature-index article { padding-top: 15px; border-top: 1px solid var(--line); }
.feature-index h3 { font: 700 1.9rem/1 var(--display); }
.feature-index p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
kbd {
  display: inline-block;
  padding: 0 .35em;
  border: 1px solid #556764;
  color: var(--paper);
  font: 700 .8em/1.65 var(--body);
  vertical-align: .1em;
  letter-spacing: .015em;
}

.story {
  background: #152222;
  border-block: 1px solid var(--line);
}
.story-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.story-copy { grid-column: 2; grid-row: 1; }
.story-shot { grid-column: 1; grid-row: 1; }
.episode-list { list-style: none; padding: 0; margin: 27px 0 0; border-top: 1px solid var(--line); }
.episode-list li {
  display: grid;
  grid-template-columns: 6.3rem 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.episode-list span { color: var(--sea-glass); font-size: .85rem; }
.episode-list strong { font: 600 1.5rem/1.2 var(--display); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.gallery h2 { font-size: clamp(3rem, 5.6vw, 5.8rem); }
.gallery-controls { display: flex; align-items: center; gap: 12px; }
.arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--tide);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.arrow:hover { background: #314441; }
.gallery-count, .dialog-count {
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.gallery-stage { margin-bottom: 18px; border: 1px solid var(--line); background: var(--ink-dark); }
.gallery-open { display: block; position: relative; }
.gallery-image { aspect-ratio: 16 / 9; object-fit: contain; }
.enlarge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgb(12 22 22 / 94%);
  border: 1px solid #667c78;
  padding: 7px 11px;
  font-size: .8rem;
}
.enlarge span { margin-left: 4px; color: var(--copper); }
.gallery-open:hover .enlarge { border-color: var(--copper); }
.gallery-caption { padding: 10px 14px; color: var(--muted); font-size: .89rem; }
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.gallery-thumb {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: var(--muted);
  border: 1px solid var(--line);
  text-decoration: none;
}
.gallery-thumb img { aspect-ratio: 16 / 9; object-fit: contain; }
.gallery-thumb span { padding: 6px 8px; font-size: .78rem; }
.gallery-thumb:hover, .gallery-thumb[aria-current="true"] { border-color: var(--copper); color: var(--paper); }
.gallery-dialog {
  width: min(1080px, 94vw);
  max-width: none;
  max-height: 94svh;
  padding: 0;
  color: var(--paper);
  background: var(--ink-dark);
  border: 1px solid #667c78;
}
.gallery-dialog::backdrop { background: rgb(4 11 12 / 91%); }
.dialog-bar, .dialog-actions { display: flex; align-items: center; padding: 10px 14px; gap: 12px; }
.dialog-bar { justify-content: space-between; }
.dialog-bar h3 { font: 600 1.55rem/1.1 var(--display); }
.dialog-image { max-height: 68svh; object-fit: contain; }
.dialog-actions { justify-content: center; }

.updates { background: var(--tide); border-block: 1px solid var(--line); }
.updates-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}
.release-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.release-list li {
  display: grid;
  grid-template-columns: minmax(7rem, .42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.release-list strong { color: var(--paper); font-weight: 700; }

.download { padding-bottom: 0; }
.download-panel {
  border: 1px solid #526a65;
  border-top: 3px solid var(--copper);
  background: #192d2c;
  padding: clamp(24px, 4vw, 58px);
  display: grid;
  align-items: end;
  grid-template-columns: 1fr auto;
  gap: 24px 38px;
}
.download h2 { font-size: clamp(3.15rem, 6.2vw, 5.5rem); }
.download-actions { text-align: center; }
.download-actions p:not(.eyebrow) { margin-top: 7px; font-size: .82rem; }
.requirements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 10px 22px;
  border-top: 1px solid #526a65;
  padding-top: 14px;
}
.requirements dt { color: var(--sea-glass); font-size: .78rem; }
.requirements dd { font-weight: 600; }

.support {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px);
}
.support-details { border-top: 1px solid var(--line); }
.support-details details { border-bottom: 1px solid var(--line); }
.support-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 1px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.support-details summary::-webkit-details-marker { display: none; }
.support-details summary::after { content: "+"; color: var(--copper); font-size: 1.18em; font-weight: 400; }
.support-details details[open] summary::after { content: "−"; }
.support-details summary:hover { color: var(--copper); }
.support-details details > div { padding: 0 0 14px; color: var(--muted); }
.support-details p + p, .key-list + p { margin-top: 8px; }
.support-details code { color: var(--paper); overflow-wrap: anywhere; }
.key-list div { padding: 3px 0; display: grid; grid-template-columns: minmax(6.5rem, .43fr) minmax(0, 1fr); gap: 10px; }
.key-list dt { color: var(--paper); }

.site-footer { border-top: 1px solid var(--line); background: var(--ink-dark); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-block: 20px;
  color: var(--muted);
  font-size: .85rem;
}
.footer-inner .brand { color: var(--paper); }
.footer-inner a:not(.brand) { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.footer-inner a:not(.brand):hover { color: var(--paper); }
.footer-top { margin-left: auto; }
.footer-top span { color: var(--copper); margin-left: .4em; }

@media (max-width: 850px) {
  .header-inner { gap: 14px; }
  .site-nav { gap: 16px; }
  .hero-image img { object-position: 61% center; }
  .gallery-strip { display: flex; overflow-x: auto; padding: 4px; margin: -4px; }
  .gallery-strip li { flex: 0 0 128px; }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 60px;
    grid-template-columns: 1fr auto;
    gap: 0 9px;
    position: relative;
  }
  .brand { font-size: 1.4rem; gap: 6px; }
  .brand img { width: 35px; }
  .menu-toggle { display: inline-flex; grid-column: 2; justify-self: end; }
  .site-nav { grid-column: 1 / -1; justify-content: space-between; gap: 6px; }
  .site-nav a { padding-block: 10px; }
  .header-download { display: none; }
  .js-ready .site-nav { display: none; }
  .js-ready .menu-toggle[aria-expanded="true"] + .site-nav {
    display: grid;
    z-index: 1;
    gap: 0;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-block: 3px 12px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .js-ready .site-nav a { padding-block: 11px; border-top: 1px solid var(--line); }
  .section { scroll-margin-top: 76px; }

  .hero { min-height: 620px; align-items: end; }
  .hero-image { bottom: 0; }
  .hero-image img { object-position: 64% 48%; }
  .hero-image::after {
    background:
      linear-gradient(0deg, var(--ink) 1%, rgb(12 22 22 / 94%) 19%, rgb(12 22 22 / 77%) 43%, rgb(12 22 22 / 4%) 72%),
      linear-gradient(90deg, rgb(11 20 21 / 22%), transparent 78%);
  }
  .hero-image figcaption { bottom: 15px; right: var(--gutter); }
  .hero-copy { padding-block: 118px 65px; }
  .hero h1 { font-size: clamp(4.5rem, 15.8vw, 7rem); }
  .hero-intro { margin-top: 22px; font-size: 1rem; }
  .hero-actions { gap: 8px; margin-top: 17px; }
  .hero-actions .button { min-height: 44px; padding: 6px 11px; font-size: .81rem; gap: .65rem; }

  .world-layout, .story-layout, .updates-layout, .support {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .story-copy { grid-column: auto; grid-row: auto; }
  .story-shot { grid-column: auto; grid-row: auto; }
  .feature-index { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 26px; }
  .feature-index article { padding-top: 12px; }
  .feature-index p { margin-top: 6px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 18px; }
  .gallery h2, h2 { text-wrap: wrap; }
  .gallery-controls { align-self: end; }
  .download-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .download-actions { text-align: start; }
  .requirements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requirements dd { font-size: .92rem; }
  .footer-inner { gap: 10px 22px; }
  .footer-inner .brand { width: 100%; }
  .footer-top { margin-left: 0; }
}

@media (max-width: 355px) {
  .hero h1 { font-size: 4.15rem; }
  .hero-actions { flex-direction: column; align-items: start; }
  .release-list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
