/* SKINS — FRONT PORCH 2026-11-11 — preset looks for the Library. Live Nov 11, 2026.
   A skin changes COLOURS ONLY — the site's own CSS variables are
   re-pointed, nothing else. No layout, no sizes, no spacing, no moved
   elements. Every palette below passes WCAG AA for text (see
   SKINS-NOTE.md for the measured ratios). */

html[data-skin="midnight"]{
  --bg:#14110c; --bg2:#1c1710; --card:#221c13; --ink:#f0e7d3; --ink2:#b8a98d;
  --line:#3a3222; --accent:#e0784f; --accent-ink:#1c1008; --gold:#d9a94a;
  --gold-text:#d9a94a; --teal:#5fbfa8; --watch:#e0784f; --coming:#d9a94a;
  --vault:#5fbfa8; --vault-ink:#0c1f1a; --shelf:#9db8c6;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35);
}
html[data-skin="casefile"]{
  --bg:#f3ead3; --bg2:#ece0c4; --card:#faf3e0; --ink:#2a2118; --ink2:#57452c;
  --line:#c9b489; --accent:#7c2d12; --accent-ink:#fdf6e3; --gold:#7d5f14;
  --gold-text:#6e5510; --teal:#1f5c50; --watch:#7c2d12; --coming:#6b5510;
  --vault:#1f5c50; --vault-ink:#f2fbf7; --shelf:#3d5568;
  --shadow:0 1px 2px rgba(50,35,10,.08),0 8px 24px rgba(50,35,10,.07);
}
html[data-skin="lamp"]{
  --bg:#241a10; --bg2:#2d2013; --card:#33261a; --ink:#f3e3c2; --ink2:#cdb28a;
  --line:#57402a; --accent:#f0a860; --accent-ink:#2a1602; --gold:#e8bc66;
  --gold-text:#e8bc66; --teal:#7fc9ae; --watch:#f0a860; --coming:#e8bc66;
  --vault:#7fc9ae; --vault-ink:#12291f; --shelf:#b3c9d4;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35);
}
html[data-skin="daylight"]{
  --bg:#ffffff; --bg2:#eef0f2; --card:#ffffff; --ink:#1a1d21; --ink2:#44505c;
  --line:#c3ccd4; --accent:#a32708; --accent-ink:#ffffff; --gold:#8a6d1f;
  --gold-text:#6e5510; --teal:#155e4b; --watch:#a32708; --coming:#6b5510;
  --vault:#155e4b; --vault-ink:#ffffff; --shelf:#3d5568;
  --shadow:0 1px 2px rgba(20,30,40,.08),0 8px 24px rgba(20,30,40,.07);
}
html[data-skin="contrast"]{
  --bg:#000000; --bg2:#000000; --card:#000000; --ink:#ffffff; --ink2:#f2f2f2;
  --line:#ffffff; --accent:#ffff00; --accent-ink:#000000; --gold:#ffff00;
  --gold-text:#ffff00; --teal:#00ffff; --watch:#ffff00; --coming:#ffff00;
  --vault:#00ffff; --vault-ink:#000000; --shelf:#ffffff;
  --shadow:0 0 0 1px rgba(255,255,255,.35);
}

/* Visible focus, in every skin, from the skin's own accent.
   An outline never moves layout — it only shows. */
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* ---------- The card badge, per skin (bubble print, 2026-11-11) ----------
   The feed card's letter badge is a frosted glass bubble (the page
   sheets carry the base treatment). The dark skins keep the clear
   glass; the two light skins deepen the glass over the skin's own
   teal and firm the ring, so the near-white letter stays AA on a
   pale shelf. These rules outrank the page sheet's colour-scheme
   variant, so the skin a reader picked always wins over the
   device's own light/dark setting. */
html[data-skin="midnight"] .avatar,html[data-skin="lamp"] .avatar,html[data-skin="contrast"] .avatar{background-color:transparent;background-image:radial-gradient(circle at 32% 26%,rgba(255,255,255,.5),rgba(255,255,255,.12) 45%,rgba(255,255,255,.05) 70%);box-shadow:inset 0 0 0 2px rgba(255,255,255,.35),inset 0 -4px 7px rgba(120,200,255,.18),0 3px 7px rgba(0,0,0,.4)}
html[data-skin="casefile"] .avatar,html[data-skin="daylight"] .avatar{background-color:var(--teal);background-image:radial-gradient(circle at 32% 26%,rgba(255,255,255,.5),rgba(255,255,255,.12) 45%,rgba(255,255,255,.05) 70%);box-shadow:inset 0 0 0 2px rgba(255,255,255,.55),inset 0 -4px 7px rgba(0,30,24,.25),0 3px 7px rgba(20,30,40,.28)}

/* ---------- The War Room picker ("Choose a look") ---------- */
.skin-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:4px 0 18px}
.skin-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;
  min-height:48px;padding:12px;border:1.5px solid var(--line);border-radius:12px;
  background:var(--card);color:var(--ink);cursor:pointer;box-shadow:var(--shadow);font:inherit}
.skin-card:active{background:var(--bg2)}
.skin-card[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.skin-swatches{display:flex;gap:5px}
.skin-swatches span{width:22px;height:22px;border-radius:50%;border:1px solid var(--line);flex:none}
.skin-name{font-weight:800;font-size:15.5px;line-height:1.2}
.skin-blurb{font-size:13px;line-height:1.4;color:var(--ink2)}
.skin-now{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
