/* Fólio · Repositorium · light and dark semantic tokens */
:root, [data-theme="light"] {
  color-scheme: light;
  --canvas: #f5f3ed;
  --surface: #fffef9;
  --surface-raised: #fffef9;
  --subtle: #eceee4;
  --ink: #233a2e;
  --muted: #586353;
  --line: #d9ddcf;
  --control-border: #7a806f;
  --primary: #214d3c;
  --on-primary: #fffef3;
  --highlight: #dfe9b6;
  --on-highlight: #29422b;
  --focus: #486632;
  --success: #326343;
  --success-bg: #e5efdf;
  --warning: #805514;
  --warning-bg: #f8edce;
  --danger: #a13c31;
  --danger-bg: #f8e9e2;
  --info: #365e70;
  --info-bg: #e8eff1;
  --shadow-sm: 0 2px 8px #233a2e08;
  --shadow-md: 0 12px 36px #233a2e10;
  --shadow-overlay: 0 24px 70px #0c211e2b;
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #101211;
  --surface: #181b19;
  --surface-raised: #222623;
  --subtle: #222623;
  --ink: #f0f1e8;
  --muted: #b9bdb5;
  --line: #343b35;
  --control-border: #7b877a;
  --primary: #c3d899;
  --on-primary: #1c2d20;
  --highlight: #293229;
  --on-highlight: #dfe9b6;
  --focus: #dcebad;
  --success: #bad99b;
  --success-bg: #283b2b;
  --warning: #ebce86;
  --warning-bg: #3b3321;
  --danger: #f2b6a4;
  --danger-bg: #422b27;
  --info: #b5d6df;
  --info-bg: #223941;
  --shadow-sm: 0 2px 8px #0002;
  --shadow-md: 0 12px 36px #0003;
  --shadow-overlay: 0 24px 70px #0007;
}

:root {
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --duration: 160ms;
}
