/* Red site frame (test, 1 Dec 2026): the graph-paper sheet scrolls over a fixed red background,
   so inner pages match the rolodex hero. Loaded only on pages with extra.red_frame = true;
   site.css is untouched. The red is an animated gradient of the hero reds. */
body.red-frame{background:#761314}
/* its own fixed layer, not background-attachment:fixed (iOS Safari ignores that) */
.red-bg{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(-45deg,#3a0406,#c81e24,#5a0809,#a3161b) #761314;background-size:400% 400%;
  animation:red-shift 7.5s cubic-bezier(.45,0,.55,1) -3.5s infinite alternate}
/* option 6 of the red-bg demo (1 Dec), after codepen.io/P1N2O/pen/pyBNzX: 15s loop like the pen.
   background-position repaints each frame; fine on desktop, the battery cost on phones is the trade-off */
@keyframes red-shift{from{background-position:0% 50%}to{background-position:100% 50%}}
@media (prefers-reduced-motion:reduce){.red-bg{animation:none}}
.red-frame .sheet{z-index:1;max-width:1280px;margin:clamp(12px,3vw,40px) auto;background:var(--film);
  border-radius:18px;box-shadow:0 2px 6px rgba(40,0,4,.25),0 30px 70px -20px rgba(40,0,4,.55)}
.red-frame .frame{border-radius:10px}
@media (max-width:600px){.red-frame .sheet{margin:10px;border-radius:14px}}
/* Header (Jamie, 2 Dec 2026): no bar. The MENU pill (menu.css), brand and CTA sit straight on the red, spread across
   the full viewport width at the hero's --pad, so they line up with the homepage pill. menu.js opens the panel from the pill. */
.rbar{position:relative;z-index:2;display:flex;align-items:center;gap:12px 20px;padding:10px var(--pad) 0;color:var(--cream)}
/* cancel the body padding from site.css so the header measures from the viewport edge, as on the hero */
.red-frame .rbar{margin:calc(-1 * clamp(1rem,.6rem + 1.6vw,1.75rem)) calc(-1 * max(16px,env(safe-area-inset-right,0px))) 0 calc(-1 * max(16px,env(safe-area-inset-left,0px)))}
.rbar+.sheet{margin-top:clamp(10px,1.5vw,20px)}
.rbar .menu{position:static}
.rbar .menu-btn{position:relative;top:auto;left:auto}
.rbar-brand{margin-left:auto;display:flex;align-items:center;gap:10px;color:var(--cream);text-decoration:none;font-weight:800;font-stretch:125%;letter-spacing:.04em;font-size:var(--t-base)}
/* split key (Jamie, 4 Dec 2026, look C): shared rules in site.css; light glass, the MENU button's height */
.rbar-cta{--k-h:44px}
.rbar a:focus-visible{outline:2px solid var(--cream);outline-offset:3px}
@media (max-width:600px){.rbar{padding-top:12px}.rbar-cta{display:none}}
/* Footer (Jamie, 2 Dec 2026: "go with float"): its own section below the sheet, glass on the red, red showing
   between. Fixed colours. The wrapper is a "sheet" container, so the
   footer keeps its column queries from site.css */
.tb-float{position:relative;z-index:1;max-width:1280px;margin:0 auto;container:sheet/inline-size}
.tb-float .tb{--ink:var(--cream);--ink-2:rgba(245,235,221,.9);--red:var(--cream);color:var(--cream);border:0;border-radius:18px;
  background:linear-gradient(rgba(255,255,255,.08),rgba(255,255,255,.08)),rgba(40,0,4,.18);
  -webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 0 0 1px rgba(255,214,206,.3)}
.tb-float .tb>:is(div,details){box-shadow:1px 0 0 rgba(255,214,206,.24),0 1px 0 rgba(255,214,206,.24)}
@media (max-width:600px){.tb-float{margin:24px 10px 0}.tb-float .tb{border-radius:14px}}
