/* Hallmark · tokens · theme: ink (paper colourway), adapted for HomeAgentHub · redesign: full · v2.0.0
 * Source of truth for every colour and face. Colours are stored as OKLCH channels (--c-*) so the
 * Tailwind CDN config in includes/header.php can apply opacity modifiers; --color-* are the
 * resolved values app.css reads. Change a value here and both follow.
 */
:root {
  /* paper and ink: white paper, a black with no hue */
  --c-paper: 99.5% 0.003 100;   --c-paper-2: 97% 0.004 100;   --c-paper-3: 94% 0.006 100;
  --c-ink: 16% 0 0;             --c-ink-2: 28% 0 0;           --c-muted: 44% 0 0;
  --c-rule: 89% 0.004 100;      --c-rule-2: 93.5% 0.003 100;

  /* the one colour: teal means verified (checked by the team) */
  --c-accent: 50% 0.095 188;    --c-accent-hi: 44% 0.09 188;
  --c-accent-soft: 93% 0.05 190; --c-accent-soft-ink: 27% 0.045 190;

  /* functional states only (form errors, pending notices); never decoration */
  --c-danger: 48% 0.15 27;      --c-danger-soft: 95.5% 0.025 27;  --c-danger-ink: 34% 0.11 27;
  --c-notice: 52% 0.1 80;       --c-notice-soft: 95.5% 0.045 90;  --c-notice-ink: 36% 0.07 75;

  /* hueless greys for the Tailwind gray-* scale */
  --c-g50: 98% 0.002 100;  --c-g100: 96% 0.003 100; --c-g200: 91% 0.004 100; --c-g300: 84% 0.004 100;
  --c-g400: 56% 0 0;       --c-g500: 48% 0 0;       --c-g600: 40% 0 0;       --c-g700: 32% 0 0;
  --c-g800: 24% 0 0;       --c-g900: 17% 0 0;

  --color-paper: oklch(var(--c-paper));     --color-paper-2: oklch(var(--c-paper-2)); --color-paper-3: oklch(var(--c-paper-3));
  --color-ink: oklch(var(--c-ink));         --color-ink-2: oklch(var(--c-ink-2));     --color-muted: oklch(var(--c-muted));
  --color-rule: oklch(var(--c-rule));       --color-rule-2: oklch(var(--c-rule-2));
  --color-accent: oklch(var(--c-accent));   --color-accent-hi: oklch(var(--c-accent-hi));
  --color-accent-ink: oklch(var(--c-paper));
  --color-accent-soft: oklch(var(--c-accent-soft)); --color-accent-soft-ink: oklch(var(--c-accent-soft-ink));
  --color-danger: oklch(var(--c-danger));   --color-danger-soft: oklch(var(--c-danger-soft)); --color-danger-ink: oklch(var(--c-danger-ink));
  --color-notice-soft: oklch(var(--c-notice-soft)); --color-notice-ink: oklch(var(--c-notice-ink));
  --color-focus: oklch(var(--c-accent));
  --color-field-edge: oklch(60% 0 0);   /* input borders: 3:1 against paper */
  --color-on-ink: oklch(var(--c-paper));
  --color-on-ink-2: oklch(var(--c-paper) / 0.72);
  --color-on-ink-rule: oklch(var(--c-paper) / 0.16);
  --color-scrim: oklch(var(--c-ink) / 0.94);

  /* faces: Epilogue for everything; Plex Mono never on labels */
  --font-display: "Epilogue", ui-sans-serif, system-ui, sans-serif;
  --font-body: var(--font-display);
  --display-weight: 700;
  --tracking-display: -0.035em;

  /* surfaces */
  --radius-card: 12px; --radius-control: 10px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-float: 0 20px 40px oklch(20% 0 0 / 0.16);   /* only under things that float: menus, dialogs */

  /* spacing scale (4px base) */
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;

  /* type scale */
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-base: 1rem; --text-md: 1.0625rem; --text-lg: 1.25rem;
  --text-xl: 1.625rem;  --text-2xl: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --text-display: clamp(2.375rem, 1.6rem + 3.6vw, 4.25rem);

  /* motion: nothing moves but state */
  --dur-micro: 140ms; --dur-short: 220ms; --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --container: 1200px; --gutter: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
