/* Rossella Ricchiari — design tokens.
   The only place colours, type, spacing and layout values are defined.
   Rules for using them: DESIGN-SYSTEM.md at the repo root. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz.woff2") format("woff2-variations");
  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";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext-opsz.woff2") format("woff2-variations");
  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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-next-latin-wght.woff2") format("woff2-variations");
  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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-next-latin-ext-wght.woff2") format("woff2-variations");
  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: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-next-latin-wght-italic.woff2") format("woff2-variations");
  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: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-next-latin-ext-wght-italic.woff2") format("woff2-variations");
  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 {
  /* Colour — the ChatGPT site's palette, with text colours darkened to WCAG AA.
     Contrast figures are against --paper. */
  --ink: #272536;            /* headings, UI text        14.2:1 */
  --text: #3e3a4a;           /* body copy                10.4:1 */
  --muted: #6b6474;          /* captions, notes           5.4:1 (4.7 on sand) */
  --paper: #fcf8f4;          /* page background */
  --surface: #fffdfb;        /* cards, panels */
  --sand: #f1e9e3;           /* quiet band behind a section */
  --peach: #fac19e;          /* primary button fill (ink text 9.4:1) */
  --peach-strong: #f5b18a;   /* primary button hover */
  --accent: #b0491a;         /* links, the one eyebrow    5.2:1 (4.6 on sand) */
  --focus: #e94d12;          /* focus ring only, never text */
  --line: #e0cfc3;           /* card and divider borders */
  --control: #8f7a66;        /* form control borders      3.9:1 (non-text, needs 3:1) */
  --chosen: #fff0e5;         /* selected choice fill */
  --chosen-line: #ad6945;    /* selected choice border */
  --error: #a12720;
  --night: #433b44;          /* footer band (paper text 10.2:1) */

  /* Type — Fraunces for headings, Atkinson Hyperlegible Next for everything else.
     Canonical since 25 September 2026 (Paul picked specimen B). */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Five sizes. Fluid between a 390px phone and a 1440px desktop. */
  --size-small: 0.875rem;                                    /* 14      captions, notes, eyebrow */
  --size-body: 1.0625rem;                                    /* 17      everything you read */
  --size-lead: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);    /* 18–20   the one paragraph under an h1 */
  --size-h3: clamp(1.375rem, 1.3rem + 0.3vw, 1.625rem);      /* 22–26   card titles, guide sub-heads */
  --size-h2: clamp(1.75rem, 1.6rem + 0.7vw, 2.25rem);        /* 28–36   section headings */
  --size-h1: clamp(2.25rem, 1.95rem + 1.3vw, 3rem);          /* 36–48   one per page */

  --leading-tight: 1.12;     /* h1 */
  --leading-heading: 1.2;    /* h2, h3 */
  --leading-body: 1.6;

  --measure: 65ch;           /* longest line of body copy */
  --measure-heading: 20ch;   /* longest line of an h1 */

  /* Spacing — a 4px base. Use the names, never raw pixel values. */
  --space-1: 0.25rem;   /*   4 */
  --space-2: 0.5rem;    /*   8 */
  --space-3: 0.75rem;   /*  12 */
  --space-4: 1rem;      /*  16 */
  --space-5: 1.5rem;    /*  24 */
  --space-6: 2rem;      /*  32 */
  --space-7: 3rem;      /*  48 */
  --space-8: 4rem;      /*  64 */
  --space-9: 6rem;      /*  96 */
  --section: clamp(var(--space-8), 8vw, var(--space-9)); /* vertical padding of a section */

  /* Layout */
  --page-max: 70rem;                          /* 1120 */
  --gutter: clamp(1rem, 4vw, 3rem);           /* 16 on phones, 48 on desktop */
  --radius-small: 0.5rem;                     /*  8 inputs, choices */
  --radius: 0.875rem;                         /* 14 cards, panels */
  --radius-pill: 999px;                       /* buttons */
}
