/* =====================================================================
   ED–VENTURE · DESIGN TOKENS
   Every colour comes from the five natural palettes (brief §12).
   Index 1 = darkest … 5 = lightest. Derived shades are marked "derived".
   The same values live in js/core/palette.js for the 3D world.
   ===================================================================== */

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-full-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-full-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* JUNGLE */
  --jungle-1: #142F26; --jungle-2: #31563A; --jungle-3: #68874B; --jungle-4: #B1BE75; --jungle-5: #E3DEAD;
  /* ISLAND / WATER */
  --water-1: #173D50; --water-2: #306D81; --water-3: #62A9AC; --water-4: #ADD4C5; --water-5: #E7DCC0;
  /* DESERT */
  --desert-1: #704B36; --desert-2: #A36F46; --desert-3: #C99A63; --desert-4: #E0BB86; --desert-5: #F1DDB4;
  /* MOUNTAIN */
  --mount-1: #303D40; --mount-2: #59676A; --mount-3: #87999B; --mount-4: #B3C3C1; --mount-5: #E1E4D9;
  /* NIGHT */
  --night-1: #101E27; --night-2: #203D41; --night-3: #35675D; --night-4: #79BC9F; --night-5: #CBDBA0;

  /* semantic (static) */
  --ink: var(--night-1);
  --paper: var(--desert-5);
  --paper-shade: #e8cf9f;            /* derived: desert-5 → desert-4, 40% */
  --pencil: var(--desert-1);
  --bone: var(--water-5);

  /* semantic (live): js/core/palette.js rewrites these as the atmosphere changes */
  --atmo-fg: var(--jungle-5);
  --atmo-bg: var(--jungle-1);
  --atmo-acc: var(--jungle-4);
  --atmo-glow: rgba(227, 222, 173, .55);

  /* type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
  --wordmark-axes: 'SOFT' 100, 'WONK' 0, 'opsz' 144;
  --t-wordmark: clamp(56px, 9vw, 168px);
  --t-edword: clamp(40px, 5.6vw, 104px);
  --t-title: clamp(22px, 2vw, 32px);
  --t-body: 17px;
  --t-label: 11px;
  --track-label: .22em;

  /* grid: a 12-column field with a 6vh horizon band */
  --gutter: clamp(16px, 2.4vw, 40px);
  --edge: clamp(16px, 2vw, 32px);

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-breath: cubic-bezier(.45, 0, .55, 1);
  --dur-fast: 180ms; --dur-mid: 520ms; --dur-slow: 1400ms; --dur-breath: 2800ms;
}
