/* ==========================================================
   Books by Elisabeth E Watter — main stylesheet
   Gold from the logo on midnight navy, with a racing-red accent
   borrowed from Nik's red racing bike.
   ========================================================== */

:root {
    --navy: #0F1B2D;
    --navy-2: #172841;
    --navy-3: #22375A;
    --ink: #1B2230;
    --ivory: #F8F4EC;
    --paper: #FFFFFF;
    --line: #E4DCCB;
    --slate: #4A5263;
    --gold: #C9A86A;
    --gold-light: #E2CC98;
    --gold-deep: #8A6A2F;       /* gold for text on light backgrounds (AA) */
    --red: #B3272D;
    --on-navy: #F3EEE4;
    --on-navy-muted: #C4C9D4;
    --success: #1E6B3C;
    --error: #A3261B;

    --gold-grad: linear-gradient(180deg, #D8BD86 0%, #C4A265 55%, #B38F52 100%);

    --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --f-body: "Mulish", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    --step--1: .875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: clamp(1.45rem, 1.25rem + .8vw, 1.8rem);
    --step-3: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
    --step-4: clamp(2.2rem, 1.5rem + 2.8vw, 3.5rem);
    --step-5: clamp(2.7rem, 1.6rem + 4.4vw, 5rem);

    --container: 1200px;
    --header-h: 84px;
    --radius: 14px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --shadow-book: 18px 24px 40px -18px rgba(8, 14, 26, .6);
}

html { font-size: 100%; }
html[data-text="110"] { font-size: 110%; }
html[data-text="120"] { font-size: 120%; }
html[data-text="130"] { font-size: 130%; }
html[data-text="140"] { font-size: 140%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; font-family: var(--f-body); font-size: var(--step-0); line-height: 1.7;
    color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-deep); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; margin: 0 0 .55em; color: var(--ink); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1.1em; }
cite { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .hero :focus-visible, .site-header :focus-visible,
.manifesto :focus-visible, .site-footer :focus-visible, .newsletter :focus-visible { outline-color: var(--gold-light); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--gold); color: var(--navy); padding: .8rem 1.2rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--navy); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: var(--on-navy); }
.section--navy a:not(.btn) { color: var(--gold-light); }
.section--navy .lead { color: var(--on-navy-muted); }

.kicker { font-weight: 700; font-size: var(--step--1); letter-spacing: .08em; color: var(--gold-deep); margin-bottom: .8rem; display: inline-flex; align-items: center; gap: .7rem; }
.kicker::before { content: ""; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }
.kicker--light { color: var(--gold); }
.h-display { font-size: var(--step-4); }
.lead { font-size: var(--step-1); color: var(--slate); line-height: 1.6; }
.muted { color: var(--slate); }
.muted-light { color: var(--on-navy-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.prose { max-width: 70ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 50px; padding: .8rem 1.7rem; border-radius: 6px; border: 2px solid transparent;
    font-weight: 700; font-size: .98rem; letter-spacing: .02em; text-decoration: none; cursor: pointer;
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .25s, background-color .25s, border-color .25s;
}
.btn::after { /* the sweep of a finish-line flag */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
    transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-grad); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(201,168,106,.8); }
.btn--gold:hover { color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--on-navy); }
.btn--navy:hover { background: var(--navy-3); color: #fff; }
.btn--outline-light { border-color: var(--gold); color: var(--gold-light); }
.btn--outline-light:hover { background: var(--gold); color: var(--navy); }
.btn--sm { min-height: 44px; padding: .5rem 1.2rem; font-size: .92rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
.link-arrow--light { color: var(--gold-light); }

/* ---------- Scroll-progress "finish line" ---------- */
.finish-line { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200; pointer-events: none; }
.finish-line span {
    display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--progress, 0));
    background: repeating-linear-gradient(90deg, var(--gold) 0 10px, var(--gold-light) 10px 20px);
}

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background-color .35s, box-shadow .35s; }
.site-header.is-scrolled, .site-header.is-solid { background: rgba(15, 27, 45, .96); box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); backdrop-filter: blur(10px); }
.site-header__inner { height: 100%; width: min(100% - 2.5rem, 1320px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { width: clamp(220px, 25vw, 330px); height: auto; }
.primary-nav { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.primary-nav__list > li > a, .sub-toggle {
    display: flex; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem .8rem;
    color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: .95rem;
    background: none; border: 0; cursor: pointer; position: relative;
}
.primary-nav__list > li > a::after, .sub-toggle::before {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .45rem; height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.primary-nav__list > li > a:hover::after, .primary-nav__list > li > a[aria-current]::after,
.sub-toggle:hover::before, .sub-toggle.is-section::before { transform: scaleX(1); }
.primary-nav__list > li > a[aria-current], .sub-toggle.is-section { color: var(--gold-light); }
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.sub-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.has-sub { position: relative; }
.sub-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; list-style: none; margin: 0; padding: .6rem;
    background: var(--paper); border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); border-top: 3px solid var(--gold);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.sub-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.sub-menu a { display: block; padding: .65rem .9rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--ivory); color: var(--gold-deep); }
.nav-toggle { display: none; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem 1rem; border-radius: 6px; border: 1px solid rgba(201,168,106,.6); background: none; color: var(--on-navy); cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
        background: var(--navy); padding: 1rem 1.25rem 2rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
        border-top: 1px solid rgba(201,168,106,.3);
    }
    .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease); }
    .primary-nav__list { flex-direction: column; align-items: stretch; }
    .primary-nav__list > li > a, .sub-toggle { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: .85rem .3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
    .primary-nav__list > li > a::after, .sub-toggle::before { display: none; }
    .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin: .4rem 0 .6rem; }
    .sub-menu.is-open { display: block; }
    .site-header { background: rgba(15, 27, 45, .96); }
}

/* ---------- Page-load + reveal ---------- */
.load-in { opacity: 0; transform: translateY(24px); animation: loadIn 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 140ms + 120ms); }
@keyframes loadIn { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 3D book covers ---------- */
.book3d {
    --w: 170px; display: inline-block; position: relative; width: var(--w); aspect-ratio: 2 / 3;
    transform: perspective(900px) rotateY(-18deg); transform-style: preserve-3d;
    transition: transform .7s var(--ease); box-shadow: var(--shadow-book); border-radius: 2px 6px 6px 2px;
}
.book3d--lg { --w: clamp(150px, 15vw, 200px); }
.book3d--xl { --w: clamp(190px, 22vw, 270px); }
.book3d::before { /* spine */
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 7%; z-index: 2;
    background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 60%, rgba(0,0,0,.2));
}
.book3d::after { /* page edges */
    content: ""; position: absolute; top: 2%; bottom: 2%; right: -12px; width: 12px; transform: rotateY(90deg); transform-origin: left;
    background: repeating-linear-gradient(180deg, #f3eee3 0 2px, #d9d1bf 2px 3px);
}
.book3d__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.book3d__face {
    position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; padding: 12% 12% 12% 16%;
    text-align: center; font-size: calc(var(--w) / 11);
}
.book3d--navy .book3d__face { background: radial-gradient(circle at 70% 20%, #22375A, #0F1B2D 70%); color: var(--gold-light); }
.book3d--red .book3d__face { background: radial-gradient(circle at 70% 20%, #C8373D, #7E161B 75%); color: #F6E6C4; }
.book3d__face::before { content: ""; position: absolute; inset: 6% 6% 6% 10%; border: 1px solid currentColor; opacity: .5; border-radius: 3px; }
.book3d__rule { width: 40%; height: 1px; background: currentColor; opacity: .7; }
.book3d__title { font-family: var(--f-display); font-weight: 700; font-size: 1.55em; line-height: 1.05; }
.book3d__mark { width: 2.6em; height: 2.6em; border-radius: 50%; border: 2px solid currentColor; position: relative; opacity: .9; }
.book3d__mark::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed currentColor; }
.book3d__author { letter-spacing: .25em; text-transform: uppercase; font-size: .62em; font-weight: 700; }
.tilt { display: inline-block; }
.tilt:hover .book3d, .tilt:focus-visible .book3d { transform: perspective(900px) rotateY(-4deg) translateY(-8px); }

/* ---------- HERO ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--on-navy);
    padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(4rem, 8vw, 6rem);
    background: radial-gradient(ellipse 60% 70% at 80% 40%, #22375A, transparent 70%), var(--navy);
}
.hero__stars {
    position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, var(--gold-light), transparent),
        radial-gradient(1px 1px at 60% 15%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 85% 60%, var(--gold), transparent),
        radial-gradient(1px 1px at 40% 80%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 10% 70%, var(--gold-light), transparent),
        radial-gradient(1px 1px at 70% 85%, #fff, transparent);
    background-size: 480px 480px; animation: drift 60s linear infinite;
}
@keyframes drift { to { background-position: 480px -480px; } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__stories { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-weight: 700; letter-spacing: .04em; color: var(--gold); margin-bottom: 1.4rem; }
.hero__stories span { opacity: 0; animation: storyIn .8s var(--ease) forwards; }
.hero__stories span:nth-child(1) { animation-delay: .3s; }
.hero__stories span:nth-child(2) { animation-delay: .7s; }
.hero__stories span:nth-child(3) { animation-delay: 1.1s; color: var(--gold-light); }
@keyframes storyIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__title { font-size: var(--step-5); color: #fff; line-height: 1.02; max-width: 13ch; }
.hero__lead { font-size: var(--step-1); color: var(--gold-light); font-family: var(--f-display); font-style: italic; font-weight: 500; line-height: 1.45; }
.hero p { color: var(--on-navy-muted); max-width: 58ch; }
.hero p.hero__lead { color: var(--gold-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.hero__shelf { position: relative; min-height: 440px; display: grid; place-items: end center; }
.wheel { position: absolute; width: min(100%, 420px); top: 0; left: 50%; transform: translateX(-50%); opacity: .35; }
.wheel circle, .wheel line { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.wheel__spokes { transform-origin: 100px 100px; animation: roll 30s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.shelf { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); padding: 0 1.5rem; width: 100%; }
.shelf__book { position: relative; z-index: 1; text-decoration: none; display: block; line-height: 0; }
.shelf__book--one { animation: bob 6s ease-in-out infinite; }
.shelf__book--two { animation: bob 6s ease-in-out 1.5s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.shelf__board {
    position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; border-radius: 3px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 40%, var(--gold-deep));
    box-shadow: 0 20px 30px -10px rgba(0,0,0,.6);
}
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__shelf { min-height: 340px; margin-top: 1rem; }
}

.motion-toggle { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: 1.2rem; z-index: 3; display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .4rem .95rem; border-radius: 999px; background: rgba(15,27,45,.7); border: 1px solid rgba(201,168,106,.6); color: var(--on-navy); font-size: .82rem; font-weight: 700; cursor: pointer; }
.motion-toggle__icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (max-width: 760px) { .motion-toggle { position: relative; right: auto; bottom: auto; margin: 2.2rem 0 0 1.25rem; } }

/* ---------- Manifesto ---------- */
.manifesto { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: var(--on-navy); padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid rgba(201,168,106,.25); }
.manifesto__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.manifesto__lead { font-family: var(--f-display); font-size: var(--step-3); font-weight: 700; color: var(--gold-light); line-height: 1.15; }
.manifesto__lines { list-style: none; margin: 0; padding: 0; }
.manifesto__lines li { font-size: var(--step-1); padding: .9rem 0 .9rem 2.4rem; border-bottom: 1px solid rgba(201,168,106,.2); position: relative; }
.manifesto__lines li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 1.4rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .3s; }
.manifesto__lines li.is-visible::before { transform: scaleX(1); }
@media (max-width: 800px) { .manifesto__inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Author intro ---------- */
.author-intro__visual { position: relative; display: grid; gap: 1.5rem; justify-items: center; }
.portrait { margin: 0; border-radius: 200px 200px 16px 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15,27,45,.5); outline: 1px solid var(--gold); outline-offset: 12px; max-width: 420px; }
.question-card {
    margin: 0; width: min(100%, 440px); aspect-ratio: 4 / 5; border-radius: 220px 220px 16px 16px;
    background: radial-gradient(circle at 50% 30%, var(--navy-3), var(--navy) 70%); color: var(--on-navy);
    display: grid; align-content: center; justify-items: center; padding: 3rem 2.5rem; text-align: center;
    outline: 1px solid var(--gold); outline-offset: 12px; position: relative; overflow: hidden;
}
.question-card::before { content: "?"; position: absolute; font-family: var(--f-display); font-size: 22rem; line-height: 1; color: rgba(201,168,106,.12); top: 50%; left: 50%; transform: translate(-50%, -52%); }
.question-card blockquote { margin: 0; position: relative; }
.question-card blockquote p { font-family: var(--f-display); font-size: var(--step-3); font-weight: 700; color: var(--gold-light); line-height: 1.15; }
.question-card figcaption { position: relative; font-size: .9rem; color: var(--on-navy-muted); }
.writes-about { display: flex; align-items: center; gap: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.4rem .7rem .7rem; box-shadow: 0 16px 30px -20px rgba(15,27,45,.4); }
.writes-about__label { margin: 0; background: var(--navy); color: var(--gold-light); border-radius: 999px; padding: .55rem 1rem; font-size: .75rem; font-weight: 700; line-height: 1.2; text-align: center; }
.writes-about ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 700; }
.writes-about li span { color: var(--gold-deep); }
.champion-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; border-left: 2px solid var(--gold); }
.champion-list li { padding: .45rem 0 .45rem 1.2rem; font-family: var(--f-display); font-size: 1.28rem; font-weight: 600; line-height: 1.35; }

/* ---------- Book rows ---------- */
.book-row { display: grid; grid-template-columns: 360px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.book-row + .book-row { border-top: 1px solid var(--line); }
.book-row--flip { grid-template-columns: 1fr 360px; }
.book-row--flip .book-row__cover { order: 2; }
.book-row__cover { justify-self: center; padding: 1rem 2rem 2rem; position: relative; }
.book-row__cover::before { content: ""; position: absolute; inset: 20% 0 0; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,106,.35), transparent 65%); z-index: -1; }
.book-row__num { font-weight: 800; color: var(--red); letter-spacing: .06em; margin-bottom: .3rem; }
.book-row__tag { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); color: var(--gold-deep); line-height: 1.25; }
.book-row__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1rem; }
.available { font-size: .95rem; color: var(--slate); }
@media (max-width: 900px) {
    .book-row, .book-row--flip { grid-template-columns: 1fr; }
    .book-row--flip .book-row__cover { order: 0; }
}

/* ---------- Beth's story ---------- */
.story__pull { font-family: var(--f-display); font-style: italic; font-size: var(--step-3); color: var(--gold-light); line-height: 1.2; }
.story p { color: var(--on-navy-muted); }
.story p.story__pull { color: var(--gold-light); }
.story__intro { font-family: var(--f-display); font-size: var(--step-3); font-weight: 700; color: #fff !important; margin-bottom: .6rem; }
.with-list { list-style: none; margin: 0; padding: 0; }
.with-list li { font-family: var(--f-display); font-size: var(--step-3); font-weight: 600; line-height: 1.3; color: var(--gold); opacity: .25; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 180ms); }
.is-visible .with-list li, .with-list.is-lit li { opacity: 1; }
.with-list li:last-child { color: var(--gold-light); }

/* ---------- Message / race track ---------- */
.track { position: relative; margin: 0 auto 3.5rem; max-width: 900px; padding: 2.5rem 2rem 2rem; border-radius: var(--radius); background: var(--navy); color: var(--on-navy); overflow: hidden; }
.track__title { color: var(--gold-light); text-align: center; font-size: var(--step-2); }
.track__stops { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; position: relative; }
.track__stops::before { content: ""; position: absolute; top: -1.3rem; left: 0; right: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 30px); }
.track__stops::after { content: ""; position: absolute; top: -1.3rem; left: 0; height: 3px; width: 100%; background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) .3s; }
.track.is-visible .track__stops::after { transform: scaleX(1); }
.track__stops li { display: grid; gap: .3rem; }
.track__stops li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid var(--on-navy); position: absolute; top: calc(-1.3rem - 8px); }
.track__book { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); color: var(--gold-light); }
.track__line { font-size: var(--step-1); }
.track__flag { position: absolute; right: 1.5rem; top: 1.5rem; width: 34px; height: 24px; background: conic-gradient(var(--on-navy) 25%, var(--navy) 0 50%, var(--on-navy) 0 75%, var(--navy) 0) 0 0 / 12px 12px; border: 1px solid var(--on-navy); animation: wave 2.4s ease-in-out infinite; transform-origin: left; }
@keyframes wave { 50% { transform: skewY(-6deg) scaleX(.94); } }
@media (max-width: 640px) { .track__stops { grid-template-columns: 1fr; } }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
.audience article { padding: 2rem 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.audience article::before { content: ""; position: absolute; left: 1.8rem; top: 0; width: 44px; height: 4px; background: var(--red); }
.audience article:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(15,27,45,.35); }
.audience p { color: var(--slate); margin: 0; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }

.big-quote { margin: 0 auto; max-width: 900px; text-align: center; }
.big-quote p { font-family: var(--f-display); font-size: var(--step-4); font-weight: 700; line-height: 1.12; }
.big-quote p::before, .big-quote p::after { color: var(--gold); }
.big-quote p::before { content: "“"; }
.big-quote p::after { content: "”"; }
.big-quote footer { color: var(--slate); font-weight: 600; }
.section--navy .big-quote p { color: var(--gold-light); }
.section--navy .big-quote footer { color: var(--on-navy-muted); }

/* ---------- Podcasts ---------- */
.pod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.pod-card { padding: 2.2rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy-2), var(--navy)); border: 1px solid rgba(201,168,106,.3); display: grid; gap: .6rem; justify-items: start; }
.pod-card h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.pod-card__show { margin: 0; color: var(--gold); font-weight: 700; }
.pod-card__eq { display: flex; align-items: end; gap: 4px; height: 28px; margin-bottom: .6rem; }
.pod-card__eq span { width: 5px; background: var(--gold); border-radius: 2px; animation: eq 1.2s ease-in-out infinite; }
.pod-card__eq span:nth-child(1) { height: 40%; }
.pod-card__eq span:nth-child(2) { height: 90%; animation-delay: .2s; }
.pod-card__eq span:nth-child(3) { height: 60%; animation-delay: .4s; }
.pod-card__eq span:nth-child(4) { height: 100%; animation-delay: .1s; }
.pod-card__eq span:nth-child(5) { height: 50%; animation-delay: .3s; }
@keyframes eq { 50% { transform: scaleY(.35); } }
.pod-card__eq span { transform-origin: bottom; }
@media (max-width: 800px) { .pod-grid { grid-template-columns: 1fr; } }

/* ---------- Event ticket ---------- */
.ticket { display: grid; grid-template-columns: 120px 1fr; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(15,27,45,.45); border: 1px solid var(--line); }
.ticket__date { background: var(--red); color: #fff; display: grid; place-content: center; text-align: center; padding: 1.5rem .5rem; position: relative; font-weight: 700; letter-spacing: .08em; }
.ticket__date strong { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; }
.ticket__date::after { content: ""; position: absolute; right: -9px; top: 0; bottom: 0; width: 18px; background: radial-gradient(circle at 9px 9px, var(--paper) 6px, transparent 7px) 0 0 / 18px 18px repeat-y; }
.ticket__body { padding: 1.8rem 2rem; }
.ticket__label { color: var(--red); font-weight: 700; margin-bottom: .3rem; }
.ticket dl { margin: 0 0 1rem; display: grid; gap: .3rem; }
.ticket dl div { display: grid; grid-template-columns: 110px 1fr; gap: .5rem; }
.ticket dt { font-weight: 700; }
.ticket dd { margin: 0; color: var(--slate); }
.ticket p:last-child { margin: 0; color: var(--slate); }
@media (max-width: 560px) { .ticket { grid-template-columns: 1fr; } .ticket__date::after { display: none; } .ticket dl div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Visit cards ---------- */
.visit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.visit-card { display: block; padding: 2.2rem 2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.visit-card svg { width: 52px; margin-bottom: 1.2rem; fill: none; stroke: var(--gold-deep); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transition: transform .6s var(--ease); }
.visit-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 30px 50px -30px rgba(15,27,45,.35); color: var(--ink); }
.visit-card:hover svg { transform: rotate(-8deg) scale(1.08); }
.visit-card p { color: var(--slate); margin: 0; }
.speak-question { text-align: center; font-family: var(--f-display); font-size: var(--step-3); font-weight: 700; margin: 3.5rem 0 0; }
.speak-question strong { color: var(--red); }
@media (max-width: 900px) { .visit-cards { grid-template-columns: 1fr; } }

/* ---------- Author's desk ---------- */
.desk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.desk-grid--2 { grid-template-columns: repeat(2, 1fr); }
.desk-card { padding: 2rem; border-radius: var(--radius); background: var(--ivory); border-top: 4px solid var(--gold); position: relative; }
.desk-card h3 { font-size: 1.55rem; }
.desk-card h2 { font-size: 1.7rem; }
.desk-card p { color: var(--slate); margin: 0; }
.desk-card__num { font-family: var(--f-display); font-size: 3rem; color: var(--gold); line-height: 1; margin-bottom: .6rem; font-weight: 700; }
@media (max-width: 900px) { .desk-grid, .desk-grid--2 { grid-template-columns: 1fr; } }

/* ---------- Connect ---------- */
.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.connect-card { display: block; padding: 2.2rem 2rem; border-radius: var(--radius); border: 1px solid rgba(201,168,106,.35); text-decoration: none; color: var(--on-navy) !important; background: rgba(255,255,255,.03); transition: background .4s, transform .5s var(--ease), border-color .3s; }
.connect-card h3 { color: var(--gold-light) !important; }
.connect-card h3::after { content: " →"; transition: margin .4s var(--ease); }
.connect-card:hover { background: rgba(201,168,106,.1); transform: translateY(-5px); border-color: var(--gold); }
.connect-card p { color: var(--on-navy-muted); margin: 0; }
@media (max-width: 900px) { .connect-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--on-navy); padding: calc(var(--header-h) + clamp(3rem, 6vw, 4.5rem)) 0 clamp(3.5rem, 7vw, 5rem); background: radial-gradient(ellipse 50% 90% at 90% 20%, var(--navy-3), transparent 70%), var(--navy); }
.page-hero .hero__stars { opacity: .45; }
.page-hero__inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.page-hero h1 { color: #fff; font-size: var(--step-5); margin-bottom: .3em; }
.page-hero__lead { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); color: var(--gold-light); max-width: 40ch; margin: 0; line-height: 1.3; }
.page-hero__art { opacity: .9; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .92rem; }
.breadcrumb li + li::before { content: "◆"; font-size: .55em; color: var(--gold); margin-right: .5rem; vertical-align: middle; }
.breadcrumb a { color: var(--on-navy-muted); }
.breadcrumb [aria-current] { color: var(--gold-light); }
.page-hero .wheel { position: absolute; left: auto; right: -80px; top: 50%; width: 360px; transform: translateY(-50%); opacity: .18; }
@media (max-width: 760px) { .page-hero__inner { grid-template-columns: 1fr; } .page-hero__art { display: none; } }

/* ---------- Generic content blocks ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.theme { padding: 1.8rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.theme:hover { transform: translateY(-5px); box-shadow: 0 26px 40px -28px rgba(15,27,45,.4); }
.theme h3 { font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; }
.theme h3::before { content: ""; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); flex: none; }
.theme p { color: var(--slate); margin: 0; }
@media (max-width: 900px) { .theme-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .theme-grid { grid-template-columns: 1fr; } }

.stack-lines { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.stack-lines li { font-family: var(--f-display); font-size: var(--step-2); font-weight: 600; padding: .35rem 0; line-height: 1.3; }
.stack-lines li:nth-child(odd) { color: var(--gold-deep); }
.section--navy .stack-lines li { color: var(--on-navy); }
.section--navy .stack-lines li:nth-child(odd) { color: var(--gold-light); }

.pill-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list li { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .95rem; }
.section--navy .pill-list li { background: transparent; border-color: rgba(201,168,106,.4); color: var(--on-navy); }

.check-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.check-list li { position: relative; padding: .6rem 0 .6rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 8px; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }
.section--navy .check-list li { border-color: rgba(201,168,106,.2); }
.section--navy .check-list li::before { border-color: var(--gold); }

.details-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 2rem; }
.details-card h2, .details-card h3 { color: var(--gold-light); }
.details-card dl { margin: 0; display: grid; gap: .1rem; }
.details-card dl div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(201,168,106,.2); }
.details-card dt { font-weight: 700; color: var(--gold); }
.details-card dd { margin: 0; }
@media (max-width: 480px) { .details-card dl div { grid-template-columns: 1fr; gap: 0; } }

.buy-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.note { font-size: .92rem; color: var(--slate); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.feature-book { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 800px) { .feature-book { grid-template-columns: 1fr; justify-items: center; } }

.episode { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line); margin-bottom: 2rem; }
.episode__show { color: var(--red); font-weight: 800; margin-bottom: .3rem; }
.episode h2 { font-size: var(--step-3); }
.episode__player { background: var(--navy); border-radius: var(--radius); padding: 1.6rem; color: var(--on-navy); display: grid; gap: 1rem; align-content: center; }
.episode__player iframe { width: 100%; min-height: 180px; border: 0; border-radius: 10px; }
.episode__player p { margin: 0; color: var(--on-navy-muted); }
@media (max-width: 860px) { .episode { grid-template-columns: 1fr; } }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.topic { padding: 1.6rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,.04); }
.topic h3 { font-size: 1.5rem; }
.topic p { margin: 0; color: var(--on-navy-muted); }
@media (max-width: 900px) { .topic-grid { grid-template-columns: 1fr; } }

.split-cols { columns: 2; column-gap: 2.5rem; }
@media (max-width: 640px) { .split-cols { columns: 1; } }

/* ---------- Photos ---------- */
.portrait img { width: 100%; aspect-ratio: 380 / 560; object-fit: cover; object-position: 50% 20%; }
.photo-frame { margin: 0 0 2rem; position: relative; max-width: 380px; }
.photo-frame img { width: 100%; border-radius: 12px; box-shadow: 0 30px 50px -25px rgba(0,0,0,.6); outline: 1px solid var(--gold); outline-offset: 10px; }
.photo-frame figcaption { margin-top: 1.1rem; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--gold-light); }
.photo-frame--light figcaption { color: var(--gold-deep); }
.photo-frame::after { content: ""; position: absolute; right: -14px; top: 24px; width: 70px; height: 70px; border-top: 3px solid var(--red); border-right: 3px solid var(--red); pointer-events: none; }
.photo-frame--light { margin-top: 2rem; }

/* ---------- Videos (click-to-play) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; margin-bottom: 2rem; }
.video-grid--dark { margin-top: 1rem; }
@media (max-width: 800px) { .video-grid { grid-template-columns: 1fr; } }
.video { margin: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 26px 50px -30px rgba(0,0,0,.7); border: 1px solid rgba(201,168,106,.4); }
.video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .8s var(--ease), opacity .4s; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,27,45,.55)); cursor: pointer; display: grid; place-items: center; }
.video__icon { width: 78px; height: 78px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 0 rgba(201,168,106,.6); animation: pulse 2.4s ease-out infinite; position: relative; }
.video__icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid var(--navy); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(201,168,106,0); } 100% { box-shadow: 0 0 0 0 rgba(201,168,106,0); } }
.video__frame:hover img { transform: scale(1.05); opacity: 1; }
.video__play:focus-visible { outline: 3px solid var(--gold-light); outline-offset: -6px; }
.video figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: .9rem; font-weight: 700; }
.section--navy .video figcaption span { color: var(--on-navy); }
.apple-embed { width: 100%; height: 175px; min-height: 175px !important; border: 0; border-radius: 10px; background: transparent; }
.episode__player .btn { width: 100%; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: 0 30px 60px -40px rgba(15,27,45,.5); }
.form-card h2 { font-size: var(--step-3); }
.form-req { font-size: .9rem; color: var(--slate); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .96rem; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1.5px solid #9AA1AE; border-radius: 8px; background: var(--paper);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201,168,106,.55); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { color: var(--error); font-size: .92rem; font-weight: 700; margin: .35rem 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status:focus { outline: none; }
.alert { border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.alert p { margin: 0 0 .3rem; }
.alert ul { margin: .4rem 0 0; }
.alert--success { background: #E7F3EB; border: 1px solid var(--success); color: #134626; }
.alert--error { background: #FBEBE8; border: 1px solid var(--error); color: #6A1B12; }
.alert--error a { color: #6A1B12; }

/* ---------- Newsletter band ---------- */
.newsletter { background: var(--gold-grad); color: var(--navy); padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 22px); pointer-events: none; }
.newsletter__inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
.newsletter h2 { font-size: var(--step-4); color: var(--navy); }
.newsletter__copy p { font-size: var(--step-1); margin: 0; font-weight: 600; }
.newsletter__fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; }
.newsletter .field { margin: 0; }
.newsletter .field label { font-size: .9rem; }
.newsletter .field input { border-color: var(--navy); background: rgba(255,255,255,.92); }
.newsletter .btn--gold { background: var(--navy); color: var(--gold-light); }
.newsletter .btn--gold:hover { color: #fff; }
@media (max-width: 960px) { .newsletter__inner { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .newsletter__fields { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1.3fr .8fr; gap: 3rem; }
.site-footer__brand img { width: 280px; margin-bottom: 1.4rem; }
.site-footer__name { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; color: var(--gold-light); margin-bottom: .2rem; }
.site-footer h3 { color: var(--gold); font-family: var(--f-body); font-size: .95rem; letter-spacing: .08em; margin-bottom: 1.1rem; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.site-footer__links li { margin-bottom: .45rem; break-inside: avoid; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__social { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.site-footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(201,168,106,.25); font-size: .88rem; color: var(--on-navy-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__links { columns: 1; } }

/* ---------- Accessibility panel ---------- */
.a11y-trigger { position: fixed; right: 0; top: 50%; z-index: 300; transform: translateY(-50%); width: 52px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 12px 0 0 12px; cursor: pointer; background: var(--red); color: #fff; box-shadow: -6px 10px 24px -10px rgba(0,0,0,.5); transition: width .3s var(--ease); }
.a11y-trigger:hover, .a11y-trigger[aria-expanded="true"] { width: 60px; }
.a11y-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 400; width: min(360px, 100%); background: #fff; color: var(--ink); padding: 1.6rem 1.5rem 2rem; overflow-y: auto; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); animation: panelIn .35s var(--ease); }
.a11y-panel[hidden] { display: none; }
@keyframes panelIn { from { transform: translateX(100%); } }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.a11y-panel__head h2 { font-size: 1.8rem; margin: 0; }
.a11y-panel__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.a11y-group { margin-bottom: 1.2rem; }
.a11y-group__label { font-weight: 700; margin-bottom: .5rem; }
.a11y-stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: .35rem; }
.a11y-stepper button { min-width: 64px; min-height: 44px; border: 0; border-radius: 8px; background: var(--ivory); cursor: pointer; font-weight: 700; }
.a11y-toggles { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.a11y-toggles button { width: 100%; min-height: 64px; padding: .6rem; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: var(--ivory); font-size: .92rem; font-weight: 700; line-height: 1.3; }
.a11y-toggles button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11y-toggles button[aria-pressed="true"]::after { content: " ✓"; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--navy); }
.a11y-panel__note { font-size: .88rem; color: var(--slate); margin-top: 1.2rem; }
@media (max-width: 760px) {
    .a11y-trigger { top: auto; bottom: 1rem; right: 1rem; transform: none; width: 52px; height: 52px; border-radius: 50%; }
    .a11y-trigger:hover, .a11y-trigger[aria-expanded="true"] { width: 52px; }
}

/* ADA preference classes */
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast .lead, html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast dd { color: inherit !important; }
html.a11y-contrast .section--navy, html.a11y-contrast .hero, html.a11y-contrast .page-hero, html.a11y-contrast .manifesto,
html.a11y-contrast .site-footer, html.a11y-contrast .site-header, html.a11y-contrast .primary-nav, html.a11y-contrast .question-card,
html.a11y-contrast .track, html.a11y-contrast .details-card, html.a11y-contrast .episode__player { background: #000 !important; color: #fff !important; }
html.a11y-contrast .section--navy *, html.a11y-contrast .hero *, html.a11y-contrast .page-hero *, html.a11y-contrast .manifesto *,
html.a11y-contrast .site-footer *, html.a11y-contrast .question-card *, html.a11y-contrast .track *, html.a11y-contrast .details-card * { color: #fff !important; }
html.a11y-contrast a { color: #0000C8 !important; }
html.a11y-contrast .section--navy a, html.a11y-contrast .hero a, html.a11y-contrast .site-footer a, html.a11y-contrast .page-hero a, html.a11y-contrast .site-header a { color: #FFE14D !important; }
html.a11y-contrast .btn--gold, html.a11y-contrast .newsletter { background: #FFE14D !important; color: #000 !important; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #FFF3B0 !important; color: #111 !important; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font blockquote p, html.a11y-font li { font-family: Verdana, Tahoma, Arial, sans-serif !important; font-style: normal !important; }
html.a11y-spacing body { letter-spacing: .06em; word-spacing: .12em; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 2 !important; }
html.a11y-grayscale body > *:not(.a11y-panel):not(.a11y-trigger) { filter: grayscale(1); }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-7 1 4 8-3 1-4-8-5 5z' fill='black' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-pause *, html.a11y-pause *::before, html.a11y-pause *::after { animation-play-state: paused !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html.a11y-pause .load-in, html.a11y-pause .reveal, html.a11y-pause .hero__stories span { opacity: 1 !important; transform: none !important; animation: none !important; }
html.a11y-pause .with-list li { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .load-in, .js .reveal, .hero__stories span { opacity: 1 !important; transform: none !important; }
    .with-list li { opacity: 1 !important; }
}

@media print {
    .site-header, .a11y-trigger, .a11y-panel, .finish-line, .newsletter, .hero__stars, .wheel { display: none !important; }
    body { color: #000; background: #fff; }
}

/* ==========================================================
   Shop: cart, checkout, accounts, admin
   ========================================================== */
.mt-1 { margin-top: 1rem; }
.hint { font-size: .9rem; color: var(--slate); margin: -.2rem 0 .4rem; }
.nav-shop { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .3rem; color: var(--on-navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-shop:hover, .nav-shop[aria-current] { color: var(--gold-light); }
.nav-cart__count { min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .8rem; font-weight: 700; }
@media (max-width: 1100px) { .nav-shop { width: 100%; font-size: 1.1rem; padding: .85rem .3rem; border-bottom: 1px solid rgba(255,255,255,.08); } }

.buy-row--shop { margin-bottom: 1rem; }
.add-form { display: inline; margin: 0; }
.details-card .buy-row--shop { margin-top: 1.2rem; }

.shop-wrap { max-width: 1200px; }
.auth-wrap { max-width: 520px; }
.table-scroll { overflow-x: auto; }
.shop-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.shop-table th, .shop-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shop-table thead th { font-size: .9rem; color: var(--slate); border-bottom-width: 2px; }
.shop-table tbody th { font-weight: 600; }
.qty { width: 5rem; min-height: 44px; padding: .4rem .6rem; border: 1.5px solid #9AA1AE; border-radius: 8px; }
.link-btn { background: none; border: 0; padding: .4rem 0; min-height: 44px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--ink); }
.cart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.cart-next { text-align: right; margin-top: 1.5rem; }
.totals { margin: 0 0 1.2rem; min-width: 260px; }
.totals div { display: flex; justify-content: space-between; gap: 2rem; padding: .35rem 0; }
.totals dt { color: var(--slate); }
.totals dd { margin: 0; font-weight: 600; }
.totals__grand { border-top: 2px solid var(--ink); margin-top: .3rem; padding-top: .6rem !important; }
.totals__grand dt, .totals__grand dd { color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.details-card .totals dt { color: var(--on-navy-muted); }
address { font-style: normal; line-height: 1.6; }

.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.account-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.account-nav li a, .account-nav .link-btn { display: block; padding: .6rem 1rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; text-align: left; width: 100%; }
.account-nav a[aria-current] { color: var(--navy); border-left: 4px solid var(--gold); margin-left: -3px; background: var(--paper); }
.account-nav a:hover { color: var(--gold-deep); }
.account-nav form { margin: 0; }
@media (max-width: 800px) { .account-layout { grid-template-columns: 1fr; } }

.pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #E9ECF2; color: var(--ink); }
.pill--paid, .pill--sent, .pill--printing { background: #FFF3D6; color: #5E4511; }
.pill--shipped { background: #E7F3EB; color: #134626; }
.pill--print_issue, .pill--cancelled { background: #FBEBE8; color: #6A1B12; }

.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.inline-form select { min-height: 44px; padding: .4rem .8rem; border: 1.5px solid #9AA1AE; border-radius: 8px; }
.product-edit { border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.4rem .4rem; margin: 0 0 1.4rem; }
.product-edit legend { font-weight: 700; padding: 0 .4rem; }
.check { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.check input { width: 22px; height: 22px; accent-color: var(--navy); }
.check label { font-weight: 600; }
