/* ============================================================
   ON RECORD — accent shortlist, 2026-08-15
   ------------------------------------------------------------
   Logan's picks, both kept live. Swap --accent to change the
   whole site; nothing else needs to move.

     ORANGE   issued  #F74902  Flyers, 3.46:1 on paper
              as text #D24006  darkened 16% to clear AA
              as FILL #F74902  ships unmodified, dark text on it
                               measures 5.28:1

     RED      issued  #A51C30  Harvard crimson, 7.28:1 on paper
              as text #A51C30  ships unmodified
              as FILL #A51C30  white on it measures 7.48:1

   Orange only survives at full strength as a field, never as
   text. If orange wins, it needs one fill somewhere to carry
   the true colour, or it ships as the darker cut.
   ============================================================ */

/* ============================================================
   ON RECORD — the reversed lockup, 2026-08-16
   ------------------------------------------------------------
   Approved off the favicon tiles. White out of a solid crimson
   field. Logan's word was that it looks good. Keep it available
   as a real option, not as a one-off on the icon.

     GROUND    #A51C30   the accent at full strength, untinted
     EVERYTHING #FCFCFA  mark, rule and type all the same value
     MEASURED  7.28:1    paper on crimson
               7.48:1    pure white on crimson, if a colder cut
                         is ever wanted

   The thing that makes it work: on crimson the spine goes paper
   white along with everything else. It does not stay crimson and
   it does not get tinted. The spine then reads by position
   rather than by colour, which is why the mark holds instead of
   half dissolving into its own ground.

   Candidates for it: the favicon and touch icon, the top strip,
   a section break, the footer, the book page when there is one.

   The ink ground is a different problem with a different answer.
   Issued crimson on --ink measures 2.51:1 and disappears, so
   anything reversing out of ink uses --accent-lift below.
   Never ship --accent itself on ink.
   ============================================================ */

/* ============================================================
   THE DISH — design tokens
   ------------------------------------------------------------
   THE single shared layer. The static front end at the root and
   the WordPress child theme at /blog/ both import THIS FILE.
   Change a value here and both halves of the site move together.
   Nothing outside this file may declare a raw colour or a font.

   Decisions locked 2026-08-14:
     display  Literata (serif), 200 against 900
     accent   Harvard crimson
     system   one hue per subject he writes about
   ============================================================ */

:root{
  /* --- surface --- */
  --paper:        #FCFCFA;
  --paper-2:      #F6F6F2;
  --paper-3:      #EFEFE9;


  /* --- ink --- */
  --ink:          #111119;   /* 18.0:1 on paper */
  --ink-2:        #4B4B58;   /*  8.4:1 */
  --ink-3:        #74747E;   /*  4.5:1, the floor. Carries 9px mono labels. */

  /* --- rules --- */
  --line:         #E5E5DF;
  --line-2:       #C9C9C0;
  --line-ink:     #111119;

  /* --- accent: Harvard crimson --- */
  --accent:       #A51C30;   /* 7.28:1 on paper. Safe for text at any size. */
  --accent-deep:  #7E1524;   /* hover only */
  --accent-wash:  #A51C301A; /* the fine ledger rule */
  --accent-rule:  #A51C303D; /* the heavy ledger rule, every 5th */
  --on-accent:    #FFFFFF;   /* 7.48:1 on accent */

  /* The reversed lockup. On a crimson field EVERY stroke takes
     --on-accent-soft, the spine included, so the mark reads by
     position rather than by hue. See the ON RECORD block above. */
  --on-accent-soft: var(--paper); /* 7.28:1 on accent */

  /* Reversing out of INK is the other case and needs its own red:
     --accent on --ink measures 2.51:1 and vanishes. This clears AA
     at 5.32:1. Only ever used against --ink, never against paper. */
  --accent-lift:  #E8556B;

  /* One accent, full stop. The per-subject hues were removed
     2026-08-15: five colours doing five different small jobs read
     as scattered, not as a system. --accent-2 aliases --accent so
     no rule can quietly reintroduce a second hue. */
  --accent-2:     var(--accent);

  /* --- type --- */
  --display:        "Literata", Georgia, "Times New Roman", serif;
  --display-light:  200;     /* the setup line */
  --display-weight: 900;     /* the payoff line, headings, figures */
  --quote:          "Instrument Serif", Georgia, serif;  /* italic voice moments */

  /* Light type on a saturated field optically thins out, so the top
     strip needs more weight than the same type on paper to read as
     equal. 600, chosen against the red. Real drawn weight, not faux. */
  --strip-weight:   600;
  --sans:           "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono:           "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- scale --- */
  --step--1: clamp(0.8125rem, 0.1vw + 0.79rem, 0.875rem);
  --step-0:  clamp(1rem, 0.28vw + 0.94rem, 1.0625rem);
  --step-1:  clamp(1.15rem, 0.5vw + 1.05rem, 1.35rem);
  --step-2:  clamp(1.5rem, 1.2vw + 1.2rem, 2.05rem);
  --step-3:  clamp(1.9rem, 2.6vw + 1.3rem, 3.15rem);
  --step-4:  clamp(2.2rem, 6.1vw, 4.85rem);

  /* --- space --- */
  --pad:  clamp(1.2rem, 4.5vw, 5rem);
  --gap:  clamp(1.25rem, 3vw, 2.75rem);
  --band: clamp(2.5rem, 6vw, 5.5rem);
  --maxw: 88rem;

  /* --- ledger --- */
  --ledger-cell:  78px;
  --ledger-heavy: 390px;
}
