/* CENTS — the one palette the cents.gallery pages share.

   Every page in cents/ links this before its own <style>, so a page's own
   rules still win where it needs something particular. /ucca/ does not yet:
   it runs on tokens.css and is also sovrn.art's exhibition page. Until this
   file existed the nine pages carried two hand-copied palettes, one dark and
   one light, and they had drifted: two coppers, two light grounds, and
   --ink/--paper meaning the background on one set and the text on the other.

   The names below are new on purpose. --ink and --paper are not used here,
   because they swap roles between the old palettes and a page that still said
   var(--paper) would get whichever meaning the reader assumed. Name the role,
   never the pigment.

   CENTS is dark everywhere (decided 28 Oct 2026). It stays outside tokens.css
   for the reason tokens.css itself gives: the darker palette is part of how
   the collection presents itself.

   Contrast, computed rather than judged (WCAG 2, against --ground / --raise):
     --text    17.2 / 15.7   body
     --text-2  10.2 /  9.3   secondary prose
     --mute     5.9 /  5.4   captions, 10–12px mono: passes 4.5 for small text
     --cut      1.6 /  1.5   links and accents as text: below 4.5, a deliberate
                             choice (horse picked the exact red, 27 Nov 2026)
     --text on --cu  10.6    the red button label
   --cu (the red itself, sampled 27 Nov 2026) is only 1.6 on --ground, so it is
   too dark for small text by the numbers; horse chose it anyway over a lifted tint.
   --rule, --hair and --lift are dividers and borders, not text, so the text
   threshold is the wrong question to ask of them. */

:root{
  color-scheme:dark;
  --ground:#0e0e0e;   /* the page */
  --raise:#191919;    /* panels, fields, tiles */
  --wash:#141414;     /* a row's hover tint, between the two */
  --text:#f2f2f0;
  --text-2:#bdbdb8;
  --mute:#8e8e8e;
  --rule:#2c2c2c;
  --hair:#222222;
  --lift:#4a4a4a;
  --cu:#720a05;       /* the red as a fill or a line (selection, rules) */
  --cut:#720a05;      /* the red as text too (horse, 27 Nov 2026) */
  --mark:#3d0c08;     /* a search match */
}

body{background:var(--ground);color:var(--text)}
::selection{background:var(--cu);color:var(--text)}

/* Navigation. The markup is written into every page by tools/cents-nav.py and
   only by it; these rules are the one place it is styled. Selectors are scoped
   to .cg-* because each page still carries its own bare a, ul, p and h2 rules,
   and a footer that inherited one page's h2 would look different on every page. */

.cg-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 28px;margin:clamp(16px,3vw,30px) 0 26px}
.cg-head .homemark{margin:0}
.cg-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px}
.cg-nav a{display:inline-block;padding:8px 0 5px;border-bottom:1px solid transparent;text-decoration:none;
  font:500 11px/1 "IBM Plex Mono",monospace;letter-spacing:.13em;text-transform:uppercase;color:var(--text-2)}
.cg-nav a:hover{color:var(--cut)}
.cg-nav a[aria-current=page]{color:var(--text);border-bottom-color:var(--cu)}

.cg-pn{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:64px 0 0;padding-top:22px;border-top:1px solid var(--rule)}
.cg-pn a{display:block;text-decoration:none;color:var(--text);padding:4px 0}
.cg-pn .next{grid-column:2;text-align:right}
.cg-pn .k{display:block;margin-bottom:8px;font:500 10px/1 "IBM Plex Mono",monospace;letter-spacing:.16em;text-transform:uppercase;color:var(--mute)}
.cg-pn .n{font:italic 300 clamp(19px,2.4vw,24px)/1.2 Fraunces,serif;letter-spacing:-.01em}
.cg-pn a:hover .n{color:var(--cut)}

.cg-foot{margin:40px 0 0;padding:28px 0 0;border-top:1px solid var(--rule)}
.cg-foot nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:26px 24px}
.cg-foot .cg-k{margin:0 0 12px;max-width:none;font:500 10px/1 "IBM Plex Mono",monospace;letter-spacing:.16em;text-transform:uppercase;color:var(--mute)}
.cg-foot ul{list-style:none;margin:0;padding:0;display:block;border:0}
.cg-foot li{margin:0;padding:0;border:0}
.cg-foot li+li{margin-top:9px}
.cg-foot a{font:400 14px/1.35 "IBM Plex Sans",sans-serif;letter-spacing:0;text-transform:none;color:var(--text-2);text-decoration:none;border:0}
.cg-foot a:hover{color:var(--cut)}
.cg-foot a img{width:18px;height:18px;object-fit:cover;border-radius:4px;vertical-align:-4px;margin-right:8px}
.cg-foot a[aria-current=page]{color:var(--text)}
.cg-foot .cg-cu li{font:400 14px/1.35 "IBM Plex Sans",sans-serif;color:var(--text-2)}
.cg-foot .cg-cu [data-cu]{font-variant-numeric:tabular-nums}
.cg-foot .cg-home{margin:30px 0 0;max-width:none}
.cg-foot .cg-home a{font:500 10.5px/1 "IBM Plex Mono",monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}

/* Doors: one way in per kind of visitor, under the home hero. Scoped to .cg-doors
   for the same reason as the nav: page-level a/ul/h2 rules would otherwise win. */
.cg-doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.cg-doors>li{display:flex;flex-direction:column;background:var(--raise);border:1px solid var(--rule);border-top:2px solid var(--cu);padding:24px 24px 18px}
.cg-doors .cg-k{font:500 10.5px/1 "IBM Plex Mono",monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--cut);margin:0 0 12px}
.cg-doors h2{font:300 25px/1.12 Fraunces,serif;letter-spacing:-.01em;text-transform:none;color:var(--cut);margin:0 0 14px;padding:0;scroll-margin-top:74px}
.cg-doors p{font:400 14.5px/1.5 "IBM Plex Sans",sans-serif;color:var(--text-2);margin:0 0 16px;max-width:none}
.cg-doors ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.cg-doors ul a{display:block;padding:9px 0;border-top:1px solid var(--hair);font:400 14.5px/1.35 "IBM Plex Sans",sans-serif;color:var(--text);text-decoration:none}
.cg-doors ul a{transition:color .15s}
.cg-doors ul a:hover{color:var(--cut)}
.cg-doors a:focus-visible{outline:2px solid var(--cut);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.cg-doors ul a{transition:none}}
