/* Design tokens. Values only -- no selectors beyond :root.
   Moved verbatim from style.css; P3 replaces the values against the
   design canvas. If the rendered page changed when this moved, something
   moved that should not have. */

:root {
  /* Safe Area Variables with Mobile Inset Fallbacks */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --header-height: 56px;

  /* Type scale, by role rather than by size.
     
     iOS body text is 17px and a standalone PWA gets no Dynamic Type, so the
     app has to set a comfortable size itself -- the reading text used to be
     13px and the detail rows 11px, which is 76% and 65% of the platform's
     body size, and it read as small on a phone because it was.
     
     Only the text that is actually READ is here. Chips, badges and labels
     (SEE, LANDMARK, weekday, Booked) stay small on purpose: they are scanned,
     not read, and enlarging them would spend column width on furniture. */
  --text-body: 15px;     /* card notes and descriptions */
  --text-detail: 14px;   /* label-and-value rows: Transit, Hours, Spend */
  --text-meta: 12.5px;   /* rating, opening state, attribution */

  /* Gothic Noir -- sourced from Figma's color-combinations library
     (black #000000, light gray #d1d0d0, taupe #988686, deep taupe #5c4e4e).
     Only these four are literal; every other value below is a color-mix()
     derived from them, so the whole ramp stays traceable to the source. */
  --primary: #000000;
  --primary-container: #5c4e4e;
  --primary-fixed: color-mix(in oklch, #000000 12%, white);
  --primary-fixed-dim: color-mix(in oklch, #000000 22%, white);
  --on-primary: #ffffff;
  --on-primary-container: #ffffff;

  --secondary: #5c4e4e;
  --secondary-container: #988686;
  --secondary-fixed: color-mix(in oklch, #988686 25%, white);
  --on-secondary: #ffffff;

  --tertiary: #988686;
  --tertiary-container: color-mix(in oklch, #988686 65%, white);
  --tertiary-fixed: color-mix(in oklch, #988686 18%, white);

  --background: color-mix(in oklch, #d1d0d0 70%, white);
  --surface: #ffffff;
  --surface-dim: color-mix(in oklch, #d1d0d0 85%, black);
  --surface-bright: #fefefe;
  --surface-container-lowest: #ffffff;
  --surface-container-low: color-mix(in oklch, #d1d0d0 30%, white);
  --surface-container: color-mix(in oklch, #d1d0d0 55%, white);
  --surface-container-high: color-mix(in oklch, #d1d0d0 80%, white);
  --surface-container-highest: #d1d0d0;

  --on-surface: #000000;
  --text-secondary: #5c4e4e;   /* referenced by .modal-subtitle since forever; never defined until now */
  --on-surface-variant: #5c4e4e;
  --outline: #988686;
  --text-muted: var(--outline);        /* referenced 8x (app.js empty-states, style.css:2724) with no fallback in most call sites; never defined until now */
  --border-light: var(--outline-variant); /* referenced 2x (app.js reel-import inputs) with no fallback; never defined until now */
  --outline-variant: color-mix(in oklch, #988686 25%, white);

  /* Semantic roles. Derived from the same oklch family as the category
     accents so notices belong to this system rather than importing a second
     palette -- which is what the Tailwind-ish hexes scattered through
     style.css amounted to. */
  --success: oklch(0.50 0.12 160);
  --success-surface: oklch(0.96 0.025 160);
  --success-border: oklch(0.88 0.07 160);

  --warning: oklch(0.45 0.11 70);
  --warning-surface: oklch(0.95 0.055 85);
  --warning-border: oklch(0.87 0.09 85);

  --danger: oklch(0.50 0.16 25);
  --danger-surface: oklch(0.96 0.03 25);
  --danger-border: oklch(0.88 0.09 25);

  /* These three carried an off-palette hue (blue/green tint) even at very
     low chroma -- rotated to the same warm-neutral family (~30) as the real
     palette's taupe tones rather than a color never seen anywhere else. */
  --neutral-strong: oklch(0.45 0.02 30);
  --surface-inverse: oklch(0.22 0.015 30);
  --scrim: oklch(0.12 0.01 30);

  /* Category Badges -- a monochrome ramp derived from the real palette
     (black, deep taupe, taupe, and one derived mid-taupe step between them)
     instead of a rainbow of hues. Categories stay distinguishable by
     lightness, not hue, so nothing here falls outside the palette. */
  --badge-see: #000000;
  --badge-eat: #5c4e4e;
  --badge-transit: #7f6f6f;
  --badge-shop: #988686;

  /* Metro Line Accent Dots */
  --hk-red: #d92c2a;
  --hk-blue: #0073c4;
  --hk-green: #00874c;
  --hk-orange: #f59e0b;

  /* One font family everywhere: San Francisco (SF Pro) via the system stack,
     replacing the three separate web fonts (Plus Jakarta Sans, Instrument
     Serif, JetBrains Mono) this app shipped with before. --font-mono uses SF
     Mono -- the monospace member of the same San Francisco superfamily, not
     a third-party face -- so "single font" holds even for tabular/code text. */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", -apple-system, monospace;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(20, 32, 27, 0.05);
  --shadow-card: 0 4px 20px rgba(20, 32, 27, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(20, 32, 27, 0.12);

  --nav-height: 64px;
  --card-pad: 14px;   /* place-card padding; the media slot bleeds by this */
}

/* Google Material Symbols Outlined (Stitch Settings) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
