/* Shared design tokens · website + app · draft v0.1 (9 Nov 2026)
   Values are HSL channels, same format as client/src/index.css: use hsl(var(--primary)) or hsl(var(--primary) / 0.2).
   Existing app variable names are kept; variables marked NEW are proposed additions.
   Generated from src/tokens_build.py. Edit there, not here.
   MODEL: colour scheme x mode. Put both on <html>:
     scheme: (none) or .theme-standard / [data-scheme=standard] = Standard;  .theme-ocean / [data-scheme=ocean] = Ozean
     mode:   (none) = light;  .dark / [data-mode=dark] = dark
   e.g. <html class="theme-ocean dark"> or <html data-scheme="ocean" data-mode="dark">.
   Fonts, type scale and radius never change per scheme or mode.
   FONTS (decided): self-host only DM Sans, Newsreader, JetBrains Mono; files and OFL.txt in landing/fonts/<family>/. */

:root {
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif; /* app today: Georgia */
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  /* web type scale */
  --text-display: clamp(2.25rem, 5.5vw + 1rem, 3.75rem); --lh-display: 1.08;
  --text-h2: clamp(1.75rem, 3vw + 1rem, 2.625rem); --lh-h2: 1.15;
  --text-h3: 1.125rem; --lh-h3: 1.3;
  --text-lead: 1.1875rem; --lh-lead: 1.55;
  --text-body: 1.0625rem; --lh-body: 1.6;
  --text-small: 0.9375rem; --text-caption: 0.8125rem;
  /* app type scale (px at 16px root) */
  --app-page-title: 1.5rem; --app-page-title-md: 1.875rem; --app-wordmark: 1.25rem; --app-title-lg: 1.125rem;
  --app-title: 0.875rem; --app-body: 0.875rem; --app-meta: 0.75rem; --app-micro: 0.6875rem;
  --serif-min-size: 1.25rem; /* never set serif below 20px */
  --text-min: 0.6875rem; /* DECIDED: 11px is the smallest text size anywhere */
  --radius: 0.5rem;
}

/* Standard (teal) · light · keep (website default) */
:root,
.theme-standard,
[data-scheme="standard"] {
  color-scheme: light;
  --background: 210 20.0% 98.0%; /* surface #F9FAFB */
  --foreground: 216 24.6% 12.0%; /* text #171D26 */
  --card: 0 0.0% 100.0%; /* surface-raised #FFFFFF */
  --card-foreground: 216 24.6% 12.0%; /* text-on-raised #171D26 */
  --muted: 190 20.0% 94.1%; /* surface-alt #EDF2F3 */
  --muted-foreground: 216 13.7% 38.6%; /* text-muted #556070 */
  --border: 206 13.7% 90.0%; /* border #E2E6E9 */
  --input: 210 11.0% 57.3%; /* border-strong #86929E */
  --primary: 173 59.5% 30.0%; /* primary #1F7A70 */
  --primary-foreground: 0 0.0% 100.0%; /* primary-contrast #FFFFFF */
  --primary-hover: 173 64.1% 25.1%; /* primary-hover #17695F */
  --accent: 171 31.7% 92.0%; /* accent-surface #E4F1EF */
  --accent-foreground: 216 24.6% 12.0%; /* accent-surface-text #171D26 */
  --highlight: 42 100.0% 65.1%; /* highlight #FFC94D */
  --highlight-foreground: 216 24.6% 12.0%; /* highlight-contrast #171D26 */
  --inverse: 173 68.1% 18.4%; /* inverse #0F4F48 */
  --inverse-foreground: 165 47.1% 93.3%; /* inverse-text #E6F6F2 */
  --ring: 173 64.1% 25.1%; /* focus #17695F */
  --success: 146 62.7% 29.4%; /* success #1C7A45 */
  --warning: 35 100.0% 30.2%; /* warning #9A5B00 */
  --destructive: 0 66.4% 46.7%; /* error #C62828 */
  --destructive-foreground: 0 0.0% 100.0%; /* error-contrast #FFFFFF */
  --destructive-text: 4 76.5% 40.0%; /* error-text #B42318 */
  --card-border: 206 13.7% 90.0%;
  --popover: 0 0.0% 100.0%;
  --popover-foreground: 216 24.6% 12.0%;
  --popover-border: 206 13.7% 90.0%;
  --secondary: 190 20.0% 94.1%;
  --secondary-foreground: 216 24.6% 12.0%;
}

/* Ozean (blue) · light · keep */
.theme-ocean,
[data-scheme="ocean"] {
  color-scheme: light;
  --background: 210 12.5% 96.9%; /* surface #F6F7F8 */
  --foreground: 217 21.3% 12.0%; /* text #181D25 */
  --card: 0 0.0% 100.0%; /* surface-raised #FFFFFF */
  --card-foreground: 217 21.3% 12.0%; /* text-on-raised #181D25 */
  --muted: 217 25.0% 93.7%; /* surface-alt #EBEEF3 */
  --muted-foreground: 220 10.6% 39.0%; /* text-muted #59606E */
  --border: 223 11.5% 88.0%; /* border #DDDFE4 */
  --input: 218 10.4% 58.4%; /* border-strong #8A92A0 */
  --primary: 220 70.2% 50.0%; /* primary #2662D9 */
  --primary-foreground: 0 0.0% 100.0%; /* primary-contrast #FFFFFF */
  --primary-hover: 220 70.8% 41.6%; /* primary-hover #1F51B5 */
  --accent: 217 72.4% 94.3%; /* accent-surface #E6EEFB */
  --accent-foreground: 217 21.3% 12.0%; /* accent-surface-text #181D25 */
  --highlight: 38 90.4% 55.1%; /* highlight #F4A825 */
  --highlight-foreground: 217 21.3% 12.0%; /* highlight-contrast #181D25 */
  --inverse: 222 29.9% 15.1%; /* inverse #1B2232 */
  --inverse-foreground: 220 27.3% 91.4%; /* inverse-text #E3E7EF */
  --ring: 220 70.8% 41.6%; /* focus #1F51B5 */
  --success: 146 62.7% 29.4%; /* success #1C7A45 */
  --warning: 35 100.0% 30.2%; /* warning #9A5B00 */
  --destructive: 0 66.4% 46.7%; /* error #C62828 */
  --destructive-foreground: 0 0.0% 100.0%; /* error-contrast #FFFFFF */
  --destructive-text: 4 76.5% 40.0%; /* error-text #B42318 */
  --card-border: 223 11.5% 88.0%;
  --popover: 0 0.0% 100.0%;
  --popover-foreground: 217 21.3% 12.0%;
  --popover-border: 223 11.5% 88.0%;
  --secondary: 217 25.0% 93.7%;
  --secondary-foreground: 217 21.3% 12.0%;
}

/* Standard (teal) · dark · keep (dark mode of Standard) */
.dark,
[data-mode="dark"] {
  color-scheme: dark;
  --background: 210 20.0% 7.8%; /* surface #101418 */
  --foreground: 210 15.4% 94.9%; /* text #F0F2F4 */
  --card: 213 18.6% 11.6%; /* surface-raised #181D23 */
  --card-foreground: 210 15.4% 94.9%; /* text-on-raised #F0F2F4 */
  --muted: 212 19.4% 13.1%; /* surface-alt #1B2128 */
  --muted-foreground: 211 11.6% 64.5%; /* text-muted #9AA4AF */
  --border: 214 14.3% 19.2%; /* border #2A3038 */
  --input: 211 11.6% 42.2%; /* border-strong #5F6B78 */
  --primary: 174 55.4% 43.9%; /* primary #32AEA2 */
  --primary-foreground: 172 60.0% 7.8%; /* primary-contrast #08201D */
  --primary-hover: 174 49.2% 52.9%; /* primary-hover #4CC2B6 */
  --accent: 173 30.9% 15.9%; /* accent-surface #1C3532 */
  --accent-foreground: 210 15.4% 94.9%; /* accent-surface-text #F0F2F4 */
  --highlight: 42 100.0% 65.1%; /* highlight #FFC94D */
  --highlight-foreground: 216 24.6% 12.0%; /* highlight-contrast #171D26 */
  --inverse: 173 58.6% 11.4%; /* inverse #0C2E2A */
  --inverse-foreground: 165 47.1% 93.3%; /* inverse-text #E6F6F2 */
  --ring: 174 49.2% 52.9%; /* focus #4CC2B6 */
  --success: 145 54.6% 59.4%; /* success #5FD08F */
  --warning: 37 86.5% 62.4%; /* warning #F2B24C */
  --destructive: 0 68.2% 53.1%; /* error #D93636 */
  --destructive-foreground: 0 0.0% 100.0%; /* error-contrast #FFFFFF */
  --destructive-text: 5 100.0% 75.1%; /* error-text #FF8A80 */
  --card-border: 214 14.3% 19.2%;
  --popover: 213 18.6% 11.6%;
  --popover-foreground: 210 15.4% 94.9%;
  --popover-border: 214 14.3% 19.2%;
  --secondary: 212 19.4% 13.1%;
  --secondary-foreground: 210 15.4% 94.9%;
}

/* Ozean (blue) · dark · keep (dark mode of Ozean) */
.theme-ocean.dark,
.theme-ocean[data-mode="dark"],
[data-scheme="ocean"].dark,
[data-scheme="ocean"][data-mode="dark"] {
  color-scheme: dark;
  --background: 219 33.3% 8.2%; /* surface #0E131C */
  --foreground: 218 30.8% 94.9%; /* text #EEF1F6 */
  --card: 220 29.0% 12.2%; /* surface-raised #161C28 */
  --card-foreground: 218 30.8% 94.9%; /* text-on-raised #EEF1F6 */
  --muted: 219 28.6% 13.7%; /* surface-alt #19202D */
  --muted-foreground: 217 17.2% 66.9%; /* text-muted #9CA7B9 */
  --border: 220 25.7% 20.6%; /* border #273042 */
  --input: 218 16.1% 43.9%; /* border-strong #5E6B82 */
  --primary: 220 83.1% 65.1%; /* primary #5C8EF0 */
  --primary-foreground: 220 71.4% 11.0%; /* primary-contrast #081530 */
  --primary-hover: 220 85.9% 72.2%; /* primary-hover #7BA4F5 */
  --accent: 219 44.7% 18.4%; /* accent-surface #1A2944 */
  --accent-foreground: 218 30.8% 94.9%; /* accent-surface-text #EEF1F6 */
  --highlight: 38 90.4% 55.1%; /* highlight #F4A825 */
  --highlight-foreground: 217 21.3% 12.0%; /* highlight-contrast #181D25 */
  --inverse: 219 65.6% 12.5%; /* inverse #0B1A35 */
  --inverse-foreground: 219 43.6% 92.4%; /* inverse-text #E3E9F4 */
  --ring: 220 85.9% 72.2%; /* focus #7BA4F5 */
  --success: 145 54.6% 59.4%; /* success #5FD08F */
  --warning: 37 86.5% 62.4%; /* warning #F2B24C */
  --destructive: 0 68.2% 53.1%; /* error #D93636 */
  --destructive-foreground: 0 0.0% 100.0%; /* error-contrast #FFFFFF */
  --destructive-text: 5 100.0% 75.1%; /* error-text #FF8A80 */
  --card-border: 220 25.7% 20.6%;
  --popover: 220 29.0% 12.2%;
  --popover-foreground: 218 30.8% 94.9%;
  --popover-border: 220 25.7% 20.6%;
  --secondary: 219 28.6% 13.7%;
  --secondary-foreground: 218 30.8% 94.9%;
}
