/* ============================================================
   AIMakerAgency — design tokens
   World: optical resolution. Bone paper, ink hairlines,
   calibration rings, one spectral fringe at the edges.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Martian Mono';
  src: url('/assets/fonts/martian-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}

:root {
  /* ground + ink */
  --paper: #f2f3ef;
  --paper-2: #e8eae4;
  --paper-3: #dcdfd7;
  --ink: #0b0e0f;
  --ink-2: #232a2b;
  --ink-3: #3c4546;
  --muted: #596365;
  --line: #c6cbc2;
  --line-strong: #98a09a;
  --on-ink: #eef0eb;
  --on-ink-muted: #a7b0ae;
  --line-ink: #2a3233;

  /* spectral: live state only, never body ink */
  --violet: #5b3df5;
  --cyan: #0093a1;
  --magenta: #cf1d61;
  --spectrum: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));

  /* type */
  --font-sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-display: clamp(2.6rem, 6.1vw, 4.7rem);
  --fs-h2: clamp(1.75rem, 3.4vw, 2.9rem);
  --fs-h3: clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;
  --lh-display: 0.94;
  --lh-body: 1.62;
  --track-display: -0.035em;

  /* space */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 136px;

  --w-page: 1240px;
  --w-read: 68ch;
  --nav-h: 72px;
  --radius: 0px;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 180ms;
  --dur-2: 360ms;
  --dur-3: 760ms;
}

@media (max-width: 720px) {
  :root {
    --nav-h: 58px;
    --fs-body: 1rem;
  }
}
