/* ==========================================================================
   Helon Habila — site styles
   ========================================================================== */

:root {
  --paper: #f6f1e7;
  --paper-deep: #ece4d3;
  --ink: #1c1a17;
  --ink-soft: #4a453d;
  --muted: #675f53;
  --rule: #d9cfbc;
  --accent: #a4462a;        /* terracotta */
  --accent-dark: #7d3420;
  --ochre: #c8952f;
  --night: #15130f;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font: 600 .8rem/1 var(--sans);
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink); background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header > .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
}
.brand:hover { color: var(--ink); }

.nav-list { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav-list .nav-link {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; padding: .4rem 0;
  border-bottom: 1px solid transparent;
}
.nav-list .nav-link:hover, .nav-list .nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav-list .nav-link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--paper-deep); }
.section--dark { background: var(--night); color: #e9e2d4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--ochre); }

.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 2rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .lede { margin: .75rem 0 0; }
.section-head .link-more {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 1.08rem; margin-bottom: 2rem; }
/* A short passage from the books in place of the title: smaller than h1, one line per speaker */
.hero__quote { margin: 0 0 1.75rem; }
.hero__quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 3.1vw, 2.6rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink);
}
.hero__quote figcaption {
  margin-top: 1.1rem; font: 600 .75rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero__quote figcaption::before { content: "— "; }
.hero__quote figcaption em { font-style: normal; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .portrait-frame { max-width: 420px; }
}

/* ---------- Portrait with graceful fallback ---------- */

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 25%, rgba(200,149,47,.35), transparent 55%),
    linear-gradient(160deg, #2a2620, #15130f);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(28,26,23,.5);
}
.portrait-frame::before {
  content: "HH";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 7rem; font-style: italic;
  color: rgba(246,241,231,.18);
}
.portrait-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.portrait-frame img.is-missing { display: none; }
/* Keep the head in frame when a tall portrait is cropped to 4:5 */
.bio-grid .portrait-frame img { object-position: 50% 15%; }
.portrait-caption {
  font-size: .8rem; color: var(--muted); margin-top: .75rem; letter-spacing: .04em;
}

/* ---------- Book covers ---------- */

.cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px 4px 4px 2px;
  background: var(--paper-deep);
  box-shadow: 0 22px 40px -22px rgba(28,26,23,.65);
  transition: transform .3s ease;
}

/* ---------- Quote band ---------- */

.quote-band { text-align: center; }
.quote-band blockquote {
  margin: 0 auto; max-width: 40ch;
  font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-style: italic; line-height: 1.35;
  color: #fff;
}
.quote-band cite {
  display: block; margin-top: 1.5rem;
  font: 600 .75rem var(--sans); letter-spacing: .18em; text-transform: uppercase; font-style: normal;
  color: var(--ochre);
}

/* ---------- Link lists (reviews, writing, interviews) ---------- */

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 1rem 0; border-top: 1px solid var(--rule); }
.link-list li:last-child { border-bottom: 1px solid var(--rule); }
.link-list .title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; display: block; }
.link-list .src { font-size: .85rem; color: var(--muted); }
.link-list a { text-decoration: none; }
.link-list a:hover .title { text-decoration: underline; }

.inline-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .92rem; }
.sub-label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 1.5rem 0 .5rem;
}

.writing-section + .writing-section { margin-top: clamp(3rem, 6vw, 4.5rem); }
/* ---------- Book grids ---------- */

.book-shelf {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem);
}
.book-card { text-decoration: none; color: inherit; }
.book-card:hover { color: inherit; }
.book-card:hover .cover { transform: translateY(-6px); }
.book-card h3 { font-size: 1.35rem; margin: 1.1rem 0 .15rem; }
.book-card .meta { font-size: .85rem; color: var(--muted); }

@media (max-width: 900px) { .book-shelf { grid-template-columns: repeat(2, 1fr); } }

/* Featured book */
.featured {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.featured .cover { max-width: 340px; }
@media (max-width: 780px) {
  .featured { grid-template-columns: 1fr; }
  .featured .cover { max-width: 260px; }
}

/* Books page: full entries */
.book-entry {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.75rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 90px;
}
.book-entry:first-of-type { border-top: 0; padding-top: 0; }
.book-entry h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .2em; }
.book-entry .meta {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem;
}
.book-entry .accolade {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  background: rgba(164,70,42,.1); color: var(--accent-dark);
  padding: .35rem .7rem; border-radius: 999px; margin: 0 .4rem .6rem 0;
}
@media (max-width: 700px) {
  .book-entry { grid-template-columns: 1fr; }
  .book-entry .cover { max-width: 200px; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.filter-bar button {
  font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-soft);
}
.filter-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.book-entry[hidden] { display: none; }

/* ---------- Page header ---------- */

.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { margin-bottom: .3em; }

/* ---------- Biography ---------- */

.bio-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
/* Photo on the right, facing into the text */
.bio-grid .sticky { position: sticky; top: 100px; align-self: start; order: 2; }
.prose { font-size: 1.08rem; max-width: 68ch; }
.bio-grid .prose p:first-of-type::first-letter {
  font-family: var(--serif); float: left; font-size: 4.6rem; line-height: .82;
  padding: .3rem .6rem 0 0; color: var(--accent);
}
@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid .sticky { position: static; max-width: 380px; order: 0; }
}

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .55rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.timeline .year { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; display: block; }
.timeline p { margin: .2rem 0 0; color: var(--ink-soft); }

.honours {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12);
}
.honours div { background: var(--night); padding: 1.75rem; }
.honours .year { color: var(--ochre); font: 600 .75rem var(--sans); letter-spacing: .16em; }
.honours h3 { font-size: 1.35rem; margin: .5rem 0 .3rem; }
.honours p { font-size: .9rem; margin: 0; color: #b9b0a0; }

/* ---------- Events ---------- */

.event-list { list-style: none; margin: 0; padding: 0; }
.event {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 2rem; align-items: center;
  padding: 1.75rem 0; border-top: 1px solid var(--rule);
}
.event:last-child { border-bottom: 1px solid var(--rule); }
.event__date { font-family: var(--serif); line-height: 1; }
.event__date .day { font-size: 2.8rem; display: block; }
.event__date .mon { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.event h3 { font-size: 1.45rem; margin: 0 0 .2rem; }
.event .where { font-size: .9rem; color: var(--muted); margin: 0; }
.event .type {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .6rem;
  display: inline-block; margin-bottom: .5rem;
}
.event--past { opacity: .7; }
@media (max-width: 700px) {
  .event { grid-template-columns: 70px 1fr; gap: 1.25rem; }
  .event .btn { grid-column: 2; justify-self: start; }
  .event__date .day { font-size: 2.2rem; }
}

.empty-state {
  border: 1px dashed var(--rule); border-radius: var(--radius);
  padding: 2.5rem; text-align: center; color: var(--ink-soft);
}
.empty-state h3 { margin-bottom: .3rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 2rem;
}
.card h3 { font-size: 1.45rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.contact-grid .card a { font-weight: 600; word-break: break-word; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Two-col utility ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: #a39a8a; padding: 4rem 0 2.5rem; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; display: inline-block; margin-bottom: .6rem; }
.site-footer h4 {
  font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #d6cdbd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; margin-top: 1.5rem;
  font-size: .8rem;
}
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cover, .book-card:hover .cover { transition: none; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Featured pull quote ---------- */

.pull-quote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; margin: 0 0 1.75rem; }
.pull-quote span { display: block; font: 500 .82rem var(--sans); color: var(--muted); margin-top: .35rem; }

/* ---------- Contact ---------- */

.contact-grid { align-items: start; }
.contact-details { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: 1.25rem 0 0; }
.contact-details dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact-details dd { margin: 0; }

.contact-form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font: 400 1rem var(--sans); color: var(--ink);
  padding: .75rem .85rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(164,70,42,.15); }
.contact-form .btn { justify-self: start; cursor: pointer; }
.optional { font-weight: 400; color: var(--muted); }
.field-error { color: #a12a1a; font-size: .85rem; font-weight: 500; }
.notice { background: rgba(70,120,60,.1); color: #2f5a26; padding: 1rem 1.25rem; border-radius: var(--radius); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.timeline strong { font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Live layer: motion, carousel, widgets, media
   ========================================================================== */

/* Smooth cross-page transitions (supported browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .35s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Reading progress + header on scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--ochre));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header > .wrap { transition: height .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(28,26,23,.45); }
.site-header.is-scrolled > .wrap { height: 60px; }
@media (max-width: 1060px) { .site-header.is-scrolled .site-nav { top: 60px; } }

/* Hero */
.hero--live { position: relative; overflow: hidden; }
.hero--live .wrap { position: relative; z-index: 1; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background:
    radial-gradient(circle at 35% 40%, rgba(200,149,47,.28), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(164,70,42,.18), transparent 50%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-6%, 8%) scale(1.08); }
  100% { transform: translate(4%, -4%) scale(.96); }
}
.hero__media { position: relative; }
.portrait-ring {
  position: absolute; inset: -6% -6% auto auto; width: 42%; aspect-ratio: 1;
  border: 1px dashed rgba(164,70,42,.45); border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero--live .portrait-frame { will-change: transform; }

/* Intro sequence */
.intro { opacity: 0; transform: translateY(24px); animation: intro .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__text .intro:nth-child(1) { animation-delay: .1s; }
.hero__text .intro:nth-child(2) { animation-delay: .2s; }
.hero__text .intro:nth-child(3) { animation-delay: .55s; }
.hero__text .intro:nth-child(4) { animation-delay: .7s; }
.hero__media.intro { animation-delay: .35s; animation-duration: 1.2s; }
@keyframes intro { to { opacity: 1; transform: none; } }

/* Title words rise one by one (words wrapped by JS) */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); animation: word .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.25s + var(--i) * 60ms); }
@keyframes word { to { transform: none; } }

/* Prize ribbon (marquee) */
.ribbon { background: var(--ink); color: #efe7d8; overflow: hidden; border-block: 1px solid #000; }
.ribbon__track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ribbon li { padding: 1rem 2.25rem; font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; position: relative; }
.ribbon li::after { content: "✦"; position: absolute; right: -.35rem; top: 50%; transform: translateY(-50%); color: var(--ochre); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3D tilt on covers */
.tilt { display: block; perspective: 900px; }
.tilt .cover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .4s ease, box-shadow .4s ease; }
.tilt.is-tilting .cover { transition: transform .08s linear; box-shadow: 0 35px 50px -25px rgba(28,26,23,.7); }
.book-card:hover .cover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }

/* Carousel */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 2rem) / 4); gap: 2rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 1rem .25rem 2rem; margin: -1rem -.25rem 0; scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel.is-dragging a { pointer-events: none; }
.carousel > * { scroll-snap-align: start; }
@media (max-width: 900px) { .carousel { grid-auto-columns: calc((100% - 2rem) / 2.2); } }
@media (max-width: 520px) { .carousel { grid-auto-columns: 70%; gap: 1.25rem; } }
.carousel-controls { display: flex; gap: .5rem; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: transparent;
  font-size: 1.1rem; cursor: pointer; color: var(--ink); transition: background .2s, color .2s, transform .2s;
}
.round-btn:hover { background: var(--ink); color: var(--paper); transform: scale(1.06); }
.round-btn:disabled { opacity: .3; pointer-events: none; }

/* Animated stats */
.stats { background: var(--paper-deep); border-block: 1px solid var(--rule); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item__n { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; color: var(--accent); }
.stat-item__label { display: block; margin-top: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 700px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* Quote rotator */
.rotator { display: grid; text-align: center; }
.rotator__item { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; pointer-events: none; }
.rotator__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.rotator__dots { display: flex; justify-content: center; gap: .6rem; margin-top: 2rem; }
.rotator__dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ochre); background: transparent; padding: 0; cursor: pointer; transition: background .3s, transform .3s; }
.rotator__dots button[aria-selected="true"] { background: var(--ochre); transform: scale(1.25); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--night); margin-bottom: 1rem; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__placeholder {
  display: grid; place-items: center; height: 100%; font-family: var(--serif); font-style: italic; font-size: 3.5rem; color: rgba(200,149,47,.55);
  background: radial-gradient(circle at 30% 30%, rgba(200,149,47,.25), transparent 60%), linear-gradient(150deg, #2a2620, #15130f);
}
.news-card time { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.news-card h3 { font-size: 1.5rem; margin: .4rem 0 .4rem; }
.news-card h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s ease; }
.news-card:hover h3 a { background-size: 100% 1px; }
.news-card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.wrap--narrow { max-width: 780px; }
.crumbs a { text-decoration: none; font-size: .9rem; }
.post .page-head { border-bottom: 0; padding-bottom: 1rem; }
.post__image img { width: 100%; border-radius: var(--radius); }
.post__body h2 { font-size: 1.9rem; margin-top: 2rem; }
.post__body ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.pager { display: flex; gap: .75rem; justify-content: center; margin-top: 3rem; }

/* Countdown */
.countdown {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  background: var(--night); color: #e9e2d4; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.countdown::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(200,149,47,.25), transparent 65%); }
.countdown h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .3rem; }
.countdown p { margin: 0; color: #b9b0a0; }
.countdown .eyebrow { color: var(--ochre); }
.countdown__clock { display: flex; gap: .75rem; position: relative; }
.countdown__clock div { text-align: center; min-width: 74px; padding: .9rem .5rem; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.countdown__clock span { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown__clock small { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #a39a8a; }
@media (max-width: 760px) { .countdown { grid-template-columns: 1fr; } .countdown__clock div { min-width: 0; flex: 1; } .countdown__clock span { font-size: 1.8rem; } }

/* Video */
.video { margin: 0 0 1rem; }
.video__play, .video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden;
  position: relative; background: #000; cursor: pointer;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s; }
.video__play:hover img { opacity: 1; transform: scale(1.03); }
.video__icon {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(164,70,42,.6); animation: pulse 2.4s infinite;
}
.video__icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
@keyframes pulse { 70% { box-shadow: 0 0 0 18px rgba(164,70,42,0); } 100% { box-shadow: 0 0 0 0 rgba(164,70,42,0); } }
.video figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* Watch + archive */
.watch-read { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .watch-read { grid-template-columns: 1fr; } }
.archive-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 2rem; background: var(--paper); position: relative; }
.archive-card::before { content: "❝"; position: absolute; right: 1.25rem; top: .25rem; font-size: 5rem; line-height: 1; color: rgba(164,70,42,.12); font-family: var(--serif); }
.archive-card__kind { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .6rem; }
.archive-card h3 { font-size: 1.6rem; margin: .9rem 0 .4rem; }
.archive-card h3 a { color: var(--ink); text-decoration: none; }
.archive-card h3 a:hover { color: var(--accent); }
.archive-card__note { font-size: .82rem; color: var(--muted); font-style: italic; }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery__item { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.muted-note { color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,11,9,.94);
  display: grid; place-items: center; padding: 4rem 1rem; opacity: 0; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 4px; }
.lightbox p { color: #d6cdbd; text-align: center; margin-top: 1rem; font-size: .9rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: 1rem; }
.lightbox .lb-close { top: .5rem; right: .75rem; }
.lightbox .lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* Staggered reveal of children */
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.no-js .reveal-stagger > * { opacity: 1; transform: none; }

/* Buttons: a little life */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25), transparent 70%); transform: translateX(-120%); transition: transform .6s ease; }
.btn:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  .intro, [data-split] .w > span { animation: none; opacity: 1; transform: none; }
  .hero__glow, .portrait-ring, .ribbon__track, .video__icon { animation: none; }
  .ribbon__track { flex-wrap: wrap; width: auto; }
  .ribbon ul[aria-hidden] { display: none; }
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .rotator__item { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================================
   Logo + mega menu
   ========================================================================== */

[id] { scroll-margin-top: 100px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .brand img { height: 38px; }
.brand--footer img { height: 54px; filter: invert(1) brightness(1.6); margin-bottom: .5rem; }

.nav-list { align-items: center; }
.has-mega { display: flex; align-items: center; gap: .15rem; }
.mega-toggle {
  width: 22px; height: 28px; border: 0; background: none; cursor: pointer; padding: 0; color: var(--ink-soft);
  display: grid; place-items: center;
}
.mega-toggle::before {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s ease;
}
.has-mega.is-open .mega-toggle::before { transform: translateY(2px) rotate(-135deg); }
.has-mega.is-open > .nav-link { color: var(--ink); border-bottom-color: var(--accent); }
.nav-link--cta { border: 1px solid var(--ink) !important; padding: .55rem 1rem !important; border-radius: 999px; }
.nav-link--cta:hover, .nav-link--cta[aria-current="page"] { background: var(--ink); color: var(--paper) !important; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  box-shadow: 0 30px 60px -30px rgba(28,26,23,.45);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.mega__inner { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; padding-top: 2.25rem; padding-bottom: 2.5rem; }
.mega__inner--about { grid-template-columns: 170px 1fr 300px; align-items: start; }
.mega__inner:not(.mega__inner--books):not(.mega__inner--about) { grid-template-columns: 1fr 340px; }

.mega__label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.mega__links { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mega__links a {
  display: flex; justify-content: space-between; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none; transition: color .2s, padding .2s;
}
.mega__links a:hover { color: var(--accent); padding-left: .4rem; }
.mega__count { font: 600 .72rem var(--sans); color: var(--muted); }
.mega__more { display: inline-block; margin-top: .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.mega__feature, .mega__card {
  display: block; padding: 1.25rem 1.4rem; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--paper-deep); border: 1px solid var(--rule); transition: transform .25s ease, box-shadow .25s ease;
}
a.mega__feature:hover, a.mega__card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(28,26,23,.5); color: inherit; }
.mega__feature strong, .mega__card strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.mega__src { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.mega__card--event { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; background: var(--night); border-color: var(--night); }
.mega__card--event strong { color: #fff; }
.mega__card--event .mega__src { color: #b9b0a0; }
.mega__card--event .mega__label { color: var(--ochre); }
.mega__date { display: grid; place-items: center; text-align: center; width: 78px; padding: .7rem 0; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); color: #d6cdbd; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.mega__date span { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: #fff; letter-spacing: 0; }

.mega__covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mega__cover { text-decoration: none; color: var(--ink); }
.mega__cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 16px 28px -18px rgba(28,26,23,.6); transition: transform .3s ease; }
.mega__cover:hover img { transform: translateY(-5px) rotate(-1deg); }
.mega__cover span { display: block; font-family: var(--serif); font-size: 1.15rem; margin-top: .6rem; line-height: 1.2; }
.mega__cover small { color: var(--muted); font-size: .78rem; }

.mega__grid-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.mega__grid-links a {
  display: block; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.mega__grid-links a:hover { border-color: var(--accent); background: rgba(164,70,42,.05); }
.mega__grid-links strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.mega__grid-links span { font-size: .82rem; color: var(--muted); }
.mega__portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.mega__intro { color: var(--ink-soft); margin-bottom: 1.25rem; max-width: 60ch; }

/* Mobile: the menu becomes a scrolling drawer with expandable sections */
@media (max-width: 1060px) {
  .site-nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-list > li { border-bottom: 1px solid var(--rule); }
  .has-mega { flex-wrap: wrap; }
  .has-mega > .nav-link { flex: 1; }
  .mega-toggle { width: 44px; height: 44px; }
  .mega {
    position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; transition: none;
  }
  .has-mega.is-open .mega { display: block; }
  .mega__inner, .mega__inner--about, .mega__inner:not(.mega__inner--books):not(.mega__inner--about) { grid-template-columns: 1fr; gap: 1.25rem; padding: 0 0 1.25rem; }
  .mega__covers { grid-template-columns: repeat(4, 1fr); gap: .75rem; }
  .mega__cover span, .mega__cover small, .mega__portrait, .mega__intro { display: none; }
  .mega__links { margin-bottom: .5rem; }
  .mega__links a { font-size: 1.1rem; }
  .nav-link--cta { display: inline-block !important; margin: 1rem 0; }
  .nav-list > li:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .mega { transition: none; } }

/* Nav alignment fixes */
.nav-list > li { display: flex; align-items: center; }
@media (max-width: 1060px) {
  .nav-list { align-items: stretch; }
  .nav-list > li { display: block; }
  .has-mega { display: flex !important; }
  .nav-list .nav-link { border-bottom: 0 !important; }
}

/* ---------- UX review fixes ---------- */
.footer-heading { font: 600 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.card__title { font-size: 1.45rem; }
/* Bigger hit area for the menu arrows (was 22x28) */
.mega-toggle { width: 32px; height: 44px; margin-right: -6px; }
/* Minimum label sizes (were 10.5-12px) */
.nav-list .nav-link { font-size: .8rem; }
.mega__label, .eyebrow { font-size: .76rem; }
.mega__count { font-size: .76rem; }
.mega__more, .section-head .link-more { font-size: .8rem; }
.countdown__clock small, .stat-item__label, .event .type, .archive-card__kind { font-size: .74rem; }
.sub-label, .contact-details dt { font-size: .76rem; }
/* The sr-only helper used in the hero heading */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Past events: muted by colour, not opacity (opacity broke text contrast) */
.event--past { opacity: 1; }
.event--past h3, .event--past .event__date .day { color: var(--ink-soft); }
.event--past .event__date .mon { color: var(--accent-dark); }
.event .type { color: var(--ink-soft); }

/* ==========================================================================
   News card placeholder: his favicon (overlapping HH) instead of a generated monogram
   ========================================================================== */
.news-card__placeholder { background: var(--paper-deep); }
.news-card__placeholder img { width: 34%; max-width: 120px; height: auto; opacity: .9; }

/* ==========================================================================
   Colour scheme: LOGO (black, white and the logo's grey #5c5c5c)
   Switched on with body.theme-logo (admin setting, or ?theme=logo to preview)
   ========================================================================== */
.theme-logo {
  --paper: #ffffff;
  --paper-deep: #f2f2f2;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #5c5c5c;        /* the grey in the logo */
  --rule: #dddddd;
  --accent: #111111;       /* buttons, links and labels in black */
  --accent-dark: #000000;
  --ochre: #a8a8a8;        /* light grey for labels on dark bands */
  --night: #111111;
}
.theme-logo .site-header { background: rgba(255, 255, 255, .96); }
.theme-logo .eyebrow { color: var(--muted); }
.theme-logo .hero h1 em { color: var(--muted); }
.theme-logo .btn--solid:hover { background: var(--muted); border-color: var(--muted); }
.theme-logo .section--dark, .theme-logo .countdown { color: #e6e6e6; }
.theme-logo .honours p, .theme-logo .countdown p, .theme-logo .mega__card--event .mega__src { color: #b3b3b3; }
.theme-logo .site-footer { color: #a6a6a6; }
.theme-logo .site-footer a, .theme-logo .lightbox p, .theme-logo .mega__date { color: #dcdcdc; }
.theme-logo .ribbon { background: #111; color: #f0f0f0; }
.theme-logo .ribbon li::after { color: #8a8a8a; }
.theme-logo .scroll-progress { background: #111; }
.theme-logo .hero__glow {
  background:
    radial-gradient(circle at 35% 40%, rgba(0,0,0,.06), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(92,92,92,.08), transparent 50%);
}
.theme-logo .portrait-ring { border-color: rgba(0,0,0,.25); }
.theme-logo .portrait-frame { background: linear-gradient(160deg, #2a2a2a, #111); }
.theme-logo .portrait-frame::before { color: rgba(255,255,255,.15); }
.theme-logo .accolade { background: #f0f0f0; color: #111; }
.theme-logo .contact-form input:focus, .theme-logo .contact-form textarea:focus { box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.theme-logo .countdown::before { background: radial-gradient(circle, rgba(255,255,255,.08), transparent 65%); }
.theme-logo .video__icon { background: #111; box-shadow: 0 0 0 0 rgba(0,0,0,.5); animation-name: pulse-grey; }
@keyframes pulse-grey { 70% { box-shadow: 0 0 0 18px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.theme-logo .archive-card::before { color: rgba(0,0,0,.08); }
.theme-logo .mega__grid-links a:hover { background: rgba(0,0,0,.04); }
.theme-logo .stat-item__n { color: #111; }
.theme-logo .rotator__dots button { border-color: #a8a8a8; }
.theme-logo .rotator__dots button[aria-selected="true"] { background: #fff; border-color: #fff; }
.theme-logo .event__date .mon, .theme-logo .event--past .event__date .mon { color: var(--muted); }
.theme-logo .news-card time, .theme-logo .link-more, .theme-logo .section-head .link-more { color: #111; }
/* Logo scheme: labels on the black bands use the light grey (the darker logo grey is too faint on black) */
.theme-logo .section--dark .eyebrow, .theme-logo .countdown .eyebrow, .theme-logo .quote-band cite { color: var(--ochre); }

/* Photo credits under the gallery */
.photo-credits { margin-top: 2rem; font-size: .92rem; color: var(--ink-soft); }
.photo-credits summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.photo-credits ul { margin: .75rem 0 0; padding-left: 1.2rem; }
.photo-credits li { margin-bottom: .3rem; }

/* ==========================================================================
   Maintenance ("coming soon") page
   ========================================================================== */
.soon-page { min-height: 100vh; }
.soon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.soon__photo { position: relative; background: var(--night); overflow: hidden; }
.soon__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; animation: soon-zoom 24s ease-out both; }
@keyframes soon-zoom { from { transform: scale(1.06); } to { transform: none; } }
.soon__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5.5rem); max-width: 720px; }
.soon__logo { width: 210px; height: auto; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.soon h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.08; margin-bottom: 1.25rem; }
.soon__text { font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; margin-bottom: 2.5rem; }
.soon__books { list-style: none; margin: 0 0 2.75rem; padding: 0; display: flex; gap: .9rem; }
.soon__books li { width: 76px; }
.soon__books img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; box-shadow: 0 14px 24px -14px rgba(0,0,0,.55); }
.soon__contact { border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-bottom: 2rem; }
.soon__label { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.soon__contact p { margin: 0; }
.soon__legal { font-size: .85rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .soon { grid-template-columns: 1fr; }
  .soon__photo { min-height: 46vh; }
  .soon__logo { width: 170px; margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .soon__photo img { animation: none; } }

/* Private preview banner (shown only to people using the preview link) */
.preview-bar { background: #111; color: #eee; font-size: .82rem; text-align: center; padding: .5rem 1rem; }
.preview-bar strong { color: #fff; }
.preview-bar a { color: #fff; text-decoration: underline; margin: 0 .25rem; }
.preview-bar a[aria-current="true"] { text-decoration: none; font-weight: 700; }
