/* Julian Veycroft — public site styles.
   Design tokens mirror docs/BRAND_GUIDELINES.md. Fonts are self-hosted (SIL OFL). */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-500.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-600.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4-wght.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4-wght-italic.woff2) format('woff2'); }

:root {
  --ink: #15171c;
  --ink-2: #1d2027;
  --ink-3: #2a2e37;
  --paper: #f6f1e7;
  --paper-2: #efe8db;
  --vellum: #e6dccb;
  --rule: #d8cdb9;
  --rule-strong: #b9ab92;
  --text: #1c1f25;
  --text-muted: #565b64;
  --brass: #c2a06a;
  --brass-deep: #74572a;
  --oxblood: #7a2e27;
  --on-ink: #f1ebdf;
  --on-ink-muted: #bfb7a8;
  --font-display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --font-text: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;
  --shadow-book: 0 1px 1px rgba(0, 0, 0, 0.08), 0 14px 28px -12px rgba(21, 23, 28, 0.45), 0 30px 60px -30px rgba(21, 23, 28, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brass-deep); }
:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; border-radius: 1px; }
.on-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--brass); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 0.5em; color: inherit; }
h1 { font-size: clamp(2.4rem, 1.7rem + 3vw, 4rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { 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: -4rem; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 0.6rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--on-ink); }

.eyebrow {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.9rem;
}
.on-ink .eyebrow { color: var(--brass); }

/* ---------------------------------------------------------------- announcement */
.announcement { background: var(--ink-2); color: var(--on-ink); font-size: 0.9rem; text-align: center; padding: 0.55rem var(--gutter); }
.announcement a { color: var(--brass); }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; padding: 0.4rem 0; }
.brand:hover { color: var(--ink); }
.brand svg { display: block; height: 2.35rem; width: auto; }
.brand .logo-accent { fill: var(--brass-deep); }
.brand[data-logo='B'] svg { height: 1.15rem; }
.brand[data-logo='C'] svg { height: 2.1rem; }
.site-nav ul { list-style: none; display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: 1rem; letter-spacing: 0.02em; padding: 0.5rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--brass-deep); border-bottom-color: var(--brass-deep); }
.site-nav a[aria-current='page'] { border-bottom-color: var(--ink); }

@media (max-width: 40rem) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding-top: 0.6rem; padding-bottom: 0.4rem; min-height: 0; }
  .brand svg { height: 1.85rem; }
  .brand[data-logo='B'] svg { height: 0.95rem; }
  .site-nav ul { gap: 1.4rem; }
  .site-nav a { font-size: 0.98rem; display: inline-block; padding: 0.55rem 0; }
}

/* ---------------------------------------------------------------- buttons & badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-text); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem; min-height: 2.9rem; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--on-ink); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ink-3); color: var(--on-ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-ink); }
.on-ink .btn { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.on-ink .btn:hover { background: #d3b47f; border-color: #d3b47f; color: var(--ink); }
.on-ink .btn-outline { background: transparent; color: var(--on-ink); border-color: rgba(241, 235, 223, 0.45); }
.on-ink .btn-outline:hover { background: rgba(241, 235, 223, 0.08); color: var(--on-ink); border-color: var(--on-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.1em; }
.text-link::after { content: ' \2192'; }

.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.6rem 0.28rem; border: 1px solid var(--brass-deep); color: var(--brass-deep); border-radius: var(--radius); line-height: 1.2;
}
.badge-available { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.badge-preorder { background: var(--brass-deep); border-color: var(--brass-deep); color: #fff; }
.badge-in_development { border-color: var(--rule-strong); color: var(--text-muted); }
.on-ink .badge { border-color: var(--brass); color: var(--brass); }
.on-ink .badge-available { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

/* ---------------------------------------------------------------- covers */
.cover { position: relative; display: block; background: var(--vellum); box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.12), var(--shadow-book); border-radius: 1px 3px 3px 1px; overflow: hidden; }
.cover img { width: 100%; height: auto; }
.cover::after { /* soft spine highlight, purely decorative */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0, rgba(255, 255, 255, 0.16) 1.2%, rgba(255, 255, 255, 0) 3.5%, rgba(0, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0) 7%);
}
.cover-placeholder {
  aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 12% 10%; background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule);
}
.cover-placeholder::before { content: ''; position: absolute; inset: 6%; border: 1px solid var(--rule-strong); }
.cover-placeholder .ph-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.9rem); line-height: 1.1; margin: 0 0 0.6rem; }
.cover-placeholder .ph-author { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(60rem 30rem at 85% 20%, rgba(194, 160, 106, 0.13), transparent 60%), url(/brand/grain.svg);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-top: clamp(3rem, 7vw, 6.5rem); padding-bottom: clamp(3rem, 7vw, 6.5rem); }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1.04; margin-bottom: 1.4rem; max-width: 15ch; }
.hero-text { color: var(--on-ink-muted); font-size: 1.15rem; max-width: 34rem; margin-bottom: 2.2rem; }
.hero-feature { justify-self: center; width: min(100%, 19rem); text-align: center; }
.hero-feature .cover { margin: 0 auto 1.5rem; }
.hero-feature a.cover-link { display: block; text-decoration: none; transition: transform 0.25s ease; }
.hero-feature a.cover-link:hover { transform: translateY(-3px); }
.hero-feature .feature-label { margin-bottom: 1.2rem; }
.hero-feature .feature-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin: 0.15rem 0 0.6rem; line-height: 1.1; }
.hero-feature .feature-series { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-muted); margin: 0; }
.hero-feature .feature-meta { display: flex; justify-content: center; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.4rem; }
.hero-feature .feature-meta a { color: var(--on-ink); font-size: 0.95rem; }
.hero-feature .feature-meta a:hover { color: var(--brass); }

@media (max-width: 46rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-feature { justify-self: start; text-align: left; width: min(100%, 15rem); }
  .hero-feature .cover { margin-left: 0; }
  .hero-feature .feature-meta { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 40rem; }

.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.spotlight blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.25; color: var(--ink); position: relative; padding-top: 1.6rem; }
.spotlight blockquote::before { content: ''; position: absolute; top: 0; left: 0; width: 3rem; height: 2px; background: var(--brass-deep); }
.spotlight .meta-line { color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 48rem) { .spotlight { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- catalogue */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.book-card { display: flex; flex-direction: column; }
.book-card .cover { margin-bottom: 1.25rem; transition: transform 0.25s ease; max-width: 16rem; }
.book-card:hover .cover { transform: translateY(-3px); }
.book-card .card-series { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep); margin: 0 0 0.35rem; }
.book-card h3 { font-size: 1.6rem; margin: 0 0 0.35rem; }
.book-card h3 a { text-decoration: none; }
.book-card .card-genre { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 0.6rem; font-style: italic; }
.book-card .card-desc { font-size: 0.97rem; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.book-card .card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.book-card .card-foot a { font-size: 0.92rem; }

.filters { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 0 0 2.75rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.filter-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
.filter-group .filter-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-right: 0.2rem; }
.filter-group a { font-size: 0.95rem; text-decoration: none; padding: 0.25rem 0; border-bottom: 1px solid transparent; }
.filter-group a[aria-current='true'] { border-bottom-color: var(--ink); font-weight: 600; }
.empty-state { padding-top: 3rem; padding-bottom: 3rem; max-width: 36rem; }
.empty-state h2 { font-size: 2rem; }
.book-feature { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; max-width: 52rem; }
.book-feature h2 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); margin-bottom: 0.4rem; }
.book-feature h2 a { text-decoration: none; }
.muted-text { color: var(--text-muted); font-size: 0.95rem; }
.book-feature .card-genre { color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.book-feature .feature-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
@media (max-width: 36rem) { .book-feature { grid-template-columns: 1fr; } .book-feature .cover { max-width: 14rem; } }

/* ---------------------------------------------------------------- book detail */
.breadcrumbs { font-size: 0.9rem; color: var(--text-muted); padding-top: 1.75rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--rule-strong); }
.book-detail { display: grid; grid-template-columns: minmax(14rem, 23rem) minmax(0, 1fr); grid-template-areas: 'cover main' 'facts main'; grid-template-rows: auto 1fr; column-gap: clamp(2rem, 6vw, 5.5rem); padding-top: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); align-items: start; }
.book-detail .cover-col { grid-area: cover; }
.book-detail .main-col { grid-area: main; }
.book-detail .facts-col { grid-area: facts; }
.book-detail h1 { margin-bottom: 0.4rem; }
.book-detail .subtitle { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; margin: 0 0 0.6rem; }
.book-detail .byline { font-size: 1.05rem; margin: 0 0 1.5rem; }
.book-detail .byline span { font-style: italic; color: var(--text-muted); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 2rem; font-size: 0.95rem; color: var(--text-muted); max-width: 38rem; }
.teaser { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.3; margin: 0 0 2rem; padding-left: 1.25rem; border-left: 2px solid var(--brass-deep); }
.prose { max-width: 38rem; }
.prose p { margin-bottom: 1.15em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.25rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); padding-top: 0.2rem; }
.facts dd { margin: 0; }
.buy { background: var(--paper-2); border: 1px solid var(--rule); padding: 1.6rem 1.75rem; margin: 2rem 0; max-width: 38rem; }
.buy .buy-note { margin-bottom: 0; }
.buy h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.buy p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.buy .btn-row { margin-top: 0.4rem; }
.buy .retailer-note { font-size: 0.82rem; margin: 1rem 0 0; }
.content-notes { max-width: 38rem; font-size: 0.95rem; color: var(--text-muted); border-top: 1px solid var(--rule); padding-top: 1rem; }
.content-notes summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.content-notes summary::-webkit-details-marker { display: none; }
.content-notes summary::before { content: '+'; display: inline-flex; width: 1.2rem; height: 1.2rem; align-items: center; justify-content: center; border: 1px solid var(--rule-strong); font-weight: 400; }
.content-notes[open] summary::before { content: '\2212'; }
@media (max-width: 48rem) {
  .book-detail { grid-template-columns: 1fr; grid-template-areas: 'cover' 'main' 'facts'; grid-template-rows: auto; }
  .book-detail .cover-col { max-width: 15rem; margin: 0 auto 2rem; }
}
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.7rem; }
}

/* ---------------------------------------------------------------- about / forms / legal */
.page-head { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 20ch; }
.page-body { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: clamp(2rem, 6vw, 5rem); }
.about-grid aside { border-left: 1px solid var(--rule); padding-left: 2rem; font-size: 0.97rem; }
.about-grid aside ul { list-style: none; padding: 0; margin: 0; }
.about-grid aside li { margin: 0 0 0.6rem; }
.about-mark { width: 3rem; color: var(--ink); margin-bottom: 1.25rem; }
.about-mark .logo-accent { fill: var(--brass-deep); }
@media (max-width: 48rem) { .about-grid { grid-template-columns: 1fr; } .about-grid aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; } }

.services-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; max-width: 44rem; }
.services-list li { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.services-list .price { color: var(--text-muted); font-size: 0.95rem; }

.form { max-width: 36rem; display: grid; gap: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field .hint { display: block; font-size: 0.85rem; color: var(--text-muted); margin: -0.15rem 0 0.4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fffdf8;
  border: 1px solid #857860; border-radius: var(--radius); padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass-deep); outline-offset: 1px; border-color: var(--brass-deep); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--oxblood); }
.field .error { color: var(--oxblood); font-size: 0.9rem; margin-top: 0.35rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.25rem; border-left: 3px solid var(--brass-deep); background: var(--paper-2); margin: 0 0 1.75rem; max-width: 36rem; }
.notice-error { border-left-color: var(--oxblood); }

.legal { max-width: 44rem; }
.legal h2 { font-size: 1.75rem; margin-top: 2.25rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0 1.5rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
.legal th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.not-found { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(4rem, 10vw, 8rem); text-align: center; }
.not-found h1 { margin: 0 auto 1rem; max-width: 18ch; }
.not-found p { color: var(--text-muted); max-width: 32rem; margin: 0 auto 2rem; }
.not-found .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- preview banner (admin previews only) */
.preview-banner { position: sticky; top: 0; z-index: 50; background: var(--oxblood); color: #fff; text-align: center; font-size: 0.9rem; padding: 0.55rem 1rem; }
.preview-banner a { color: #fff; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 3.5rem 0 2.5rem; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 3rem; align-items: start; }
.footer-mark { color: var(--on-ink); width: 3rem; }
.footer-mark .logo-accent { fill: var(--brass); }
.footer-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--on-ink); margin: 0 0 0.25rem; letter-spacing: 0.04em; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(241, 235, 223, 0.12); padding-top: 1.5rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
@media (max-width: 40rem) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header nav, .site-footer, .btn-row, .buy, .announcement { display: none; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- Explore the book (Book Studio gallery) */
.explore { background: var(--paper-2); }
.explore-video { margin: 0 0 2.5rem; }
.explore-video video { display: block; width: 100%; height: auto; max-height: 78vh; background: var(--ink); border-radius: 2px; box-shadow: var(--shadow-book); }
.explore-video.is-vertical { max-width: 22rem; }
.explore-video.is-featured:not(.is-vertical) { max-width: 56rem; }
.explore-video figcaption, .explore-carousel figcaption { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.7rem; max-width: 38rem; }
.explore-meta { white-space: nowrap; }
.explore-videos { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 2rem; }
.explore-videos .explore-video { margin: 0; }
.explore-title { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--text); margin-bottom: 0.2rem; }
.explore-video.is-featured .explore-title { font-size: 1.4rem; }
.explore-desc { display: block; }
.explore-subhead { font-size: 1.4rem; margin: 0 0 1rem; }
.explore-count { color: var(--text-muted); font-weight: 400; }
/* short vertical films: a swipeable strip on phones, a grid on wide screens; always 9:16, never cropped */
.explore-reels { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; margin: 0 calc(var(--gutter) * -1) 2.5rem; padding: 0 var(--gutter) 1rem; }
.explore-reels:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 4px; }
.explore-reels ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.explore-reels li { flex: 0 0 auto; width: min(72vw, 17rem); scroll-snap-align: start; }
.explore-reels .explore-video { margin: 0; max-width: none; }
.explore-reels video { aspect-ratio: 9 / 16; width: 100%; height: auto; max-height: none; object-fit: contain; }
.explore-reels figcaption { font-size: 0.9rem; }
.explore-reels .explore-title { font-size: 1.05rem; }
@media (min-width: 40rem) { .explore-reels li { width: 15rem; } }
@media (min-width: 64rem) {
  .explore-reels { overflow: visible; margin: 0 0 2.5rem; padding: 0; }
  .explore-reels ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .explore-reels li { width: auto; }
}
/* clean posters: one play button until the video starts (then the browser's own controls) */
.video-frame { position: relative; }
.video-play { position: absolute; inset: 0; margin: auto; width: 4.5rem; height: 4.5rem; padding: 0; border: 1px solid rgba(241, 235, 223, 0.75); border-radius: 50%; background: rgba(21, 23, 28, 0.55); cursor: pointer; display: grid; place-items: center; transition: background 0.15s ease, transform 0.15s ease; }
.video-play span { width: 0; height: 0; margin-left: 0.3rem; border-style: solid; border-width: 0.85rem 0 0.85rem 1.35rem; border-color: transparent transparent transparent var(--on-ink); }
.video-play:hover, .video-play:focus-visible { background: rgba(21, 23, 28, 0.8); transform: scale(1.05); }
.video-play:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.explore-reels .video-play { width: 3.5rem; height: 3.5rem; }
.explore-reels .video-play span { border-width: 0.65rem 0 0.65rem 1.05rem; margin-left: 0.25rem; }
.explore-title .explore-meta { font-family: var(--font-text); font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } .video-play:hover, .video-play:focus-visible { transform: none; } }
/* the homepage trailer: 16:9, full width of the text column, below the hero */
.home-trailer .explore-video { margin: 0 0 1rem; }
.home-trailer .explore-video.is-featured:not(.is-vertical) { max-width: 60rem; }
.home-trailer video { aspect-ratio: 16 / 9; }
.home-trailer-more { margin: 0; }
.explore-carousel { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1) 2.5rem; padding: 0 var(--gutter) 1rem; }
.explore-carousel ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.explore-carousel li { flex: 0 0 auto; width: min(78vw, 24rem); scroll-snap-align: start; }
.explore-carousel figure { margin: 0; }
.explore-carousel img { width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.12), var(--shadow-book); }
.explore-excerpts { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.explore-excerpt { margin: 0; padding: 1.75rem 2rem; background: var(--paper); border: 1px solid var(--rule); }
.explore-excerpt blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.35; }
.explore-excerpt figcaption { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
