/* MRDOTS canonical theme tokens — v2 (2026-07-15 typography refresh)
 * Extracted from live mrdots.us computed styles on 2026-07-12 (PRD §9 one-time token extraction).
 * v2 (owner-directed): body text moves Space Mono → Inter for readability; Space Mono
 * stays as the technical accent (code, data, the canonical CTA); Playfair Display and
 * the full palette are unchanged. Fonts are SELF-HOSTED (no Google Fonts CDN — privacy,
 * deterministic builds, identical rendering everywhere). Copy the fonts/ directory
 * alongside this file in every project.
 * Reuse this file in every MRDOTS project. Do not fork values per-project — change here, copy forward.
 */

/* ── Self-hosted brand fonts (all SIL OFL licensed, latin subsets) ────────── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — custom properties as named on mrdots.us (UNCHANGED in v2) */
  --cream: #F5F0E8;
  --charcoal: #1A1A1A;
  --rust: #C4552A;
  --rust-deep: #9C4522; /* darker rust for WCAG AA: 5.63:1 vs cream (--rust is 3.96:1). Use for accent text/borders on cream and as button backgrounds under cream text. NOT for text on night (3.04:1). First proven in mrdots-client-portal. */
  --gold: #D4A843;
  --mist: #8B9EA8;
  --night: #0D0D0F;
  --glass: rgba(245, 240, 232, 0.06);

  /* Observed usage aliases */
  --bg: var(--night);
  --fg: var(--cream);
  --accent: var(--rust);
  --accent-text: var(--rust-deep); /* accessible accent for small text / button bg (see --rust-deep note) */
  --accent-2: var(--gold);
  --muted: rgba(245, 240, 232, 0.6);
  --hairline: rgba(245, 240, 232, 0.12);

  /* Typography v2 — headings stay Playfair Display 900 w/ tight tracking and a single
   * italic accent word. Body/UI is now Inter (screen-optimized, business-professional
   * readability). Space Mono remains the brand's technical voice via --font-mono:
   * code, data readouts, tickers, stats, and the canonical CTA. */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-accent: "Cormorant Garamond", Georgia, serif;

  --h1-size: 80px;            /* clamp() down responsively */
  --h1-tracking: -0.03em;
  --h2-size: 40px;
  --h2-tracking: -0.02em;
  --kicker-tracking: 0.18em;  /* all-caps section kickers (ABOUT, HELLO) */

  /* Shape — the site uses sharp corners everywhere */
  --radius: 0px;
}

/* Code and data stay monospace — the brand's technical accent survives the body swap */
code, pre, kbd, samp, .mono {
  font-family: var(--font-mono);
}

/* Buttons/CTAs observed: mono, uppercase, wide tracking, rust bg, cream text, square.
 * The canonical CTA keeps Space Mono — it IS the mrdots.us brand button. */
.mrdots-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--rust);
  border: none;
  border-radius: var(--radius);
  padding: 0.9em 1.6em;
  cursor: pointer;
}

/* Light mode: cream page, charcoal/night ink */
@media (prefers-color-scheme: light) {
  :root {
    --bg: var(--cream);
    --fg: var(--night);
    --muted: rgba(13, 13, 15, 0.6);
    --hairline: rgba(13, 13, 15, 0.12);
    --glass: rgba(13, 13, 15, 0.06);
  }
}
