@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Roman.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Saucerer's palette: the Spice against the Chill. */
  --night: #141d30;
  --river: #1e2d4a;
  --slate: #3b6b9b;
  --glacial: #8bbad1;
  --vellum: #f3e3c3;
  --vellum-soft: #d9c8a6;
  --saffron: #e07a5f;
  --vermilion: #c25b4e;
  --scoville: #9e2a2b;
  --ochre: #c28b45;
  --brass: #d9a75a;
  --wood: #5a3a24;
  --measure: 62ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: linear-gradient(180deg, var(--night) 0%, var(--river) 40%, var(--night) 100%) fixed;
  color: var(--vellum);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

img { image-rendering: pixelated; max-width: 100%; height: auto; }

a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--vellum); }
:focus-visible { outline: 3px solid var(--glacial); outline-offset: 3px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.studio img { display: block; width: clamp(150px, 22vw, 204px); }
.top nav { display: flex; gap: 1.5rem; }
.top nav a {
  color: var(--vellum-soft);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}
.top nav a:hover { color: var(--vellum); }

main { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 3rem; }

/* Hero: the barge from the title screen, full width, with the title over its sky */
.hero { position: relative; margin: 0 calc(50% - 50vw); text-align: center; }
.banner { position: relative; background: #000; }
.banner video { display: block; width: 100%; max-height: 78vh; object-fit: cover; object-position: 50% 75%; image-rendering: pixelated; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,29,48,0) 88%, var(--night) 100%);
  pointer-events: none;
}
.hero-text { position: relative; padding: 1.5rem 1.5rem 2rem; }
.game-title { margin: 0 auto 0.75rem; max-width: 560px; }
.game-title img { display: block; width: 100%; }
.hook {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  max-width: 40ch;
  margin: 0.5rem auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.genre { color: var(--vellum-soft); font-variant: small-caps; letter-spacing: 0.06em; margin: 0.25rem 0 1.5rem; }

.cta { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-note { color: var(--vellum-soft); font-style: italic; min-height: 1.5em; }

/* Buttons copy the game's: brown wood, brass border; red for the one main action. */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border: 3px solid var(--brass);
  background: var(--wood);
  color: var(--vellum);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 0 #2a1a10;
}
.btn.primary { background: var(--scoville); }
.btn:hover { filter: brightness(1.12); color: var(--vellum); }
.btn[aria-disabled="true"] {
  background: #4a4f5c;
  border-color: #6b7180;
  color: #d4d7de;
  box-shadow: none;
  cursor: default;
  filter: none;
}

/* Sections */
.crossing, .modes, .meta { padding: 3.5rem 0 1rem; }
h2 {
  color: var(--saffron);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  text-align: center;
}
h3 { color: var(--saffron); font-weight: 600; font-size: 1.5rem; margin: 0 0 0.4rem; }
.lede { text-align: center; color: var(--vellum-soft); font-style: italic; margin: 0 auto 2.5rem; max-width: 50ch; }

/* Clips and stills share one frame */
.clip { margin: 0; }
.clip video, .step > img, .lineages img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 3px solid var(--wood); outline: 2px solid var(--ochre); background: #000;
}

/* Space held for footage still to come (towns are being redrawn) */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 9; padding: 1rem;
  border: 3px dashed var(--ochre); background: rgba(90, 58, 36, 0.25);
  color: var(--vellum-soft); font-style: italic;
}

/* The path: numbered steps, media and text alternating sides */
.step { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; margin: 0 0 3rem; }
.step:nth-of-type(even) > :first-child { order: 2; }
.step p { margin: 0 0 0.75rem; max-width: var(--measure); }
.step strong { color: var(--vellum); font-weight: 650; }
.step-no {
  display: inline-block; min-width: 2.2rem; padding: 0.1rem 0.5rem; margin-bottom: 0.4rem;
  border: 2px solid var(--brass); background: var(--wood); color: var(--vellum);
  font-size: 1.1rem; text-align: center;
}
/* Flavor: always the italic voice, set apart from the rules above it. */
.flavor { font-style: italic; color: var(--glacial); border-top: 1px solid var(--slate); padding-top: 0.6rem; }

.lineages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: -1.5rem 0 3.5rem; }
.lineages figure { margin: 0; }
.lineages figcaption { text-align: center; color: var(--vellum-soft); font-variant: small-caps; letter-spacing: 0.06em; margin-top: 0.5rem; }

/* Between crossings: a 2 x 2 grid */
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
.meta-grid h3 { margin-top: 0.9rem; }
.meta-grid p { margin: 0; }

/* About, press, contact */
.studio-about, .press, .contact {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 0;
  border-top: 2px solid var(--wood);
}
.studio-about p, .contact p, .press .note { max-width: var(--measure); }

.facts { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1rem; }
.facts th, .facts td { text-align: left; padding: 0.45rem 0.75rem; border-bottom: 1px solid #3a3f52; vertical-align: top; }
.facts th { color: var(--vellum-soft); font-weight: 500; width: 40%; font-variant: small-caps; letter-spacing: 0.05em; }

.socials { list-style: none; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.socials:empty { display: none; }

.foot {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 2.5rem;
  color: var(--vellum-soft);
  font-size: 1rem;
}

@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: 1rem; }
  .step:nth-of-type(even) > :first-child { order: 0; }
  .lineages, .meta-grid { grid-template-columns: 1fr; }
  .lineages { margin-top: 0; }
  .top { justify-content: center; }
}
