/* Lake View design tokens. Colours are in OKLCH; each is written once as light-dark(light, dark).
   The page follows the visitor's system setting unless data-theme on <html> fixes the choice.
   A browser without light-dark() (before mid-2024) drops the colours and shows its own defaults. */
@layer tokens, base, components;

@layer tokens {
  :root {
    color-scheme: light dark;

    --background: light-dark(oklch(0.9849 0.0024 160.68), oklch(0.1374 0.0152 166.46));
    --foreground: light-dark(oklch(0.2742 0.0208 165.96), oklch(0.9263 0.0099 162.17));
    --card: light-dark(oklch(1 0 0), oklch(0.2119 0.0173 166.78));
    --card-foreground: light-dark(oklch(0.2742 0.0208 165.96), oklch(0.9263 0.0099 162.17));
    --primary: oklch(0.765 0.177 163.22);
    --primary-foreground: oklch(0 0 0);
    --secondary: oklch(0.551 0.0899 200.52);
    --secondary-foreground: oklch(1 0 0);
    --muted: light-dark(oklch(0.9692 0.005 161.7), oklch(0.2742 0.0208 165.96));
    --muted-foreground: light-dark(oklch(0.4453 0.0279 166.55), oklch(0.8504 0.0147 163.22));
    --accent: light-dark(oklch(0.9692 0.005 161.7), oklch(0.2742 0.0208 165.96));
    --accent-foreground: light-dark(oklch(0.2742 0.0208 165.96), oklch(0.9263 0.0099 162.17));
    --destructive: light-dark(oklch(0.577 0.245 27.325), oklch(0.704 0.191 22.216));
    --success: oklch(0.72 0.17 142);
    --warning: oklch(0.75 0.16 85);
    --border: light-dark(oklch(0.9263 0.0099 162.17), oklch(0.2742 0.0208 165.96));
    --input: light-dark(oklch(0.8504 0.0147 163.22), oklch(0.3731 0.0248 166.06));
    --ring: oklch(0.765 0.177 163.22);
    --highlight: oklch(0.845 0.143 164.98);
    --radius: 1.5rem;

    /* Derived for this site: the primary is too light for text or a focus ring on the light background. */
    --link: light-dark(oklch(0.45 0.105 163.22), oklch(0.765 0.177 163.22));
    --focus: light-dark(oklch(0.45 0.105 163.22), oklch(0.845 0.143 164.98));

    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-serif: "Libre Baskerville", ui-serif, Georgia, serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

    --container: 72rem;
    --gutter: 1.5rem;
    --header-height: 4rem;
  }

  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
}
