/* ==========================================================================
   Design tokens. Every value the rest of the CSS uses is declared here.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600-normal.woff2") format("woff2");
}

:root {
  /* Colour ---------------------------------------------------------------- */
  --paper: #f1f3ee;
  --paper-2: #e6ebdf;
  --surface: #ffffff;
  --ink: #131614;
  --ink-2: #353a34;
  --muted: #656d62;
  --line: #dde3d6;
  --line-strong: #c6ccbe;
  --accent: #5a7538;
  --accent-hover: #4a6630;
  --dark: #121512;
  --dark-2: #1c211b;
  --on-dark: #eef0ea;
  --on-dark-muted: #9aa394;

  /* Type ------------------------------------------------------------------ */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --fs-display: clamp(2.5rem, 1.4rem + 5vw, 5.25rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.4vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: clamp(0.9375rem, 0.9rem + 0.18vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --lh-tight: 1.04;
  --lh-snug: 1.2;
  --lh-body: 1.65;
  --tracking-tight: -0.022em;
  --tracking-label: 0.14em;

  /* Space ----------------------------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --container: 78rem;
  --measure: 62ch;

  /* Shape and motion ------------------------------------------------------ */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;
  --header-h: 4.25rem;
}
