/* Daisy site tokens. Documented in .claude/skills/daisy-ui/references/tokens.md.
   A new colour token must be added in all three places: :root, the media query, and [data-theme="dark"]. */

:root {
  /* ---------- Colour ---------- */
  --bg: #f7f4fb;
  --bg-raised: #ffffff;
  --ink: #231b2e;
  --ink-soft: #4a4058;
  --muted: #6f6480;
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 22%, transparent);
  --brand: #8e7dea;
  --brand-deep: #6a58cc;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-ink: #6a58cc;
  /* Links are underlined as if by hand (owner, 2026-11-16: "haphazard, almost like someone underlining"): four
     different pen strokes that take turns. */
  --underline-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M1.5 8 C12 6.2 22 8.6 36 7 S60 4.6 74 6.4 S92 8 98.6 3.6' fill='none' stroke='%238e7dea' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --underline-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0.8 5 C8 8.4 18 8 30 7.6 S50 4.4 63 6 S84 9.4 92 7 Q96.5 5.8 99.4 2.8' fill='none' stroke='%238e7dea' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --underline-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M1 6.4 C20 3.8 42 8.4 62 5.4 S88 4.2 99 7.4 M6 10 C30 8.6 58 10.8 94 8.8' fill='none' stroke='%238e7dea' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --underline-4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0.6 3.6 C12 4.8 24 9.4 39 7.6 S58 3.4 72 5.2 S90 9.6 99.4 7.8' fill='none' stroke='%238e7dea' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --accent: #187a4a;
  --accent-ink: #ffffff;
  --cream: #fff3e4;
  --blush: #f9a9c2;
  --sun: #ffd166;
  --ground: rgba(36, 28, 46, 0.14);
  --warm: color-mix(in srgb, var(--cream) 75%, transparent);
  --selected: #6a58cc;
  --on-selected: #ffffff;
  --soil: #c9a27e;
  --soil-shade: #b38a66;
  --hill: #d6eedc;
  --hill-back: #e6f4e9;
  /* Sheets: the tinted, rounded chapters on the home page (home.css "Sheets"). */
  --sheet-peach: #fff0e4;
  --sheet-mint: #e7f6ed;
  --sheet-sun: #fff6da;
  /* Fixed in both themes: the privacy band, the phone's bezel and the Lock Screen demo. */
  --indigo: #211d44;
  --indigo-2: #3b3474;
  --bezel: #1d1824;
  --shadow: 0 1px 2px rgba(35, 27, 46, 0.06), 0 12px 32px rgba(35, 27, 46, 0.08);
  /* Film grain over the whole page (base.css): flat colour reads as paper, not plastic. Still, never animated. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.1 0 0 0 0 0.18 1.8 0 0 0 -0.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-opacity: 0.06;
  /* The band of light across the tour phone's glass (home.css). */
  --glare: rgba(255, 255, 255, 0.3);

  /* ---------- Type ---------- */
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --step--1: clamp(0.83rem, 0.8rem + 0.13vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.43vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.33rem + 0.86vw, 2.1rem);
  --step-3: clamp(2rem, 1.66rem + 1.71vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.86rem + 3.71vw, 5.2rem);

  /* ---------- Space and shape ---------- */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(2rem, 1.57rem + 2.14vw, 3.5rem);
  --space-xl: clamp(4rem, 2.86rem + 5.71vw, 8rem);
  --gutter: clamp(1rem, 0.43rem + 2.86vw, 3rem);
  --max: 1120px;
  --radius: 24px;
  --radius-s: 14px;
  /* Every control in the header is this tall (and never under the 48px touch target). */
  --control: 48px;
  --radius-l: clamp(28px, 1.5rem + 1.4vw, 44px);

  /* ---------- Motion ---------- */
  --beat: 90ms;
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #17131e;
    --bg-raised: #221c2c;
    --ink: #f1ebf7;
    --ink-soft: #d5cce0;
    --muted: #a69ab8;
    --line: color-mix(in srgb, var(--ink) 12%, transparent);
    --line-strong: color-mix(in srgb, var(--ink) 24%, transparent);
    --brand: #a698f2;
    --brand-deep: #7765da;
    --brand-soft: color-mix(in srgb, var(--brand) 16%, transparent);
    --brand-ink: #a698f2;
    /* Links are underlined as if by hand (owner, 2026-11-16: "haphazard, almost like someone underlining"): four
       different pen strokes that take turns. */
    --underline-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M1.5 8 C12 6.2 22 8.6 36 7 S60 4.6 74 6.4 S92 8 98.6 3.6' fill='none' stroke='%23a698f2' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --underline-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0.8 5 C8 8.4 18 8 30 7.6 S50 4.4 63 6 S84 9.4 92 7 Q96.5 5.8 99.4 2.8' fill='none' stroke='%23a698f2' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --underline-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M1 6.4 C20 3.8 42 8.4 62 5.4 S88 4.2 99 7.4 M6 10 C30 8.6 58 10.8 94 8.8' fill='none' stroke='%23a698f2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --underline-4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0.6 3.6 C12 4.8 24 9.4 39 7.6 S58 3.4 72 5.2 S90 9.6 99.4 7.8' fill='none' stroke='%23a698f2' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --ground: rgba(0, 0, 0, 0.35);
    --warm: color-mix(in srgb, var(--brand) 12%, transparent);
    --selected: #a698f2;
    --on-selected: #17131e;
    --soil: #8a6a52;
    --soil-shade: #6e5340;
    --hill: #26352d;
    --hill-back: #1f2b25;
    --sheet-peach: #251d20;
    --sheet-mint: #17241e;
    --sheet-sun: #242017;
    --accent: #6fd9a0;
    --accent-ink: #0f2a1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.8 0 0 0 -0.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    --grain-opacity: 0.045;
    --glare: rgba(255, 255, 255, 0.07);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #17131e;
  --bg-raised: #221c2c;
  --ink: #f1ebf7;
  --ink-soft: #d5cce0;
  --muted: #a69ab8;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 24%, transparent);
  --brand: #a698f2;
  --brand-deep: #7765da;
  --brand-soft: color-mix(in srgb, var(--brand) 16%, transparent);
  --brand-ink: #a698f2;
  /* Links are underlined as if by hand (owner, 2026-11-16: "haphazard, almost like someone underlining"): four
     different pen strokes that take turns. */
  --underline-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M1.5 8 C12 6.2 22 8.6 36 7 S60 4.6 74 6.4 S92 8 98.6 3.6' fill='none' stroke='%23a698f2' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --underline-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0.8 5 C8 8.4 18 8 30 7.6 S50 4.4 63 6 S84 9.4 92 7 Q96.5 5.8 99.4 2.8' fill='none' stroke='%23a698f2' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --underline-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M1 6.4 C20 3.8 42 8.4 62 5.4 S88 4.2 99 7.4 M6 10 C30 8.6 58 10.8 94 8.8' fill='none' stroke='%23a698f2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --underline-4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0.6 3.6 C12 4.8 24 9.4 39 7.6 S58 3.4 72 5.2 S90 9.6 99.4 7.8' fill='none' stroke='%23a698f2' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --ground: rgba(0, 0, 0, 0.35);
  --warm: color-mix(in srgb, var(--brand) 12%, transparent);
  --selected: #a698f2;
  --on-selected: #17131e;
  --soil: #8a6a52;
  --soil-shade: #6e5340;
  --hill: #26352d;
  --hill-back: #1f2b25;
  --sheet-peach: #251d20;
  --sheet-mint: #17241e;
  --sheet-sun: #242017;
  --accent: #6fd9a0;
  --accent-ink: #0f2a1b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.8 0 0 0 -0.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-opacity: 0.045;
  --glare: rgba(255, 255, 255, 0.07);
  color-scheme: dark;
}
