/* torvagame.app: the game's Arcade look (App/Sources/UI/Arcade.swift) on the web. Night-and-lantern palette, ink
   outlines, hard drop shadows, heavy condensed caps for headings, rounded body text. Mobile first. No web fonts:
   Apple devices get the game's own system fonts (SF condensed headings, SF Rounded body). */

:root {
  color-scheme: dark;
  --ink: #05060d;
  --night: #080e1a;
  --navy-lo: #090f1f;
  --navy: #0f1a30;
  --navy-hi: #1a294a;
  --slate: #384a6b;
  --lamp: #ffc729;
  --lamp-deep: #db850d;
  --lamp-warm: #ffc773;
  --lamp-lip: #9e7b19;
  --teal: #33d9db;
  --cream: #faf2db;
  --parchment: #ede0c7;
  --muted: #99a8c7;
  --red: #ff4d3d;
  --green: #5ce66b;
  --head: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --maxw: 1120px;
  --c: var(--lamp);
}

/* Hero colours, from the game's roster (Roster.swift `color`). */
.h-morwenna { --c: #ffc759; }
.h-ada { --c: #ff6b2e; }
.h-wren { --c: #4dadff; }
.h-sparks { --c: #b39eff; }
.h-bram { --c: #b8c7db; }
.h-vesper { --c: #73e666; }
.h-mordecai { --c: #9e66f2; }
.h-isolde { --c: #8ce0ff; }
.h-quill { --c: #f273d9; }
.h-ragna { --c: #f24d40; }
.h-pip { --c: #ffdb66; }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--cream);
  font: 500 17px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }
img { height: auto; }
a { color: var(--lamp); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--lamp-warm); }
b, strong { font-weight: 800; color: var(--cream); }
::selection { background: var(--lamp); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .head {
  font-family: var(--head);
  font-weight: 900;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-shadow: 0 3px 0 var(--ink);
}
h1 { font-size: clamp(34px, 9vw, 60px); color: var(--lamp); }
h2 { font-size: clamp(26px, 6.5vw, 42px); color: var(--cream); }
h3 { font-size: 20px; color: var(--lamp-warm); }
p { margin: 0 0 1em; }

.px { image-rendering: pixelated; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--lamp); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 800;
}
.skip:focus { top: 8px; }

/* ---------- Top bar and footer ---------- */

.topbar { position: relative; z-index: 10; background: var(--ink); border-bottom: 2px solid var(--navy-hi); }
.home .topbar { position: absolute; inset: 0 0 auto; background: linear-gradient(rgba(5, 6, 13, 0.82), rgba(5, 6, 13, 0)); border: 0; }
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; }
.brand img { width: 96px; height: auto; display: block; }
.nav { display: flex; gap: 4px; }
.nav a {
  font: 900 15px/1 var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--cream); text-decoration: none; padding: 12px 9px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--lamp); }

.foot { background: var(--ink); border-top: 2px solid var(--navy-hi); margin-top: 24px; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 14px; justify-items: start; }
.foot-brand img { display: block; width: 88px; height: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-nav a { color: var(--cream); text-decoration: none; font-weight: 700; padding: 6px 0; }
.foot-nav a:hover { color: var(--lamp); }
.fine { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Buttons, panels, the store slot ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px; margin-bottom: 4px;
  font: 900 17px/1 var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; border: 2px solid var(--ink); border-radius: 9px; cursor: pointer;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}
.btn-lamp {
  color: var(--ink); background: var(--lamp);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 4px 0 var(--lamp-lip), 0 4px 0 2px var(--ink);
}
.btn-lamp:hover { color: var(--ink); background: #ffd04d; }
.btn-ghost {
  color: var(--cream); background: var(--navy-hi);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.08), 0 4px 0 #0c1427, 0 4px 0 2px var(--ink);
}
.btn-ghost:hover { color: var(--lamp); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lamp-lip), 0 1px 0 2px var(--ink); }
.btn-ghost:active { box-shadow: 0 1px 0 #0c1427, 0 1px 0 2px var(--ink); }
.btn-meta { font: 700 13px var(--body); text-transform: none; letter-spacing: 0; opacity: 0.75; }
.btn[hidden] { display: none; }

.panel {
  background: var(--navy);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3.5px var(--navy-hi), 0 4px 0 var(--ink);
  padding: 20px 18px;
}

.store {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 58px; padding: 8px 20px 9px; margin: 0 0 4px;
  background: var(--ink); border: 2px solid var(--lamp-deep); border-radius: 12px;
  box-shadow: 0 4px 0 #000; line-height: 1.05; text-decoration: none;
}
.store-kicker { font: 800 12px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
/* Not upper-cased: Apple's trademark rules keep "iPhone" and "App Store" as written. */
.store-main { font: 900 26px var(--head); font-stretch: condensed; color: var(--lamp); letter-spacing: 0.01em; }
.store-small { min-height: 48px; padding: 6px 16px 7px; }
.store-small .store-main { font-size: 20px; }
a.store:hover .store-main { color: var(--lamp-warm); }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { display: block; }

.kicker {
  font: 900 14px/1.2 var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--teal); margin: 0 0 8px; display: flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: currentColor; box-shadow: 2px 2px 0 var(--ink); flex: none; }

.dot { display: inline-block; width: 9px; height: 9px; background: var(--c); border: 1.5px solid var(--ink); margin-right: 6px; vertical-align: 1px; flex: none; }

/* ---------- Home: hero banner ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, min(100svh, 980px));
  display: flex; align-items: flex-end;
  background: var(--ink);
}
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: 50% 0%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0) 22%, rgba(8, 14, 26, 0.55) 46%, rgba(8, 14, 26, 0.92) 68%, var(--night) 92%);
}
.hero-in { padding-top: 34vh; padding-bottom: 44px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { margin: 0 0 6px; line-height: 0; text-shadow: none; }
.hero-logo img { width: min(400px, 82vw); height: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(5, 6, 13, 0.55)); }
.hero-tag {
  font: 900 clamp(20px, 5.4vw, 30px)/1.1 var(--head); font-stretch: condensed; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--lamp-warm); text-shadow: 0 3px 0 var(--ink); margin: 0 0 12px;
}
.hero-pitch { max-width: 34em; color: var(--parchment); font-size: 18px; text-shadow: 0 2px 8px var(--night); margin: 0 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-bottom: 22px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.facts li { font: 800 14px/1.5 var(--body); letter-spacing: 0.02em; color: var(--muted); }

@media (min-aspect-ratio: 1/1) {
  .hero-art img { object-position: 50% 30%; }
  .hero::after {
    background:
      radial-gradient(ellipse 70% 55% at 50% 100%, rgba(8, 14, 26, 0.92), rgba(8, 14, 26, 0) 70%),
      linear-gradient(180deg, rgba(8, 14, 26, 0) 40%, rgba(8, 14, 26, 0.65) 75%, var(--night) 100%);
  }
  .hero-in { padding-top: 46vh; }
}

/* ---------- Home: sections ---------- */

.sec { padding-top: 56px; padding-bottom: 56px; }
.sec-head { margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.lede { color: var(--parchment); max-width: 46em; margin-bottom: 24px; }
.sec-heroes, .sec-trailer { background: var(--navy-lo); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 10px 14px; align-items: center; }
.feature .icon { width: 48px; height: 48px; }
.feature h3 { margin: 0; }
.feature p { grid-column: 1 / -1; margin: 0; color: var(--parchment); }

.hgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* Morwenna (free, the face of the game) takes two cells, so 11 heroes fill whole rows at 2, 3 and 4 columns. */
.hgrid > .hcard:first-child { grid-column: span 2; }
.hgrid > .hcard:first-child .hcard-sig { display: block; }
.hcard a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--navy); color: inherit; text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden;
  box-shadow: inset 0 3px 0 var(--c), 0 4px 0 var(--ink);
  transition: transform 0.12s ease-out;
}
.hcard a:hover { transform: translateY(-3px); }
.hcard-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2.5px solid var(--ink); }
.hcard-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px 12px; }
.hcard-name { font: 900 18px/1.05 var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cream); }
.hcard-title { font-size: 13px; line-height: 1.3; color: var(--muted); font-style: italic; }
.hcard-role { display: flex; align-items: center; font: 800 12px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c); margin-top: 4px; }
.hcard-sig { display: none; font-size: 14px; line-height: 1.4; color: var(--parchment); margin-top: 6px; }

.shots {
  list-style: none; margin: 0; padding: 4px var(--gutter) 18px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--slate) transparent;
}
.shots > li { flex: 0 0 86%; scroll-snap-align: center; }
.shot { margin: 0; }
.shot a { display: block; line-height: 0; }
.shot img { width: 100%; aspect-ratio: 2.17; object-fit: cover; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); background: var(--navy); }
.shot figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }

.trailer { position: relative; aspect-ratio: 16 / 9; border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 0 var(--ink); background: var(--ink); }
.trailer-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.trailer-media { filter: brightness(0.42) saturate(0.8); }
.trailer-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; }
.trailer-soon p { margin: 0; font: 900 clamp(18px, 4.6vw, 28px) var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.06em; text-shadow: 0 3px 0 var(--ink); }
.play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--lamp); border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink); position: relative;
}
.play::after {
  content: ""; position: absolute; left: 25px; top: 18px;
  border-left: 18px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}

.fair { display: grid; gap: 28px; align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: center; color: var(--parchment); }
.ticks .icon { width: 48px; height: 48px; flex: none; }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-title { font: 900 clamp(26px, 6vw, 36px)/1.05 var(--head); font-stretch: condensed; text-transform: uppercase; color: var(--lamp); text-shadow: 0 3px 0 var(--ink); margin-bottom: 10px; }
.cta p { color: var(--parchment); }

/* ---------- Documents: privacy, terms, support, delete ---------- */

.doc { padding-top: 36px; padding-bottom: 56px; }
.doc-head { margin-bottom: 24px; }
.doc-head > p:last-child { margin-bottom: 0; }
.doc h2 { font-size: clamp(24px, 6vw, 32px); color: var(--lamp); margin-top: 1.6em; }
.doc .panel h2 { margin-top: 0; }
.doc p, .doc li { color: var(--parchment); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--lamp-deep); }
.doc section { scroll-margin-top: 16px; }

.summary { margin-bottom: 24px; border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3.5px var(--lamp-deep), 0 4px 0 var(--ink); }
.summary h2 { font-size: 22px; color: var(--lamp); }
.ticks-plain { list-style: none; padding: 0 !important; margin: 0 !important; }
.ticks-plain li { position: relative; padding-left: 22px; }
.ticks-plain li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--lamp); box-shadow: 2px 2px 0 var(--ink); }

.toc { margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin-bottom: 0.25em; }

.datacards { display: grid; gap: 16px; margin: 18px 0 24px; }
.datacard h3 { font-size: 21px; margin-bottom: 12px; }
.dc-row { display: grid; gap: 2px; padding: 10px 0; border-top: 2px solid var(--navy-hi); }
.dc-row > div > :last-child { margin-bottom: 0; }
.dc-label { font: 900 13px/1.6 var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); margin: 0; }

.contact { margin-bottom: 24px; }
.contact h2 { margin-top: 0; }
.contact-mail { font: 900 clamp(20px, 5.6vw, 28px) var(--head); font-stretch: condensed; letter-spacing: 0.02em; margin-bottom: 10px; overflow-wrap: anywhere; }
.contact-mail a { text-decoration: none; }

.faq-group { margin-top: 8px; }
.faq {
  background: var(--navy); border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink); margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 14px 48px 14px 16px; font-weight: 800; color: var(--cream); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font: 900 26px/1 var(--head); color: var(--lamp);
}
.faq[open] summary::after { content: "−"; }
.faq[open] summary { border-bottom: 2px solid var(--navy-hi); }
.faq-a { padding: 12px 16px 2px; }

.steps { list-style: none; padding: 0 !important; margin: 0 0 16px !important; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: center; margin: 0; color: var(--cream); }
.step-n {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  font: 900 22px/1 var(--head); color: var(--ink); background: var(--lamp);
  border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 0 3px 0 var(--ink);
}
.steps-small .step-n { width: 32px; height: 32px; font-size: 18px; }
.warn { background: rgba(255, 77, 61, 0.1); border-left: 4px solid var(--red); padding: 10px 14px; border-radius: 6px; margin: 0; }

/* ---------- Press ---------- */

.press .doc-head { padding-top: 36px; }
.press-top { display: grid; gap: 28px; padding-top: 8px; }
.factsheet h2 { font-size: 24px; color: var(--lamp); }
.factsheet dl { margin: 0; display: grid; gap: 2px 16px; }
.factsheet dt { font: 900 13px/1.6 var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); margin-top: 8px; }
.factsheet dd { margin: 0; color: var(--parchment); }
.press-copy p, .press-copy li { color: var(--parchment); }
.press-copy h2 { font-size: 26px; color: var(--lamp); }
.press-copy h3 { margin-top: 1.4em; }
.press-copy ul { padding-left: 1.3em; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tiles-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.panel.tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2.5px solid var(--ink); background: var(--ink); }
div.tile-art { display: grid; place-items: center; }
.tile-logo img { width: 70%; height: auto; image-rendering: pixelated; }
.tile-icon img { width: auto; height: 70%; border-radius: 22%; }
.tile-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-title { margin: 0; font-weight: 800; color: var(--cream); line-height: 1.35; }
.dl {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px;
  padding: 8px 12px; border-radius: 8px; background: var(--navy-lo); border: 2px solid var(--navy-hi);
  color: var(--lamp); font-weight: 800; text-decoration: none;
}
.dl:hover { border-color: var(--lamp-deep); color: var(--lamp-warm); }
.dl-meta { color: var(--muted); font-weight: 600; font-size: 13px; text-align: right; white-space: nowrap; }

/* ---------- Link pages: invites, notices, 404 ---------- */

.linkpage { padding: 40px var(--gutter) 56px; display: grid; gap: 20px; }
.invite { text-align: center; padding: 28px 18px; }
.invite h1 { font-size: clamp(30px, 8vw, 46px); }
.invite > p { color: var(--parchment); }
.code { display: flex; justify-content: center; gap: 6px; margin: 6px 0 22px; }
.code span {
  width: 44px; height: 58px; display: grid; place-items: center;
  font: 900 34px/1 var(--head); font-stretch: condensed; color: var(--ink); background: var(--cream);
  border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: inset 0 -4px 0 var(--parchment), 0 4px 0 var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 4px 0 22px; }
.invite .steps { max-width: 320px; margin: 0 auto 16px !important; text-align: left; }
.get h2 { font-size: 22px; margin-top: 0; }
.get p { color: var(--parchment); }

/* ---------- Hero pages ---------- */

.hp-art { position: relative; background: var(--ink); line-height: 0; }
.hp-img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; object-fit: cover; }
.hp-art::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(rgba(8, 14, 26, 0), var(--night)); }
.hp-body { position: relative; padding-bottom: 48px; }
.hp-head { margin-top: -28px; position: relative; }
.hp-head .kicker { color: var(--c); }
.hp-head .kicker::before { display: none; }
.hp-head h1 { color: var(--c); margin-bottom: 4px; }
.hp-title { font-style: italic; color: var(--muted); font-size: 18px; margin-bottom: 8px; }
.hp-skin { font-style: normal; color: var(--cream); }
.hp-fantasy { font-size: 19px; color: var(--parchment); }
.hp-head .actions { justify-content: flex-start; margin-bottom: 26px; }
.hp-grid { display: grid; gap: 16px; }
.hp-grid h2 { font-size: 22px; color: var(--lamp); }
.hp-grid p { color: var(--parchment); }
.hp-grid p:last-child { margin-bottom: 0; }
.hp-k { display: block; font: 900 17px var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c); }
.chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 8px; background: var(--navy-lo); border: 2px solid var(--navy-hi); font-weight: 800; font-size: 15px; }
.hp-skins { margin-top: 32px; }
.hp-skins h2 { font-size: 26px; }
.skins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.skins a {
  display: block; text-decoration: none; color: var(--cream); background: var(--navy);
  border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 0 var(--ink);
}
.skins a[aria-current="page"] { border-color: var(--c); box-shadow: 0 0 0 2px var(--ink), 0 4px 0 var(--ink); }
.skin-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.skins span { display: block; padding: 8px 10px; font-weight: 800; font-size: 15px; }
.skins em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-left: 4px; }
.hp-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hp-nav a { font-weight: 800; text-decoration: none; padding: 10px 0; }

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .facts { flex-direction: row; gap: 0; }
  .facts li + li::before { content: "·"; margin: 0 10px; color: var(--lamp-deep); }
  .hcard-sig { display: block; }
  .hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  /* Morwenna's double-width card shares a row with single cards: her text sits over her art and the card takes
     the row's height, so there's no gap under the cards beside her. */
  .hgrid > .hcard:first-child a { position: relative; min-height: 260px; }
  .hgrid > .hcard:first-child .hcard-art { position: absolute; inset: 0; height: 100%; border-bottom: 0; }
  .hgrid > .hcard:first-child .hcard-body {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 16px 14px;
    background: linear-gradient(to bottom, transparent, rgba(7, 10, 20, 0.88) 45%);
  }
  .code span { width: 54px; height: 68px; font-size: 40px; }
  .dc-row { grid-template-columns: 112px 1fr; gap: 16px; }
  .factsheet dl { grid-template-columns: 130px 1fr; }
  .factsheet dt { margin-top: 0; }
  .toc ol { columns: 2; column-gap: 32px; }
  .skins { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel { padding: 24px; }
  .foot-in { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; }
  .foot-in .fine { grid-column: 1 / -1; }
  .brand img { width: 110px; }
  .nav { gap: 10px; }
}

@media (min-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .feature { grid-template-columns: 96px 1fr; align-items: start; column-gap: 20px; }
  .feature .icon { width: 96px; height: 96px; grid-row: span 2; }
  .feature h3 { margin-top: 6px; }
  .feature p { grid-column: 2; }
  .shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; overflow: visible; max-width: var(--maxw); margin: 0 auto; padding: 4px var(--gutter) 0; }
  .fair { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .press-top { grid-template-columns: 340px 1fr; align-items: start; }
  .hp-grid { grid-template-columns: 1fr 1fr; }
  .hp-head { margin-top: -64px; }
  .sec { padding-top: 80px; padding-bottom: 80px; }
}

@media (min-width: 1000px) {
  .hgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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