/* Locked identity: Everforest dark medium + Iosevka, compact, 4px, stroke icons.
   Spec: visual-identity DESIGN.md — do not invent hex, radii, or typefaces. */
:root {
  --ef-bg-dim: #232A2E;
  --ef-bg0: #2D353B;
  --ef-bg1: #343F44;
  --ef-bg2: #3D484D;
  --ef-bg3: #475258;
  --ef-bg4: #4F585E;
  --ef-bg-visual: #543A48;
  --ef-bg-red: #514045;
  --ef-bg-yellow: #4D4C43;
  --ef-bg-green: #425047;
  --ef-bg-blue: #3A515D;
  --ef-bg-purple: #4A444E;
  --ef-fg: #D3C6AA;
  --ef-red: #E67E80;
  --ef-orange: #E69875;
  --ef-yellow: #DBBC7F;
  --ef-green: #A7C080;
  --ef-aqua: #83C092;
  --ef-blue: #7FBBB3;
  --ef-purple: #D699B6;
  --ef-grey0: #7A8478;
  --ef-grey1: #859289;
  --ef-grey2: #9DA9A0;

  --background: var(--ef-bg0);
  --foreground: var(--ef-fg);
  --muted-foreground: var(--ef-grey1);
  --accent: var(--ef-green);
  --border: var(--ef-bg4);
  --card: var(--ef-bg1);

  --font-sans: "Iosevka Aile", "Iosevka", ui-sans-serif, sans-serif;
  --font-display: "Iosevka Etoile", "Iosevka Slab", "Iosevka Aile", serif;
  --font-mono: "Iosevka", ui-monospace, monospace;
  --font-term: "Iosevka Term", "Iosevka", ui-monospace, monospace;
  --font-fixed: "Iosevka Fixed", "Iosevka Term", ui-monospace, monospace;

  --text-caption: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --leading-body: 1.5;
  --leading-display: 1.2;
  --measure: 65ch;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --easing: cubic-bezier(0.2, 0, 0, 1);

  --focus-ring: 2px solid var(--ef-green);
  --focus-offset: 2px;

  --icon-size: 20px;
  --icon-stroke: 1.75;
  --target-min: 32px;
  --target-touch: 44px;
}

html,
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--leading-body);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-display);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-2xl);
}
h2 {
  font-size: var(--text-xl);
}
h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.015em;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

a {
  color: var(--ef-blue);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
