/* VEL's website.
   Layout: one long night, read top to bottom like the road Aru takes; each section a stretch of it, and the Five
   Lands tint the night with the hour of the land under the pointer. One look on purpose: VEL is a night of bronze and
   ember, so the page stays dark whatever the viewer's theme (it sets its own background and every colour).
   Colours are the art bible's (docs/art.md, Palette and value) and the title's name ink (game/scripts/ui/title.gd). */
:root {
  color-scheme: dark;
  --night: #090d12;          /* the page: the key art's night */
  --night-raised: #10171f;   /* a panel lifted off it */
  --night-deep: #05080b;
  --rule: rgba(236, 234, 226, 0.12);
  --salt: #eceae2;           /* salt white: the words */
  --salt-muted: #b4b0a5;     /* salt in shade: what is said second */
  --name-ink: #fad68c;       /* the name on the game's title */
  --ember: #ffb547;          /* ember gold: the spear's glow, and what you can press */
  --bronze: #c0782f;         /* spear bronze: rules and small marks */
  --sea: #3ddcb4;            /* sea glow: the Tide-King's power, and nothing else */
  --parry: #eb8038;          /* a blow you can parry */
  --perilous: #ff2d1f;       /* a blow nothing stops */
  --verdigris: #4f8c78;

  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Catamaran", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(4.75rem, 2.4rem + 11vw, 11.5rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1220px;
  --text: 40rem;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--salt);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--name-ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
figure { margin: 0; }
.muted { color: var(--salt-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--gutter-l); top: -100px; z-index: 50;
  background: var(--ember); color: var(--night-deep); padding: 0.5rem 0.9rem; border-radius: var(--radius);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * 16px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.wrap--text { max-width: calc(var(--text) + 2 * 16px); }
.section { padding-block: clamp(4rem, 2.75rem + 5vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2rem, 1rem + 4vw, 4rem); }

/* The aim line before every eyebrow: the line Aru sees as he aims, ending where the spear will stick. */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; flex: 0 0 2.5rem; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.eyebrow::after {
  content: ""; width: 5px; height: 5px; margin-left: -0.75rem; transform: rotate(45deg);
  background: currentColor; order: -1; display: none;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--sea { color: var(--sea); }

h2 { font-family: var(--display); font-size: var(--step-3); line-height: 1.08; letter-spacing: 0.01em; }
h3 { font-size: var(--step-1); line-height: 1.25; }
.lead { font-size: var(--step-1); color: var(--salt); max-width: 36rem; line-height: 1.5; margin-top: 1.25rem; }
.lead--wide { max-width: 46rem; }
.footnote { margin-top: 1.75rem; font-size: var(--step--1); color: var(--salt-muted); }

/* --- Buttons -------------------------------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem 0.6rem;
  font: 700 0.95rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: var(--night-deep); background: var(--ember);
  border: 1px solid var(--ember); border-radius: var(--radius);
  box-shadow: 0 0 0 0 rgba(255, 181, 71, 0);
  transition: box-shadow 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease);
  cursor: pointer;
}
.button:hover { color: var(--night-deep); background: var(--name-ink); box-shadow: 0 0 28px -4px rgba(255, 181, 71, 0.55); }
.button--ghost { background: rgba(9, 13, 18, 0.35); color: var(--salt); border-color: rgba(236, 234, 226, 0.4); }
.button--ghost:hover { background: rgba(9, 13, 18, 0.6); color: var(--name-ink); border-color: var(--name-ink); box-shadow: none; }
.button--small { min-height: 40px; padding: 0.55rem 1rem 0.45rem; font-size: 0.8rem; }
.text-link { font-weight: 700; letter-spacing: 0.04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.soon {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.25rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--salt-muted);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 2rem; }

/* --- Header --------------------------------------------------------------------------------------------------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--night);
}
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20;
  background: rgba(9, 13, 18, 0.92);
  border-bottom: 1px solid var(--rule);
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease);
}
.site-header--over:not(.is-solid) { background: linear-gradient(rgba(5, 8, 11, 0.7), rgba(5, 8, 11, 0)); border-color: transparent; }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid, .site-header:not(.site-header--over) { background: rgba(9, 13, 18, 0.8); backdrop-filter: blur(10px); }
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: calc(var(--max) + 2 * 16px); margin-inline: auto; min-height: 64px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.brand {
  font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.16em;
  color: var(--name-ink); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--ember); }
.site-nav { display: none; gap: 1.6rem; }
.site-nav a { color: var(--salt); text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; padding-block: 0.5rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--name-ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ember); }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--salt); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
  transition: transform 200ms var(--ease);
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-header .button--small { display: none; }
/* The switch to the home page in the other language, named in its own letters; and the mark on a link, from a page in
   another language, to a page in English alone. */
.lang-switch { color: var(--salt); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding-block: 0.5rem; white-space: nowrap; }
.lang-switch:hover { color: var(--name-ink); }
.lang-tag {
  display: inline-block; margin-left: 0.4em; padding: 0.1em 0.3em 0; border: 1px solid var(--rule); border-radius: 2px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; vertical-align: 0.2em; color: var(--salt-muted);
}
.site-nav.is-open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l);
  background: rgba(9, 13, 18, 0.97); border-bottom: 1px solid var(--rule);
}
.site-nav.is-open a { padding-block: 0.85rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) {
  .site-nav, .site-nav.is-open { display: flex; flex-direction: row; position: static; padding: 0; background: none; border: 0; gap: 1.6rem; }
  .site-nav.is-open a { padding-block: 0.5rem; border: 0; }
  .nav-toggle { display: none; }
  .site-header .button--small { display: inline-flex; }
}

/* --- Hero: the title's own painting, drawing slowly nearer, with the name over its dark left side ------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(540px, 88vh, 940px);
  display: flex; align-items: flex-end;
  padding-block: 7rem clamp(3rem, 2rem + 5vw, 6rem);
  background: var(--night-deep);
}
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%;
  transform-origin: 62% 40%;
  animation: push 40s ease-in-out infinite alternate;
}
@keyframes push { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero::before {
  /* The title's veil: dark on the left where the name stands, gone by the middle; and the foot fades into the page. */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.88) 0%, rgba(3, 5, 10, 0.62) 34%, rgba(3, 5, 10, 0.1) 66%, rgba(3, 5, 10, 0) 80%),
    linear-gradient(0deg, var(--night) 0%, rgba(9, 13, 18, 0) 32%);
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__copy { position: relative; }
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: var(--step-4); line-height: 0.86;
  letter-spacing: 0.06em; margin-left: -0.04em; color: var(--name-ink);
  text-shadow: 0 0 48px rgba(255, 181, 71, 0.28), 0 2px 0 rgba(0, 0, 0, 0.35);
}
.hero__tagline {
  margin-top: 1.25rem; font-size: var(--step-2); font-weight: 600; line-height: 1.25; max-width: 40rem;
}
.hero__lead { margin-top: 0.85rem; font-size: var(--step-1); color: var(--salt-muted); max-width: 34rem; }
.hero .eyebrow { margin-bottom: 1.25rem; }
@media (max-width: 640px) {
  .hero { align-items: flex-end; }
  /* The heron over the doorways, above the name. */
  .hero__art img { object-position: 64% 50%; transform-origin: 64% 30%; }
  .hero .eyebrow::before { display: none; }
  .hero::before {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(9, 13, 18, 0.92) 30%, rgba(9, 13, 18, 0.35) 62%, rgba(9, 13, 18, 0.1) 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .hero__art img { animation: none; } }

/* --- Clips ---------------------------------------------------------------------------------------------------- */
.clip {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--night-raised); aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}
.clip__video { width: 100%; height: 100%; object-fit: cover; }

/* --- The spear ------------------------------------------------------------------------------------------------ */
.spear__intro { display: grid; gap: 2.5rem; align-items: center; }
.spear__text p + p { margin-top: 1rem; color: var(--salt-muted); max-width: 34rem; }
.spear__art { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.spear__art img { border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(255, 140, 40, 0.35), 0 0 0 1px var(--rule); }
@media (min-width: 900px) {
  .spear__intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
  .spear__art { justify-self: end; }
}
/* The throw large, then what it buys as a row of three: each clip as wide as the row allows, so Aru reads in it. */
.moves { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.move__name { font-family: var(--display); font-size: var(--step-2); letter-spacing: 0.02em; color: var(--name-ink); }
.move__text p { margin-top: 0.4rem; color: var(--salt-muted); }
.move--throw { display: grid; gap: 1.25rem; }
.move--throw .move__text { max-width: 34rem; }
.move--throw .move__name { font-size: var(--step-3); line-height: 1; }
.move--throw .move__text p { font-size: var(--step-1); margin-top: 0.75rem; }
.move--throw .clip { box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.35), 0 30px 70px -36px rgba(255, 140, 40, 0.5); }
@media (min-width: 1000px) {
  .move--throw { grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr); gap: 2.5rem; align-items: end; }
}
.payoffs { display: grid; gap: 2rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
.payoffs__head {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember);
}
.aim { flex: 0 0 2.5rem; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px); }
.move--small { display: grid; gap: 0.9rem; align-content: start; }
.move--small .move__name { font-size: var(--step-2); }
@media (min-width: 760px) {
  .payoffs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .move--small .move__name { font-size: var(--step-1); }
}

/* --- The fights ----------------------------------------------------------------------------------------------- */
.fights { background: linear-gradient(180deg, var(--night) 0%, var(--night-raised) 50%, var(--night) 100%); }
.fights__grid { display: grid; gap: 2.5rem; align-items: center; }
.fights__text > p:last-child { margin-top: 1.5rem; color: var(--salt-muted); max-width: 34rem; }
.fights__clip figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--salt-muted); }
@media (min-width: 960px) { .fights__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; } }
.warnings { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; max-width: 32rem; }
.warning { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding-block: 0.65rem; border-top: 1px solid var(--rule); }
.warning dt { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.warning dd { margin: 0; color: var(--salt-muted); }
.swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.warning--parry dt { color: var(--parry); }
.warning--parry .swatch { background: var(--parry); box-shadow: 0 0 12px var(--parry); }
.warning--perilous dt { color: var(--perilous); }
.warning--perilous .swatch { background: var(--perilous); box-shadow: 0 0 12px var(--perilous); }

/* --- The Five Lands: the night takes the hour of the land under the pointer -------------------------------- */
.world {
  --hour: transparent;
  background:
    radial-gradient(70% 55% at 50% 38%, color-mix(in srgb, var(--hour) 16%, transparent), transparent 70%),
    var(--night);
  transition: --hour 600ms;
}
.world:has(.land:hover), .world:has(.land:focus-within) { --hour: var(--tint-now, transparent); }
.lands {
  list-style: none; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); margin-bottom: 0;
  display: grid; gap: 2.25rem 1.75rem; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .lands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.land { position: relative; }
.land__art { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); }
.land__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 700ms var(--ease); }
.land:hover .land__art img { transform: scale(1.035); }
.land__art::after {
  content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--tint);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease);
}
.land:hover .land__art::after { transform: scaleX(1); }
.land .chip { position: absolute; top: 0.75rem; left: 0.75rem; }
.land__text { padding-top: 1rem; }
.land__name { font-family: var(--display); font-size: var(--step-2); letter-spacing: 0.02em; }
.land__tinai { margin-top: 0.2rem; font-weight: 600; color: var(--tint); }
.land__hour { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin-top: 0.15rem; font-size: var(--step--1); color: var(--salt-muted); letter-spacing: 0.04em; }
.land__hour span + span::before { content: "·"; margin-right: 0.9rem; color: var(--rule); }
.land__text > p:last-child { margin-top: 0.7rem; color: var(--salt-muted); }
@media (prefers-reduced-motion: reduce) {
  .land__art img, .land__art::after { transition: none; }
}

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.6rem 0.22rem; border-radius: 2px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
  background: rgba(5, 8, 11, 0.78); color: var(--salt); border: 1px solid var(--rule);
  white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip--dressing { color: var(--ember); border-color: rgba(255, 181, 71, 0.45); }
.chip--greybox { color: #9fb7c7; border-color: rgba(159, 183, 199, 0.4); }
.chip--designed { color: var(--salt-muted); }
.chip--designed::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* --- The story ------------------------------------------------------------------------------------------------ */
.story { overflow: hidden; isolation: isolate; padding-bottom: clamp(4rem, 3rem + 5vw, 7rem); }
.story__art { position: relative; margin: 0 0 -6rem; z-index: -1; }
.story__art img { width: 100%; max-height: 70vh; object-fit: cover; object-position: 50% 20%; }
.story__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--night) 4%, rgba(9, 13, 18, 0.2) 50%, rgba(9, 13, 18, 0.55) 100%);
}
.story__text { max-width: 38rem; position: relative; }
.story__text p + p { margin-top: 1rem; color: var(--salt-muted); }
@media (min-width: 900px) {
  .story { padding-top: clamp(6rem, 4rem + 6vw, 10rem); }
  .story__art { position: absolute; inset: 0 0 auto 42%; margin: 0; height: min(100%, 980px); }
  .story__art img { height: 100%; max-height: none; object-position: 50% 15%; }
  .story__art::after {
    background:
      linear-gradient(90deg, var(--night) 0%, rgba(9, 13, 18, 0.35) 30%, rgba(9, 13, 18, 0) 60%),
      linear-gradient(0deg, var(--night) 0%, rgba(9, 13, 18, 0) 35%),
      linear-gradient(180deg, var(--night) 0%, rgba(9, 13, 18, 0) 14%);
  }
  .story__grid { min-height: 34rem; display: flex; align-items: center; }
}
.brothers { margin-top: clamp(3rem, 2rem + 5vw, 6rem); position: relative; }
.brothers__head {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--salt-muted);
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.brothers__grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 900px) { .brothers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.brother { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: end; }
.brother__art {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3;
  background: radial-gradient(60% 70% at 50% 95%, rgba(255, 140, 40, 0.28), transparent 70%), var(--night-raised);
  box-shadow: 0 0 0 1px var(--rule);
}
.brother__art img { width: 100%; height: 100%; object-fit: cover; }
.brother__where { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); }
.brother__text h3 { font-family: var(--display); font-size: var(--step-2); margin-top: 0.3rem; color: var(--name-ink); }
.brother__text p:last-child { margin-top: 0.6rem; color: var(--salt-muted); max-width: 32rem; }

/* --- The sisters, round the forge ------------------------------------------------------------------------------ */
.sisters {
  /* The forge's glow under the six, fading out before the section ends. */
  background:
    radial-gradient(55% 34% at 50% 74%, rgba(255, 128, 40, 0.16), transparent 72%),
    var(--night);
}
.forge {
  list-style: none; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); margin-bottom: 0;
  display: grid; gap: 2.25rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .forge { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .forge { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; } }
.sister { display: flex; flex-direction: column; }
.sister__art {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius);
  background: var(--night-raised); box-shadow: 0 0 0 1px var(--rule);
}
.sister__name { margin-top: 0.75rem; font-family: var(--display); font-size: var(--step-1); color: var(--name-ink); }
.sister__age { font-family: var(--body); font-weight: 400; color: var(--salt-muted); font-size: 0.95rem; }
.sister__line { margin-top: 0.35rem; font-size: 0.95rem; color: var(--salt-muted); line-height: 1.45; }

/* --- Progress ------------------------------------------------------------------------------------------------- */
.progress__grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .progress__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.status-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; }
.status { padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.status:last-child { border-bottom: 1px solid var(--rule); }
.status__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.status__head h3 { font-size: var(--step-1); }
.status p { margin-top: 0.4rem; color: var(--salt-muted); }
.then-now { display: grid; gap: 1.25rem; }
@media (min-width: 640px) and (max-width: 999px) { .then-now { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.then-now img { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); aspect-ratio: 16 / 10; object-fit: cover; }
.then-now figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--salt-muted); }
.then-now figcaption b { color: var(--salt); font-weight: 700; }
.today { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.today__head { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--salt-muted); }
.today__grid { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .today__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .today__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.today__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); }
.today__grid figcaption { margin-top: 0.5rem; font-size: var(--step--1); color: var(--salt-muted); }

/* --- Devlog --------------------------------------------------------------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.posts { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card a { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); transition: box-shadow 260ms var(--ease); }
.post-card a:hover img { box-shadow: 0 0 0 1px var(--ember), 0 20px 50px -30px rgba(255, 140, 40, 0.6); }
.post-card__date { margin-top: 1rem; font-size: var(--step--1); color: var(--bronze); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.post-card__title { margin-top: 0.35rem; font-family: var(--display); font-size: var(--step-2); font-weight: 600; line-height: 1.15; color: var(--salt); text-wrap: balance; }
.post-card a:hover .post-card__title { color: var(--name-ink); }
.post-card__summary { margin-top: 0.5rem; color: var(--salt-muted); }

/* --- Follow --------------------------------------------------------------------------------------------------- */
.follow {
  background:
    radial-gradient(50% 80% at 85% 50%, rgba(255, 181, 71, 0.12), transparent 70%),
    var(--night-raised);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.follow__inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 960px) { .follow__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; } }
.follow-form { display: grid; gap: 0.75rem; }
.follow-form__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.follow-form input {
  flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 0.75rem 1rem 0.6rem;
  font: inherit; color: var(--salt); background: var(--night-deep);
  border: 1px solid rgba(236, 234, 226, 0.28); border-radius: var(--radius);
}
.follow-form input::placeholder { color: rgba(180, 176, 165, 0.6); }
.follow-form input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.25); }
.follow-form__note { font-size: var(--step--1); }
.follow-form__more { font-size: var(--step--1); }

/* --- Footer --------------------------------------------------------------------------------------------------- */
.site-footer { padding-block: 3.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); background: var(--night-deep); }
.site-footer__inner { display: grid; gap: 1.5rem; }
.brand--footer { margin: 0; font-size: 1.6rem; }
.site-footer__brand .muted { margin-top: 0.25rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__links a { color: var(--salt); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { color: var(--name-ink); }
.site-footer__note, .site-footer__legal { font-size: var(--step--1); max-width: 46rem; }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .site-footer__note, .site-footer__legal { grid-column: 1 / -1; }
}

/* --- Pages: devlog, posts, press ------------------------------------------------------------------------------ */
.page-head { padding-top: calc(7rem + env(safe-area-inset-top, 0px)); padding-bottom: 1rem; }
.page-head--lost { min-height: 70vh; display: flex; align-items: center; }
.page-title { font-family: var(--display); font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: 0.01em; }
.post-list { list-style: none; margin: 0 auto; display: grid; gap: 2.5rem; }
.post-row__link { display: grid; gap: 1.25rem; color: inherit; text-decoration: none; }
.post-row__link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); }
.post-row__text { display: flex; flex-direction: column; justify-content: center; }
.post-row__title { margin-top: 0.35rem; font-family: var(--display); font-size: var(--step-3); font-weight: 600; line-height: 1.1; text-wrap: balance; }
.post-row__link:hover .post-row__title { color: var(--name-ink); }
@media (min-width: 860px) { .post-row__link { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; } }

.post__head { position: relative; isolation: isolate; padding-top: calc(9rem + env(safe-area-inset-top, 0px)); padding-bottom: 2rem; overflow: hidden; }
.post__cover { position: absolute; inset: 0; z-index: -1; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; filter: saturate(0.9); }
.post__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--night) 0%, rgba(9, 13, 18, 0.55) 60%, rgba(9, 13, 18, 0.75) 100%); }
.post__title { font-family: var(--display); font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); line-height: 1.05; }
.post__meta { margin-top: 1rem; color: var(--salt-muted); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.post__foot { padding-block: 2rem 5rem; display: grid; gap: 1rem; color: var(--salt-muted); }

.prose { font-size: var(--step-1); line-height: 1.65; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--display); font-size: var(--step-2); line-height: 1.2; margin-top: 2.2em; color: var(--name-ink); }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: #d9d6cd; }
.prose strong, .prose b { color: var(--salt); }
.prose em, .prose i { color: var(--salt); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--bronze); }
.prose figure { margin-block: 2em; }
.prose figure img, .prose figure video { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); }
.prose figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--salt-muted); line-height: 1.5; }
.prose .pair { display: grid; gap: 1rem; }
@media (min-width: 640px) { .prose .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose .wide { width: min(100vw - 32px, 64rem); margin-left: 50%; transform: translateX(-50%); }
.prose .wide .pair img { aspect-ratio: 16 / 9; object-fit: cover; }
.prose--press { font-size: var(--step-0); }
.prose--press h2 { font-size: var(--step-2); margin-top: 2em; }
.prose--press h2:first-child { margin-top: 0; }

.press { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .press { grid-template-columns: 18rem minmax(0, 1fr); gap: 4rem; align-items: start; } }
.factsheet { background: var(--night-raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 960px) { .factsheet { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); } }
.factsheet__title { font-size: 0.8rem; font-family: var(--body); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); }
.factsheet dl { margin: 1rem 0 0; display: grid; }
.factsheet dl > div { padding-block: 0.65rem; border-top: 1px solid var(--rule); }
.factsheet dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--salt-muted); }
.factsheet dd { margin: 0.15rem 0 0; }
.prose--press h3 { font-size: var(--step-1); color: var(--salt); }
/* The credits: who made it, in the name ink of the game's title. */
.credits { margin: 1.25rem 0 0; border-top: 1px solid var(--rule); }
.credits > div { display: grid; gap: 0.15rem 1.5rem; padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .credits > div { grid-template-columns: 15rem minmax(0, 1fr); align-items: baseline; } }
.credits dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--salt-muted); }
.credits dd { margin: 0; font-weight: 600; color: var(--name-ink); }
.press-clips { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .press-clips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
ul.press-images { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .press-images { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.press-images li { margin: 0; }
.press-images img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); }
.press-images span { display: block; margin-top: 0.4rem; font-size: var(--step--1); color: var(--salt-muted); }
.press-logos { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.press-logos a { display: grid; place-items: center; padding: 1.5rem; background: var(--night-deep); border: 1px solid var(--rule); border-radius: var(--radius); }
.press-logos img { max-height: 90px; width: auto; }

/* --- Tamil ---------------------------------------------------------------------------------------------------- */
/* The Tamil page keeps the site's two typefaces: Cinzel has no Tamil letters, so a Tamil title falls through to
   Catamaran (whose Tamil the game uses too), while a Latin name in it, VEL, stays in Cinzel. Tamil has no capitals, so
   what English sets in spaced capitals is set plain and a little larger; and its vowel signs reach above and below the
   letters, so its lines need more room. */
:lang(ta) { --display: "Cinzel", "Catamaran", Georgia, serif; }
:lang(ta) body, body:lang(ta) { line-height: 1.7; }
:lang(ta) h2 { font-size: clamp(1.8rem, 1.35rem + 2vw, 2.8rem); line-height: 1.32; letter-spacing: 0; }
:lang(ta) h3, :lang(ta) .move__name, :lang(ta) .land__name, :lang(ta) .sister__name, :lang(ta) .brother__text h3,
:lang(ta) .post-card__title { line-height: 1.4; letter-spacing: 0; }
:lang(ta) .move--throw .move__name { line-height: 1.3; }
:lang(ta) .lead, :lang(ta) .hero__lead, :lang(ta) .hero__tagline { line-height: 1.6; }
:lang(ta) .hero__tagline { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
:lang(ta) :is(.eyebrow, .payoffs__head, .warning dt, .chip, .brothers__head, .brother__where, .today__head,
  .post-card__date, .button, .soon, .text-link) { letter-spacing: 0.01em; text-transform: none; }
:lang(ta) .hero__tagline { text-wrap: balance; }
/* A Tamil word can be wider than a narrow column (a sister's card on a phone): break it rather than spill. */
:lang(ta) :is(p, h2, h3, dd, figcaption) { overflow-wrap: break-word; }
:lang(ta) :is(.eyebrow, .payoffs__head, .brothers__head, .brother__where, .today__head) { font-size: 0.92rem; }
:lang(ta) .chip { font-size: 0.8rem; line-height: 1.45; padding-block: 0.2rem 0.12rem; }
:lang(ta) .button { font-size: 1rem; line-height: 1.35; padding-block: 0.6rem 0.5rem; }
:lang(ta) .button--small { font-size: 0.88rem; }
:lang(ta) .soon { font-size: 0.95rem; }
:lang(ta) .site-nav a { letter-spacing: 0; }
.wordmark__native {
  display: block; margin-top: 0.12em; margin-left: 0.04em;
  font-family: var(--body); font-weight: 700; font-size: 0.3em; line-height: 1.3; letter-spacing: 0.02em;
}
.section-head__note { margin-top: 0.5rem; color: var(--salt-muted); font-size: var(--step--1); }
