/* ============================================================================
   CORDARI DESIGN SYSTEM — colors_and_type.css
   "Dusty desert" — warm, calm, editorial. Radiant Maple Studios LLC.

   Single source of foundational tokens for Cordari (cordari.ai), ported from
   the product's web/src/index.css + tailwind.config.ts. Drop this into any
   HTML artifact and consume the semantic classes (.h1, .eyebrow, .btn-primary,
   .card …) or the raw CSS custom properties (var(--color-primary) …).

   Color tokens carry Material-3-style *names* but render desert values. Every
   color is stored as an "R G B" triple so you can compose alpha with
   rgb(var(--color-x) / 0.4). Names are frozen; only values change per theme.
   ========================================================================= */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Atmospheric gradient stops — registered as <color> so they interpolate on
   a light/dark swap rather than hard-cutting. */
@property --grad-1 { syntax: "<color>"; inherits: true; initial-value: oklch(0.93 0.022 240); }
@property --grad-2 { syntax: "<color>"; inherits: true; initial-value: oklch(0.93 0.025 150); }
@property --grad-3 { syntax: "<color>"; inherits: true; initial-value: oklch(0.94 0.025 55); }
@property --grad-4 { syntax: "<color>"; inherits: true; initial-value: oklch(0.94 0.035 75); }

/* ----------------------------------------------------------------------------
   LIGHT THEME (default) — warm sand surfaces, dusty-clay brand
   ------------------------------------------------------------------------- */
:root {
  /* Brand — dusty clay */
  --color-primary: 191 143 118;            /* oklch(.69 .069 49) */
  --color-primary-strong: 175 123 98;      /* deeper clay glyph */
  --color-primary-container: 242 216 201;  /* pale clay */
  --color-primary-tint: 249 231 220;       /* palest clay wash — large soft fills */

  /* Accents */
  --color-secondary: 127 154 132;          /* sage — success / active */
  --color-secondary-container: 221 237 223;/* sage tint */
  --color-tertiary: 178 138 91;            /* desert amber — pending / warm */
  --color-tertiary-container: 249 232 210; /* amber tint */
  --color-info: 116 144 165;               /* dusty blue — the one cool accent */
  --color-info-container: 219 234 245;     /* blue wash */

  /* Surfaces — warm sand → bright paper */
  --color-surface: 248 242 235;
  --color-surface-dim: 245 238 229;
  --color-surface-container: 253 250 244;   /* card */
  --color-surface-container-low: 251 246 239;
  --color-surface-container-high: 242 236 227;   /* recessed / hover */
  --color-surface-container-highest: 234 227 219;

  /* Ink / foreground */
  --color-on-surface: 54 43 36;            /* text */
  --color-on-surface-variant: 94 83 75;    /* text-2 */
  --color-on-surface-faint: 131 120 112;   /* text-3 */
  --color-on-surface-muted: 154 144 137;   /* text-muted */
  --color-on-primary: 255 255 255;         /* white on clay */

  /* Lines */
  --color-outline: 223 215 203;            /* stronger border */
  --color-outline-variant: 229 221 209;    /* hairline */
  --color-outline-soft: 234 227 219;       /* border-soft */

  /* Status */
  --color-error: 185 70 63;                /* brick */
  --color-shadow: 0 0 0;                   /* neutral shadow ink; compose alpha at the use */

  /* Atmospheric gradient stops (pale dawn) */
  --grad-1: oklch(0.93 0.022 240);  /* sky blue */
  --grad-2: oklch(0.93 0.025 150);  /* vegetation sage */
  --grad-3: oklch(0.94 0.025 55);   /* warm sand */
  --grad-4: oklch(0.94 0.035 75);   /* amber dust */

  /* Radii — desert rounds a touch softer than M3 */
  --radius-sm: 5px;  /* the waitlist checkbox */
  --radius-default: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;          /* 8px — icon tiles, tabs */
  --radius-lg: 0.625rem;       /* 10px — buttons, inputs */
  --radius-xl: 1rem;           /* 16px — cards, panels */
  --radius-full: 9999px;       /* pills, avatars */

  /* Card lift — soft two-layer desert shadow (neutral alpha-black, never color) */
  --shadow-card: 0 18px 48px -20px rgb(0 0 0 / 0.22), 0 6px 18px -12px rgb(0 0 0 / 0.12);

  /* Type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", monospace;

  color-scheme: light;
}

/* ----------------------------------------------------------------------------
   DARK THEME — "desert night": deep indigo surfaces, sunset-coral brand
   Toggle by adding class="dark" on <html> (or any ancestor).
   ------------------------------------------------------------------------- */
.dark {
  --color-primary: 205 139 122;            /* sunset coral */
  --color-primary-strong: 220 161 143;
  --color-primary-container: 84 51 44;     /* deep coral */
  --color-primary-tint: 56 34 30;          /* deep clay wash */

  --color-secondary: 124 179 147;          /* aurora sage */
  --color-secondary-container: 21 41 32;
  --color-tertiary: 200 162 133;           /* warm amber */
  --color-tertiary-container: 53 37 27;
  --color-info: 130 163 191;               /* dusty blue */
  --color-info-container: 26 37 47;

  --color-surface: 11 17 26;               /* night sky */
  --color-surface-dim: 7 12 22;
  --color-surface-container: 19 26 35;     /* card */
  --color-surface-container-low: 15 21 30;
  --color-surface-container-high: 28 34 44;
  --color-surface-container-highest: 40 46 56;

  --color-on-surface: 235 232 223;
  --color-on-surface-variant: 194 189 180;
  --color-on-surface-faint: 149 142 133;
  --color-on-surface-muted: 118 109 100;
  --color-on-primary: 255 255 255;

  --color-outline: 53 62 73;
  --color-outline-variant: 42 49 59;
  --color-outline-soft: 40 46 56;

  --color-error: 242 167 161;              /* soft red */
  --color-shadow: 0 0 0;

  /* Desert-night gradient — starry blue + aurora up top, sunset + dusk below */
  --grad-1: oklch(0.30 0.045 248);
  --grad-2: oklch(0.28 0.045 165);
  --grad-3: oklch(0.32 0.060 28);
  --grad-4: oklch(0.28 0.055 320);

  /* Deeper lift on dark surfaces */
  --shadow-card: 0 18px 48px -20px rgb(0 0 0 / 0.55), 0 6px 18px -12px rgb(0 0 0 / 0.4);

  color-scheme: dark;
}

/* The pages' spacing and type scale (CNOTE-24, CNOTE-228). Each group is an ordered scale and each token is named for its place on it, --<group>-step-<n> with n counting from 0 at the group's smallest value, so a value changes here alone; a removed step leaves a gap, and the steps above it keep their names. A value added between two steps takes the number of the step above it, and that step and every step above it move up one, renamed in every reference (CNOTE-389). --space-fluid-step-* and --text-fluid-step-* are the clamp() sizes, ordered by their maximum. --tracking-label-narrow, the uppercase labels' tracking, is named for its role. Theme-independent, so declared once. */
/* prettier-ignore */
:root {
  --space-step-0: 1px;
  --space-step-1: 2px;
  --space-step-2: 3px;
  --space-step-3: 4px;
  --space-step-4: 5px;
  --space-step-5: 6px;
  --space-step-6: 7px;
  --space-step-7: 8px;
  --space-step-8: 9px;
  --space-step-9: 10px;
  --space-step-10: 12px;
  --space-step-11: 13px;
  --space-step-12: 14px;
  --space-step-13: 16px;
  --space-step-14: 18px;
  --space-step-15: 20px;
  --space-step-16: 22px;
  --space-step-17: 24px;
  --space-step-18: 26px;
  --space-step-19: 28px;
  --space-step-20: 30px;
  --space-step-21: 32px;
  --space-step-22: 36px;
  --space-step-23: 40px;
  --space-step-24: 56px;
  --space-step-25: 64px;
  --space-step-26: 72px;
  --space-step-27: 88px;
  --space-step-28: 96px;

  --space-fluid-step-0: clamp(32px,6vw,64px);

  --text-step-0: 9px;
  --text-step-1: 10px;
  --text-step-2: 10.5px;
  --text-step-3: 11px;
  --text-step-4: 11.5px;
  --text-step-5: 12px;
  --text-step-6: 12.5px;
  --text-step-7: 13px;
  --text-step-8: 13.5px;
  --text-step-9: 14px;
  --text-step-10: 14.5px;
  --text-step-11: 15px;
  --text-step-12: 16px;
  --text-step-13: 16.5px;
  --text-step-14: 17px;
  --text-step-15: 17.5px;
  --text-step-16: 18px;
  --text-step-17: 20px;
  --text-step-18: 22px;
  --text-step-19: 24px;
  --text-step-20: 26px;

  --text-fluid-step-0: clamp(32px,4.4vw,48px);
  --text-fluid-step-1: clamp(34px,4.4vw,52px);
  --text-fluid-step-2: clamp(38px,5.5vw,54px);
  --text-fluid-step-3: clamp(40px,6vw,60px);
  --text-fluid-step-4: clamp(44px,7vw,84px);

  --leading-step-0: 0.98;
  --leading-step-1: 1.02;
  --leading-step-2: 1.04;
  --leading-step-3: 1.2;
  --leading-step-4: 1.25;
  --leading-step-5: 1.3;
  --leading-step-6: 1.45;
  --leading-step-7: 1.5;
  --leading-step-8: 1.55;
  --leading-step-9: 1.6;
  --leading-step-10: 1.65;
  --leading-step-11: 1.7;

  --tracking-step-5: -0.01em;
  --tracking-step-4: -0.02em;
  --tracking-step-3: -0.025em;
  --tracking-step-2: -0.035em;
  --tracking-step-1: -0.04em;
  --tracking-step-0: -0.045em;
  --tracking-label-narrow: 0.06em;

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
}

/* The Cordari recipes' type and spacing, named for their role (CNOTE-193). Theme-independent, so declared once. */
:root {
  --text-display-lg: 2.75rem;
  --text-display: 2rem;
  --text-h2: 1.875rem;
  --text-h3: 1.25rem;
  --text-eyebrow: 0.8125rem;
  --text-body: 0.9375rem;
  --text-body-sm: 0.8125rem;
  --text-code: 0.85em;
  --text-control: 0.875rem;
  --text-pill: 0.75rem;
  --leading-display: 1.08;
  --leading-h2: 1.15;
  --leading-none: 1;
  --tracking-label: 0.08em;
  --tracking-label-wide: 0.12em;
  --tracking-label-wider: 0.15em;
  --space-btn-gap: 0.5rem;
  --space-control-y: 0.625rem;
  --space-btn-x: 1.25rem;
  --space-input-x: 1rem;
  --space-chip-gap: 0.25rem;
  --space-pill-y: 0.125rem;
  --space-pill-x: 0.625rem;
}
