/* TwoSquaredEight — shared stylesheet for index / privacy / terms.
   Extracted from index.html once the site grew past one page. */

:root {
  /* Straight off the brand sheet in assets/. */
  --ink:      #201e1d;
  --ink-2:    #262423;
  --line:     #3a3634;
  --white:    #ffffff;
  --paper:    #f7f6f6;
  --muted:    #a9a3a0;
  --faint:    #756e6b;
  --accent:   #ff4526;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  /* The mark is drawn on a grid; the page sits on the same one. */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(75% 50% at 50% 0%, rgba(255, 69, 38, 0.085) 0%, rgba(255, 69, 38, 0) 65%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

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

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--white);
  padding: 10px 16px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── hero: the centred lockup, and nothing else ────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding-block: clamp(72px, 12vh, 120px);
  position: relative;
}

/* The lockup IS the h1 — the wordmark is the company name, so the page keeps a
   real heading without printing the name twice. */
.hero h1 { margin: 0; line-height: 0; }
.hero h1 img { display: block; width: clamp(255px, 35vw, 450px); height: auto; }

/* Echoes the accent rule on the social card. */
.rule { width: 96px; height: 6px; background: var(--accent); margin-top: clamp(30px, 4.5vh, 44px); }

/* Pinned to the bottom of the first screen so it cannot push the lockup off
   centre. Hidden when the viewport is too short to spare the room. */
.cue {
  position: absolute; bottom: clamp(24px, 5vh, 44px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--faint);
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: color 140ms ease;
}
.cue:hover { color: var(--muted); }
.cue .tick { width: 1px; height: 22px; background: var(--line); }
@media (max-height: 620px) { .cue { display: none; } }

/* ── sections ──────────────────────────────────────────────────────────── */
section { border-top: 1px solid var(--line); }
.sec { padding-block: clamp(64px, 11vh, 108px); }

.sec-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 34px;
}

h2 {
  font-weight: 600; font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.2; letter-spacing: -0.01em; max-width: 22ch; text-wrap: balance;
}

/* ── about ─────────────────────────────────────────────────────────────── */
.about { display: grid; gap: 40px; }
@media (min-width: 860px) { .about { grid-template-columns: 1fr 380px; gap: 64px; align-items: start; } }

.about p { color: var(--muted); max-width: 56ch; font-size: 17px; }
.about h2 + p { margin-top: 26px; }
.about p + p { margin-top: 18px; }

/* Factual key/value block — the sort of thing a reviewer scans for. */
.spec { border: 1px solid var(--line); background: var(--ink-2); font-family: var(--mono); font-size: 13px; }
.spec .row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 18px; }
.spec .row + .row { border-top: 1px solid var(--line); }
.spec .k { color: var(--faint); letter-spacing: 0.06em; white-space: nowrap; }
.spec .v { color: var(--paper); text-align: right; }
.spec .v a { text-decoration: none; border-bottom: 1px solid var(--line); }
.spec .v a:hover { border-color: var(--accent); }

/* ── in development ────────────────────────────────────────────────────── */
.work { display: grid; gap: 40px; align-items: center; }
@media (min-width: 800px) { .work { grid-template-columns: 300px 1fr; gap: 64px; } }

/* The stamp PNG is transparent, so it sits straight on the ink — no plate, no
   box. It ships as the game's carmine (#c4302b), which measures only 3.0:1 here
   and turns the fine ring text to mud, so scripts/recolour-stamp.py repaints it
   in the studio accent with the alpha untouched. Re-run that script if
   the source stamp is ever redrawn. */
.stamp { max-width: 300px; width: 100%; justify-self: start; }
.stamp img { display: block; width: 100%; height: auto; }

.work-title { font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -0.015em; }

.status {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.status .dot { width: 7px; height: 7px; background: var(--accent); }

.work-body p.blurb { margin-top: 24px; color: var(--muted); max-width: 46ch; font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em;
  padding: 13px 22px; text-decoration: none; border: 1px solid var(--line);
  color: var(--paper); background: transparent;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.btn:hover { border-color: var(--muted); background: var(--ink-2); }
.btn .arrow { transition: transform 140ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── contact ───────────────────────────────────────────────────────────── */
.mail {
  display: inline-block; margin-top: 26px;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(19px, 4.4vw, 38px); letter-spacing: -0.01em;
  color: var(--white); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 6px;
  overflow-wrap: anywhere;
  transition: color 140ms ease;
}
.mail:hover { color: var(--accent); }
.contact-note { margin-top: 26px; color: var(--muted); max-width: 48ch; }
.contact-grid { margin-top: 44px; max-width: 460px; }

/* ── legal pages (privacy, terms) ──────────────────────────────────────── */
.page-head { padding-block: clamp(56px, 9vh, 92px) 0; }
.page-head .back {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 34px;
  transition: color 140ms ease;
}
.page-head .back:hover { color: var(--white); }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.page-head .updated {
  margin-top: 16px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}

/* Nested inside a .wrap, not on it — otherwise .wrap's auto margins centre
   this narrower column away from the page heading above it. */
.prose { padding-block: clamp(40px, 6vh, 64px) clamp(64px, 10vh, 100px); max-width: 68ch; }
.prose h2 { font-size: clamp(19px, 2.4vw, 23px); margin-top: 48px; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); margin-top: 16px; }
.prose ul { margin-top: 16px; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--accent); }
.prose strong { color: var(--paper); font-weight: 600; }

/* ── footer ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); }
.foot { padding-block: 38px 46px; font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.03em; }
.foot .legal { line-height: 1.8; max-width: 70ch; }
.foot .legal strong { color: var(--muted); font-weight: 400; }
.foot .row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line);
}
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--white); border-color: var(--accent); }
