/* Shared by every page. Tokens from the game's UI kit (assets/ui/tokens.json, dark theme). */
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url(fonts/sofia-sans-extra-condensed-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 1 1000;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url(fonts/sofia-sans-condensed-bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url(fonts/sofia-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --bg: #0b100e;
  --surface: #121a16;
  --ink: #eef3ec;
  --ink-muted: #a3b3aa;
  --line-strong: #5f756a;
  --firetiger: #c8f03c;
  --on-firetiger: #0b100e;
  --scrim: rgba(8, 12, 10, .78);
  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-condensed: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --font-sans: "Sofia Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: 64px;
  --edge: 28px;
  --cut: 20px;
  color-scheme: dark;
}
@media (max-width: 900px) { :root { --gutter: 24px; --edge: 20px; } }
@media (max-width: 600px) { :root { --gutter: 16px; --edge: 16px; } }

html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
::selection { background: var(--firetiger); color: var(--bg); }
a { color: var(--firetiger); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--firetiger); outline-offset: 2px; }

.label {
  margin: 0;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
a.label { text-decoration: none; }
a.label:hover { color: var(--ink); }
.display {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
}

/* The EN/DE switch: a link to the page's twin in the other language, the current one underlined. */
.langs { display: flex; gap: 2px; }
.langs > * { padding: 4px 6px; }
.langs [aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--firetiger); }

/* Home: the title over the showreel. */
.home { --title: clamp(4rem, min(18vw, 30vh), 22rem); }
/* Phones: the title fills the width ("PINE HEATH" is about 3.7em wide). */
@media (max-width: 600px) { .home { --title: calc((100vw - 2 * var(--gutter)) / 3.8); } }

.backdrop { position: fixed; inset: 0; background: var(--bg) url(media/poster.webp) center / cover no-repeat; }
.backdrop video { width: 100%; height: 100%; object-fit: cover; display: block; }
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 95% at 0% 100%, var(--scrim) 0%, rgba(8, 12, 10, .4) 45%, rgba(8, 12, 10, 0) 75%);
}

.home .page {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-bottom: max(var(--edge), env(safe-area-inset-bottom));
}
.home h1, .subtitle { text-shadow: 0 2px 32px rgba(0, 0, 0, .35); }
.home h1 {
  font-size: var(--title);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.01em;
}
.subtitle {
  font-size: calc(var(--title) / 3);
  font-weight: 800;
  line-height: .95;
  margin-top: calc(var(--title) * -.1);
  color: var(--firetiger);
}

/* Every page ends in the same footer (Impressum, Privacy), at the bottom of the window or of the page. */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 4vh, 48px);
}
footer nav { display: flex; gap: 24px; }
.home footer .label { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.tools { display: flex; align-items: center; gap: 16px; }

/* Newsletter signup under the subtitle: a glass field like the pause button, and the primary button. */
.signup { max-width: 440px; margin-top: clamp(24px, 4vh, 40px); }
.signup .label, .signup .fine { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.signup .row { display: flex; gap: 8px; margin-top: 8px; }
.signup input {
  flex: 1;
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font: 16px/1 var(--font-sans);
}
.signup input::placeholder { color: var(--ink-muted); opacity: 1; }
.signup .fine { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.signup .terms { margin-top: 2px; font-size: 12px; line-height: 16px; }
@media (max-width: 600px) { .signup { max-width: none; } }

/* Primary button. The cut corner is painted, not clipped, so the focus ring still shows. */
.button {
  height: 40px;
  padding: 0 24px 0 16px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(225deg, transparent 4.25px, var(--firetiger) 4.25px);
  color: var(--on-firetiger);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }

/* The video's buttons, sound and pause: glass squares like the signup field. */
.player { display: flex; gap: 8px; }
.player button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink-muted);
  cursor: pointer;
}
.player button:hover { color: var(--ink); border-color: var(--ink-muted); }
.player svg { width: 14px; height: 14px; fill: currentColor; }
#motion[data-state="playing"] .play, #motion[data-state="paused"] .pause { display: none; }
#sound[data-state="muted"] .unmuted, #sound[data-state="unmuted"] .muted { display: none; }
/* Phones: the title runs edge to edge, so the buttons move to the top corner. */
@media (max-width: 600px) {
  .player {
    position: fixed;
    top: max(var(--gutter), env(safe-area-inset-top));
    right: max(var(--gutter), env(safe-area-inset-right));
  }
}

/* Text pages: the legal page and the newsletter pages. */
.doc .page {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: calc(640px + 2 * var(--gutter));
  padding: max(var(--edge), env(safe-area-inset-top)) var(--gutter) max(var(--edge), env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.doc main { flex: 1; }
.doc footer { margin-top: clamp(48px, 10vh, 96px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: -4px; }
.doc section { margin-top: clamp(40px, 10vh, 96px); scroll-margin-top: 24px; }
.doc section + section { margin-top: clamp(72px, 14vh, 128px); }
.doc .title {
  margin-top: 8px;
  font-size: clamp(48px, 10vw, 64px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.005em;
}
/* A card with the kit's cut corner, like a lure box label. */
.card {
  margin-top: 32px;
  padding: 32px;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.card .label + * { margin-top: 8px; }
.card * + .label { margin-top: 24px; }
.doc address, .card p, .lead { margin: 0; font-style: normal; font-size: 18px; line-height: 28px; }
.doc address strong { font-weight: 700; }
.lead { margin-top: 32px; }
.doc h3 { margin: 40px 0 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.doc h3 + p, .doc p + p { margin: 12px 0 0; }
.prose p:not(.label, .lead) { font-size: 16px; line-height: 26px; }
.doc .asof { margin-top: 48px; }
