/* Card Cabinet design tokens: the one place colors, fonts and motion are defined (docs/STYLE_GUIDE.md).
   Every page loads this before its own stylesheet (app/app.css or web/static/site.css); those files only add the
   few values that differ between the app and the public pages. See them all at /admin/design. */
:root{
  /* brand (the same in light and dark) */
  --navy:#1e2a38; --navy-deep:#141c26; --cream:#f5f2e8; --crimson:#a23e48; --brass:#c9a66b; --brass-deep:#8f7444;
  --graphite:#2c2c2c; --linen:#e8e6e1;
  /* surfaces, text and lines */
  --bg:var(--linen); --panel:var(--cream); --surface:#ebe8e1; --soft:#ece9e1; --line:#d8d3c6;
  --ink:var(--graphite); --muted:#625f57; --head:var(--navy);
  --accent:var(--navy); --accent-ink:var(--cream); --accent-soft:#dfdbd0;
  /* status. --up/--down (app) and --good/--bad (public pages) are the same colors */
  --good:#33664a; --up:var(--good); --bad:var(--crimson); --down:var(--bad); --warn:#806028;
  /* text versions of the brand accents: AA (4.5:1) on every light surface, and lighter in dark mode */
  --crimson-ink:var(--crimson); --brass-ink:#7a6236;
  /* the navy studio (Showcase, binder, scan, wish list, Home hero): always dark, in both themes */
  --felt:var(--navy); --felt-deep:var(--navy-deep); --felt-field:#18222e; --felt-line:#3a4757;
  --chalk:var(--cream); --chalk-soft:#cfcabd; --chalk-dim:#b9b4a6; --felt-up:#93c7a0; --felt-down:#e59a9f;
  --amber:var(--brass); --stitch:var(--crimson);
  /* paper card backs */
  --tan:#e8d6ae; --tan-deep:#d6bf8c; --print:#1f3b73;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* type */
  --display:"Libre Caslon Condensed","Tiempos Headline","Freight Display Pro",Georgia,serif;
  --sans:"Inter","Avenir Next",system-ui,-apple-system,"Segoe UI",sans-serif;
  --script:"Caveat","Bradley Hand",cursive;
  --varsity:var(--display); --sport:var(--sans);
  /* motion: 200-300ms, ease-out */
  --ease:cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#11171f; --panel:#1b2532; --surface:var(--panel); --soft:#232f3e; --line:#2e3b4b;
    --ink:var(--cream); --muted:#a9a496; --head:var(--cream);
    --accent:var(--brass); --accent-ink:var(--navy); --accent-soft:#2c3644;
    --good:#93c7a0; --bad:#e59a9f; --warn:#d9b77c;
    --crimson-ink:#e59a9f; --brass-ink:var(--brass);
  }
}
