/* SomethingPR — tokens.
   Every value in PART 1 is from design/BRIEF.md ("Direction at the close of mood-boarding",
   "Late additions to round six") and the v6 table "The sets every element draws from".
   Nothing in PART 1 is new. Values the build needs that are in no set are kept apart in
   PART 2 and listed in design/BUILD-PLAN.md section 6 for Hugh to confirm.

   Sizes are written as px ÷ 16 in rem so they follow the reader's own text-size setting;
   at the browser default they are exactly the brief's pixel values. */

/* ───────────────────────── PART 1 · the sets ───────────────────────── */
:root {
  /* Colour: six, fixed. Paper-led; red saved for the close. */
  --ink:    #111111;
  --paper:  #EDE7D6;
  --red:    #E5321C;
  --orange: #FF7B00;
  --yellow: #FFC700;
  --navy:   #0C1440;

  /* Type size: seven. Desktop column. */
  --fs-1: calc(13rem / 16);   /* labels, datelines, captions */
  --fs-2: calc(17rem / 16);   /* body copy, the note box */
  --fs-3: calc(20rem / 16);   /* nav, buttons and chips, the lede, ledger rows */
  --fs-4: calc(28rem / 16);   /* the wordmark, a named piece in Signs */
  --fs-5: calc(40rem / 16);   /* headings inside a band */
  --fs-6: calc(84rem / 16);   /* numerals */
  --fs-7: calc(120rem / 16);  /* a closing line set large */
  /* (an eighth case, "fitted to width", is not a size: see .fit in components.css) */

  /* Type width: three (Archivo's width axis, per cent). */
  --wd-condensed: 62%;   /* headlines, headings, buttons, wordmark */
  --wd-regular:   100%;  /* body and labels */
  --wd-expanded:  125%;  /* the one contrasting line in a lockup */

  /* Type weight: three. */
  --wt-black:     900;   /* anything condensed or expanded */
  --wt-extrabold: 800;   /* labels, the lede, ledger rows */
  --wt-regular:   400;   /* body copy */

  /* Line weight: one, for every outline and rule. */
  --line: 4px;

  /* Gaps: five, for every gap between elements and every inner padding. */
  --gap-1: 8px;
  --gap-2: 12px;
  --gap-3: 20px;
  --gap-4: 32px;
  --gap-5: 44px;

  /* Band space ("Roomy"). The hero keeps its smaller top. */
  --band-top:    68px;
  --band-bottom: 76px;
  --hero-top:    30px;

  /* Pixel disc: one disc, 25 cells across, shared by the full stop and the clock. */
  --disc-cells: 25;
  --disc: 200px;                                  /* → 8 px cell */
  --cell: calc(var(--disc) / var(--disc-cells));
}

/* Phone column of the same sets. The boundary itself (760 px) is NOT in the brief: see PART 2. */
@media (max-width: 759.98px) {
  :root {
    --fs-1: calc(12rem / 16);
    --fs-2: calc(16rem / 16);
    --fs-3: calc(18rem / 16);
    --fs-4: calc(22rem / 16);
    --fs-5: calc(32rem / 16);
    --fs-6: calc(64rem / 16);
    --fs-7: calc(64rem / 16);

    --gap-1: 6px;
    --gap-2: 10px;
    --gap-3: 14px;
    --gap-4: 20px;
    --gap-5: 20px;

    --band-top:    42px;
    --band-bottom: 50px;
    --hero-top:    20px;

    --disc: 125px;                                /* → 5 px cell */
  }
}

/* ───────────── PART 2 · NOT IN ANY SET — provisional, needs Hugh ─────────────
   Each value below is measured from the v6 mock or taken from the original page,
   not invented. None is confirmed. See design/BUILD-PLAN.md section 6. */
:root {
  /* Breakpoints (cannot be custom properties in media queries; written out where used):
       760 px   phone column ↔ desktop column      — the original page's breakpoint
       1000 px  narrow layout ↔ wide layout        — proposal; nav links and hero row need it */

  /* Line heights: the mock used 0.95–1.5; rounded here to three. */
  --lh-display: 1;
  --lh-tight:   1.2;
  --lh-body:    1.45;

  /* Label letter-spacing: measured on the mock, same as the original page. */
  --track-label: 0.14em;

  /* Page side margin: measured on the mock. Neither value is in the gap set. */
  --gutter: 28px;

  /* Widest the page gets, and the longest line of reading text: from the original page. */
  --page-max: 1400px;
  --measure:  62ch;

  /* Sphere diameter: measured on the mock. */
  --sphere: 330px;

  /* Placeholder text in a form field: the text colour, dimmed. My proposal; no source. */
  --dim: 0.7;

  /* Font metric, not a design choice: cap height of Archivo as a share of the type size.
     Used to give a fitted line a box exactly as tall as its capitals. */
  --cap: 0.688;
  /* The same metric as the two trims that turn a line-height of 1 into a cap-height box
     (Archivo: ascent 0.88, descent 0.21, cap height 0.688; measured in the browser). */
  --trim-top:    -0.147em;
  --trim-bottom: -0.165em;
  /* The same for a first line of reading text: the blank space above its capitals at the
     body line height (half the extra leading, plus ascent 0.88 less cap height 0.688). */
  --trim-read-top: calc((1.09em - var(--lh-body) * 1em) / 2 - 0.192em);
}
@media (max-width: 759.98px) {
  :root {
    --gutter: 16px;
    --sphere: 268px;
  }
}
