/* ==========================================================================
   Skaboom Studios — site styles
   Design tokens and components lifted from the Claude Design source so the
   published site matches the approved comps exactly.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.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;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.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;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #100e0c;
  --bg-deep: #0c0b09;
  --surface: #17150f;
  --surface-warm: #1a1611;
  --chip: #201d18;

  --line: #221f1b;
  --line-2: #262320;
  --line-3: #3a362f;
  --line-warm: #3a3227;

  --ink: #f5f1ea;
  --ink-2: #d9d3c8;
  --ink-3: #b8b1a5;
  --muted: #a39c90;
  --muted-2: #8e877b;
  /* Nudged up from the comp's #6f6a61, which measured 3.66:1 on the dark
     backgrounds. #837e75 clears WCAG AA (4.5:1) on bg, deep and surface. */
  --muted-3: #837e75;

  --orange: #ff5a3c;
  --cyan: #38d8e0;
  --yellow: #ffc93c;
  --on-accent: #17150f;

  --display: 'Archivo Black', 'Archivo', Helvetica, Arial, sans-serif;
  --body: 'Archivo', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 40px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--orange); }

/* Body copy links get an underline so they are not colour-only affordances. */
.prose a,
.card-body a,
.note a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 9px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.stack { display: flex; flex-direction: column; }

/* ---------- Logo lockup ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--display);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo-oo {
  display: inline-flex;
  gap: 2px;
  margin: 0 1px;
}
/* Ring colour is set here and the size rules below only touch border-width, so a
   `border` shorthand can never reset the colour back to currentColor. */
.logo-oo i {
  display: block;
  border-radius: 50%;
  box-sizing: border-box;
  border-style: solid;
}
.logo-oo i:first-child { border-color: var(--orange); }
.logo-oo i:last-child { border-color: var(--cyan); }

/* header size */
.logo--lg { font-size: 19px; }
.logo--lg .logo-oo i { width: 16px; height: 16px; border-width: 3.5px; }
.logo--lg .logo-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-left: 9px;
  padding-top: 3px;
}
/* compact size, used on interior pages and in the footer */
.logo--sm { font-size: 15px; }
.logo--sm .logo-oo i { width: 13px; height: 13px; border-width: 3px; }

/* ---------- Site header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header--plain { background: var(--bg-deep); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
/* :not(.btn) so the nav link colour never overrides a button's own colours. */
.nav a:not(.btn) { color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--orange); }

.back-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.back-link:hover { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  font-family: var(--body);
  text-align: center;
}
.btn--primary {
  background: var(--orange);
  color: var(--on-accent);
  font-weight: 700;
}
.btn--primary:hover { background: var(--yellow); color: var(--on-accent); }

.btn--light {
  background: var(--ink);
  color: var(--on-accent);
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
}
.btn--light:hover { background: var(--orange); color: var(--on-accent); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-3);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--mail {
  font-family: var(--mono);
  background: var(--ink);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 24px;
  border-radius: 11px;
  word-break: break-word;
}
.btn--mail:hover { background: var(--cyan); color: var(--on-accent); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

/* ---------- Sections and layout ---------- */
main { flex: 1; }

.section {
  padding: 88px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.section--last { border-bottom: 0; padding-bottom: 80px; }

.wrap { max-width: 1080px; margin: 0 auto; }
.wrap--narrow { max-width: 760px; margin: 0 auto; }
.wrap--mid { max-width: 820px; margin: 0 auto; }
.wrap--wide { max-width: 900px; margin: 0 auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow--cyan { color: var(--cyan); }
.eyebrow--yellow { color: var(--yellow); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.label--muted { color: var(--muted-3); letter-spacing: 0.16em; }
.label--yellow { color: var(--yellow); }

.mono-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-3);
  text-wrap: pretty;
}
.prose--sm { font-size: 15px; color: var(--muted); }

.list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.65;
}
.list li { text-wrap: pretty; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card--lg { border-radius: 16px; padding: 22px 24px; }
.card--pad { padding: 20px 22px; }
.card-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.card-title--16 { font-size: 16px; }
.card-body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}
.card-body--ink { color: var(--ink-3); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
.card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.dot-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex: none;
}
.dot--sm { width: 8px; height: 8px; margin-top: 7px; }
.dot--orange { background: var(--orange); }
.dot--cyan { background: var(--cyan); }
.dot--yellow { background: var(--yellow); }

.note {
  border: 1px dashed var(--line-3);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.callout {
  border: 1px solid var(--line-warm);
  border-radius: 16px;
  padding: 22px 24px;
  background: var(--surface-warm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pre {
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--bg-deep);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-3);
  white-space: pre-wrap;
  overflow-x: auto;
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px var(--gutter) 96px;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow--a {
  width: 520px;
  height: 520px;
  background: var(--orange);
  opacity: 0.13;
  top: -180px;
  right: -80px;
}
.hero-glow--b {
  width: 380px;
  height: 380px;
  background: var(--cyan);
  opacity: 0.1;
  bottom: -200px;
  left: -60px;
}
.hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  padding: 7px 14px;
}
.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  display: block;
  flex: none;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 900px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 620px;
  text-wrap: pretty;
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Game cards ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}
.game {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.game:hover { border-color: var(--line-3); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .game:hover { transform: none; }
}

.game-art {
  height: 230px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line-2);
}
.game-art--a {
  background-color: #1e1b16;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 90, 60, 0.16) 0 12px,
    transparent 12px 24px
  );
}
.game-art--b {
  background-color: #161b1c;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(56, 216, 224, 0.16) 0 12px,
    transparent 12px 24px
  );
}
.game-art svg { width: 100%; height: 100%; }

.game-info {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.game-title {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--chip);
  padding: 5px 10px;
  border-radius: 7px;
}

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}

/* ---------- CTA panel ---------- */
.cta {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  background: var(--surface);
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 640px;
  text-wrap: balance;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px var(--gutter) 52px;
  background: var(--bg-deep);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--orange); }
.footer-about { max-width: 300px; gap: 12px; }
.footer-fine {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Slim footer used on interior pages */
.site-footer--slim { padding: 28px var(--gutter) 36px; }
.footer-slim {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer-slim--narrow { max-width: 760px; margin: 0 auto; }
.footer-slim--mid { max-width: 820px; margin: 0 auto; }
.footer-copy { color: var(--muted-3); font-size: 13px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--orange); }

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-3);
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-3);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 15px;
  font-family: var(--body);
  width: 100%;
  transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 216, 224, 0.14);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-3); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23a39c90' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

/* Live region for the copy-to-clipboard confirmation */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Checklist (internal page) ---------- */
.check {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 15px 17px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.check:hover { border-color: var(--line-3); }
.check input[type='checkbox'] {
  accent-color: var(--orange);
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: none;
  cursor: pointer;
}
.check span { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.check:has(input:checked) span { color: var(--muted-2); text-decoration: line-through; }
.check-list { display: flex; flex-direction: column; gap: 8px; }
code, .code {
  font-family: var(--mono);
  font-size: 0.92em;
  /* Long URLs must break rather than push the page wider. */
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .split { gap: 32px; }
  .section { padding: 64px var(--gutter); }
  .hero { padding: 72px var(--gutter) 68px; }
  .cta { padding: 40px 24px; }
}

@media (max-width: 700px) {
  .site-header { gap: 14px; }
  .nav { gap: 16px; font-size: 13px; }
  /* Drop the secondary nav items on small screens so the CTA always fits. */
  .nav .nav-secondary { display: none; }
  .logo--lg { font-size: 17px; }
  .logo--lg .logo-tag { display: none; }
  .hero-sub { font-size: 17px; }
  .games { grid-template-columns: 1fr; }
  .game-art { height: 190px; }
  .game-info { padding: 22px 20px 24px; }
  .form { padding: 20px; }
  .card--lg, .callout { padding: 18px 20px; }
  .pre { font-size: 12.5px; padding: 16px 18px; }
  .footer-inner { gap: 28px; }
  .btn { width: 100%; }
  .nav .btn, .form-actions .btn, .btn-row .btn { width: auto; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .btn--mail { font-size: 14px; padding: 14px 16px; }
  .footer-slim { gap: 14px; }
}

@media (min-width: 701px) {
  .nav .nav-mobile-only { display: none; }
}

/* ---------- Print (people do print policy pages) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link { display: none; }
  .lede, .prose, .card-body, .list { color: #222; }
  .card, .callout, .pre { border-color: #bbb; background: #fff; }
  a { color: #000; text-decoration: underline; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.85em; }
}
