/* Shared look for the static pages Vite copies as they are (privacy-policy.html, confirm.html).
   The values mirror src/site/tokens.css and src/site/site.css; change them there and here together. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 128px;
  --text-sm: 0.875rem; --text-md: 1rem; --text-xl: 1.5rem;
  --text-lead: clamp(1.0625rem, 0.4vw + 0.95rem, 1.3125rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --dur-short: 220ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px;
  --color-paper: #0b0a09; --color-paper-2: #151311;
  --color-ink: #f3ece1; --color-ink-2: #cfc5b6; --color-muted: #978c7e;
  --color-rule: #34302b; --color-error: #f0846b;
  --line: rgba(243, 236, 225, 0.6); --hair: rgba(243, 236, 225, 0.24);
  --scrim: 11, 10, 9;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif; --font-body: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --rule-hair: 1px;
}
@media (max-width: 60rem) { :root { --gutter: 24px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --gap-columns: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--color-paper); color: var(--color-ink-2); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
::selection { background: var(--color-ink); color: var(--color-paper); }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
a { color: var(--color-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--color-muted); transition: text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-ink); }
p { margin: 0; text-wrap: pretty; }
strong { color: var(--color-ink); font-weight: 600; }
h1, h2 { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-weight: 600; font-synthesis: none; text-transform: uppercase; line-height: 0.98; text-wrap: balance; overflow-wrap: break-word; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--space-md); top: -10rem; z-index: 10; padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); font-weight: 600; }
.skip:focus-visible { top: var(--space-md); }
.hidden { display: none; }

/* Nav: the crest and the studio name, and one way back, over the top of the picture */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; background: linear-gradient(to bottom, rgba(var(--scrim), 0.88) 0%, rgba(var(--scrim), 0.6) 55%, rgba(var(--scrim), 0) 100%); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 76px; }
.nav__mark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--color-ink); font: 600 1.375rem/1 var(--font-display); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav__mark img { width: 40px; height: auto; }
.nav__back { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font: 600 1.125rem/1 var(--font-display); text-transform: uppercase; text-decoration: none; }
.nav__back:hover { text-decoration: underline; text-underline-offset: 0.5em; }
@media (max-width: 40rem) { .nav__row { min-height: 64px; } .nav__mark { font-size: 1.1875rem; } .nav__mark img { width: 34px; } }

/* Buttons: the site's thin warm-white outline; it fills on hover. Never a coloured fill. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: var(--rule-hair) solid var(--line); background: transparent; color: var(--color-ink); font: 600 1.125rem/1 var(--font-display); text-transform: uppercase; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }

/* Picture head: a game screenshot with the title in its bottom-left corner over a corner scrim */
.page-head { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: max(28rem, 72svh); overflow: hidden; }
.page-head__image, .notice__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.notice__image { object-position: 60% 50%; }
.page-head::after, .notice::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--scrim), 0.92) 0%, rgba(var(--scrim), 0.68) 38%, rgba(var(--scrim), 0) 68%),
    linear-gradient(to right, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0) 55%); }
.page-head__body { width: 100%; padding-block: var(--space-4xl) var(--space-2xl); }
.page-head h1 { max-width: 16ch; font-size: clamp(2.75rem, 4.4vw + 0.5rem, 5rem); }
.page-head__date { margin-top: var(--space-lg); color: var(--color-ink); font-size: var(--text-lead); }

/* Privacy policy: contents list on the left, numbered sections on the right, over a faint copy of a second
   picture that stays on the screen's right side while the text scrolls. */
.legal-area { position: relative; isolation: isolate; }
.legal-area__ambient { position: sticky; top: 0; z-index: -1; display: block; width: 100%; height: 100svh; margin-bottom: -100svh; object-fit: cover; opacity: 0.22; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 45%, #000 90%); mask-image: linear-gradient(to right, transparent 45%, #000 90%); }
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-2xl) var(--gap-columns); padding-block: var(--space-3xl); }
.legal__toc { position: sticky; top: var(--space-xl); align-self: start; font-size: var(--text-sm); }
.legal__toc h2 { margin-bottom: var(--space-sm); font-size: 1.125rem; color: var(--color-ink-2); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: var(--space-sm); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.legal__toc a::before { content: counter(toc); min-width: 1.5ch; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.legal__toc a:hover { color: var(--color-ink); }
.legal__body { max-width: 68ch; }
.legal__body section { padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); scroll-margin-top: var(--space-lg); }
.legal__body section:first-child { padding-top: 0; border-top: 0; }
.legal__body h2 { font-size: clamp(1.75rem, 1.4vw + 1rem, 2.5rem); max-width: 22ch; }
.legal__body p { margin-top: var(--space-md); font-size: 1.0625rem; line-height: 1.65; }
.legal__body ul { margin: var(--space-lg) 0 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.legal__body li { position: relative; padding: var(--space-sm) 0 var(--space-sm) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); line-height: 1.6; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: 1.4em; width: 10px; height: var(--rule-hair); background: var(--color-ink-2); }
.legal__mail { display: inline-block; margin-top: var(--space-md); font: 600 var(--text-xl)/1.1 var(--font-display); text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--color-muted); text-underline-offset: 0.18em; overflow-wrap: anywhere; }
@media (max-width: 60rem) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .legal__toc { position: static; }
  .legal-area__ambient { opacity: 0.14; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 40rem) {
  .page-head h1 { font-size: clamp(2.25rem, 9.6vw, 2.75rem); }
  .legal { padding-block: var(--space-2xl); }
}

/* Newsletter confirmation: one message in the bottom-left corner of a full-screen picture */
.notice { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: max(32rem, 100svh); overflow: hidden; }
.notice__body { width: 100%; padding-block: var(--space-4xl) var(--space-3xl); }
.notice__state { max-width: 40rem; }
.notice h1 { font-size: clamp(3rem, 7vw + 1rem, 7rem); }
.notice p { margin-top: var(--space-md); max-width: 48ch; font-size: var(--text-lead); line-height: 1.5; }
.notice .notice__email { color: var(--color-ink); font-weight: 600; overflow-wrap: anywhere; }
.notice .notice__email:empty { display: none; }
.notice .notice__bad { color: var(--color-error); }
.notice .btn { margin-top: var(--space-xl); }
.notice__bar { width: 12rem; height: 2px; margin-top: var(--space-xl); background: rgba(243, 236, 225, 0.2); overflow: hidden; }
.notice__bar::after { content: ""; display: block; width: 40%; height: 100%; background: var(--color-ink); animation: sweep 1.1s var(--ease-out) infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* Portrait screens: the bright sky reaches down to the text, so the scrim climbs the whole picture. */
@media (max-width: 60rem) { .notice::after { background: linear-gradient(to top, rgba(var(--scrim), 0.94) 0%, rgba(var(--scrim), 0.8) 55%, rgba(var(--scrim), 0.4) 100%); } }
@media (max-width: 40rem) { .notice__body { padding-block: var(--space-3xl) var(--space-xl); } }

/* Footer: dark, with the company's legal details, as on the site */
.footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-xl); }
.footer__mark { display: inline-flex; align-items: center; gap: 12px; color: var(--color-ink); font: 600 1.75rem/1 var(--font-display); text-transform: uppercase; text-decoration: none; }
.footer__mark img { width: 40px; height: auto; }
.footer__base { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.footer__base a { color: var(--color-ink-2); }
.footer__legal { margin-top: var(--space-lg); max-width: 90ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
