/* ============================================================================
   PitStop — Design System Foundations  ("Dots" palette)
   Palette source of truth: packages/tokens/tokens.css (@pitstop/tokens)
   ----------------------------------------------------------------------------
   Drop this file in and use the semantic CSS variables below. The app ships a
   LIGHT and a DARK palette; light is the documented default in the stylesheet,
   dark is the product's shipping default (set on <html class="dark">).
   Fonts (all Google Fonts — load via the <link> in your <head>):
     Manrope            — UI / body / headings  (400–800, used VERY heavy)
     DM Serif Display   — editorial display serif (rare, for big moments)
     JetBrains Mono     — kickers, stat labels, micro-mono
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ----------------------------------------------------------------------------
   1. PALETTE TOKENS — imported, never copied
   The light/dark tables live once, in packages/tokens/tokens.css (the same
   file the app's Tailwind @theme imports). design-system/tokens.css is a
   symlink to it; the styleguide build copies the real file into dist/. A
   hand-kept copy used to live here and drifted (dark --destructive, --on-type…).
---------------------------------------------------------------------------- */
@import url('tokens.css');

/* ----------------------------------------------------------------------------
   2. BASE TYPOGRAPHY
   PitStop leans on Manrope at heavy weights. Headings are font-black (800),
   tight tracking. Body is 500/600. Micro labels are mono sentence case ("kicker",
   #620 T1); only short fixed labels (bottom nav, primary buttons) stay uppercase.
---------------------------------------------------------------------------- */
:root {
  --font-sans:  'Manrope', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
}

body {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

/* Display / headings — heavy, tight, set in Manrope ----------------------- */
.t-display { font-family: var(--font-sans); font-weight: 800; font-size: 3rem;    line-height: 1.02; letter-spacing: -0.03em; }
h1, .t-h1  { font-family: var(--font-sans); font-weight: 800; font-size: 2rem;    line-height: 1.08; letter-spacing: -0.02em; }
h2, .t-h2  { font-family: var(--font-sans); font-weight: 800; font-size: 1.5rem;  line-height: 1.12; letter-spacing: -0.02em; }
h3, .t-h3  { font-family: var(--font-sans); font-weight: 800; font-size: 1.125rem;line-height: 1.2;  letter-spacing: -0.01em; }
.t-serif   { font-family: var(--font-serif); font-weight: 400; font-size: 2.25rem;line-height: 1.05; }

/* Body --------------------------------------------------------------------- */
p, .t-body { font-family: var(--font-sans); font-weight: 500; font-size: 0.9375rem; line-height: 1.55; }
.t-body-strong { font-weight: 700; }
.t-small   { font-size: 0.8125rem; font-weight: 600; }

/* Mono kicker — the signature micro-label --------------------------------- */
/* #620 T1: sentence case at 11px with light tracking, so long, variable
   labels ("Today · Thu 20 May · Day 2") stay readable at phone width and
   200% text. T2: small kickers use ink/muted-ink — ember at this size fails
   WCAG AA in the light theme (4.02:1); keep ember for icons, dots and bold
   text >= 14px. */
.kicker {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.6875rem;         /* 11px */
  color: hsl(var(--muted-foreground));
}
/* Short, fixed labels only (bottom nav, a one-word status): the old caps register. */
.kicker-caps {
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.5625rem;         /* 9px */
  color: hsl(var(--muted-foreground));
}

/* Stat numerals & their labels (used on data cards) ----------------------- */
.stat-value { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: hsl(var(--muted-foreground)); }

/* ----------------------------------------------------------------------------
   3. BRAND UTILITIES
---------------------------------------------------------------------------- */
/* Subtle dot-grid backdrop — render behind any screen ---------------------- */
.bg-dot-grid {
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--foreground) / 0.05) 1px, transparent 0);
  background-size: 22px 22px;
}

/* Canonical card --------------------------------------------------------- */
.ps-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
