/* Night Yap "Cream Paper" design tokens (2026-10-09). Same values as tokens.json and the app's
 * src/ui/tokens.ts. Light only. Inter 400 / 500 only (Google Fonts). No shadows, no gradients in
 * the UI chrome. See README.md for how to use them. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
  /* ---- surfaces, lowest first */
  --ny-canvas: #f5f1e4;        /* the page: cream paper */
  --ny-surface: #ffffff;       /* cards, tab bar, sheets, buttons (always on cream) */
  --ny-recessed: #e0dbce;      /* sandstone: tracks, segmented control, tiles, ground shadow */
  --ny-scrim: rgba(44, 46, 42, 0.45);
  --ny-scrim-light: rgba(44, 46, 42, 0.2);
  --ny-hairline: #d5d5d4;      /* list separators, field and choice-chip outlines */

  /* ---- text and icons */
  --ny-ink: #2c2e2a;           /* primary text, icons, button outlines (12.1:1 on canvas) */
  --ny-muted: #5e605c;         /* secondary text at any size (5.6:1 on canvas) */
  --ny-faint: #80827f;         /* placeholders, underline rules, inactive rows (3.4:1: never small text) */
  --ny-on-ink: #ffffff;

  /* ---- the one structural accent */
  --ny-green: #8ed462;         /* active tab, toggles, focus, the dot in primary buttons, meter fill, the logo tile */
  --ny-green-soft: #e6f4da;

  /* ---- decorative pops: never text, never a state on their own */
  --ny-coral: #ff705d;         /* action pill, ON AIR, pen and chat dots */
  --ny-sky: #2ba0ff;           /* cringe, sparkles, icon dots */
  --ny-sun: #f5e211;           /* sun disc, laugh, share card, peak sparkle */

  /* ---- states (deep palette tones that pass AA as text on cream and white) */
  --ny-success: #346b1c;  --ny-success-soft: #e6f4da;
  --ny-error: #b3311c;    --ny-error-soft: #ffe6e1;
  --ny-warning: #6b5a00;  --ny-warning-soft: #fbf5c2;
  --ny-info: #1a66b3;     --ny-info-soft: #e0f0ff;

  /* ---- the stage (inside a stage panel only) */
  --ny-stage-top: #2a0f2e;
  --ny-stage-bottom: #120a1f;

  /* ---- type: Inter, 400 and 500 */
  --ny-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ny-weight-regular: 400;
  --ny-weight-medium: 500;
  /* role: size / line height / tracking (all medium unless noted) */
  --ny-display-xl: 500 92px/0.95 var(--ny-font);   --ny-display-xl-tracking: -0.06em;  /* countdown, "Raju is on." */
  --ny-display: 500 72px/0.95 var(--ny-font);      --ny-display-tracking: -0.06em;     /* "That's the show!" */
  --ny-display-md: 500 64px/0.95 var(--ny-font);   --ny-display-md-tracking: -0.06em;  /* onboarding, "Priya." */
  --ny-display-sm: 500 56px/0.95 var(--ny-font);   --ny-display-sm-tracking: -0.06em;  /* tab titles "Archive." */
  --ny-heading: 500 30px/1.2 var(--ny-font);       --ny-heading-tracking: -0.02em;     /* sheet titles */
  --ny-heading-sm: 500 24px/1.25 var(--ny-font);   --ny-heading-sm-tracking: -0.02em;  /* punchline */
  --ny-subheading: 500 20px/1.25 var(--ny-font);   /* section headings, captions, bubbles */
  --ny-body-lg: 400 17px/1.5 var(--ny-font);       /* body copy */
  --ny-body-strong: 500 17px/1.35 var(--ny-font);  /* row titles, buttons, field values */
  --ny-body: 400 15px/1.5 var(--ny-font);          /* secondary body */
  --ny-small: 400 13px/1.45 var(--ny-font);        /* hints, row subtitles (muted) */
  --ny-label: 500 13px/1.25 var(--ny-font);        /* field labels, chips */
  --ny-eyebrow: 500 12px/1.25 var(--ny-font);      --ny-eyebrow-tracking: 0.08em;      /* uppercase */
  --ny-tab: 500 12px/1.2 var(--ny-font);
  --ny-micro: 500 9px/1.2 var(--ny-font);          --ny-micro-tracking: 0.1em;         /* uppercase */

  /* ---- spacing: a 4 px rhythm */
  --ny-space-1: 4px; --ny-space-2: 8px; --ny-space-3: 12px; --ny-space-4: 16px;
  --ny-space-6: 24px; --ny-space-8: 32px; --ny-space-10: 40px; --ny-space-14: 56px;
  --ny-edge: 16px;      /* cards, buttons, tab bar from the screen sides */
  --ny-text-edge: 24px; /* free text from the screen sides */
  --ny-card-pad: 20px;
  --ny-stack: 8px;

  /* ---- radii: sticker-soft */
  --ny-radius-tag: 10px;          /* topic and status tags */
  --ny-radius-tile: 20px;         /* archive night tiles */
  --ny-radius-inner: 28px;        /* rows, captions, bubbles, text areas */
  --ny-radius-group: 32px;        /* grouped lists */
  --ny-radius-card: 40px;         /* content cards, joke card, figure */
  --ny-radius-hero: 50px;         /* hero cards, sheet tops, the guide's 50 */
  --ny-radius-illustration: 63.75px; /* stage panel, illustration containers */
  --ny-radius-pill: 999px;        /* buttons, chips, tab bar */

  /* ---- strokes */
  --ny-stroke-hairline: 1px;
  --ny-stroke-outline: 1.5px;     /* button, toggle and ring outlines (ink) */
  --ny-stroke-focus: 2px;         /* green focus ring, crowd-work card */

  /* ---- sizes */
  --ny-touch: 44px;
  --ny-button-lg: 60px; --ny-button-md: 56px; --ny-button-sm: 48px;
  --ny-tab-bar: 72px;

  /* ---- motion (ms) */
  --ny-instant: 90ms; --ny-fast: 160ms; --ny-base: 240ms; --ny-slow: 380ms; --ny-slower: 560ms;
  --ny-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ny-ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  /* ---- z layers */
  --ny-z-sticky: 20; --ny-z-tab-bar: 30; --ny-z-sheet: 40; --ny-z-toast: 50; --ny-z-overlay: 60;
}
