/* ============================================================
   LejlaTimer design tokens — "Dusk & Oat"
   Copied from .claude/skills/lejlatimer-design/tokens/ so the
   site is self-contained. Keep in sync with the skill.
   ============================================================ */

/* ---- webfonts (Google Fonts — no licensed binaries yet) ---- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Karla:ital,wght@0,300..800;1,300..800&family=Spline+Sans+Mono:ital,wght@0,300..700;1,300..700&display=swap');

:root {
  /* ---- primitives: oat paper (warm neutrals) ---- */
  --oat-0: oklch(0.985 0.006 85);
  --oat-1: oklch(0.966 0.009 85);
  --oat-2: oklch(0.942 0.012 86);
  --oat-3: oklch(0.908 0.014 88);
  --oat-line: oklch(0.882 0.013 90);
  --oat-line-strong: oklch(0.826 0.015 92);

  /* ---- primitives: dusk ink (plum-charcoal) ---- */
  --dusk-900: oklch(0.245 0.032 300);
  --dusk-700: oklch(0.36 0.032 300);
  --dusk-500: oklch(0.47 0.028 300);
  --dusk-300: oklch(0.60 0.022 300);

  /* ---- primitives: lavender ---- */
  --lavender-700: oklch(0.42 0.075 295);
  --lavender-600: oklch(0.48 0.078 295);
  --lavender-500: oklch(0.55 0.075 295);
  --lavender-300: oklch(0.72 0.055 295);
  --lavender-150: oklch(0.885 0.032 295);
  --lavender-075: oklch(0.945 0.018 295);

  /* ---- primitives: dawn ochre (awake) ---- */
  --dawn-600: oklch(0.48 0.078 75);
  --dawn-500: oklch(0.55 0.075 75);
  --dawn-150: oklch(0.885 0.035 78);
  --dawn-075: oklch(0.945 0.02 78);

  /* ---- primitives: clay (feed) ---- */
  --clay-600: oklch(0.48 0.078 30);
  --clay-500: oklch(0.55 0.075 30);
  --clay-150: oklch(0.885 0.03 30);
  --clay-075: oklch(0.945 0.016 30);

  /* ---- semantic: surfaces ---- */
  --bg-app: var(--oat-1);
  --surface-card: var(--oat-0);
  --surface-sunken: var(--oat-2);
  --surface-pressed: var(--oat-3);
  --border-subtle: var(--oat-line);
  --border-strong: var(--oat-line-strong);

  /* ---- semantic: text ---- */
  --text-body: var(--dusk-900);
  --text-muted: var(--dusk-500);
  --text-faint: var(--dusk-300);

  /* ---- semantic: accent (lavender) ---- */
  --accent: var(--lavender-600);
  --accent-hover: var(--lavender-700);
  --accent-tint: var(--lavender-075);
  --accent-tint-strong: var(--lavender-150);
  --on-accent: oklch(0.98 0.008 295);

  /* ---- semantic: activities ---- */
  --sleep: var(--lavender-600);
  --sleep-tint: var(--lavender-075);
  --sleep-tint-strong: var(--lavender-150);
  --awake: var(--dawn-600);
  --awake-tint: var(--dawn-075);
  --awake-tint-strong: var(--dawn-150);
  --feed: var(--clay-600);
  --feed-tint: var(--clay-075);
  --feed-tint-strong: var(--clay-150);

  /* ---- semantic: states ---- */
  --focus-ring: oklch(0.55 0.075 295 / 0.4);
  --scrim: oklch(0.245 0.032 300 / 0.4);
  --danger: oklch(0.52 0.11 25);
  color-scheme: light;

  /* ---- typography ---- */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Karla', 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono: 'Spline Sans Mono', 'SF Mono', Menlo, monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 19px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 40px;
  --text-timer: 48px;

  --leading-tight: 1.12;
  --leading-snug: 1.35;
  --leading-normal: 1.55;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --tracking-caps: 0.09em;
  --tracking-normal: 0.005em;

  /* ---- spacing, radii, controls (4px base) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --control-h-sm: 36px;
  --control-h-md: 44px;
  --control-h-lg: 52px;

  /* ---- elevation & motion ---- */
  --shadow-card: 0 1px 2px oklch(0.3 0.03 300 / 0.05), 0 6px 20px oklch(0.3 0.03 300 / 0.06);
  --shadow-raised: 0 2px 6px oklch(0.3 0.03 300 / 0.08), 0 16px 40px oklch(0.3 0.03 300 / 0.1);

  --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-quick: 180ms;
  --duration-soft: 350ms;
}

/* ============ Dusk (dark) theme ============ */
[data-theme="dark"] {
  --bg-app: oklch(0.205 0.02 300);
  --surface-card: oklch(0.248 0.022 300);
  --surface-sunken: oklch(0.175 0.018 300);
  --surface-pressed: oklch(0.295 0.024 300);
  --border-subtle: oklch(0.315 0.022 300);
  --border-strong: oklch(0.385 0.024 300);

  --text-body: oklch(0.93 0.012 300);
  --text-muted: oklch(0.72 0.02 300);
  --text-faint: oklch(0.575 0.02 300);

  --accent: oklch(0.74 0.065 295);
  --accent-hover: oklch(0.8 0.06 295);
  --accent-tint: oklch(0.3 0.038 295);
  --accent-tint-strong: oklch(0.36 0.048 295);
  --on-accent: oklch(0.2 0.03 295);

  --sleep: oklch(0.74 0.065 295);
  --sleep-tint: oklch(0.3 0.038 295);
  --sleep-tint-strong: oklch(0.36 0.048 295);
  --awake: oklch(0.78 0.07 78);
  --awake-tint: oklch(0.3 0.035 78);
  --awake-tint-strong: oklch(0.36 0.045 78);
  --feed: oklch(0.75 0.06 30);
  --feed-tint: oklch(0.3 0.03 30);
  --feed-tint-strong: oklch(0.36 0.04 30);

  --focus-ring: oklch(0.74 0.065 295 / 0.5);
  --scrim: oklch(0.1 0.02 300 / 0.55);
  --danger: oklch(0.7 0.1 25);
  color-scheme: dark;

  --shadow-card: 0 1px 2px oklch(0 0 0 / 0.25), 0 6px 20px oklch(0 0 0 / 0.22);
  --shadow-raised: 0 2px 6px oklch(0 0 0 / 0.3), 0 16px 40px oklch(0 0 0 / 0.32);
}
