/* Manhunt site. Dark-first: a night game in the park. Tokens follow docs/design.md. */
:root {
  --bg: #0A0A0D;
  --surface: #15151B;
  --surface2: #1E1E27;
  --line: #2A2A35;
  --text: #F5F5F7;
  --muted: #9A9AA8;
  --hunter: #FF4D2E;
  --runner: #2EE6A6;
  --expose: #FFD23F;
  --zone: #FF3355;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --radius: 20px;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--hunter); color: #fff; }
:focus-visible { outline: 3px solid var(--expose); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

.display, h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
.eyebrow {
  font: 700 13px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.top.scrolled, html:not(.js) .top {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  border: 0;
  font: 800 18px/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(.3,1.6,.5,1), box-shadow 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-hunter { background: var(--hunter); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 77, 46, 0.7); }
.btn-hunter:hover { box-shadow: 0 14px 36px -10px rgba(255, 77, 46, 0.9); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface2); }

/* App Store button, drawn to match Apple's black badge. */
.appstore {
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px #A6A6A6;
  transition: transform 0.15s cubic-bezier(.3,1.6,.5,1), box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.appstore:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px #fff; }
.appstore:active { transform: scale(0.97); }
.appstore svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1; }
.appstore small { font: 500 11px/1 var(--body); letter-spacing: 0.02em; margin-bottom: 3px; }
.appstore b { font: 600 22px/1 var(--body); letter-spacing: -0.02em; }
.appstore.sm { height: 40px; padding: 0 12px 0 10px; border-radius: 10px; gap: 7px; }
.appstore.sm svg { width: 18px; height: 18px; }
.appstore.sm small { font-size: 8px; margin-bottom: 2px; }
.appstore.sm b { font-size: 15px; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; }
.foot .brand { color: var(--text); }
.foot a:hover { color: var(--text); }

/* ------------------------------------------------------------ reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ prose pages (privacy, support) */
.doc { padding: 56px 0 24px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 9vw, 64px); margin: 10px 0 14px; }
.doc .lede { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc h3 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #D6D6DE; }
.doc ul { padding-left: 22px; margin: 10px 0 16px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--hunter); }
.doc a { color: var(--runner); text-underline-offset: 3px; }
.doc a.btn { color: #fff; text-decoration: none; }
.doc strong { color: var(--text); }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 8px;
}
.callout ul { margin: 0; padding-left: 20px; }
.callout li { margin: 8px 0; }
.callout li::marker { color: var(--runner); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
