@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --body: "Source Sans 3", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --ink: #132820;
  --muted: #465650;
  --paper: #f4f0e6;
  --cream: #fff2d8;
  --gold: #eeb876;
  --night: #101e23;
  --light-muted: #c3cec9;
  --gutter: clamp(1rem, 5.5vw, 5.5rem);
  --rule: #cdc7b5;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.125rem / 1.55 var(--body);
}

body:has(dialog[open]) { overflow: hidden; }

:where(h1, h2, h3, p, figure) { margin: 0; }

:where(img, video) { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.wrap {
  width: min(calc(100% - var(--gutter) * 2), 75rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .65rem auto auto .65rem;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  background: var(--cream);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #e7d1ab30;
  background: #101c20;
  color: var(--cream);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner { min-height: 4.5rem; }

.wordmark {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.035em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 3vw, 2.4rem);
  font-size: 1rem;
  font-weight: 600;
}

.main-nav a {
  color: var(--light-muted);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--cream); }

.main-nav .nav-steam {
  padding: .38rem .95rem;
  border: 1px solid #eeb87662;
  color: var(--gold);
}

.main-nav .nav-steam:hover { border-color: var(--gold); color: var(--gold); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0e1e28;
  color: var(--cream);
}

.hero-art, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 45%;
}

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, #0c1921f7 0%, #0c1921d4 23%, #0c192157 49%, transparent 69%),
    linear-gradient(0deg, #0a151bd4, transparent 33%);
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(35rem, 56vw, 47rem);
  padding-block: 4.5rem 5rem;
}

.hero-copy { max-width: 37rem; }

.eyebrow {
  color: #735024;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero .eyebrow, .gameplay .eyebrow, .steam .eyebrow { color: var(--gold); }

.hero h1 {
  margin-block: .9rem 1.65rem;
  font: 800 clamp(5rem, 11vw, 10rem) / .81 var(--display);
  letter-spacing: -.075em;
}

.hero h1 span { display: block; }

.tagline {
  color: #ffe4b8;
  font: 500 clamp(1.2rem, 2.3vw, 1.75rem) / 1.3 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem 1.55rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 2.9rem;
  padding: .54rem 1.05rem;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button-primary { background: var(--gold); color: #19231e; }
.button-primary:hover { background: #ffd19a; }

.button-outline {
  border-color: #eeb87686;
  background: transparent;
  color: var(--gold);
}

.button-outline:hover { background: #eeb87618; border-color: var(--gold); }

.play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-block: .34rem solid transparent;
  border-left: .54rem solid currentColor;
}

.text-link {
  font-size: 1rem;
  font-weight: 650;
  text-decoration-color: #fff2d86b;
  text-underline-offset: .23em;
}

.text-link:hover { text-decoration-color: currentColor; }

.section-inner { padding-block: clamp(3.25rem, 7vw, 7rem); }

.about {
  border-top: 1px solid #7e623f;
  background: var(--paper);
}

.about-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-bottom: clamp(1.9rem, 4vw, 3.5rem);
}

h2 {
  margin-top: .5rem;
  font: 720 clamp(2.5rem, 5.6vw, 4.8rem) / 1.05 var(--display);
  letter-spacing: -.06em;
  text-wrap: balance;
}

.about-intro > p {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--rule);
}

.features article { padding-block: clamp(1.3rem, 3vw, 2rem); }

.features article:first-child { padding-right: clamp(1rem, 2.7vw, 2.1rem); }

.features article + article {
  padding-inline: clamp(1rem, 2.7vw, 2.1rem);
  border-left: 1px solid var(--rule);
}

.features article:last-child { padding-right: 0; }

.features h3 {
  margin-bottom: .55rem;
  font: 720 clamp(1.35rem, 2.2vw, 1.75rem) / 1.15 var(--display);
  letter-spacing: -.035em;
}

.features p, .chronicle { color: var(--muted); }

.chronicle { margin-top: 1.2rem; }

.chronicle strong { color: var(--ink); }

.gameplay {
  background: #12272c;
  color: var(--cream);
}

.gameplay-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.gallery {
  padding: clamp(.5rem, 1.5vw, 1rem);
  border: 1px solid #c5bda459;
  background: #0c1c21;
}

.gallery-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #132429;
}

.gallery-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem .9rem;
  min-height: 3.75rem;
  padding: .75rem .2rem;
  color: var(--light-muted);
  font-size: 1rem;
}

.gallery-caption strong { color: var(--cream); font-size: 1.15rem; }

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.3rem, 1.3vw, .85rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-thumbnails a {
  display: block;
  height: 100%;
  padding: .22rem;
  border: 1px solid #b9c8c344;
  color: var(--light-muted);
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.gallery-thumbnails a:hover, .gallery-thumbnails a[aria-current="true"] {
  border-color: var(--gold);
  color: var(--cream);
}

.gallery-thumbnails a[aria-current="true"] { background: #eeb87618; }

.gallery-thumbnails img { width: 100%; height: auto; }
.gallery-thumbnails span { display: block; padding: .25rem 0 .1rem; }

.steam {
  border-block: 1px solid #94785369;
  background:
    linear-gradient(90deg, #102125ee, #102125bb 50%, #10212555 100%),
    #102125 url("assets/panorama.webp") center 56% / cover;
  color: var(--cream);
}

.steam-inner { padding-block: clamp(3.25rem, 8vw, 7rem); }

.steam h2 { margin-bottom: .8rem; }
.steam p:last-child { color: #e2e8dd; }

.site-footer { color: var(--light-muted); }
.footer-inner { min-height: 5rem; }
.site-footer .wordmark { color: var(--cream); }
.site-footer p { font-size: .95rem; }

.trailer-dialog {
  width: min(66rem, calc(100% - 2rem), 137dvh);
  max-height: calc(100% - 2rem);
  padding: clamp(.55rem, 1.8vw, 1.25rem);
  border: 1px solid #eeb87686;
  background: var(--night);
  color: var(--cream);
}

.trailer-dialog::backdrop { background: #070d10df; }

.trailer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.trailer-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -.035em;
}

.trailer-dialog video { width: 100%; height: auto; background: #000; }

@media (max-width: 52rem) {
  .about-intro { grid-template-columns: 1fr; }
  .gameplay-heading h2 { text-wrap: initial; }
}

@media (max-width: 42rem) {
  .header-inner { min-height: 3.7rem; }
  .hero-art { bottom: auto; height: 29rem; }
  .hero-art img { object-position: 58% 26%; }

  .hero::after {
    background:
      linear-gradient(0deg, #0c1921 20%, #0c1921fa 33%, #0c192174 57%, transparent 78%),
      linear-gradient(90deg, #0c19219c, transparent 78%);
  }

  .hero-inner { min-height: 36rem; align-items: end; padding-block: 12rem 3.2rem; }
  .hero h1 { font-size: clamp(4.3rem, 15.5vw, 6.6rem); margin-block: .75rem 1rem; }
  .hero-actions { margin-top: 1.45rem; }
  .features { grid-template-columns: 1fr; }
  .features article:first-child { padding-right: 0; }

  .features article + article {
    padding-inline: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .gameplay-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .gallery-thumbnails {
    grid-template-columns: repeat(5, minmax(3.65rem, 1fr));
    overflow-x: auto;
    padding: 2px;
  }

  .gallery-thumbnails a { padding-inline: .15rem; font-size: .875rem; }
  .gallery-thumbnails a:focus-visible { outline-offset: -3px; }
}

@media (max-width: 30rem) {
  .header-inner { gap: .6rem; }
  .wordmark { font-size: 1.02rem; }
  .main-nav { gap: .65rem; font-size: .875rem; }
  .main-nav .nav-steam { padding-inline: .5rem; }
  .eyebrow { letter-spacing: .11em; }
}

@media (max-width: 23rem) {
  .header-inner {
    align-items: stretch;
    flex-direction: column;
    gap: .3rem;
    padding-block: .55rem;
  }

  .main-nav { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
