/* ==========================================================================
   IRWL — the canonical design system.
   One source of truth for colour and type across the whole record.

   Adopted from Issue 003 (Aug 2026), which is the current approved
   direction: photoreal, premium, near-black, with a rose that belongs to
   a photograph rather than to a poster.

   The three retired pinks (#FF2D87, #ff2f92, #ff3c93 — the flat cyberpunk
   accent) are gone. They are not to come back.

   Every other stylesheet on the site defines its own local names in terms
   of the tokens below, so there is exactly one place to change a colour.
   ========================================================================== */

:root{
  /* ---- ground ---- */
  --ground:#060505;        /* the page itself */
  --ground-2:#0b0908;      /* a step up from the page */
  --panel:#100c0b;         /* cards, wells, inputs */

  /* ---- ink ---- */
  --cream:#ECE5D8;         /* body text */
  --cream-dim:#B7AE9E;     /* secondary text */
  --taupe:#7E7566;         /* labels, metadata */
  --taupe-dim:#5a5348;     /* the quietest thing on the page */

  /* ---- the rose (the only accent) ---- */
  --rose:#E4A6BC;          /* type, labels, the heart */
  --rose-deep:#C9738F;     /* fills, rules, hover states */
  --on-rose:#160d11;       /* ink on a rose fill */

  /* ---- rules ---- */
  --rule:#241f1b;
  --rule-soft:#191513;

  /* ---- type ----
     No display webfont: the system serif stack loads instantly and is
     what Issue 003 was approved in. Inter is used when present for
     labels and UI, and falls back cleanly. Courier is reserved for file
     metadata and clause numbers, where monospace reads as evidence. */
  --serif:ui-serif,"Iowan Old Style","Palatino Linotype",Palatino,"Sorts Mill Goudy",Georgia,Cambria,serif;
  --sans:ui-sans-serif,"Helvetica Neue","Inter",system-ui,-apple-system,Arial,sans-serif;
  --mono:"Courier New",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --hand:"Snell Roundhand","Apple Chancery","Segoe Script","Bradley Hand",cursive;

  /* ---- measure ---- */
  --measure:40rem;
}

/* --------------------------------------------------------------------------
   Base. Deliberately single-theme: this record is a dark object, so the
   ground and every colour are painted explicitly and never inherit from
   the viewer's theme.
   -------------------------------------------------------------------------- */
html{-webkit-text-size-adjust:100%}
body{
  background:var(--ground);
  color:var(--cream);
  font-family:var(--serif);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}

/* keyboard users must be able to see where they are */
a:focus-visible,button:focus-visible,input:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--rose);
  outline-offset:3px;
}

/* uppercase tracked labels, wherever they appear */
.label,.kicker,.ex-tag,.tag,.stamp,.count,.f-line,.ex-meta{
  font-family:var(--sans);
}

/* file metadata keeps the typewriter — the one place monospace earns its place */
.filemeta,.clause-no,.folio{font-family:var(--mono)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;transition-duration:.001ms !important}
}
