/* ============================================================
   Flourishes (Will's picks, 2026-11-21, from the 2026-11-19 flourish pass: "subtle, tasteful, thoughtful tweaks ...
   depth, texture, detail, animation, delight, shadow"). He reviewed 28 on the preview and kept these ten: paper,
   layered shadows, gold foil, pressable buttons, the growing photo popup (js/dr-gallery.js), testimonials, afterglow,
   newest event leads, the film-edge footer, and retiring four old tells. The 18 he cut are in git history (mockups
   branch `flourish`, before 2026-11-21) if one is ever wanted back.
   All motion stops under prefers-reduced-motion (the block at the end).
   ============================================================ */

:root {
  --fx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* a layered, tinted shadow: contact, then two soft falls (dark mode) */
  --fx-shadow-print:
    0 1px 1px oklch(0 0 0 / 0.35),
    0 3px 6px -1px oklch(0 0 0 / 0.35),
    0 12px 24px -8px oklch(0 0 0 / 0.55),
    0 32px 56px -24px oklch(0 0 0 / 0.65);
  --fx-shadow-lifted:
    0 1px 1px oklch(0 0 0 / 0.35),
    0 6px 10px -2px oklch(0 0 0 / 0.4),
    0 20px 36px -10px oklch(0 0 0 / 0.6),
    0 48px 80px -28px oklch(0 0 0 / 0.7);
  --fx-edge: inset 0 1px 0 oklch(1 0 0 / 0.07);
  --fx-gold-1: oklch(0.86 0.075 88);    /* foil highlight */
  --fx-gold-2: oklch(0.747 0.089 82);   /* = --accent */
  --fx-gold-3: oklch(0.58 0.085 72);    /* foil shadow */
}
:root[data-theme="light"] {
  /* light mode: shadows are cooler and far lighter, like prints on a mat board under daylight */
  --fx-shadow-print:
    0 1px 1px oklch(0.3 0.01 270 / 0.10),
    0 3px 6px -1px oklch(0.3 0.01 270 / 0.10),
    0 12px 24px -8px oklch(0.3 0.01 270 / 0.16),
    0 32px 56px -24px oklch(0.3 0.01 270 / 0.20);
  --fx-shadow-lifted:
    0 1px 1px oklch(0.3 0.01 270 / 0.10),
    0 6px 10px -2px oklch(0.3 0.01 270 / 0.12),
    0 20px 36px -10px oklch(0.3 0.01 270 / 0.20),
    0 48px 80px -28px oklch(0.3 0.01 270 / 0.26);
  --fx-edge: inset 0 1px 0 oklch(1 0 0 / 0.9);
  --fx-gold-1: oklch(0.66 0.11 78);
  --fx-gold-2: oklch(0.485 0.095 72);
  --fx-gold-3: oklch(0.38 0.08 65);
}

/* ── paper: in light mode the mat board has a faint, uneven paper mottle under the grain ── */
:root[data-theme="light"] body.dr { background-color: var(--bg); }
:root[data-theme="light"] .site-main { position: relative; }
:root[data-theme="light"] .site-main::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("/img/wj/fx/paper.svg");
  opacity: 0.16; mix-blend-mode: multiply;
}

/* ── layered shadows under prints and cards; recessed bands with a lit top edge ── */
.print { box-shadow: var(--mount), var(--fx-shadow-print); }
.intro .print { box-shadow: var(--mount), var(--fx-shadow-lifted); }
.sq-card { box-shadow: var(--fx-edge), var(--fx-shadow-print); border-radius: 2px; }
.mount { box-shadow: var(--mount), var(--mount-depth), var(--fx-shadow-print); }
.lw { background: linear-gradient(oklch(1 0 0 / 0.012), oklch(1 0 0 / 0)); }

/* ── gold foil: the wordmark's hairline catches the light now and then (fast on hover); drop caps and the gold
   buttons get a metallic face ── */
.wordmark::after {
  background: linear-gradient(90deg, var(--fx-gold-3), var(--fx-gold-2) 30%, var(--fx-gold-1) 50%, var(--fx-gold-2) 70%, var(--fx-gold-3));
  background-size: 300% 100%;
  animation: fx-foil 14s ease-in-out infinite;
}
.wordmark:hover::after { animation-duration: 1.6s; }
@keyframes fx-foil { 0%, 70% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.prose :is(.lede, .dropcap)::first-letter {
  background: linear-gradient(170deg, var(--fx-gold-1) 10%, var(--fx-gold-2) 45%, var(--fx-gold-3) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:is(.nl-form button, .dr .button, .reel-play) {
  background-image: linear-gradient(175deg, oklch(1 0 0 / 0.22), oklch(1 0 0 / 0) 45%, oklch(0 0 0 / 0.08));
}

/* ── buttons you can press: a lit top edge, a soft shadow, and they sink a pixel when pressed; taps are tinted ── */
:is(.nl-form button, .dr .button, .reel-play, .dr-form button, .footer-signup button) {
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.35), 0 1px 2px oklch(0 0 0 / 0.4), 0 6px 14px -6px oklch(0 0 0 / 0.6);
  transition: transform 0.12s var(--fx-ease), box-shadow 0.12s var(--fx-ease), background-color 0.15s ease, color 0.15s ease;
}
:is(.nl-form button, .dr .button, .reel-play, .dr-form button, .footer-signup button):active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px oklch(0 0 0 / 0.3), 0 0 1px oklch(0 0 0 / 0.4);
}
body.dr { -webkit-tap-highlight-color: oklch(0.747 0.089 82 / 0.18); }
:is(a, button) { touch-action: manipulation; }

/* ── photo popup grows: an event photo grows out of its spot on the page into the popup and shrinks back when it
   closes (js/dr-gallery.js); each photo has its own address (#photo-3) ── */
::view-transition-group(fx-photo) { animation-duration: 0.42s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(fx-photo), ::view-transition-new(fx-photo) { height: 100%; object-fit: contain; }

/* ── testimonials: a large Caslon quotation mark in each card's corner, and the cards come in one after another
   as the section scrolls into view (js/fx.js; theme-init.js's 4 s failsafe shows them if it never runs) ── */
.sq-card { position: relative; }
.sq-card .sq-pull::before {
  content: "\201D";
  position: absolute; top: 0.02em; right: 0.12em;
  font-family: var(--font-display); font-style: normal; font-size: 9rem; line-height: 1;
  color: var(--accent); opacity: 0.11;
  pointer-events: none;
}
:root.fxjs .sq-card:not(.is-in) { opacity: 0; transform: translateY(14px); }
:root.fxjs .sq-card.is-in { transition: opacity 0.7s var(--fx-ease-out) var(--d, 0s), transform 0.9s var(--fx-ease-out) var(--d, 0s); }
:root.fx-failsafe .sq-card { opacity: 1 !important; transform: none !important; }

/* ── afterglow: after the theme flips, a soft light runs once along the section rules and the wordmark (js/fx.js) ── */
:root.fx-glow .section-rule::before,
:root.fx-glow .section-rule::after,
:root.fx-glow .wordmark::after {
  background: linear-gradient(90deg, var(--rule) 0 35%, var(--fx-gold-1) 50%, var(--rule) 65% 100%);
  background-size: 300% 100%;
  animation: fx-glow 2.6s var(--fx-ease) both;
}
@keyframes fx-glow { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ── newest event leads: on Events, the newest event's photo and title run larger than the rest ── */
@media (min-width: 40rem) {
  .event-list > .event-card:first-child { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .event-list > .event-card:first-child .event-title { font-size: var(--grt-step-4); line-height: var(--grt-step-lh-4); }
}

/* ── film edge: the footer begins with a strip of sprocket holes, the end of the roll ── */
.site-footer { position: relative; }
.site-footer::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 9px; transform: translateX(-50%);
  background-image: var(--sprockets);
  opacity: 0.9;
  pointer-events: none;
}

/* ── four old tells retired (all on Will's banned list): post quotations in italic with a gold left bar become larger
   upright Caslon between thin rules (a post's own italics stay); testimonial cards lose their gold top bar; the footer
   "+" stops pulsing; event gallery photos no longer zoom on hover ── */
.prose blockquote {
  position: relative;
  margin: var(--grt-space-lg) 0;
  padding: var(--grt-space-sm) 0;
  border-left: 0;
  border-block: 1px solid var(--rule);
}
.prose blockquote p {
  font-family: "Libre Caslon Text", "Libre Caslon Text Fallback", var(--font-display);
  font-style: normal;
  font-size: var(--grt-step-1); line-height: var(--grt-step-lh-1);
  color: var(--text);
}
.quote { border-left: 0; padding-left: 0; }
.quote blockquote p { font-style: normal; }
.sq-card { border-top: 0; }
.accent { animation: none; text-shadow: none; }
.contact-sheet a:hover img { transform: none; }

/* ── reduced motion: every moving flourish stops; the static ones stay ── */
@media (prefers-reduced-motion: reduce) {
  .wordmark::after, :root.fx-glow :is(.section-rule::before, .section-rule::after, .wordmark::after) { animation: none !important; }
  .sq-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  ::view-transition-group(fx-photo) { animation: none !important; }
  :is(.nl-form button, .dr .button, .reel-play, .dr-form button, .footer-signup button) { transition: none; }
}
