/* Hallmark · macrostructure: Long Document · tone: technical · anchor hue: coral
 * genre: modern-minimal · theme: Coral · enrichment: none · nav: N3 · footer: Ft3
 * audience: members, administrators, maintainers · use: read guides and find commands
 * brand tokens: aligned with frontend/tokens.css
 * pre-emit critique: P4 H5 E4 S5 R5 V5
 * contrast: verified light/dark · mobile: verified 320/375/414/768px
 */
:root {
  color-scheme: light;

  --color-paper: oklch(97.5% 0.005 55);
  --color-raised: oklch(99.2% 0.002 55);
  --color-paper-2: oklch(94.5% 0.007 55);
  --color-ink: oklch(24% 0.009 45);
  --color-muted: oklch(46% 0.011 45);
  --color-rule: oklch(85% 0.009 55);
  --color-control-rule: oklch(61% 0.012 55);
  --color-accent: oklch(49% 0.155 32);
  --color-accent-hover: oklch(43% 0.145 32);
  --color-accent-soft: oklch(95% 0.025 32);
  --color-accent-ink: oklch(99% 0.003 55);
  --color-focus: oklch(57% 0.14 32);
  --color-success: oklch(40% 0.095 156);
  --color-error: oklch(47% 0.16 25);

  --font-display: "Aptos Display", "Segoe UI Variable Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-code: "Cascadia Code", "SFMono-Regular", "Noto Sans Mono CJK SC", monospace;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.953125rem;
  --text-display: clamp(1.953125rem, 3vw, 2.441rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;

  --rule-thin: 1px solid var(--color-rule);
  --rule-control: 1px solid var(--color-control-rule);
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-pill: 999px;

  --page-width: 1440px;
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --reading-width: 48rem;
  --header-height: 4rem;
  --z-raised: 10;
  --z-sticky: 200;
  --z-toast: 500;
}

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

  --color-paper: oklch(18% 0.006 55);
  --color-raised: oklch(22% 0.008 55);
  --color-paper-2: oklch(27% 0.009 55);
  --color-ink: oklch(94% 0.006 55);
  --color-muted: oklch(74% 0.01 55);
  --color-rule: oklch(37% 0.012 55);
  --color-control-rule: oklch(58% 0.012 55);
  --color-accent: oklch(77% 0.11 32);
  --color-accent-hover: oklch(83% 0.09 32);
  --color-accent-soft: oklch(29% 0.031 32);
  --color-accent-ink: oklch(20% 0.012 32);
  --color-focus: oklch(58% 0.11 32);
  --color-success: oklch(77% 0.085 156);
  --color-error: oklch(78% 0.105 25);
}
