/* ============================================================
   School Live — editorial component layer
   Shared by every page. Tokens live in assets/theme.js.
   ============================================================ */

:root {
    /* Subtle paper grain, inlined so no extra request is needed */
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Fraunces is a variable serif; dial in a slightly "soft" optical setting for display use */
.font-display-lg, .font-display-lg-mobile, .font-headline-lg, .font-headline-md {
    font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 96;
}
/* Flared-terminal variant, for deliberate italic accents only */
.wonk { font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    user-select: none;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ---------- Paper grain overlay ---------- */
.grain { position: relative; }
.grain > .grain-layer {
    position: absolute; inset: 0; pointer-events: none;
    background-image: var(--grain);
    opacity: 0.05; mix-blend-mode: multiply;
}
.grain-invert > .grain-layer { opacity: 0.10; mix-blend-mode: overlay; }

/* ---------- Editorial kicker / eyebrow ---------- */
.kicker {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.kicker::before {
    content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.45; flex: none;
}
.kicker-plain::before { display: none; }

/* ---------- Drop cap ---------- */
.dropcap::first-letter {
    float: left; font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: 3.9em; line-height: 0.82; padding-right: 0.09em; margin-top: 0.06em;
    color: #ba0013;
}

/* ---------- Scroll reveal (only active once JS is confirmed alive) ---------- */
.js [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Failsafe: if IntersectionObserver never delivers (hidden tab, bfcache, prerender),
   drop the effect entirely rather than leaving content invisible. */
.js.reveal-off [data-reveal] { opacity: 1; transform: none; transition: none; }

/* ---------- Logo marquee ---------- */
.marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex; width: max-content;
    animation: marquee 45s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Tab panels ---------- */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel-in 0.55s var(--ease-out-expo) both; }
@keyframes panel-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
.tab-btn { position: relative; }
.tab-btn::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: #ba0013; transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}
.tab-btn[aria-selected="true"]::after { transform: scaleX(1); }

/* ---------- Nav underline ---------- */
.nav-link { position: relative; }
.nav-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px;
    background: #ba0013; transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Magazine cover, 3D ---------- */
.cover-stage { perspective: 1800px; }
.cover {
    position: relative;
    transform: rotateY(-11deg) rotateX(3deg) rotateZ(-1.2deg);
    transform-style: preserve-3d;
    transition: transform 1s var(--ease-out-expo), box-shadow 1s var(--ease-out-expo);
}
.cover-stage:hover .cover {
    transform: rotateY(-3deg) rotateX(0deg) rotateZ(0deg) translateY(-8px);
}
.cover .spine {
    position: absolute; left: 0; top: 0; bottom: 0; width: 30px; z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, rgba(23,19,15,0.42) 0%, rgba(23,19,15,0.10) 42%, rgba(255,255,255,0.30) 100%);
}
.cover .page-edge {
    position: absolute; right: -9px; top: 10px; bottom: 10px; width: 9px; z-index: 1;
    background: repeating-linear-gradient(180deg, #ffffff 0px, #ffffff 2px, #ddd7cb 3px);
    border-radius: 0 3px 3px 0;
    box-shadow: 3px 3px 10px rgba(23,19,15,0.20);
}

/* ---------- Interactive depth ---------- */
.lift { transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo); }
.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 44px -18px rgba(34,39,51,0.30); }

.press { transition: transform 0.25s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.press:hover { transform: translateY(-2px); }
.press:active { transform: translateY(0) scale(0.985); }

/* Arrow nudge on editorial links */
.arrow-link .arrow { transition: transform 0.4s var(--ease-out-expo); }
.arrow-link:hover .arrow { transform: translateX(7px); }

/* ---------- Header behaviour ---------- */
#issue-strip {
    max-height: 40px; opacity: 1; overflow: hidden;
    transition: max-height 0.45s var(--ease-out-expo), opacity 0.3s ease;
}
body.is-scrolled #issue-strip { max-height: 0; opacity: 0; }
#site-header { transition: box-shadow 0.4s ease, background-color 0.4s ease; }
body.is-scrolled #site-header { box-shadow: 0 4px 20px rgba(34,39,51,0.08); }

/* ---------- Mobile menu ---------- */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out-expo); }
#mobile-menu.is-open { max-height: 24rem; }

/* ---------- Forms ---------- */
.field {
    width: 100%;
    background: #ffffff;
    border: 1px solid #c9c1b2;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #17130f;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field::placeholder { color: #706760; opacity: 1; }
.field:focus {
    outline: none;
    border-color: #ba0013;
    box-shadow: 0 0 0 3px rgba(186, 0, 19, 0.12);
}
select.field { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; }
textarea.field { resize: vertical; min-height: 8rem; }

.field-label {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: #4a423b;
    margin-bottom: 0.5rem;
}

/* Checkbox, per DESIGN.md: square, 4px radius, fills School Red when active */
.checkbox {
    appearance: none; -webkit-appearance: none;
    width: 1.25rem; height: 1.25rem; flex: none;
    border: 1px solid #c9c1b2; border-radius: 4px; background: #fff;
    display: inline-grid; place-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.checkbox::before {
    content: ""; width: 0.6rem; height: 0.6rem; transform: scale(0);
    transition: transform 0.15s var(--ease-out-expo);
    box-shadow: inset 1rem 1rem #ffffff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.checkbox:checked { background: #ba0013; border-color: #ba0013; }
.checkbox:checked::before { transform: scale(1); }

/* ============================================================
   TESTIMONIAL RAIL — one quote at a time, advancing sideways
   ============================================================ */

.testimonial-rail { position: relative; }

/* Native horizontal scrolling carries touch and trackpad swipes for free;
   scroll-snap keeps a card centred whatever stops the momentum. */
.testimonial-track {
    display: flex; gap: var(--gutter, 24px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 8px;
    scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    scroll-snap-align: center; flex: 0 0 100%;
    background: #ffffff; border: 1px solid #e3ddd1; border-radius: 1rem;
    padding: 2.25rem 1.75rem;
    text-align: left;
}
@media (min-width: 768px) {
    .testimonial-card { flex-basis: 72%; padding: 3rem 3.25rem; }
}
@media (min-width: 1280px) {
    .testimonial-card { flex-basis: 66%; }
}

.testimonial-arrow {
    width: 2.75rem; height: 2.75rem; border-radius: 9999px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #c9c1b2; color: #4a423b; background: #fbfaf7;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.testimonial-arrow:hover { background: #ba0013; border-color: #ba0013; color: #ffffff; }

.testimonial-dot {
    width: 8px; height: 8px; border-radius: 9999px; border: none;
    background: #c9c1b2; padding: 0;
    transition: background-color 0.35s ease, width 0.35s var(--ease-out-expo);
}
.testimonial-dot[aria-current="true"] { background: #ba0013; width: 22px; }

/* ============================================================
   ARCHIVE — year folders and issue cards
   ============================================================ */

.year-toggle { width: 100%; text-align: left; }
.year-toggle .year-chevron { transition: transform 0.4s var(--ease-out-expo); }
.year-toggle[aria-expanded="true"] .year-chevron { transform: rotate(180deg); }

.year-panel[hidden] { display: none; }
.js .year-panel:not([hidden]) { animation: panel-in 0.5s var(--ease-out-expo) both; }

/* Cover slot. The fallback plate is real markup, so a card still reads as an
   issue before pdf.js has painted anything — or if it never does. */
.issue-cover {
    position: relative; display: block; width: 100%;
    aspect-ratio: 17 / 22; overflow: hidden;
    background: #f2eee6; border-bottom: 1px solid #e3ddd1;
    cursor: pointer;
}
.issue-cover-plate {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 1.15rem 1.15rem 1.35rem;
    background: #f2eee6;
    background-image: linear-gradient(180deg, rgba(186, 0, 19, 0.05), rgba(186, 0, 19, 0));
}
.issue-cover-plate::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: #ba0013;
}
.issue-cover-month {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: clamp(22px, 3.2vw, 30px); line-height: 1.05; color: #17130f;
}
.issue-cover-year {
    font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #706760;
}
.issue-cover-canvas {
    position: absolute; inset: 0; margin: auto; display: block;
    max-width: 100%; max-height: 100%;
    opacity: 0; transition: opacity 0.6s var(--ease-out-expo);
}
.issue-cover-canvas.is-painted { opacity: 1; }

.issue-cover-hint {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem; background: rgba(23, 19, 15, 0.88); color: #fbfaf7;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    transform: translateY(101%); transition: transform 0.45s var(--ease-out-expo);
}
.issue-card:hover .issue-cover-hint,
.issue-card:focus-within .issue-cover-hint,
.issue-cover:hover .issue-cover-hint,
.issue-cover:focus-visible .issue-cover-hint { transform: translateY(0); }

.issue-card[hidden] { display: none; }

/* ============================================================
   FLIPBOOK — modal PDF reader
   ============================================================ */

html.fb-open, html.fb-open body { overflow: hidden; }

.fb-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; padding: clamp(0px, 1.6vw, 22px);
    background: rgba(23, 19, 15, 0.88);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fb-overlay[hidden] { display: none; }
.fb-overlay .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.fb-shell {
    position: relative; margin: auto;
    display: flex; flex-direction: column;
    width: 100%; height: 100%; max-width: 1440px;
    background: #17130f; color: #fbfaf7;
    border-radius: 1rem; overflow: hidden;
}
.fb-shell:fullscreen { border-radius: 0; max-width: none; }

.fb-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.8rem 1rem; border-bottom: 1px solid rgba(251, 250, 247, 0.12); flex: none;
}
.fb-heading { min-width: 0; }
.fb-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
    color: #f0e400; margin-bottom: 0.25rem;
}
.fb-title {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: 19px; line-height: 26px; letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fb-tools { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.fb-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 9999px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fbfaf7; background: rgba(251, 250, 247, 0.08);
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.fb-icon:hover { background: #ba0013; }
.fb-icon-close:hover { background: #ba0013; }
.fb-icon[disabled] { opacity: 0.3; pointer-events: none; }

.fb-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.15rem; border-radius: 0.5rem;
    background: rgba(251, 250, 247, 0.08); color: #fbfaf7;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}
.fb-btn:hover { background: #ba0013; }
.fb-btn[disabled] { opacity: 0.3; pointer-events: none; }
.fb-btn .material-symbols-outlined { font-size: 18px; }

/* ---------- Stage & book ---------- */
.fb-stage {
    position: relative; flex: 1 1 auto; min-height: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 0.75rem; perspective: 2800px;
    /* A single page pivots on its left edge and sweeps out past the spine. Clipping
       it here keeps that overflow from becoming scrollable area on the shell. */
    overflow: hidden;
}
.fb-book {
    position: relative; transform-style: preserve-3d;
    transition: transform 0.7s var(--ease-out-expo);
}
.fb-stage.has-message .fb-book { opacity: 0.12; }

.fb-leaf, .fb-sheet {
    position: absolute; top: 0; height: 100%;
    transform-origin: left center; transform-style: preserve-3d;
    transition: transform 0.76s var(--ease-out-expo);
}
.fb-leaf { left: 50%; width: 50%; }
.fb-sheet { left: 0; width: 100%; }
.fb-leaf.is-flipped, .fb-sheet.is-turned { transform: rotateY(-180deg); }
.fb-leaf.no-anim, .fb-sheet.no-anim { transition: none; }

.fb-under { position: absolute; inset: 0; }

.fb-face {
    position: absolute; inset: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    /* Gutter shading on the spine edge, plus a little lift off the backdrop.
       The back face is mirrored, so the same inset lands on its spine too. */
    box-shadow: inset 9px 0 20px -12px rgba(23, 19, 15, 0.55),
                0 18px 44px -22px rgba(0, 0, 0, 0.75);
}
.fb-back { transform: rotateY(180deg); }
.fb-blank { background: #f6f3ec; }
.fb-canvas { display: block; max-width: 100%; max-height: 100%; }

.fb-page-number {
    position: absolute; bottom: 0.45rem; right: 0.7rem;
    font-family: 'Inter', system-ui, sans-serif; font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; color: #706760;
    background: rgba(255, 255, 255, 0.75); padding: 2px 5px; border-radius: 3px;
}
.fb-back .fb-page-number { right: auto; left: 0.7rem; }

.fb-edge {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 60;
    width: 3rem; height: 3rem; border-radius: 9999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fbfaf7; background: rgba(23, 19, 15, 0.55);
    border: 1px solid rgba(251, 250, 247, 0.18);
    transition: background-color 0.3s ease, opacity 0.3s ease;
}
.fb-edge:hover { background: #ba0013; }
.fb-edge[disabled] { opacity: 0.2; pointer-events: none; }
.fb-edge-prev { left: 0.35rem; }
.fb-edge-next { right: 0.35rem; }
/* One page at a time: the arrows would sit on top of the page, and swiping or the
   footer controls cover the same ground. */
.fb-stage.is-single .fb-edge { display: none; }

/* ---------- Loading / error ---------- */
.fb-message {
    position: absolute; inset: 0; z-index: 70;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; padding: 2rem; text-align: center; pointer-events: none;
}
.fb-message[hidden] { display: none; }
.fb-message-text {
    max-width: 34rem; color: #fbfaf7;
    font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 25px;
}
.fb-spinner {
    width: 34px; height: 34px; border-radius: 9999px;
    border: 2px solid rgba(251, 250, 247, 0.22); border-top-color: #f0e400;
    animation: fb-spin 0.9s linear infinite;
}
.fb-message:not(.is-busy) .fb-spinner { display: none; }
@keyframes fb-spin { to { transform: rotate(360deg); } }

/* ---------- Controls ---------- */
.fb-controls {
    flex: none; padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(251, 250, 247, 0.12);
    display: flex; flex-direction: column; gap: 0.65rem;
}
/* Wrapping rather than overflowing: a scrollable shell lets focus-scrolling shunt
   the whole reader sideways. */
.fb-controls-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.fb-folio {
    min-width: 12rem; text-align: center; white-space: nowrap;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(251, 250, 247, 0.75);
}
.fb-slider-wrap { display: block; padding: 0 0.25rem; }
.fb-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 3px; border-radius: 9999px;
    background: rgba(251, 250, 247, 0.22); cursor: pointer;
}
.fb-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 15px; height: 15px; border-radius: 9999px; background: #f0e400; border: none;
}
.fb-slider::-moz-range-thumb {
    width: 15px; height: 15px; border-radius: 9999px; background: #f0e400; border: none;
}
.fb-slider:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 640px) {
    .fb-shell { border-radius: 0.75rem; }
    .fb-title { font-size: 16px; }
    .fb-btn span:not(.material-symbols-outlined) { display: none; }
    .fb-folio { min-width: 0; font-size: 10px; }
    .fb-edge { width: 2.5rem; height: 2.5rem; }
}

/* ============================================================
   READER GATE — one-time details form before an issue opens

   Built and styled entirely with its own rg-* classes rather than
   Tailwind utility classes, on purpose, matching how flipbook.js
   builds its own shell: this markup is injected by JavaScript long
   after the Tailwind Play CDN's initial scan of the static page.
   The CDN does re-scan on DOM mutation, but only after the new
   classes are already visible, which is a flash of unstyled content
   on a reader's very first click — worse for a form the site wants
   filled in correctly. Rules defined here exist the moment
   theme.css loads, so there is nothing to wait for.
   ============================================================ */

html.rg-open, html.rg-open body { overflow: hidden; }

.rg-overlay {
    position: fixed; inset: 0; z-index: 95;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(23, 19, 15, 0.72);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.rg-overlay[hidden] { display: none; }

.rg-shell {
    position: relative; width: 100%; max-width: 440px;
    max-height: calc(100vh - 40px); overflow-y: auto;
    background: #fbfaf7; color: #17130f;
    border-radius: 1rem; padding: 2rem;
    box-shadow: 0 40px 80px -30px rgba(23, 19, 15, 0.55), 0 8px 24px -12px rgba(23, 19, 15, 0.25);
}

.rg-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 2.25rem; height: 2.25rem; border-radius: 9999px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: #4a423b; background: transparent; border: none; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.rg-close:hover { background: #f2eee6; color: #17130f; }

.rg-eyebrow {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
    color: #ba0013; margin: 0 0 1rem;
}
.rg-eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.45; flex: none; }

.rg-heading {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: 24px; line-height: 30px; letter-spacing: -0.01em;
    color: #17130f; margin: 0 0 0.5rem;
}

.rg-lede {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px; line-height: 24px; color: #4a423b;
    margin: 0 0 1.75rem;
}

.rg-fields > .rg-field + .rg-field { margin-top: 1.25rem; }

.rg-field.is-invalid .field { border-color: #ba0013; box-shadow: 0 0 0 3px rgba(186, 0, 19, 0.12); }
.rg-error {
    display: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px; line-height: 16px; color: #ba0013; margin: 0.4rem 0 0;
}
.rg-field.is-invalid .rg-error { display: block; }

.rg-submit {
    width: 100%; margin-top: 2rem; padding: 0.875rem 1.5rem; border: none; border-radius: 0.5rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
    background: #ba0013; color: #ffffff; cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    transition: background-color 0.3s ease, box-shadow 0.35s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
}
.rg-submit:hover { background: #e31e24; box-shadow: 0 18px 44px -18px rgba(34, 39, 51, 0.30); transform: translateY(-2px); }
.rg-submit:active { transform: translateY(0) scale(0.985); }
@media (prefers-reduced-motion: reduce) { .rg-submit:hover { transform: none; } }

/* ---------- Focus & skip link ---------- */
:focus-visible { outline: 2px solid #ba0013; outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible { outline-color: #f0e400; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus {
    left: 1rem; top: 1rem;
    background: #17130f; color: #fbfaf7;
    padding: 0.75rem 1.25rem; border-radius: 0.5rem;
    font-size: 14px; font-weight: 700;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    .tab-panel.is-active { animation: none; }
    .cover, .cover-stage:hover .cover { transition: none; transform: rotateY(-6deg); }
    .lift:hover, .press:hover, .press:active { transform: none; }
    /* The flipbook still turns pages, it just does not animate the turn. */
    .fb-leaf, .fb-sheet, .fb-book { transition: none; }
    .js .year-panel:not([hidden]) { animation: none; }
    .fb-spinner { animation-duration: 1.6s !important; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
