/* Learning Bakehouse design tokens. One source for the website (front of house) and the platform (the kitchen).
   Link this first, then page CSS. Fonts: ../assets/brand-fonts.css (Allo, Amanda Scrawl Bold) + IBM Plex Mono.
   Theme: set data-theme="light" | "dark" on <html>. Mood: set data-mood="front" on <body> for website pages. */

:root {
  /* Brand */
  --lb-blue: #3E54E2;
  --lb-blue-bright: #5271FF;
  --lb-blue-deep: #2E3FB0;
  --lb-blue-wash: #EEF0FD;
  --lb-lavender: #B6C3FF;
  --lb-sky: #79A9FF;
  --lb-ink: #141414;
  --lb-paper: #FFF8F0;
  --lb-orange: #FF7A3D;        /* the one primary action per screen, nothing else */
  --lb-orange-hover: #FF6A24;
  --lb-apricot: #FFB37A;
  --lb-strip: #3D61FF;         /* the torn nav strip, website and platform */
  --lb-cream: #FAF6EE;         /* text on her black paper; current-page tab on the strip */
  --lb-black: #0E0F12;         /* her black paper: front of house, and the dark mode page */
  --torn-edge: polygon(0.6% 14%, 6% 6%, 12% 11%, 19% 4%, 27% 10%, 34% 5%, 42% 12%, 50% 4%, 57% 10%, 65% 3%, 73% 11%, 80% 5%, 88% 10%, 94% 4%, 99.4% 12%, 100% 40%, 99.2% 62%, 99.8% 88%, 94% 95%, 87% 90%, 80% 97%, 72% 91%, 64% 98%, 56% 92%, 48% 97%, 40% 91%, 32% 97%, 24% 92%, 16% 98%, 8% 92%, 0.4% 96%, 0 70%, 0.8% 45%); /* clip-path for the torn strip */

  /* The six steps: tint for covers, chips and map nodes; deep for text on the tint. Never for chrome. */
  --step-find: #C2D6FF;   --step-find-deep: #1F3A8A;
  --step-try: #E3D6FF;    --step-try-deep: #4B2A8C;
  --step-join: #FFC6AD;   --step-join-deep: #8A3412;
  --step-grow: #A9E5BB;   --step-grow-deep: #155C33;
  --step-finish: #FFE9A8; --step-finish-deep: #7A5200;
  --step-return: #FFB37A; --step-return-deep: #7A3A00;

  /* Status */
  --status-flowing: #1E7A45;
  --status-wobbly: #8A6200;
  --status-stuck: #141414;
  --status-ask: #4B2A8C;
  --success: #1E7A45;
  --danger: #C2362B;

  /* Surfaces, light */
  --bg: #FFFFFF;
  --surface: #F7F8FC;
  --raised: #FFFFFF;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.16);
  --text: #141414;
  --muted: #5E6272;
  --accent: var(--lb-blue);
  --accent-wash: var(--lb-blue-wash);
  --on-accent: #FFFFFF;
  --step-tint-strength: 1;

  /* Type */
  --font-display: "Allo", system-ui, sans-serif;
  --font-body: "Allo", system-ui, sans-serif;
  --font-hand: "Amanda Scrawl Bold", "Allo", cursive;   /* at most 2 small human notes per screen */
  --font-label: "IBM Plex Mono", ui-monospace, monospace; /* tiny labels only */
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-22: 22px;
  --fs-28: 28px; --fs-36: 36px; --fs-48: 48px; --fs-64: 64px;
  --lh-tight: 1.05; --lh-snug: 1.2; --lh-body: 1.5;

  /* Space, radius, depth, motion */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  /* Depth: soft shadows and glows are welcome (Amanda loves them, like the glowing oven on Events).
     Hard offset ink shadows (5px 5px ink) stay retired: too "vibe coded".
     BANNED: the left-edge line highlight. No coloured stripe down the left of a card, row or callout
     (border-left accents, ::before bars, inset left shadows). Use a full hairline, a tint, or a small step dot instead. */
  --shadow-none: none;
  --shadow-soft: 0 1px 2px rgba(14, 15, 18, 0.04), 0 8px 24px -12px rgba(14, 15, 18, 0.12);  /* resting cards */
  --shadow-hover: 0 18px 50px -24px rgba(62, 84, 226, 0.35);                                /* hover lift, soft and blue */
  --shadow-overlay: 0 30px 80px -20px rgba(14, 15, 18, 0.35);                               /* sheets and dialogs */
  --glow-blue: 0 0 0 1px rgba(82, 113, 255, 0.25), 0 0 32px rgba(82, 113, 255, 0.35);       /* live, now, selected */
  --glow-warm: 0 0 28px rgba(255, 154, 92, 0.55);                                           /* the oven: timers, "on now" */
  --text-glow-warm: 0 0 10px rgba(255, 122, 61, 0.7);
  --focus-ring: rgba(62, 84, 226, 0.35);
  --scrim: rgba(14, 15, 18, 0.55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms; --t-base: 240ms; --t-slow: 420ms;
  --tap: 44px;   /* minimum touch target */
}

[data-theme="dark"] {
  --bg: #0E0F12;
  --surface: #17181D;
  --raised: #1F2027;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #F4F1EA;
  --muted: #A3A6B4;
  --accent: var(--lb-blue-bright);
  --accent-wash: #1D2140;
  --on-accent: #FFFFFF;
  --step-tint-strength: 0.85;
  --status-flowing: #7FD6A0;
  --status-wobbly: #F2CF6B;
  --status-stuck: #F4F1EA;
  --status-ask: #C8BEFF;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -12px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 18px 50px -24px rgba(82, 113, 255, 0.45);
  --focus-ring: rgba(82, 113, 255, 0.5);
  --scrim: rgba(0, 0, 0, 0.65);
}

/* Front of house (the website): her black paper in both themes. Works on <body> or on any one section. */
[data-mood="front"] {
  --bg: var(--lb-black);
  --surface: #17181D;
  --raised: #1F2027;
  --line: rgba(250, 246, 238, 0.14);
  --line-strong: rgba(250, 246, 238, 0.28);
  --text: var(--lb-cream);
  --muted: rgba(250, 246, 238, 0.72);
  --accent: var(--lb-blue-bright);
  --accent-wash: #1D2140;
  --step-tint-strength: 1;
  --status-flowing: #7FD6A0;
  --status-wobbly: #F2CF6B;
  --status-stuck: #F4F1EA;
  --status-ask: #C8BEFF;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-base: 0ms; --t-slow: 0ms; }
}
