/* nigelkayaks.com prototype */

:root {
  --red: #c8102e;
  --red-dark: #a50d25;
  --yellow: #f2c500;
  --blue: #0b3d91;
  --blue-deep: #072a66;
  --ink: #111111;
  --white: #fbfaf7;
  --on-blue-soft: #c9d6ee;
  --on-red-soft: #ffe0e4;
  --on-ink-soft: #cfcfcf;
  --hairline: rgba(17, 17, 17, 0.15);

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Literata", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: clamp(72px, 10vw, 128px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scrollbar-color: var(--blue) var(--white); }
body {
  background: var(--white);
  color: var(--ink);
  font: 400 1.25rem/1.65 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.field-yellow :focus-visible, .field-white :focus-visible { outline-color: var(--blue); }
blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 20; background: var(--yellow); color: var(--ink); padding: 14px 18px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.caps {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  text-wrap: balance;
}
.caps a { text-decoration: none; }
.label {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}
h2.caps { font-size: clamp(3rem, 7vw, 6rem); }
.lede { font-size: clamp(1.3125rem, 1.7vw, 1.5625rem); line-height: 1.5; max-width: 44ch; margin-top: var(--space-3); }

/* ---------- fields: the flag colours own whole regions ---------- */
.field-red { background: var(--red); color: #fff; }
.field-blue { background: var(--blue); color: #fff; }
.field-yellow { background: var(--yellow); color: var(--ink); }
.field-ink { background: var(--ink); color: #fff; }
.field-white { background: var(--white); color: var(--ink); }
.field-blue a:hover, .field-red a:hover, .field-ink a:hover { text-decoration-color: var(--yellow); }
.field-blue .soft { color: var(--on-blue-soft); }
.field-blue .btn:hover { background: var(--red-dark); }

/* ---------- masthead ---------- */
.masthead {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 20px var(--gutter);
  color: #fff;
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.wordmark img { width: 30px; height: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.wordmark img + img { margin-left: -6px; }
.wordmark span { margin-left: 4px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.nav a { text-decoration: none; padding: 12px 0; display: inline-block; border-bottom: 3px solid transparent; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease-out);
}
.btn:hover { background: var(--red-dark); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { background: rgba(0, 0, 0, 0.06); }
.field-blue .btn.ghost:hover, .field-ink .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.35em; }
.more:hover { text-decoration-color: currentColor; }
.more svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease-out); }
.more:hover svg { transform: translateX(4px); }


.band { padding: var(--space-6) var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-3); margin-bottom: var(--space-5); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); background: var(--blue-deep); color: #fff; overflow: hidden; }
.hero-shot { position: absolute; inset: 0; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; }
.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 42, 102, 0.45) 0%, rgba(7, 42, 102, 0) 24%, rgba(7, 42, 102, 0) 50%, rgba(7, 42, 102, 0.75) 100%);
  pointer-events: none;
}
.hero-name { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(32px, 6vh, 64px); max-width: 52%; }
.hero-name h1 { font-size: clamp(5rem, 12vw, 13rem); text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25); }
.hero-name p { margin-top: var(--space-3); font-size: clamp(0.875rem, 1.2vw, 1.125rem); letter-spacing: 0.16em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.hero-copy { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(32px, 6vh, 64px); width: min(460px, 38vw); display: grid; gap: var(--space-2); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.hero-head { font-size: clamp(1.625rem, 2.3vw, 2.125rem); line-height: 1.2; font-weight: 600; text-wrap: balance; }
.hero-copy .actions { margin-top: var(--space-2); text-shadow: none; }
.hero .btn.ghost { background: rgba(7, 42, 102, 0.35); }
.hero .btn.ghost:hover { background: rgba(7, 42, 102, 0.6); }

/* ---------- featured book ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.featured .cover-field { padding: var(--space-6) var(--gutter); display: flex; justify-content: center; align-items: center; }
.featured .cover-field a { width: min(360px, 100%); }
.featured .cover-field img { width: 100%; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32); }
.featured .copy { padding: var(--space-6) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }
.featured .copy > * { max-width: 34rem; }
.featured h2 { font-size: clamp(3rem, 6vw, 5.5rem); }
.featured .hook { font-size: clamp(1.375rem, 1.8vw, 1.625rem); line-height: 1.45; }
.featured .copy p:not(.hook):not(.label) { color: var(--on-blue-soft); }
.featured .actions { margin-top: var(--space-2); }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.statement { font-size: clamp(2.125rem, 3.8vw, 3.5rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.statement span { color: var(--red); }
.intro .aside { padding-top: 0.6em; max-width: 36rem; font-size: 1.3125rem; line-height: 1.7; display: grid; gap: var(--space-3); justify-items: start; }

/* ---------- curated books (home) ---------- */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) clamp(32px, 4vw, 64px); margin-bottom: var(--space-5); }
.picks li { display: flex; flex-direction: column; gap: 12px; }
.pick-cover { display: block; margin-bottom: var(--space-2); }
.pick-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35)); transition: transform 0.4s var(--ease-out); }
.pick-cover:hover img { transform: translateY(-6px); }
.picks h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.05; text-transform: uppercase; }
.picks h3 a { text-decoration: none; }
.picks h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.picks p:not(.label) { font-size: 1.125rem; line-height: 1.6; color: var(--on-blue-soft); }
.pick-links { margin-top: auto; padding-top: var(--space-1); display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pick-links a { display: inline-block; padding: 10px 0; text-decoration-color: var(--yellow); text-underline-offset: 0.35em; }
.pick-links a:hover { text-decoration-color: #fff; }

/* ---------- books page: blue intro + featured, catalog on paper ---------- */
.shelf-intro { padding: calc(72px + var(--space-5)) var(--gutter) var(--space-5); }
.shelf-intro h1.caps { font-size: clamp(3.5rem, 9vw, 8rem); }
.shelf-intro .lede { max-width: 52ch; color: var(--on-blue-soft); }
.feat-quote blockquote p { font-style: italic; font-size: 1.1875rem; line-height: 1.55; }
.feat-quote figcaption { margin-top: var(--space-1); }

.shelf { padding: var(--space-6) var(--gutter); }
.shelf h2.caps { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.shelf-head { margin-bottom: var(--space-5); }
/* filters: words, not boxes; the selected one carries a red rule */
.filters { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: var(--space-3); }
.filters button {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #555;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.filters button:hover { color: var(--ink); box-shadow: inset 0 -2px 0 rgba(17, 17, 17, 0.3); }
.filters button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.count { margin-top: var(--space-2); color: #555; }
.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) clamp(24px, 3.5vw, 56px); }
.book-tile[hidden] { display: none; }
.book-tile a { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
/* covers vary in proportion: sit each on a shared 2:3 baseline, shadow follows the jacket */
.book-tile img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
  transition: transform 0.4s var(--ease-out);
}
.book-tile a:hover img { transform: translateY(-6px); }
.book-tile h3 { font-family: var(--body); font-weight: 600; font-size: 1.375rem; line-height: 1.25; margin-top: var(--space-3); text-wrap: balance; }
.book-tile .year { margin-top: 4px; color: #555; }
.book-tile p:not(.year) { font-size: 1.0625rem; line-height: 1.5; margin-top: var(--space-1); color: #444; }
.book-tile .explore { margin-top: auto; padding-top: var(--space-2); display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.book-tile .explore svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.book-tile a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.book-tile a:hover .explore svg { transform: translateX(4px); }

/* ---------- logbook ---------- */
.log-head { padding-bottom: var(--space-5); }
.log { display: grid; grid-template-columns: repeat(12, 1fr); }
.log > * { min-height: 420px; }
.log .entry { padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3); }
.log .entry h3 { font-size: clamp(4rem, 9vw, 9.5rem); line-height: 0.82; }
.log .entry h3 small { display: block; font-size: 0.4em; line-height: 1; margin-top: 0.14em; }
.log .entry p { max-width: 40ch; font-size: 1.25rem; line-height: 1.6; }
.log .entry .log-book { margin-top: var(--space-2); font-size: 0.9375rem; }
.log-book a { text-decoration-color: currentColor; }
.log .field-yellow .log-book a:hover { text-decoration-color: var(--red); }
.log .field-red p { color: var(--on-red-soft); }
.log .field-ink p { color: var(--on-ink-soft); }
.log .field-red .log-book, .log .field-ink .log-book { color: #fff; }
.log .photo { width: 100%; height: 100%; object-fit: cover; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

/* ---------- writings ---------- */
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-4) 0; border-bottom: 2px solid var(--ink); }
.row h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.625rem; line-height: 1.1; text-transform: uppercase; }
.row blockquote { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.4; max-width: 40ch; }
.row > div { display: grid; gap: var(--space-2); justify-items: start; }
.excerpt-note { max-width: 52ch; }
.row:first-child blockquote { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.row blockquote span { color: var(--red); }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reviews li { padding: clamp(40px, 5vw, 88px) clamp(28px, 5vw, 80px); display: flex; flex-direction: column; gap: var(--space-4); }
.reviews li:first-child { grid-column: 1 / -1; }
.reviews blockquote { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.45; max-width: 36ch; }
.reviews li:first-child blockquote { font-size: clamp(1.75rem, 3.2vw, 2.875rem); line-height: 1.3; max-width: 30ch; }
.reviews .on a { text-decoration-color: currentColor; }
.reviews .on i, .reviews .cite i { font-style: normal; }
.reviews .cite { margin-top: auto; }
.reviews .field-red .cite { color: var(--on-red-soft); }
.reviews .field-blue .cite { color: var(--on-blue-soft); }
.reviews .field-ink .cite { color: var(--on-ink-soft); }

/* ---------- talks & media ---------- */
.media-list { border-top: 2px solid var(--ink); }
.media-list li { display: grid; grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-4) 0; border-bottom: 2px solid var(--ink); }
.media-list .kind { padding-top: 0.35em; display: flex; align-self: start; align-items: center; gap: 10px; }
/* the word carries the meaning; the swatch only helps scanning */
.media-list .kind::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--ink); }
.kind[data-kind="podcast"]::before { background: var(--blue); }
.kind[data-kind="interview"]::before { background: var(--red); }
.kind[data-kind="talk"]::before { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.media-list h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.5rem; line-height: 1.15; text-transform: uppercase; }
.media-list h3 a { text-decoration-thickness: 2px; text-decoration-color: transparent; }
.media-list h3 a:hover { text-decoration-color: var(--red); }
.media-list p:not(.kind) { margin-top: 6px; max-width: 60ch; }
.media-cta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding: var(--space-4) 0 0; }
.media-cta p { max-width: 46ch; font-size: 1.3125rem; }

/* ---------- professional inquiries ---------- */
.contact { padding-block: var(--space-5); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4) var(--space-5); align-items: start; }
.contact h2.caps { font-size: clamp(2.75rem, 5vw, 4.5rem); }
.contact-grid > div { display: grid; gap: var(--space-3); justify-items: start; max-width: 36rem; }
.inquiry-types { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- footer ---------- */
.footer { padding: var(--space-5) var(--gutter) var(--space-4); display: grid; gap: var(--space-5); }
.footer-name { font-size: 2.75rem; }
.footer-line { margin: var(--space-2) 0 var(--space-4); color: var(--on-ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.footer-links ul { display: grid; gap: 0; align-content: start; }
.footer a { text-decoration: none; display: inline-block; padding: 6px 0; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.footer .small { grid-column: 1 / -1; padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.9375rem; color: var(--on-ink-soft); display: flex; flex-wrap: wrap; gap: 8px var(--space-4); }
.footer .small a { padding: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .intro { grid-template-columns: 1fr; gap: var(--space-4); }
  .intro .aside { padding-top: 0; }
  .reviews { grid-template-columns: 1fr; }
  .log .span-4, .log .span-5, .log .span-7, .log .span-8 { grid-column: span 6; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick-cover { width: min(260px, 80%); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav { gap: 0 20px; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-shot { position: relative; min-height: 80svh; }
  .hero-photo { position: absolute; inset: 0; object-position: 62% 30%; }
  .hero-shot::after { background: linear-gradient(180deg, rgba(7, 42, 102, 0.8) 0%, rgba(7, 42, 102, 0.55) 18%, rgba(7, 42, 102, 0) 40%, rgba(7, 42, 102, 0) 55%, rgba(7, 42, 102, 0.6) 100%); }
  .hero-name { left: var(--gutter); right: var(--gutter); max-width: none; }
  .hero-name h1 { font-size: clamp(4rem, 21vw, 7rem); }
  .hero-copy { position: static; width: auto; padding: var(--space-4) var(--gutter) var(--space-5); text-shadow: none; }
  .featured { grid-template-columns: 1fr; }
  .featured .cover-field { padding-block: var(--space-5); }
  .featured .cover-field a { width: min(240px, 60%); }
  .featured .copy { padding-block: var(--space-5); }
  .picks { grid-template-columns: 1fr; gap: var(--space-5); }
  .shelf-intro { padding-top: 196px; } /* clears the stacked masthead when the nav wraps to two lines */
  .shelf { padding-block: var(--space-5); }
  .pick-cover { width: min(220px, 62%); }
  .section-head { margin-bottom: var(--space-4); }
  .media-list li { display: flex; flex-direction: column; }
  .media-list .kind { order: 2; padding-top: 0; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) 20px; }
  .book-tile h3 { font-size: 1.125rem; margin-top: var(--space-2); }
  .book-tile p:not(.year) { font-size: 0.9375rem; }
  .filters { gap: 0 20px; }
  .log .span-4, .log .span-5, .log .span-6, .log .span-7, .log .span-8 { grid-column: 1 / -1; }
  .log > * { min-height: 0; }
  .log .photo { height: 280px; }
  .row, .media-list li { grid-template-columns: 1fr; }
  .media-cta .btn, .contact .btn { width: 100%; justify-content: center; }
}


/* ---------- book page ---------- */
/* hero: the book's place full-bleed; the jacket hangs across the seam onto the page */
.book-hero { --cover-w: clamp(200px, 22vw, 320px); --col: calc(var(--gutter) + var(--cover-w) + clamp(32px, 4vw, 64px)); }
.book-shot { position: relative; min-height: clamp(460px, 64svh, 760px); background: var(--blue-deep); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.book-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 42, 102, 0.55) 0%, rgba(7, 42, 102, 0) 26%, rgba(7, 42, 102, 0) 42%, rgba(7, 42, 102, 0.82) 100%); }
.no-photo .book-shot { background: var(--blue); }
.no-photo .book-head h1 { font-size: clamp(4rem, 10vw, 11rem); max-width: 10ch; }
.no-photo .book-head h1.long { font-size: clamp(3.25rem, 7vw, 7.5rem); max-width: 14ch; }
.no-photo .book-shot::after { content: none; }
.book-head { position: relative; z-index: 2; padding: 140px var(--gutter) clamp(28px, 4vw, 48px) var(--col); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.book-head h1 { font-size: clamp(3.5rem, 8vw, 8.5rem); max-width: 11ch; }
.book-head h1.long { font-size: clamp(3rem, 5.6vw, 6rem); max-width: 16ch; }
.book-sub { margin-top: var(--space-2); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.35; max-width: 34ch; }

.book-buy { display: grid; grid-template-columns: var(--cover-w) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding: 0 var(--gutter) var(--space-4); }
.book-cover { margin-top: calc(var(--cover-w) * -0.95); position: relative; z-index: 3; }
.book-cover img { width: 100%; height: auto; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38); }
.book-pitch { padding-top: var(--space-4); display: grid; gap: var(--space-3); justify-items: start; align-content: start; max-width: 40rem; }
.book-hook { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; font-weight: 600; text-wrap: balance; }
.edition-line { color: #444; margin-bottom: calc(var(--space-2) * -1); }
.also .more { text-decoration-color: var(--red); }
.also + .alt-eds, .actions + .alt-eds { margin-top: calc(var(--space-1) * -1); }
.alt-eds li { font-size: 1.0625rem; line-height: 1.5; }
.alt-eds .label { margin-right: 6px; color: #444; }
.alt-eds a { text-decoration-color: var(--red); }
.alt-eds a:hover { text-decoration-color: currentColor; }

/* reading register: label rail + one column */
.b-sec { display: grid; grid-template-columns: var(--cover-w, clamp(200px, 22vw, 320px)) minmax(0, 1fr); gap: var(--space-3) clamp(32px, 4vw, 64px); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.book-hero + .b-sec { padding-top: var(--space-4); }
main > .b-sec + .b-sec, main > .b-reviews + .b-sec { border-top: 2px solid var(--ink); margin-inline: var(--gutter); padding-inline: 0; }
.b-sec .b-rail { font-size: clamp(2.5rem, 4.4vw, 4.5rem); align-self: start; position: sticky; top: var(--space-4); }
.b-main { max-width: 66ch; }
.b-main > p + p { margin-top: 1em; }
.b-lede { font-size: clamp(1.375rem, 1.8vw, 1.5625rem); line-height: 1.55; }
/* about & behind: a wider measure so figures can breathe; prose keeps its own comfortable line */
#about .b-main, #behind .b-main { max-width: 60rem; font-size: 1.3125rem; line-height: 1.7; }
#about .b-main > p, .behind-text > p { max-width: 64ch; }
.b-fig { margin-block: var(--space-4); }
.b-fig img { width: 100%; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.b-fig figcaption, .behind-photo figcaption { margin-top: 12px; color: #444; font-weight: 600; letter-spacing: 0.06em; text-transform: none; font-size: 0.9375rem; }
.b-fig + p, .pull + p { margin-top: 0 !important; }
.pull { margin-block: var(--space-4); padding-block: var(--space-3); border-block: 2px solid var(--ink); max-width: 30ch; }
.pull p { font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.3; text-wrap: balance; }
.b-author { margin-top: var(--space-2) !important; }

/* behind the book: Nigel's own voice, photo-led and signed, so it never reads as more synopsis */
.behind.with-photo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.behind-photo img { width: 100%; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.behind-text > p + p { margin-top: 1em; }
.behind-text > p:first-child { font-style: italic; font-size: clamp(1.375rem, 1.8vw, 1.5625rem); line-height: 1.55; }
.behind-sig { margin-top: var(--space-3); }
.behind-sig::before { content: "— "; }

/* excerpt: set like a printed page: indents, no paragraph gaps, small-caps opening line */
.excerpt { max-width: 34em; }
.excerpt-from { color: #444; margin-bottom: var(--space-3); }
.excerpt-text p { font-size: 1.1875rem; line-height: 1.75; text-align: justify; hyphens: auto; }
.excerpt-text p + p, .excerpt-more .excerpt-text p:first-child { text-indent: 1.5em; }
.excerpt > .excerpt-text:first-of-type p:first-child::first-line { font-variant-caps: small-caps; letter-spacing: 0.04em; }
.excerpt-more { margin-top: var(--space-2); }
.excerpt-more summary { cursor: pointer; list-style: none; }
.excerpt-more summary::-webkit-details-marker { display: none; }
.excerpt-more[open] summary { display: none; }
.excerpt > p { margin-top: var(--space-3); }
.b-cats { margin-top: var(--space-4) !important; color: #444; }
.b-cats a { color: var(--ink); text-decoration-color: var(--red); }

.wide .b-main { max-width: none; }
.spreads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.spreads.one { grid-template-columns: minmax(0, 520px); }
.spreads img { width: 100%; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.spreads figcaption { margin-top: 12px; color: #444; font-weight: 600; letter-spacing: 0.06em; text-transform: none; font-size: 0.9375rem; }

/* reviews: the page's one coloured field */
.b-reviews { margin-block: 0; }
.lead-review { margin: 0 !important; padding: var(--space-5) var(--gutter) !important; border: 0 !important; }
.lead-review blockquote { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.32; text-wrap: pretty; }
.lead-review .b-main { max-width: 46rem; }
.lead-review .cite { margin-top: var(--space-3); color: var(--on-red-soft); }
.lead-review .b-rail { position: static; }
.b-reviews > .b-sec:not(.lead-review) { padding-block: var(--space-4); border-top: 0; }
.more-reviews { grid-column: 2; display: grid; gap: 0; max-width: 60ch; }
.more-reviews li { padding: var(--space-3) 0; }
/* repeat buy, on white straight after the social proof */
.b-reviews > .review-buy { padding-top: 0; }
.lead-review + .review-buy { padding-top: var(--space-4) !important; }
.review-buy .b-main { grid-column: 2; display: grid; gap: var(--space-2); justify-items: start; }
.review-buy-line { font-weight: 600; font-size: 1.25rem; line-height: 1.35; }
.review-buy-line span { font-weight: 400; font-style: italic; }
.more-reviews blockquote { font-size: clamp(1.25rem, 1.6vw, 1.4375rem); line-height: 1.5; }
.more-reviews .cite { margin-top: var(--space-2); color: #444; }

/* editions: facts and their own retailer buttons */
.editions > li { display: grid; grid-template-columns: minmax(9rem, 0.3fr) minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; }
.ed-format { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.625rem; line-height: 1.1; text-transform: uppercase; }
.ed-facts { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--space-1) var(--space-3); }
.ed-facts dt { color: #444; font-size: 0.75rem; }
.ed-facts dd { margin: 0; font-size: 1rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.editions .actions { grid-column: 2; }
.b-main .media-list { max-width: none; border-top: 0; }
.b-main .media-list li { border-bottom: 0; }
/* book page: 2px ink rules divide sections only; items inside a section get hairlines, none at the edges */
.more-reviews li + li, .editions > li + li, .b-main .media-list li + li { border-top: 1px solid var(--hairline); }
.more-reviews li:first-child, .editions > li:first-child, .b-main .media-list li:first-child { padding-top: 0; }
.more-reviews li:last-child, .editions > li:last-child, .b-main .media-list li:last-child { padding-bottom: 0; }

/* related books on white */
.wide .related, .related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
#related .b-main { max-width: none; }
.related a { display: block; text-decoration: none; }
.related img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28)); transition: transform 0.4s var(--ease-out); }
.related a:hover img { transform: translateY(-6px); }
.related h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.25rem; line-height: 1.1; text-transform: uppercase; margin-top: var(--space-2); }
.related a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.related p { font-size: 1rem; line-height: 1.45; margin-top: 6px; color: #444; }

@media (max-width: 1100px) {
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }
}

@media (max-width: 800px) {
  .book-hero { --cover-w: 128px; --col: var(--gutter); }
  .book-shot { min-height: 0; }
  .book-head { padding-top: 168px; padding-bottom: calc(var(--cover-w) * 0.55 + 20px); max-width: none; }
  .no-photo .book-head h1, .book-head h1 { font-size: clamp(2.75rem, 13vw, 4.5rem); }
  .no-photo .book-head h1.long, .book-head h1.long { font-size: clamp(2.25rem, 9.5vw, 3.5rem); }
  /* phone: small cover beside the hook so the buy button lands in the first screen */
  .book-buy { grid-template-columns: var(--cover-w) minmax(0, 1fr); gap: var(--space-2) 20px; padding-bottom: var(--space-5); }
  .book-cover { width: var(--cover-w); margin-top: calc(var(--cover-w) * -0.55); grid-row: 1 / span 2; }
  .book-pitch { display: contents; }
  .book-hook { grid-column: 2; padding-top: 14px; font-size: 1.25rem; }
  .edition-line { grid-column: 2; margin: 0; }
  .book-pitch .actions, .also { grid-column: 1 / -1; margin-top: var(--space-1); }
  .book-pitch .actions, .book-pitch .actions .btn { width: 100%; }
  .book-pitch .btn { justify-content: center; }
  .b-sec { grid-template-columns: 1fr; padding-block: var(--space-5); }
  .b-sec .b-rail { position: static; font-size: 2.25rem; }
  .spreads { grid-template-columns: 1fr; }
  .more-reviews, .editions .actions, .ed-facts, .review-buy .b-main { grid-column: 1; }
  .alt-eds { grid-column: 1 / -1; }
  .behind.with-photo { grid-template-columns: 1fr; }
  #about .b-main, #behind .b-main { font-size: 1.1875rem; }
  .excerpt-text p { text-align: left; }
  .review-buy .actions, .review-buy .btn { width: 100%; justify-content: center; }
  .editions > li { grid-template-columns: 1fr; }
  .editions .btn { width: 100%; justify-content: center; }
}


/* ---------- writings index ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* hero: one photo full-bleed, the page name at its foot; strong top scrim keeps the white masthead legible on a bright image */
.page-hero { position: relative; min-height: clamp(480px, 66svh, 780px); background: var(--blue-deep); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.page-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 42, 102, 0.7) 0%, rgba(7, 42, 102, 0.15) 26%, rgba(7, 42, 102, 0) 45%, rgba(7, 42, 102, 0.8) 100%); }
.page-head { position: relative; z-index: 2; padding: 140px var(--gutter) clamp(28px, 4vw, 48px); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.page-head h1 { font-size: clamp(4.5rem, 13vw, 13rem); }
.page-sub { margin-top: var(--space-2); max-width: 34ch; font-size: clamp(1.3125rem, 2vw, 1.75rem); line-height: 1.35; font-style: italic; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }

.w-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-4) var(--space-5); align-items: end; padding: var(--space-6) var(--gutter) var(--space-5); }
.w-epigraph p { font-size: clamp(1.75rem, 3.2vw, 2.875rem); line-height: 1.25; max-width: 22ch; text-wrap: balance; }
.w-epigraph span { color: var(--red); }
.w-epigraph figcaption { margin-top: var(--space-3); color: #444; }
.w-epigraph figcaption a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 0.3em; }
.w-intro .lede { margin: 0; max-width: 42ch; }
.w-intro + .b-sec { border-top: 2px solid var(--ink); margin-inline: var(--gutter); padding-inline: 0; }
.w-start .b-main, .w-all .b-main { max-width: none; min-width: 0; }
.w-sub { font-size: 1.3125rem; line-height: 1.5; color: #444; max-width: 52ch; margin-bottom: var(--space-4); }

/* start here: one lead piece, two beside it; each card is one link (the title, stretched over the card) */
.w-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) clamp(32px, 4vw, 64px); }
.w-pick { position: relative; display: grid; gap: var(--space-2); align-content: start; }
.w-pick.w-lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-2) clamp(32px, 4vw, 64px); align-items: center; }
.w-pick > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.w-pick-text { display: grid; gap: var(--space-2); justify-items: start; }
.w-pick h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.75rem; line-height: 1.08; text-transform: uppercase; text-wrap: balance; margin-top: var(--space-1); }
.w-lead h3 { font-stretch: 62%; font-weight: 900; font-size: clamp(2.75rem, 5vw, 4.75rem); line-height: 0.88; margin-top: 0; }
.w-card-link { text-decoration-color: transparent; transition: text-decoration-color 0.2s var(--ease-out); }
.w-card-link::after { content: ""; position: absolute; inset: 0; }
.w-card-link:focus-visible { outline: none; }
.w-pick:has(.w-card-link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 8px; }
.w-pick:hover .w-card-link { text-decoration-color: var(--red); }
.w-pick:hover .more svg { transform: translateX(4px); }
.w-pick .w-book a { position: relative; z-index: 1; }
.w-pick blockquote p { font-size: 1.1875rem; line-height: 1.55; max-width: 44ch; }
.w-lead blockquote p { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.4; max-width: 26ch; }
.w-pick .more { min-height: 0; margin-top: var(--space-1); }

.w-meta { color: #555; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; }
.w-meta time { font-variant-numeric: tabular-nums; }
.w-book { color: #444; font-weight: 600; letter-spacing: 0.08em; }
.w-book a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 0.3em; }
.w-book a:hover { text-decoration-color: currentColor; }
.w-book i { font-style: normal; }

/* all writings: a sticky subject bar (the current subject carries the red rule), then rows */
.w-topics { position: sticky; top: 0; z-index: 4; background: var(--white); border-bottom: 2px solid var(--ink); margin-bottom: var(--space-4); }
.w-topics ul { position: relative; display: flex; flex-wrap: wrap; gap: 0 32px; }
.w-topics a { display: inline-block; padding: 18px 0 14px; font-stretch: 80%; font-weight: 800; font-size: 1rem; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -4px 0 transparent; transition: box-shadow 0.2s var(--ease-out); }
.w-topics a:hover { box-shadow: inset 0 -4px 0 rgba(17, 17, 17, 0.25); }
.w-topics a[aria-current="true"] { box-shadow: inset 0 -4px 0 var(--red); }
.w-group { scroll-margin-top: 88px; }
.w-group + .w-group { margin-top: var(--space-5); }
.w-group-h { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 0.9; text-transform: uppercase; padding-bottom: var(--space-2); border-bottom: 1px solid var(--hairline); }
.w-rows li { display: grid; grid-template-columns: minmax(0, 1fr) clamp(160px, 16vw, 240px); gap: var(--space-2) clamp(24px, 3vw, 48px); padding: var(--space-4) 0; align-items: start; }
.w-rows li + li { border-top: 1px solid var(--hairline); }
.w-rows li > div { display: grid; gap: var(--space-1); justify-items: start; }
.w-rows h4 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.08; text-transform: uppercase; text-wrap: balance; }
.w-rows h4 a { text-decoration-color: transparent; transition: text-decoration-color 0.2s var(--ease-out); }
.w-rows h4 a:hover, .w-rows li:has(.w-thumb:hover) h4 a { text-decoration-color: var(--red); }
.w-excerpt { margin-top: var(--space-1); font-size: 1.1875rem; line-height: 1.6; max-width: 58ch; }
.w-rows .w-book { margin-top: var(--space-1); }
.w-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* continue exploring: one quiet book reference after a subject, subordinate to the writings */
.w-continue { margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.w-continue a { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--space-3); align-items: start; text-decoration: none; max-width: 40rem; }
.w-continue img { width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25)); transition: transform 0.4s var(--ease-out); }
.w-continue div { display: grid; gap: 4px; justify-items: start; }
.w-continue h4 { color: #555; }
.w-continue-title { font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.w-continue p:not(.w-continue-title) { font-size: 1.0625rem; line-height: 1.5; color: #444; }
.w-continue .more { min-height: 40px; }
.w-continue a:hover img { transform: translateY(-4px); }
.w-continue a:hover .w-continue-title { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.w-continue a:hover .more svg { transform: translateX(4px); }

.w-archive { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 2px solid var(--ink); max-width: 60ch; }
.w-archive a { text-decoration-color: var(--red); }

/* the page's one coloured field: the books these pieces led to */
.w-books { padding: var(--space-6) var(--gutter); }
.w-led-intro { margin-top: var(--space-3); max-width: 52ch; font-size: 1.3125rem; line-height: 1.5; }
.w-books .related { margin-bottom: 0; }
.w-books .related a { height: 100%; display: flex; flex-direction: column; }
.w-books .related p { color: var(--ink); }
.w-books .related .more { margin-top: auto; padding-top: var(--space-1); min-height: 44px; }
.w-books .related a:hover .more svg { transform: translateX(4px); }

@media (max-width: 1100px) {
  .w-intro { grid-template-columns: 1fr; }
  .w-books .related { max-width: none; }
}

@media (max-width: 800px) {
  .page-hero { min-height: 72svh; }
  .page-head { padding-top: 196px; }
  .page-head h1 { font-size: clamp(4rem, 22vw, 7rem); }
  .w-intro { padding-block: var(--space-5) var(--space-4); }
  .w-picks, .w-pick.w-lead { grid-template-columns: 1fr; }
  /* phone: one swipeable line of subjects instead of a wrapped block */
  .w-topics { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .w-topics ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 24px; }
  .w-topics ul::-webkit-scrollbar { display: none; }
  .w-topics a { font-size: 0.9375rem; padding-block: 14px 12px; }
  .w-group { scroll-margin-top: 72px; }
  .w-rows li { grid-template-columns: minmax(0, 1fr) 88px; gap: var(--space-2); padding-block: var(--space-3); }
  .w-rows li > div { grid-column: 1; grid-row: 1; }
  .w-excerpt { font-size: 1.0625rem; }
  .w-books .section-head { flex-direction: column; align-items: start; }
}

/* ---------- talks & media page ---------- */
/* narrower rail and wider content, so entries sit in two columns instead of leaving the right half empty */
.m-page .b-sec { --cover-w: clamp(200px, 19vw, 290px); }
.m-page .b-rail { font-size: clamp(2.25rem, 3.6vw, 3.75rem); }
.t-main, .m-main { max-width: 72rem; min-width: 0; }
.m-page .w-sub { color: var(--ink); font-size: clamp(1.3125rem, 1.6vw, 1.5rem); line-height: 1.55; max-width: 48ch; }
.m-page .w-intro .lede { font-size: clamp(1.3125rem, 1.7vw, 1.5rem); line-height: 1.6; max-width: 46ch; }
.m-page .page-head .btn { margin-top: var(--space-3); text-shadow: none; }
.m-page .more { color: var(--ink); }
.m-sub-h { font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.14em; text-transform: uppercase; color: #444; padding-bottom: var(--space-1); border-bottom: 2px solid var(--ink); margin-bottom: var(--space-3); }
.t-themes + .m-sub-h { margin-top: var(--space-5); }

/* themes: a quiet 2×2 index, not a services grid */
.t-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) clamp(24px, 3vw, 48px); }
.t-themes h4 { font-family: var(--body); font-weight: 600; font-size: 1.3125rem; line-height: 1.3; }
.t-themes p { margin-top: 4px; font-size: 1.125rem; line-height: 1.55; color: #333; }

/* presentations reuse the writings rows; an expedition photo when there is one, else the book jacket */
.t-rows li { grid-template-columns: minmax(0, 1fr) clamp(180px, 18vw, 260px); padding-block: var(--space-3); }
.t-rows li:first-child { padding-top: 0; }
.t-rows .w-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.t-rows .w-thumb.is-cover { width: 62%; justify-self: center; aspect-ratio: 2 / 3; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28)); }
.t-ask { margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); font-size: 1.25rem; }

/* past talks: title first, then year, host and place, then the story link */
.t-past { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) clamp(24px, 3vw, 48px); }
.t-past li { display: flex; flex-direction: column; align-items: start; gap: 6px; padding-top: var(--space-2); border-top: 1px solid var(--hairline); }
.t-past h3, .media-list h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.5rem, 2vw, 1.75rem); line-height: 1.1; text-transform: uppercase; text-wrap: balance; }
.t-past p:not(.w-meta) { font-size: 1.1875rem; line-height: 1.6; max-width: 60ch; }
.t-past .more, .media-list .more, .m-feature .more { margin-top: auto; }

/* media appearances: one cover feature, then the entries two-up */
.m-feature { display: grid; grid-template-columns: clamp(160px, 16vw, 220px) minmax(0, 1fr); gap: var(--space-2) clamp(24px, 3vw, 48px); align-items: center; padding-bottom: var(--space-4); }
.m-feature > div { display: grid; gap: var(--space-1); justify-items: start; }
.m-cover { width: 100%; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.m-feature h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.875rem, 2.8vw, 2.5rem); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.m-text { font-size: clamp(1.25rem, 1.6vw, 1.4375rem); line-height: 1.5; max-width: 40ch; }
.m-main .media-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) clamp(24px, 3vw, 48px); padding-top: 0; }
.m-main .media-list li, .m-main .media-list li + li, .m-main .media-list li:first-child { display: flex; flex-direction: column; gap: 6px; padding: var(--space-2) 0 0; border: 0; border-top: 1px solid var(--hairline); }
.m-main .media-list li > div { display: flex; flex-direction: column; align-items: start; gap: 6px; flex: 1; }
.m-main .media-list .kind { padding-top: 0; order: 0; }
.m-main .media-list p:not(.kind):not(.w-meta) { font-size: 1.1875rem; line-height: 1.6; margin-top: 0; }
.m-main .w-meta a { color: var(--ink); text-decoration-color: var(--red); }
.m-archive { color: #555; }
.m-mags { max-width: 44rem; margin-top: var(--space-5); }
.m-mags img { box-shadow: none; } /* Jacket Rule: a photo of magazines is not a book spread */
.m-mags figcaption { margin-top: var(--space-2); color: #444; }

/* press resources */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) clamp(24px, 3vw, 48px); align-items: start; }
.p-bio { display: grid; justify-items: start; gap: var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--hairline); font-size: 1.1875rem; line-height: 1.65; }
.p-h { color: #444; }
.p-bio p + p { margin-top: 1em; }
.p-copy { background: none; border: 0; padding: 0; cursor: pointer; }
.p-long summary { cursor: pointer; list-style: none; }
.p-long summary::-webkit-details-marker { display: none; }
.p-long summary svg { transition: transform 0.3s var(--ease-out); }
.p-long[open] summary { margin-bottom: var(--space-2); }
.p-long[open] summary svg { transform: rotate(180deg); }

@media (max-width: 1100px) {
  .t-past, .m-main .media-list, .p-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .t-themes { grid-template-columns: 1fr; gap: var(--space-2); }
  .t-rows li { grid-template-columns: minmax(0, 1fr) 96px; }
  .t-rows .w-thumb.is-cover { width: 100%; }
  .m-feature { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
  .m-feature h3 { font-size: 1.75rem; }
  .m-text { font-size: 1.125rem; }
  .m-page .page-head .btn { width: 100%; justify-content: center; }
}

/* ---------- about page ---------- */
.a-page .b-sec { --cover-w: clamp(200px, 19vw, 290px); }
.a-page .b-rail { font-size: clamp(2.25rem, 3.6vw, 3.75rem); }
.a-wide { max-width: 72rem; min-width: 0; }
.a-prose { max-width: 66ch; }
.a-prose > p + p { margin-top: 1em; }
.a-open { font-style: italic; font-size: clamp(1.375rem, 1.8vw, 1.5625rem); line-height: 1.55; }
.a-pull-wide { max-width: 40ch; }
.a-page .pull + p { margin-top: 0; }
.a-gap { margin-top: var(--space-5); }
/* body text: a size up on desktop for long reading */
.a-page .a-prose > p:not([class]) { font-size: clamp(1.125rem, 1.2vw, 1.25rem); line-height: 1.65; }
/* marks where the editorial voice hands over to Nigel's own */
.a-voice { margin: var(--space-4) 0 var(--space-2); color: var(--red); }
.a-links { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
/* hero: the subline sits on the darker foot of the photo, larger and upright */
.a-hero::after { background: linear-gradient(180deg, rgba(7, 42, 102, 0.7) 0%, rgba(7, 42, 102, 0.15) 26%, rgba(7, 42, 102, 0) 40%, rgba(7, 42, 102, 0.92) 100%); }
.a-hero .page-sub { font-style: normal; font-size: clamp(1.4375rem, 2.3vw, 2rem); max-width: 36ch; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 18px rgba(0, 0, 0, 0.6); }
/* legacy: teaching and design side by side, each compact */
.a-legacy { margin-top: var(--space-5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) clamp(32px, 4vw, 64px); align-items: start; }
.a-legacy .a-prose { max-width: none; }
.a-legacy .m-sub-h { margin-top: 0; }

/* meet nigel: the boy in the rail column, his first line beside him */
.a-meet { display: grid; grid-template-columns: clamp(200px, 19vw, 290px) minmax(0, 1fr); gap: var(--space-4) clamp(32px, 4vw, 64px); align-items: end; padding: var(--space-6) var(--gutter) var(--space-5); }
.a-young img { width: 100%; }
.a-young figcaption, .a-page .b-fig figcaption { margin-top: 12px; color: #444; text-transform: none; letter-spacing: 0.04em; }
/* Jacket Rule: photos on this page stay flat like the expedition images */
.a-page .b-fig img { box-shadow: none; }
.a-boy { float: right; width: clamp(140px, 16vw, 200px); margin: 0 0 var(--space-2) var(--space-4); }
.a-single { grid-template-columns: minmax(0, 1fr); max-width: 48rem; }
.a-meet-text { display: grid; gap: var(--space-4); }
.a-meet .w-epigraph p { max-width: 24ch; }
.a-meet .lede { margin: 0; }
.a-meet-prose p:not(.lede) { font-size: 1.1875rem; line-height: 1.65; }
.a-meet + .b-sec { border-top: 2px solid var(--ink); margin-inline: var(--gutter); padding-inline: 0; }

/* writing: four jackets, technique to curiosity */
.a-shelf { margin-top: var(--space-5); max-width: 68rem; gap: var(--space-4) clamp(24px, 3vw, 48px); }
.a-shelf p { color: var(--ink); }

/* expeditions: the year stands at rail scale beside each journey */
.a-trips { margin-top: var(--space-5); }
.a-trips li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) clamp(200px, 24vw, 340px); gap: var(--space-2) clamp(24px, 3vw, 48px); padding: var(--space-4) 0; align-items: start; }
.a-trips li + li { border-top: 1px solid var(--hairline); }
.a-trips li:first-child { padding-top: 0; }
.a-year { font-size: clamp(2.75rem, 4vw, 3.75rem); color: var(--red); font-variant-numeric: tabular-nums; }
.a-trips li > div { display: grid; gap: var(--space-1); justify-items: start; }
.a-trips h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.08; text-transform: uppercase; }
.a-trips li > div > p:not(.label) { font-size: 1.1875rem; line-height: 1.6; max-width: 56ch; }
.a-trips .w-meta { color: #444; }
.a-trips .w-book a { text-decoration-color: var(--red); }
.a-trip-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.a-trip-fig figcaption { margin-top: 10px; color: #444; text-transform: none; letter-spacing: 0.04em; }
.a-trip-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.a-after { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--hairline); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: var(--space-3) clamp(24px, 3vw, 48px); align-items: start; }
.a-after .b-fig { margin: 0; }

.a-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) clamp(24px, 3vw, 40px); margin-block: var(--space-5); align-items: start; }
.a-pair .b-fig { margin: 0; }
.a-pair-today { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: end; max-width: 56rem; margin-bottom: 0; }

/* designs: the boat names themselves, set like a builder's plate */
.a-designs { margin-top: var(--space-5); border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.a-designs li { padding: var(--space-3) 0; display: grid; gap: 6px; }
.a-designs li:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
.a-names { font-size: clamp(1.75rem, 2.8vw, 2.75rem); line-height: 0.95; }
.a-names span { color: var(--red); }
.a-designs .label { color: #444; }

/* milestones: the page's one coloured field */
.a-miles { padding: var(--space-6) var(--gutter); display: grid; grid-template-columns: clamp(200px, 19vw, 290px) minmax(0, 1fr); gap: var(--space-4) clamp(32px, 4vw, 64px); }
.a-miles h2.caps { font-size: clamp(2.5rem, 3.6vw, 3.75rem); }
.a-miles-sub { margin-top: var(--space-2); font-size: 1.1875rem; line-height: 1.5; color: var(--on-red-soft); max-width: 24ch; }
.a-chron { max-width: 60rem; }
.a-chron li { display: grid; grid-template-columns: clamp(6rem, 11vw, 10rem) minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.a-chron li:first-child { border-top: 2px solid #fff; }
.a-chron-y { font-size: clamp(3rem, 6vw, 5.5rem); font-variant-numeric: tabular-nums; }
.a-chron li > p:last-child { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.45; max-width: 44ch; }
.a-standing { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) clamp(24px, 3vw, 40px); max-width: 60rem; padding-top: var(--space-3); border-top: 2px solid #fff; }
.a-standing h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.a-standing p { margin-top: 6px; font-size: 1.0625rem; line-height: 1.55; color: var(--on-red-soft); }

/* explore: three ways on, each one whole link */
.a-ways { margin-top: var(--space-4); display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--space-4) clamp(24px, 3vw, 40px); }
.a-ways a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.a-ways img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* the books card ends on jackets, not a photo of a shelf */
.a-jackets { display: flex; justify-content: center; align-items: flex-end; gap: 4%; aspect-ratio: 4 / 3; padding: 6% 2% 0; box-shadow: inset 0 -2px 0 var(--ink); }
.a-jackets img { width: 31%; aspect-ratio: 2 / 3; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28)); transition: transform 0.4s var(--ease-out); }
.a-ways a:hover .a-jackets img { transform: translateY(-6px); }
.a-ways h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.08; text-transform: uppercase; margin-top: var(--space-2); }
.a-ways p { font-size: 1.0625rem; line-height: 1.5; margin-top: 6px; }
.a-ways .more { margin-top: auto; padding-top: var(--space-2); }
.a-way-lead h3 { font-size: clamp(1.875rem, 2.8vw, 2.5rem); }
.a-way-lead p { font-size: 1.1875rem; }
.a-ways a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.a-ways a:hover .more svg { transform: translateX(4px); }

@media (max-width: 1100px) {
  .a-legacy, .a-after { grid-template-columns: 1fr; }
  .a-trips li { grid-template-columns: 5rem minmax(0, 1fr); }
  .a-trip-img { grid-column: 2; max-width: 32rem; }
  .a-standing { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .a-meet { grid-template-columns: 112px minmax(0, 1fr); align-items: start; padding-block: var(--space-5) var(--space-4); }
  .a-meet-text { display: contents; }
  .a-meet .w-epigraph { grid-column: 2; grid-row: 1; }
  .a-meet .w-epigraph p { font-size: 1.5rem; }
  .a-meet-prose { grid-column: 1 / -1; }
  .a-trips li { grid-template-columns: 1fr; }
  .a-year { font-size: 2.5rem; }
  .a-trip-img { grid-column: 1; }
  .a-pair, .a-pair-today, .a-ways, .a-designs { grid-template-columns: 1fr; }
  .a-designs li:nth-child(n + 2) { border-top: 1px solid var(--hairline); }
  .a-miles-sub { max-width: none; }
  .a-miles { grid-template-columns: 1fr; padding-block: var(--space-5); }
  .a-standing { grid-column: 1; }
  .a-chron li { grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-2); }
  .a-chron-y { font-size: 2.75rem; }
  .a-names { font-size: 1.875rem; }
  .a-boy { float: none; width: 50%; margin: 0 0 var(--space-3); }
}
.a-legacy .m-sub-h { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.5rem, 2vw, 1.875rem); letter-spacing: 0; line-height: 1.1; color: var(--ink); }
#legacy .a-pair { max-width: 48rem; }
.a-pull-voice { margin-top: 0; }
/* closing band: Books leads on its own row, jackets beside the words */
.a-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a-way-lead { grid-column: 1 / -1; }
.a-way-lead a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 3vw, 48px); align-items: end; }
.a-way-lead .a-jackets { grid-row: 1 / 4; }
.a-way-lead h3 { margin-top: 0; }
.a-way-lead .more { margin-top: 0; align-self: start; }
@media (max-width: 800px) {
  .a-ways { grid-template-columns: 1fr; }
  .a-way-lead a { display: flex; align-items: stretch; }
  .a-way-lead h3 { margin-top: var(--space-2); }
}
.a-pair-design { margin-block: var(--space-3) 0; }
#legacy .a-pair-design { max-width: none; }
/* writing leads the page now: its jackets and titles run a size up from the shared related shelf */
.a-writing .a-shelf { max-width: none; }
.a-writing .related h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.a-writing .related p { font-size: 1.0625rem; }

/* ---------- contact: a letter to Nigel ---------- */
/* a functional page: the hero is about 30% shorter than the other pages' so the form arrives sooner */
.c-hero { min-height: 0; }
.c-hero .page-photo { object-position: 50% 45%; }
.c-hero .page-head { padding-top: 96px; padding-bottom: clamp(24px, 3vw, 36px); }
.c-hero .page-head h1 { font-size: clamp(4rem, 9vw, 9rem); }
.c-page .b-sec { padding-block: clamp(48px, 5vw, 72px); }
.c-page .b-main { max-width: 46rem; }
.c-invite { margin-top: 0; max-width: 40ch; }
.c-retired { margin-top: var(--space-2); max-width: 52ch; color: #444; font-size: 0.9375rem; line-height: 1.5; }
.c-retired a { color: var(--ink); text-decoration-color: var(--red); }
.t-draft { display: inline-block; margin-top: var(--space-3); padding: 10px 14px; border: 2px dashed var(--ink); color: #444; font-size: 0.8125rem; line-height: 1.5; }
.c-letter { margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.c-letter input:not([type="radio"]), .c-letter textarea {
  display: block; width: 100%; min-height: 56px; padding: 14px 16px;
  font: inherit; font-size: 1.1875rem; color: var(--ink); background: #fff;
  border: 0; border-radius: 0; box-shadow: inset 0 0 0 2px var(--ink); caret-color: var(--red);
}
.c-letter :focus-visible { outline-color: var(--blue); }
.c-letter [aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--red); }

/* Re: line: square choices in the button voice */
.c-re { border: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-3); align-items: start; }
.c-re-legend { float: left; font-family: var(--body); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 52px; padding: 0; }
.c-re-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.c-re-opts label { position: relative; cursor: pointer; }
.c-re-opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.c-re-opts span {
  display: inline-flex; align-items: center; min-height: 52px; padding: 14px 20px;
  font-family: var(--display); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
  box-shadow: inset 0 0 0 2px var(--ink); transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.c-re-opts label:hover span { background: rgba(0, 0, 0, 0.06); }
.c-re-opts input:checked + span { background: var(--ink); color: #fff; }
.c-re-opts input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.c-re[aria-invalid="true"] .c-re-opts span { box-shadow: inset 0 0 0 2px var(--red); }
.c-re .c-error { grid-column: 2; }

/* the page: salutation, rotating hint, ruled sheet */
.c-dear { display: block; font-style: italic; font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.2; }
.c-hint { margin-top: var(--space-1); color: #444; font-size: 1.0625rem; line-height: 1.5; max-width: 52ch; }
.c-letter textarea {
  /* rules sit on each text line: the stripe starts at the top padding and repeats every line-height */
  --rule: 2.1rem; --pad: 16px;
  margin-top: var(--space-2); resize: vertical; min-height: calc(7 * var(--rule) + 2 * var(--pad));
  padding: var(--pad) 20px; line-height: var(--rule); font-size: 1.1875rem;
  background: #fff linear-gradient(to bottom, transparent calc(var(--rule) - 1px), var(--hairline) calc(var(--rule) - 1px)) 0 var(--pad) / 100% var(--rule) local;
}
.c-yours { font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; margin-bottom: calc(var(--space-2) - var(--space-3)); }
.c-sign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); align-items: start; }
.c-field label { display: block; margin-bottom: var(--space-1); }
.c-note { margin-top: var(--space-1); color: #444; font-size: 0.9375rem; line-height: 1.5; }
.c-note a { text-decoration-color: var(--red); }
.c-error { margin-top: var(--space-1); color: var(--red-dark); font-size: 1rem; line-height: 1.45; font-weight: 600; }
.c-errors { padding: var(--space-2) var(--space-3); box-shadow: inset 0 0 0 2px var(--red); }
.c-errors:focus { outline: none; }
.c-errors p { font-weight: 600; font-size: 1.0625rem; }
.c-errors ul { margin-top: var(--space-1); font-size: 1rem; line-height: 1.5; }
.c-errors a { color: var(--red-dark); }
.c-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-send { display: grid; justify-items: start; gap: var(--space-2); padding-top: var(--space-3); border-top: 2px solid var(--ink); }
.c-send .btn:disabled { opacity: 0.7; cursor: progress; }

/* confirmation replaces the form */
.c-sent { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.c-sent:focus { outline: none; }
.c-sent-h { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.c-sent .lede { margin-top: var(--space-2); }
.c-sent .lede { max-width: 40ch; }

/* useful links */
.c-routes li { display: grid; gap: var(--space-1); justify-items: start; padding-block: var(--space-2); }
.c-routes li + li { border-top: 1px solid var(--hairline); }
.c-routes li:first-child { padding-top: 0; }
.c-routes h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.375rem, 1.8vw, 1.625rem); line-height: 1.1; }
.c-routes p { font-size: 1.125rem; max-width: 56ch; }
.c-page .more { color: var(--ink); }
.c-elsewhere { margin-top: var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--hairline); color: #444; font-size: 1.0625rem; }
.c-elsewhere a { color: var(--ink); text-decoration-color: var(--red); }

@media (max-width: 800px) {
  .c-hero .page-head { padding-top: 184px; }
  .c-re { grid-template-columns: 1fr; }
  .c-re .c-error { grid-column: 1; }
  .c-re-legend { line-height: 1.2; margin-bottom: var(--space-1); }
  .c-re-opts { display: grid; grid-template-columns: 1fr 1fr; }
  .c-re-opts label:nth-child(3):has(+ label[hidden]) { grid-column: 1 / -1; } /* three choices: the odd one spans, no orphan */
  .c-re-opts span { width: 100%; padding-inline: 14px; }
  .c-sign { grid-template-columns: 1fr; }
  .c-send .btn { width: 100%; justify-content: center; }
}
