/* Stunt Studios site styles.
   Brand rules (Brand Reference, 1 Nov 2026): white page, black text, signal red only in the logo's dot,
   Archivo Expanded Bold for headings and normal-width Archivo for text.
   Free Kick Duel keeps its own navy, amber and green, but only inside its own card. */

/* Archivo, self-hosted (SIL Open Font License, see assets/fonts/OFL.txt). One variable file with
   width 62-125% and weight 100-900 axes, Latin subset, from @fontsource-variable/archivo 5.3.0.
   Other characters fall back to Arial. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #000000;
  --paper: #FFFFFF;
  --night: #111214;
  --muted: #4A4F55;
  --line: #E2E2DE;
  --soft: #F5F5F3;

  --font: "Archivo", Arial, Helvetica, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 68ch; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 28px; padding-block: 18px;
}
.brand { display: block; line-height: 0; padding: 6px 0; }
.brand img { width: 184px; height: auto; } /* above the 160 px minimum for the horizontal logo */
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; }
.site-nav a { font-weight: 600; text-decoration: none; padding-block: 10px; display: inline-block; border-bottom: 2px solid transparent; line-height: 1.2; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Sections */
main { display: block; }
.section { padding-block: clamp(40px, 6vw, 80px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; align-content: start; margin-bottom: clamp(20px, 3vw, 32px); }

.hero { padding-block: clamp(48px, 9vw, 120px) clamp(8px, 2vw, 24px); }
.hero h1 { max-width: 18ch; }
.hero p { margin-top: 20px; font-size: 1.125rem; }

.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(8px, 2vw, 16px); display: grid; gap: 14px; }
.page-head p { max-width: 62ch; font-size: 1.0625rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
}
.btn:hover { background: #2A2C30; border-color: #2A2C30; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--soft); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Featured game: Free Kick Duel, in the game's own palette */
.game-fkd {
  --fkd-navy: #19232D;
  --fkd-navy-2: #222F3C;
  --fkd-amber: #F3C144;
  --fkd-green: #38B858;
  background: var(--fkd-navy); color: #FFFFFF;
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.game-fkd :focus-visible { outline-color: var(--fkd-amber); }
.game-fkd__art { background: #0E1116; }
.game-fkd__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-fkd__body { padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; align-content: center; }
.game-fkd__title { display: flex; align-items: center; gap: 14px; }
.game-fkd__title img { width: 56px; height: 56px; flex: none; }
.game-fkd .eyebrow { color: var(--fkd-amber); }
.game-fkd p { color: #E4E9EE; }
.game-fkd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: #E4E9EE; }
.game-fkd li { padding-left: 20px; position: relative; }
.game-fkd li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--fkd-green); }
.game-fkd .btn { background: var(--fkd-amber); border-color: var(--fkd-amber); color: var(--fkd-navy); }
.game-fkd .btn:hover { background: #FFD25E; border-color: #FFD25E; }
.game-fkd .btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.55); }
.game-fkd .btn--ghost:hover { background: var(--fkd-navy-2); border-color: #FFFFFF; }
.game-fkd .soon { font-size: 0.92rem; color: #C3CCD5; }
@media (min-width: 900px) {
  .game-fkd { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .game-fkd__art img { height: 100%; }
}

/* Upcoming game card (Rudis); hidden until its Steam page exists */
.game-next {
  margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px); display: grid; gap: 12px;
}
.game-next[hidden] { display: none; }

/* Call-out strip */
.strip { background: var(--soft); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; }
@media (min-width: 760px) {
  .strip { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* Fact sheets */
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
}

/* Two columns */
.cols { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Jump links on the press page */
.jump { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.jump a:hover { border-color: var(--ink); }

/* Logo boards */
.boards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .boards { grid-template-columns: 2fr 2fr 1fr 1fr; } }
.board { margin: 0; display: grid; gap: 8px; align-content: start; }
.board__art { border: 1px solid var(--line); border-radius: 10px; height: 150px; display: grid; place-items: center; padding: 28px; background: var(--paper); }
.board__art--night { background: var(--night); border-color: var(--night); }
.board__art img { max-height: 100%; width: auto; max-width: 100%; }
.board__art--wide img { width: 100%; max-width: 280px; height: auto; }
.board figcaption { font-size: 0.9rem; color: var(--muted); }

/* Media grids */
.media { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .media { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .media--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.media figure, .covers figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.media img, .covers img { width: 100%; border-radius: 8px; background: var(--soft); }
.media figcaption, .covers figcaption { font-size: 0.92rem; color: var(--muted); }
.media figcaption a, .covers figcaption a { color: var(--ink); font-weight: 600; }
.covers { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
@media (min-width: 760px) { .covers { grid-template-columns: 2.2fr 0.85fr 1fr; } }
.covers figure:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .covers figure:first-child { grid-column: auto; } }

.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.downloads li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.downloads a { font-weight: 700; }
.downloads span { color: var(--muted); font-size: 0.92rem; }

.subhead { margin-top: clamp(32px, 5vw, 48px); margin-bottom: 16px; }

/* Long-form text: privacy policy */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose code { font-size: 0.9em; background: var(--soft); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.prose th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.prose td:first-child { font-weight: 700; white-space: nowrap; padding-right: 18px; }
.note-box { border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 6px; padding: 14px 18px; margin: 0 0 1.5em; background: var(--soft); }

/* 404 */
.not-found { padding-block: clamp(64px, 12vw, 160px); display: grid; gap: 18px; justify-items: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); padding-block: 32px 40px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; padding-block: 6px; display: inline-block; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { color: var(--muted); display: grid; gap: 4px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.game-fkd h3, .game-next h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.game-fkd .eyebrow { margin-bottom: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.strip > div { display: grid; gap: 8px; }
.site-footer .legal p + p, .strip p + p { margin-top: 0; }

/* Phones: stack the privacy table's rows instead of scrolling sideways */
@media (max-width: 639px) {
  .prose table { min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr, .prose td { display: block; }
  .prose tr { padding-block: 10px; border-bottom: 1px solid var(--line); }
  .prose td { border: 0; padding: 0; }
  .prose td:first-child { white-space: normal; margin-bottom: 2px; }
}
