/* ============================================================
   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   Meadow, #0C6E40
     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: Spruce --- */
  --accent:       #0C6E40;   /* 6.16:1 on paper. Safe for text at any size. */
  --accent-deep:  #054C2B;   /* hover only */
  --accent-wash:  #0C6E401A; /* the fine ledger rule */
  --accent-rule:  #0C6E403D; /* the heavy ledger rule, every 5th */
  --on-accent:    #FFFFFF;   /* 6.16: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:  #238F5D;

  /* 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);

  /* Body-text links, and only those. The furniture (top strip, buttons,
     nav and footer hovers, the mark) always takes --accent. This exists
     because the two jobs pull in opposite directions: the brand colour
     wants to be calm and sit still, and a link in the middle of a
     paragraph wants to be found. On a page carrying forty links they are
     not obviously the same want. Defaults to the accent, so setting
     nothing keeps the site exactly as it was. */
  /* Lifted spruce. Chosen 8 September. The same hue as the brand,
     taken as far as it can legally go: 4.03:1 clear of the ink, against
     a hard ceiling of 4.06:1. That ceiling exists because a link must
     also clear 4.5:1 on paper to stay readable, and this sits at
     4.54:1, four hundredths above the floor. DO NOT LIGHTEN IT.
     Spruce itself measured 2.97:1 against the ink and #147A4B 3.50:1;
     both were too quiet. Placed by css/linkstrength.py. */
  --link:         #168551;
  /* The hover is the brand colour deepened, not a fourth green. A link
     therefore darkens toward the site's own accent when you reach for
     it, which reads as pressing in rather than lighting up. */
  --link-hover:   var(--accent-deep);

  /* --- 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;

  /* The design credit, and nothing else on the site. Logan's font, Logan's
     signature. Futura first because Mac and iOS ship it; Century Gothic for
     Windows machines that have it; Jost* self-hosted as the guaranteed
     geometric fallback so nobody ever sees this line in Helvetica. */
  --credit-face:  Futura, "Century Gothic", "Jost", "URW Gothic", var(--sans);

  /* --- 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;
}
