/* papyrus — the reading palette. Light-only, and the one place in this family
   where the ground is warmer than the ink is cool: an unbleached-paper page with
   a sienna accent, aimed at a long session of reading cards rather than at
   clicking through forms.

   It is NOT mnemodo light with the saturation turned down. Two real differences:
   * the accent is rust, not gold. mnemodo light's gold accent on cream is the same
     hue as the paper, so every link sits half a step off its background; a sienna
     link is a different colour from the page it is on.
   * `--t-claim` is #d4581c, more saturated than the family's #cf673e. A warm
     orange on a warm page loses the contrast it has on the family's cool grey:
     3.49:1 there, and this value buys back 3.80 on the same paper. It also puts
     more distance between the claim dot and the accent, which is itself a rust
     (119 apart in RGB, against 159 for the family value — still well over the 63
     floor, but the two are neighbours in a way they are nowhere else).

   Light-only for the same reason void is night-only: "paper" has no dark
   counterpart. A dark warm ground is a different idea (a lamp on a desk), and
   guessing at it here would ship a palette nobody designed. The registry is
   per-mode — pick papyrus for light, and any night palette you like.

   It does not float. A coloured band across every card is the prism family's
   signature and it fights the one thing this palette is for: a page you read
   without anything on it asking for attention.
   THE LAW: LIGHT FLOATS — waived, see above. */
:root[data-theme="papyrus"]{
  color-scheme:light;

  --bg:#f4efe4;
  --surface:#faf6ec;
  --panel:#fbf8f0;
  --panel-2:#efe8d9;
  --field:#f2ecdf;
  --rail:#eee7d8;

  --ink:#2b2620;
  --ink-dim:#544c40;
  --ink-dimmer:#776d5e;

  --accent:#7a3d1e;
  --accent-hi:#5c2c12;
  --accent-lo:#b07a55;
  --on-accent:#fdf8f0;

  --red:#a8281f;
  --red-ink:#8d1f18;
  --green:#3f6b2e;
  --green-ink:#33581f;

  --t-source:#6b6357; --t-atomic:#2f5f9e; --t-qa:#0f6f6a;
  --t-claim:#d4581c;  --t-summary:#8a6a12; --t-pattern:#6b3d9e;
  --t-finding:#a32a68;
  --atomic-ink:#2c5590;
  --pattern-ink:#5c3489;

  --accent-rgb:122,61,30;
  --deep-rgb:222,213,196;
  --panel-rgb:236,228,212;
  --panel2-rgb:243,237,225;
  --red-rgb:168,40,31;
  --green-rgb:63,107,46;
  --claim-rgb:212,88,28;
  --atomic-rgb:47,95,158;
  --pattern-rgb:107,61,158;
  --ink-dimmer-rgb:119,109,94;
  --shadow-rgb:120,104,78;
  --sheen-rgb:43,38,32;

  --line:rgba(43,38,32,.13);
  --line-soft:rgba(43,38,32,.07);
  --rust:#a8542a;
  --hm1:#f0e4cf; --hm2:#dcbf94; --hm3:#b2814c; --hm4:#7a4a22;
  --s-ignored:#77706a;
  /* one wash, warm, and off to one side. The multi-lobe rainbow the prism
     palettes use is exactly the kind of movement a reading page should not have. */
  /* The wash, on the two FIXED layers (see cockpit.css) rather than on --lamp.
     --lamp is painted on the body, so its percentages resolve against the
     DOCUMENT: on a long page the blooms sit against a box several screens tall
     and the slice that reaches the top of the SCREEN collapses to nothing —
     measured at exactly the flat page colour on a 7,244px page. Fixed layers
     are sized to the viewport and cannot care how tall the document is.
     the light arrives in the corner the utility cluster sits in and fades out
     across the page, so the top of every screen sits INSIDE a colour.
     Deliberately the FAINTEST wash in the light family — roughly half the others.
     This palette exists to be read for an hour, and a wash is the one part of a
     page that is doing nothing except being noticed. One hue, warm, off to the
     right; no second colour crossing the page.
  */
  --lamp:none;   /* painted on the fixed layer instead — see --lamp-fixed */
  --lamp-fixed:
    radial-gradient(105vw 72vh at 118% -14%,rgba(122,61,30,.18),transparent 64%),
    radial-gradient(112vw 76vh at 88% -18%,rgba(168,110,70,.11),transparent 66%),
    radial-gradient(95vw 66vh at 58% -22%,rgba(200,160,110,.06),transparent 62%);
  /* …and the half that moves: soft blooms, meant to be noticed after a minute
     rather than watched. Its own layer because it animates TRANSFORM only. */
  --lamp-drift:
    radial-gradient(92vw 64vh at 92% 0%,rgba(122,61,30,.10),transparent 62%),
    radial-gradient(88vw 60vh at 62% 6%,rgba(168,110,70,.06),transparent 62%);
  --lift:0 1px 2px rgba(120,104,78,.12),0 10px 26px -14px rgba(120,104,78,.40);
  --veil:rgba(244,239,228,.80);
  --dial-on:rgba(122,61,30,.10);
  --graph-bg:#fbf8f0;
  --graph-veil:rgba(251,248,240,.82);

  --attn-ink:#5c2c12; --attn-rgb:122,61,30; --attn-bed:.10; --attn-bd:.35;
}

:root[data-theme="papyrus"]{
  --bd:1px solid rgba(43,38,32,.13);
  --bd-soft:1px solid rgba(43,38,32,.07);
  --bd-firm:1px solid rgba(43,38,32,.26);
  --wash:rgba(var(--accent-rgb),.07);
}
