/* Colours for Version 1. Dark is the default; light applies when <html data-theme="light">. */
:root {
  --on-gold: #0a0a0a; --veil: rgba(10, 10, 10, .96); --tint: rgba(10, 10, 10, .65); --fade: 10, 10, 10; --err: #ff9d8a;
  --word-line: rgba(200, 170, 122, .17); --frame-shadow: 0 40px 90px rgba(0, 0, 0, .6); --side-filter: saturate(.85) brightness(.85);
  --stage: radial-gradient(ellipse 55% 62% at 50% 0%, rgba(233, 214, 180, .17), transparent 70%), linear-gradient(#0a0a0a, #141310 55%, #0a0a0a);
  --rod: linear-gradient(#f2ead9, #8d8272 40%, #3a352d); --rod-shadow: 0 12px 22px rgba(0, 0, 0, .7); --rod-post: linear-gradient(#1f1c18, #857b6c); --wire: #a89f90;
  --hang-shadow: drop-shadow(0 18px 14px rgba(0, 0, 0, .7)); --mat: #e8e1d3; --mat-shadow: none;
  --spot: radial-gradient(ellipse 45% 60% at 50% 45%, #2a2620, #0d0c0b 75%); --piece-shadow: drop-shadow(0 40px 36px rgba(0, 0, 0, .7));
}
:root[data-theme="light"] {
  --bg: #f6f2ea; --panel: #ebe5da; --ink: #15130f; --soft: #5c554a; --line: rgba(21, 19, 15, .17); --gold: #7a5c2b;
  --on-gold: #fff; --veil: rgba(246, 242, 234, .96); --tint: rgba(255, 253, 249, .78); --fade: 246, 242, 234; --err: #a3261b;
  --word-line: rgba(122, 92, 43, .24); --frame-shadow: 0 34px 70px rgba(55, 42, 22, .22); --side-filter: none;
  --stage: radial-gradient(ellipse 55% 62% at 50% 0%, rgba(255, 255, 255, .95), transparent 70%), linear-gradient(#f6f2ea, #e7dfd1 55%, #f6f2ea);
  --rod: linear-gradient(#8b8172, #463f35 40%, #1e1a15); --rod-shadow: 0 10px 18px rgba(55, 42, 22, .24); --rod-post: linear-gradient(#a99f8f, #4a4339); --wire: #6a6155;
  --hang-shadow: drop-shadow(0 16px 14px rgba(55, 42, 22, .3)); --mat: #fff; --mat-shadow: 0 14px 22px rgba(55, 42, 22, .22);
  --spot: radial-gradient(ellipse 45% 60% at 50% 45%, #fffdf8, #e8e0d2 75%); --piece-shadow: drop-shadow(0 34px 30px rgba(55, 42, 22, .32));
  color-scheme: light;
}
/* the logo file is white */
:root[data-theme="light"] .bar__logo img { filter: brightness(0); }
/* words laid on top of photographs and video stay light */
:root[data-theme="light"] :is(.banner > div, .reel figcaption, .duo__tile span) { --ink: #ede8df; --soft: #ddd7cc; --gold: #d9bd8e; color: var(--ink); }

/* the switch: a sun while dark, a moon while light */
.bar nav .bar__theme { width: 32px; justify-content: center; }
.bar__theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.bar__theme .i-moon, :root[data-theme="light"] .bar__theme .i-sun { display: none; }
:root[data-theme="light"] .bar__theme .i-moon { display: block; }

:root[data-theme="light"] dialog::backdrop { background: rgba(33, 25, 12, .45); }

/* on computers the first screen's words lie on the film, so they stay light there */
@media (min-width: 768px) {
  :root[data-theme="light"] .j-open { --ink: #ede8df; --soft: #d6d0c5; --gold: #d9bd8e; --bg: #0a0a0a; --fade: 10, 10, 10; color: var(--ink); }
}

/* on phones the chapter words need solid ground behind them */
@media (max-width: 900px) {
  :root[data-theme="light"] .journey:not(.is-static) .j-copy { background: linear-gradient(rgba(var(--fade), 0), rgba(var(--fade), .96) 112px); }
}
