/* Self-hosted fonts — no Google, no external requests. Latin subset. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --bg: #f2efe9;
  --fg: #17150f;
  --dim: #8c877b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06060a;
    --fg: #f2f0ea;
    --dim: #6a6862;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow: hidden;
}
a { color: var(--fg); }
a:hover { color: var(--dim); }

#field { position: fixed; inset: 0; display: block; width: 100%; height: 100%; }

.grad-top, .grad-bottom { position: fixed; left: 0; right: 0; pointer-events: none; z-index: 1; }
.grad-top { top: 0; height: 150px; background: linear-gradient(var(--bg), transparent); }
.grad-bottom { bottom: 0; height: 300px; background: linear-gradient(transparent, var(--bg)); }

.kicker {
  position: fixed; top: 38px; left: clamp(24px, 5vw, 64px); z-index: 2;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg); opacity: 0.75;
}
.foot {
  position: fixed; bottom: 44px; left: clamp(24px, 5vw, 64px); right: clamp(24px, 5vw, 64px); z-index: 2;
  max-width: 640px;
}
.headline {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.14; letter-spacing: -0.01em;
  color: var(--fg); margin: 0;
}
.sub {
  font-size: clamp(12px, 1.4vw, 14px); color: var(--fg); opacity: 0.8; margin-top: 16px;
}
#counter { font-variant-numeric: tabular-nums; }
.note { color: var(--dim); }
