/* Bromley design system — implements docs/product/bromley-design-direction.md
   §3 (tokens) + §4 (typefaces) + §3 component rules.

   ACCENT: Signal Lime is the §2 recommendation and the default here. To switch
   to the Ember alternative, change ONLY --signal + the p3 override below (a
   one-line swap, per the spec's "build tokens so it's a one-line swap"). This
   is flagged for Geoff — do not finalize lime-vs-ember without his call.

   Self-hosted variable fonts (no CDN dependency; 2 files, preloaded in each
   page head): General Sans = display voice, Geist Mono = system voice. */

@font-face {
  font-family: "General Sans";
  src: url("/static/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Type (§3) — weight 400 everywhere above 40px; the drama is size+tracking. */
  --font-display: "General Sans", "Söhne", "Neue Haas Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-hero: clamp(56px, 8vw, 116px);
  --text-h2: clamp(40px, 5vw, 72px);
  --text-h3: clamp(26px, 2.5vw, 34px);
  --text-body: 20px;
  --text-mono-label: 13px;

  /* Color (§3) */
  --paper: #F7F5F0;
  --ink: #0D0D0C;
  --ink-soft: rgba(13, 13, 12, .64);
  --signal: #C8FF3D;
  --signal-ink: #0D0D0C;
  --paper-on-ink: #F7F5F0;
  --hairline: rgba(13, 13, 12, .14);
  --hairline-dark: rgba(247, 245, 240, .16);

  /* Shape (§3) */
  --radius-pill: 9999px;
  --radius-media: 12px;

  /* Rhythm (§3) */
  --section-pad: clamp(96px, 12vh, 160px);
  --container: 1440px;
  --gutter: clamp(20px, 3vw, 48px);
}

/* display-p3 boost where supported (§3): a punchier lime on wide-gamut screens. */
@supports (color: color(display-p3 1 1 1)) {
  :root { --signal: color(display-p3 .78 1 .24); }
}

/* -------------------------------------------------------------------------
   Buttons — 3 tiers, ALL full-pill (§3). Hover = 2% scale + brightness,
   150ms ease-out; NEVER color-swap to a second hue.
   ------------------------------------------------------------------------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease-out, filter 150ms ease-out;
}
.btn-pill:hover { transform: scale(1.02); filter: brightness(1.05); }
.btn-pill:active { transform: scale(0.99); }
.btn-pill:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Primary = solid signal, ink text (the ONE colored control). */
.btn-pill--primary { background: var(--signal); color: var(--signal-ink); }
/* Secondary = solid ink (on paper) / solid paper (on ink). */
.btn-pill--ink { background: var(--ink); color: var(--paper-on-ink); }
.btn-pill--paper { background: var(--paper); color: var(--ink); }
/* Tertiary/tag = 1px outline, mono uppercase, small. */
.btn-pill--outline {
  background: transparent;
  border-color: var(--hairline);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}
.on-ink .btn-pill--outline { border-color: var(--hairline-dark); color: var(--paper-on-ink); }

/* Tag — the outline pill's static twin (§3). */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  color: var(--ink-soft);
}
.on-ink .tag { border-color: var(--hairline-dark); color: rgba(247, 245, 240, .7); }

/* Mono label — nav, eyebrows, indexes, data callouts, annotations (§3). */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-mono-label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* Reduced motion (§7): kill the transitions. */
@media (prefers-reduced-motion: reduce) {
  .btn-pill { transition: none; }
  .btn-pill:hover, .btn-pill:active { transform: none; }
}
