/* Layout: Nordic paper. Ink type on warm stone, one pine accent, and the game's own screenshots as the only colour. Night bands frame the game. */
:root {
  color-scheme: light;
  --paper: #F2F1EC;
  --paper-2: #F8F7F3;
  --ink: #161B18;
  --mist: #646B66;
  --rule: #DAD8CF;
  --pine: #2D5C4C;
  --pine-deep: #234A3D;
  --lichen: #A9CDBB;
  --night: #161B18;
  --night-2: #1E2521;
  --night-rule: #323A35;
  --night-mist: #A3ABA5;

  --head: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-label: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-h3: 1.375rem;
  --t-h2: clamp(2.125rem, 1.35rem + 3vw, 3.75rem);
  --t-h1: clamp(3rem, 1.5rem + 6.2vw, 6.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --section: clamp(72px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--lichen); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--pine); color: var(--paper); padding: 10px 14px;
  font: 700 var(--t-label) var(--head); text-transform: uppercase; letter-spacing: 0.12em;
}
.skip:focus { top: 12px; }

/* Type */
.label {
  font-family: var(--head); font-weight: 600; font-size: var(--t-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); line-height: 1.4;
}
h1, h2, h3 { font-family: var(--head); text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 800; line-height: 0.92; text-transform: uppercase; letter-spacing: -0.005em; }
h2 { font-size: var(--t-h2); font-weight: 800; line-height: 0.95; text-transform: uppercase; }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.15; }
.lede { font-size: var(--t-lg); color: var(--mist); max-width: 56ch; line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 0.875rem/1 var(--head); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 15px 22px; border: 1.5px solid transparent; cursor: pointer; background: none; color: inherit;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-pine { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.btn-pine:hover { background: var(--pine-deep); border-color: var(--pine-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 10px 14px; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: block; line-height: 0; }
.brand img { height: 20px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  font: 600 var(--t-label) var(--head); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mist); text-decoration: none;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 56px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
.hero-top > div { display: grid; gap: 22px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.shot-hero { display: grid; gap: 10px; }
.shot-hero img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 60%; }
.shot-hero figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; }
  .shot-hero img { aspect-ratio: 16 / 10; }
}

/* Sections */
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.section > .wrap { display: grid; gap: clamp(40px, 5.5vw, 72px); }
.section-head { display: grid; gap: 18px; max-width: 780px; }

/* Night band (the game) */
.night { background: var(--night); color: var(--paper); border-top: 0; }
.night .label { color: var(--night-mist); }
.night .lede, .night p { color: var(--night-mist); }
.night h3, .night strong, .night dd { color: var(--paper); }
.night .btn-line { border-color: var(--paper); color: var(--paper); }
.night .btn-line:hover { background: var(--paper); color: var(--night); }
.night :focus-visible { outline-color: var(--lichen); }

.game-head { display: grid; gap: 20px; }
.game-title { font-size: clamp(3.75rem, 1.6rem + 9.5vw, 9.5rem); line-height: 0.82; letter-spacing: 0.01em; }
.game-tagline { font: 700 clamp(1.375rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--head); text-wrap: balance; }
.night .game-tagline { color: var(--lichen); }
.game-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: start; }
.game-intro .lede { color: var(--paper); opacity: 0.86; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--night-rule); }
.facts div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--night-rule); min-width: 0; }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dd { font: 700 1.1875rem/1.2 var(--head); }
@media (max-width: 860px) { .game-intro { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure { display: grid; min-width: 0; }
.gallery a { display: block; position: relative; overflow: hidden; background: var(--night-2); height: 100%; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .big { grid-column: span 2; grid-row: span 2; }
.gallery .big img { aspect-ratio: auto; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px;
  background: linear-gradient(0deg, rgba(22, 27, 24, 0.82), rgba(22, 27, 24, 0));
  font: 600 var(--t-label) var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper);
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .big { grid-column: 1 / -1; grid-row: auto; }
  .gallery .big img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery a:hover img { transform: none; } }

/* How we build */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stats div { display: grid; gap: 10px; align-content: start; padding: 22px 24px 4px 0; min-width: 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.stats dt { order: 2; color: var(--mist); font-size: var(--t-sm); line-height: 1.45; }
.stats dd { order: 1; font: 800 clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem)/0.95 var(--head); color: var(--pine); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; padding: 20px 20px 0 0; border-top: 1px solid var(--rule); min-width: 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 var(--t-label) var(--head); letter-spacing: 0.14em; color: var(--pine); }
.steps p { color: var(--mist); font-size: var(--t-sm); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; }
  .steps li::before { grid-row: span 2; padding-top: 4px; }
}

/* Studio */
.studio-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
.studio-copy { display: grid; gap: 20px; }
.studio-copy p:not(.label) { color: var(--mist); max-width: 58ch; }
.spec { background: var(--paper-2); border: 1px solid var(--rule); }
.spec h3 { padding: 18px 22px; border-bottom: 1px solid var(--rule); font-size: 1.125rem; }
.spec dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 22px; align-items: baseline; }
.spec dl > div + div { border-top: 1px solid var(--rule); }
.spec dd { overflow-wrap: anywhere; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .spec dl > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; } }

/* Contact */
.contact { background: var(--paper-2); }
.contact .wrap { justify-items: start; gap: 22px; }
.email-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding-top: 22px; border-top: 2px solid var(--ink); width: 100%; max-width: 760px;
}
.email { font: 800 clamp(1.5rem, 1rem + 2.2vw, 2.5rem)/1.1 var(--head); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; flex: 1 1 auto; min-width: 0; }
.email-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: 32px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a.label { text-decoration: none; }
.foot a.label:hover { color: var(--ink); }

/* Press kit */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.page-head .wrap { display: grid; gap: 22px; justify-items: start; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font: 600 var(--t-label) var(--head); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); padding: 9px 13px; }
.toc a:hover { border-color: var(--ink); }

.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.copy-block { border: 1px solid var(--rule); background: var(--paper-2); display: grid; align-content: start; min-width: 0; }
.copy-block header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--rule); }
.copy-text { padding: 20px 22px 24px; font-size: var(--t-sm); }
@media (max-width: 860px) { .fact-grid, .copy-grid { grid-template-columns: 1fr; } }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: grid; gap: 10px; align-content: start; min-width: 0; }
.tile-preview { aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; padding: 28px; border: 1px solid var(--rule); overflow: hidden; }
.tile-preview img { max-height: 100%; width: auto; max-width: 100%; }
.tile-preview.photo { padding: 0; aspect-ratio: 16 / 9; }
.tile-preview.photo img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); }
.bg-pine { background: var(--pine); }
.tile-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.tile-meta strong { font: 700 1rem var(--head); }
.tile-links { display: flex; gap: 14px; }
.tile-links a { font: 700 var(--t-label) var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine); text-decoration: none; }
.tile-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .tile-grid, .tile-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tile-grid, .tile-grid.four { grid-template-columns: 1fr; } }

.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.swatch { display: grid; gap: 3px; min-width: 0; }
.swatch i { display: block; height: 96px; border: 1px solid var(--rule); margin-bottom: 8px; }
.swatch strong { font: 700 1rem var(--head); }
.swatch code { font: 500 0.8125rem var(--body); user-select: all; -webkit-user-select: all; }
.swatch span { color: var(--mist); font-size: 0.875rem; line-height: 1.4; }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.specimens { display: grid; border-top: 2px solid var(--ink); }
.specimen { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 22px 0; align-items: center; border-bottom: 1px solid var(--rule); }
.specimen .sample { overflow-wrap: anywhere; }
.s-head { font: 800 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--head); text-transform: uppercase; }
.s-body { font-size: var(--t-lg); }
.s-label { font: 600 var(--t-label) var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pine); }
@media (max-width: 760px) { .specimen { grid-template-columns: 1fr; gap: 8px; } }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
