/* ==========================================================================
   AUVARA — Design tokens
   Mirrors 02-design/tokens.json. Change tokens here, never hard-code values.
   ========================================================================== */

/* --- Self-hosted typefaces (no external requests, no layout shift) -------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-var-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-var-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-400-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ── Brand ─────────────────────────────────────────────────────────── */
  --deep: #0e3b3c;
  --deep-90: #1a4c4d;
  --deep-70: #2f6264;
  --leaf: #2e6b62;
  --leaf-lite: #5c9b8f;
  --amber: #c08a2e;
  --amber-ink: #8a5f16;
  --amber-on-deep: #d6a245;

  /* ── Neutral ───────────────────────────────────────────────────────── */
  --ink: #0c1714;
  --slate: #46524c;
  --grey: #58635e;
  --line: #ddd6c8;
  --sand: #efe7d8;
  --bone: #e6dfd1;
  --ivory: #faf7f1;
  --paper: #ffffff;

  /* ── Signal ────────────────────────────────────────────────────────── */
  --success: #2e6b62;
  --warning: #8a5f16;
  --danger: #a8553a;
  --info: #2c5a73;

  /* ── Type ──────────────────────────────────────────────────────────── */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-text: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --font-label: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-micro: 0.75rem;
  --fs-caption: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h4: 1.5rem;
  --fs-h3: 1.875rem;
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);
  --fs-display: clamp(3rem, 1.2rem + 7vw, 7rem);

  --tr-display: -0.02em;
  --tr-heading: -0.015em;
  --tr-body: 0;
  --tr-eyebrow: 0.16em;
  --tr-label: 0.14em;

  /* ── Space ─────────────────────────────────────────────────────────── */
  --s-3xs: 0.25rem;
  --s-2xs: 0.5rem;
  --s-xs: 0.75rem;
  --s-sm: 1rem;
  --s-md: 1.5rem;
  --s-lg: 2rem;
  --s-xl: 3rem;
  --s-2xl: 4.5rem;
  --s-3xl: 6rem;
  --s-4xl: 8rem;
  --section-y: clamp(4rem, 2rem + 7vw, 7.5rem);

  /* ── Shape & depth ─────────────────────────────────────────────────── */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(12, 23, 20, 0.05);
  --shadow-sm: 0 2px 6px rgba(12, 23, 20, 0.06), 0 1px 2px rgba(12, 23, 20, 0.04);
  --shadow-md: 0 10px 24px -12px rgba(12, 23, 20, 0.2), 0 2px 6px rgba(12, 23, 20, 0.05);
  --shadow-lg: 0 28px 60px -28px rgba(12, 23, 20, 0.28), 0 4px 12px rgba(12, 23, 20, 0.06);

  /* ── Motion ────────────────────────────────────────────────────────── */
  --d-fast: 160ms;
  --d-base: 240ms;
  --d-slow: 420ms;
  --ease-standard: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Layout ────────────────────────────────────────────────────────── */
  --container: 84rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.5rem;

  /* ── Focus ─────────────────────────────────────────────────────────── */
  --focus-ring: 0 0 0 3px var(--ivory), 0 0 0 6px var(--deep);
  --focus-ring-dark: 0 0 0 3px var(--deep), 0 0 0 6px var(--amber);
}
