/* Shared accessible palette, depth, presale and interaction styles.
   Keep the copies in all three Netlify folders identical. */
:root {
  color-scheme: light;
  --bg: #faf8f5;
  --bg-soft: #ffffff;
  --ink: #2d2226;
  --ink-soft: #6b5f63;
  --ink-faint: #6b5f63;
  --rule: #e8e0dc;
  --accent: #8b5e63;
  --accent-soft: #8b5e63;
  --accent-deep: #6e4a4e;
  --accent-text: #8b5e63;
  --button-bg: #8b5e63;
  --button-ink: #ffffff;
  --teal: #086c68;
  --teal-fill: #e8f5f3;
  --teal-line: #086c68;
  --warn: #735400;
  --alert: #a3373d;
  --control-border: #8b7b80;
  --focus: #086c68;
  --depth: 0 2px 6px rgba(45,34,38,.05), 0 16px 40px rgba(45,34,38,.08);
  --fg: var(--ink);
  --muted: var(--ink-faint);
  --rose: var(--accent-text);
  --card: var(--bg-soft);
  --border: var(--rule);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-soft: #1a1a1d;
  --ink: #faf8f5;
  --ink-soft: #c4c9d0;
  --ink-faint: #b0b7be;
  --rule: #333338;
  --accent: #d4a0a7;
  --accent-soft: #d4a0a7;
  --accent-deep: #f5d5d8;
  --accent-text: #d4a0a7;
  --button-bg: #b76e79;
  --button-ink: #0a0a0b;
  --teal: #81d8d0;
  --teal-fill: #192e2c;
  --teal-line: #81d8d0;
  --warn: #e8c44a;
  --alert: #da7a7a;
  --control-border: #b0b7be;
  --focus: #81d8d0;
  --depth: 0 4px 12px rgba(0,0,0,.25), 0 20px 48px rgba(0,0,0,.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0b; --bg-soft: #1a1a1d;
    --ink: #faf8f5; --ink-soft: #c4c9d0; --ink-faint: #b0b7be;
    --rule: #333338; --accent: #d4a0a7; --accent-soft: #d4a0a7;
    --accent-deep: #f5d5d8; --accent-text: #d4a0a7;
    --button-bg: #b76e79; --button-ink: #0a0a0b;
    --teal: #81d8d0; --teal-fill: #192e2c; --teal-line: #81d8d0;
    --warn: #e8c44a; --alert: #da7a7a;
    --control-border: #b0b7be; --focus: #81d8d0;
    --depth: 0 4px 12px rgba(0,0,0,.25), 0 20px 48px rgba(0,0,0,.4);
  }
}
html { scroll-padding-block: 2rem; }
body { background: var(--bg); }
.wrap, .topbar, .cta-row, .rzbar, .titlebar { min-width: 0; }
p, li, h1, h2, h3, a, button, .fn { overflow-wrap: anywhere; }
.topbar { flex-wrap: wrap; }
.topnav { flex-wrap: wrap; }
a { text-underline-offset: .2em; }
p a, li a, .fits a, .calcnote a, footer a, .parent a {
  text-decoration: underline;
}
button, summary, .btn, .pill, .topnav a, footer a, input, select {
  min-height: 44px;
}
footer a, .topnav a { display: inline-flex; align-items: center; }
button, .btn, .pill, input, select { border-color: var(--control-border); }
.theme-toggle { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.btn-primary, .rztab.on, .rzunit button.on, .rosapill, .rzcore {
  background: var(--button-bg) !important;
  color: var(--button-ink) !important;
}
.btn-primary:hover { background: var(--accent-deep) !important; }
.btn-ghost { border-color: var(--control-border); }
:focus-visible, input:focus-visible, select:focus-visible, #slider:focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 4px !important;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.rosie-skip, .skip {
  position: absolute; left: -10000px; top: 0; z-index: 2147483640;
  padding: 14px 22px; background: var(--bg-soft); color: var(--ink);
}
.rosie-skip:focus, .skip:focus { left: 8px; top: 8px; }
#main:focus { outline: none; }
.feature, .cap, .fits, .cta-block, .window, .rzwin, .calculator {
  box-shadow: var(--depth);
}
#rosie-aurora, .aurora, #rosie-grain { display: none; }
.motion-toggle {
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--control-border); background: var(--bg-soft); color: var(--ink);
  cursor: pointer;
}
[data-motion="paused"] *, [data-motion="paused"] *::before,
[data-motion="paused"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
[data-motion="paused"] .rv, [data-motion="paused"] .ww span.w,
[data-motion="paused"] .logrow, [data-motion="paused"] .soap > div,
[data-motion="paused"] .rzans p, [data-motion="paused"] .rzcite {
  opacity: 1 !important; transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }
.qa.open { max-height: none; }
.rung.on { background: var(--bg-soft); border-color: var(--accent); }
.films { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.film, .cap, .stat, .rzstep { min-width: 0; }
.anchor a { white-space: normal; }
.calcrow > .who { min-width: 0; max-width: 100%; flex: 1 1 auto; }
.night, .ebox { background: var(--bg-soft); }
.sacred.dim { filter: none !important; }
.film-len { background: #0a0a0b; }
.feature .free { display: block; margin: 8px 0 0; font-size: 12px; vertical-align: baseline; }
.rzband.b1 { color: var(--warn); }
.rzband.b2, .rzband.b3, .rzbadge.emg { color: var(--alert); }
.rzband, .rzbadge, .rzcite { white-space: normal; }
.rzcalc { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.rzfield input, .rzfield select { border-color: var(--control-border); }
.rztranscript { padding: 18px 22px; border-top: 1px solid var(--rule); }
.rztranscript summary { font-size: 16px; }
.rztranscript p { font-size: 14px; color: var(--ink-soft); }
.rzband { max-width: 100%; }
.collar-presale {
  margin: 0 0 56px; padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--accent); border-radius: 18px;
  background: var(--bg-soft); box-shadow: var(--depth);
}
.collar-presale .tag { margin-bottom: 12px; color: var(--teal) !important; }
.collar-presale h2 { max-width: 720px; }
.collar-presale p { color: var(--ink-soft); }
.collar-presale .collar-points {
  display: flex; flex-wrap: wrap; gap: 10px 24px; padding-left: 20px;
  color: var(--ink); font-size: 14px; margin: 20px 0;
}
.collar-presale .collar-price { font-size: 18px; color: var(--ink); }
.collar-presale .collar-price strong { color: var(--accent-text); }
.collar-presale .cta-row { margin: 20px 0 16px; }
.collar-presale .collar-terms { font-size: 13px; margin-bottom: 0; }
.collar-presale .collar-terms a { color: var(--accent-text); }
.collar-presale .collar-status {
  font-size: 13px; border-left: 3px solid var(--teal); padding-left: 12px;
}
body:has(header.site) p, body:has(header.site) li { color: var(--ink-soft); }
header.site { position: static !important; background: var(--bg-soft) !important; flex-wrap: wrap; }
#rosie-consent {
  position: static !important; background: var(--bg-soft) !important;
  color: var(--ink) !important; border-color: var(--rule) !important;
}
#rosie-consent p { color: var(--ink-soft) !important; }
#rosie-consent a { color: var(--accent-text) !important; }
#rosie-consent button { border-color: var(--control-border) !important; }
#rosie-consent .rc-accept {
  background: var(--button-bg) !important; color: var(--button-ink) !important;
}
@media (max-width: 560px) {
  .wrap { padding: 32px 18px; }
  .parent { flex-basis: 100%; margin-left: 0 !important; }
  .spacer { display: none; }
  .cta-row .btn { justify-content: center; width: 100%; text-align: center; }
  .rzpipe { grid-template-columns: 1fr 1fr; }
  .rzbar .fn, .titlebar .fn { margin-left: 0; }
  .collar-presale .collar-points { display: block; }
  .collar-presale .collar-points li { margin-block: 8px; }
  .film iframe { width: 100%; aspect-ratio: 16/9; }
}
@media (forced-colors: active) {
  button, .btn, .pill, input, select { border: 1px solid ButtonText !important; }
  :focus-visible { outline-color: Highlight !important; }
  .collar-presale { border-color: CanvasText; }
}

/* Phone first screen (2026-10-24). Phones only; desktop is unchanged.
   Cookie bar fixed to the bottom, one-line top bar, icon-only animation
   toggle, and secondary hero buttons as text links so one call to action
   shows without scrolling. Markup, ids and consent.js are untouched. */
@media (max-width: 720px) {
  #rosie-consent {
    position: fixed !important; top: auto; left: 0; right: 0; bottom: 0;
    max-height: 85dvh; overflow-y: auto;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
  }
  #rosie-consent .rc-inner { padding: 8px 16px 0; gap: 6px; }
  #rosie-consent p { flex: 1 1 100%; font-size: 12px; line-height: 1.4; }
  #rosie-consent .rc-btns { flex: 1 1 100%; flex-wrap: nowrap; gap: 10px; }
  #rosie-consent .rc-btns button {
    flex: 1 1 0; min-height: 40px; padding: 6px 12px; font-size: 14px; font-weight: 600;
  }
  html:has(#rosie-consent[style*="block"]) { scroll-padding-bottom: 140px; }
  body:has(#rosie-consent[style*="block"]) { padding-bottom: 140px; }

  .topbar { flex-wrap: nowrap; gap: 8px; margin-bottom: 20px; }
  .topbar .parent { flex: 1 1 0; min-width: 0; margin-left: 0 !important; font-size: 12px; line-height: 1.25; }
  .topbar .theme-toggle, .topbar .motion-toggle { flex: none; width: 44px; height: 44px; padding: 0; }
  .topbar .theme-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .motion-toggle { position: relative; font-size: 0; color: transparent; line-height: 0; }
  .motion-toggle::before {
    content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
    background: var(--ink-soft);
    -webkit-mask: var(--motion-icon) center / contain no-repeat;
    mask: var(--motion-icon) center / contain no-repeat;
    --motion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E");
  }
  .motion-toggle[aria-pressed="true"]::before {
    --motion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4h4v16H6zM14 4h4v16h-4z'/%3E%3C/svg%3E");
  }

  .hero .cta-row .btn-ghost, main > .cta-row .btn-ghost {
    width: auto; min-height: 44px; padding: 6px 4px; border: 0; background: none;
    color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em;
    justify-content: flex-start;
  }
  .hero .cta-row, main > .cta-row { align-items: center; column-gap: 18px; row-gap: 0; }
}
