@font-face{font-family:EasyPickLatin;src:url('/studio-latin.ttf') format('truetype');font-display:swap;font-weight:600 900}
@font-face{font-family:EasyPickLatin;src:url('/studio-regular.ttf') format('truetype');font-display:swap;font-weight:400 500}

/* ==========================================================================
   EASY PICK v3 — SIX-DIMENSION VISUAL ALCHEMY TOKENS
   Daylight Light-Table (Paper-Design Diagonal Cut-Fold) + XK Velvet Darkroom
   ========================================================================== */
:root,
html[data-bench="light"] {
  color-scheme: light;
  --mat-a: #F0EDE4;
  --mat-b: #E5E2D8;
  --mat-grid: rgba(15, 25, 20, 0.052);
  --mat-major: rgba(15, 25, 20, 0.105);
  --surface: rgba(255, 253, 248, 0.88);
  --surface-solid: #FFFDF8;
  --recess: #E7E3D8;
  --glass: rgba(255, 253, 248, 0.78);
  --glass-hi: rgba(255, 255, 255, 0.96);
  --ink: #0F1914;
  --ink-muted: #45524B;
  --ink-subtle: #66736C;
  --forest: #0F1E17;
  --sig: #FF4D29;
  --sig-hover: #E03A19;
  --sig-soft: rgba(255, 77, 41, 0.13);
  --prism-c: #00A6D6;
  --prism-v: #7B5CFA;
  --success: #18794E;
  --error: #C62828;
  --line: rgba(15, 25, 20, 0.12);
  --line-hard: rgba(15, 25, 20, 0.22);
  --shadow-poster: 0 30px 64px -20px rgba(15, 25, 20, 0.30), 0 8px 20px -10px rgba(15, 25, 20, 0.14);
  --shadow-plate: 0 22px 42px -14px rgba(15, 25, 20, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-hw: 0 14px 36px -14px rgba(15, 25, 20, 0.20), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --backdrop: rgba(12, 18, 15, 0.56);

  /* Legacy alias bridge for styles.css */
  --paper: var(--mat-a);
  --muted: var(--ink-muted);
  --accent: var(--sig);
  --green: var(--success);
  --ep-font: EasyPickLatin, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ep-display: EasyPickLatin, "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --ep-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-cut: 160ms cubic-bezier(0.2, 0.9, 0.3, 1);
  --ep-gutter: clamp(16px, 2.4vw, 34px);
  --ep-max: 1460px;
}

@supports (color: color(display-p3 1 0.3 0.16)) {
  :root, html[data-bench="light"] {
    --sig: color(display-p3 1 0.31 0.16);
    --prism-c: color(display-p3 0 0.67 0.85);
  }
}

html[data-bench="dark"] {
  color-scheme: dark;
  --mat-a: #060807;
  --mat-b: #0B100E;
  --mat-grid: rgba(255, 255, 255, 0.048);
  --mat-major: rgba(255, 255, 255, 0.095);
  --surface: rgba(19, 24, 22, 0.88);
  --surface-solid: #141917;
  --recess: #0B0F0D;
  --glass: rgba(16, 21, 19, 0.78);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --ink: #F5F2EB;
  --ink-muted: rgba(245, 242, 235, 0.74);
  --ink-subtle: rgba(245, 242, 235, 0.48);
  --forest: #0F1E17;
  --sig: #FF5A36;
  --sig-hover: #FF7050;
  --sig-soft: rgba(255, 90, 54, 0.20);
  --prism-c: #2EE8FF;
  --prism-v: #9D7BFF;
  --success: #34D399;
  --error: #FF7B72;
  --line: rgba(255, 255, 255, 0.11);
  --line-hard: rgba(255, 255, 255, 0.22);
  --shadow-poster: 0 36px 86px -14px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(255, 255, 255, 0.09);
  --shadow-plate: 0 28px 54px -12px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --shadow-hw: 0 22px 46px -14px rgba(0, 0, 0, 0.74), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --backdrop: rgba(3, 5, 4, 0.76);
  --paper: var(--mat-a);
  --muted: var(--ink-muted);
  --accent: var(--sig);
  --green: var(--success);
}
