/* ==========================================================================
   International Confederation of Art Critics — the artist monograph site
   Shared stylesheet. Mobile-first. No framework, no build step.
   Checked at 380px / 768px / 1280px.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Palette — gallery white, near-black, one oxblood accent used sparingly. */
  --paper:       #FBFAF8;
  --paper-warm:  #F4F1EC;
  --paper-deep:  #EAE6DF;
  --ink:         #14120F;
  --ink-soft:    #4A443C;   /* 8.4:1 on --paper */
  --ink-faint:   #6B645A;   /* 5.4:1 on --paper */
  --accent:      #6B1A20;   /* oxblood — 9.1:1 on --paper, 7.9:1 vs white text */
  --accent-deep: #52141A;
  --rule:        #DEDAD2;
  --rule-strong: #C6C0B6;

  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype",
                  Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;          /* readable line length */
  --shell: 72rem;            /* page max width */
  --shell-wide: 84rem;

  --step: 1.5rem;
  --gap: 2rem;

  /* --nav-h is the COMPACT bar, and it is what the page reserves for the
     header. It must never change on scroll: the header is fixed, so the
     reserved space is the one thing holding the layout still while the bar
     itself shrinks. --nav-h-tall is only the bar's own height at rest. */
  --nav-h: 3.5rem;
  --nav-h-tall: 5rem;
}

@media (min-width: 48em) {
  :root { --nav-h: 4.25rem; --nav-h-tall: 6.5rem; }
}

/* --- 2. Reset / base ------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

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

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

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 2px;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- 2b. hidden means hidden --------------------------------------------
   The browser's own `[hidden] { display: none }` lives in the user-agent
   stylesheet, and ANY author rule that sets display beats it — regardless of
   specificity, because author styles outrank user-agent styles. So
   `.thanks { display: flex }` quietly cancelled the hidden attribute, and a
   customer who had just paid saw the application message and the order
   confirmation stacked on the same page.

   That had already happened twice before: .btn--block kept the Pay button on
   screen before a delivery option existed, and the same thing hit the
   checkout sections. Each was patched where it appeared, which is why there
   are several `.x[hidden]` rules dotted through this file.

   One rule instead. !important is right here: `hidden` is not a style
   suggestion, it is a statement that the element is not currently relevant,
   and nothing should be able to overrule it by accident.
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; }

/* --- 3. Layout ----------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.shell--wide { max-width: var(--shell-wide); }
.shell--narrow { max-width: 46rem; }

@media (min-width: 48em) {
  .shell { padding-inline: 2.5rem; }
}

section { padding-block: clamp(3rem, 8vw, 6rem); }
section.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
section.section--warm { background: var(--paper-warm); }
section.section--deep { background: var(--ink); color: var(--paper); }
section.section--deep h2,
section.section--deep h3 { color: var(--paper); }
section.section--deep p { color: #DAD5CC; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
  font-weight: 600;
}
.section--deep .eyebrow { color: #B9B1A5; }

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose--center { margin-inline: auto; text-align: center; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: clamp(2rem, 5vw, 3.5rem);
}

/* --- 4. Navigation ------------------------------------------------------- */

/* Fixed, not sticky. A sticky bar keeps its height in the document, so
   shrinking it would delete pixels from the flow ABOVE the viewport and drag
   every following section upward — a jump, exactly where it is most visible.
   Fixed takes it out of flow; body reserves a constant space in its place,
   and the bar is free to change height without the page moving at all.

   What is reserved is the TALL height, so at rest the bar fills it exactly and
   overlaps nothing. Once compact the bar is shorter than its reservation, but
   by then the page is scrolled and the surplus sits above the viewport where
   nobody can see it. Reserving the compact height instead would have left the
   tall bar sitting over the first section — on publications.html at around
   768px wide that worked out to about 2px of clearance under the heading. */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

body { padding-top: var(--nav-h-tall); }

.site-nav__inner {
  max-width: var(--shell-wide);
  margin-inline: auto;
  padding: 0 1.25rem;
  height: var(--nav-h-tall);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav.is-compact .site-nav__inner { height: var(--nav-h); }

/* Once it is a thin bar riding over the content, a little lift separates it. */
.site-nav.is-compact { box-shadow: 0 1px 14px -8px rgba(20, 18, 15, 0.55); }

/* Transitions are withheld until after the first frame. On a reload partway
   down the page the compact state is set immediately, and without this the
   header would visibly deflate on arrival. */
.site-nav.is-animated .site-nav__inner,
.site-nav.is-animated .site-nav__brand,
.site-nav.is-animated .site-nav__brand span {
  transition: height 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
              font-size 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
              margin-top 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-nav__brand {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.site-nav__brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 0.22rem;
}

/* The compact end of the shrink. The bar never goes away — it settles into a
   slim version of itself and stays fixed, with the name and every link still
   in place and legible. */
.site-nav.is-compact .site-nav__brand { font-size: 1.02rem; }
.site-nav.is-compact .site-nav__brand span {
  font-size: 0.6rem;
  margin-top: 0.15rem;
}

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.site-nav__toggle-bars {
  display: block; width: 1rem; height: 1px; background: var(--ink);
  position: relative;
}
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 1rem; height: 1px;
  background: var(--ink);
}
.site-nav__toggle-bars::before { top: -5px; }
.site-nav__toggle-bars::after { top: 5px; }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
}

.site-nav__list a {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav__list a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }

/* Mobile: collapsed panel */
@media (max-width: 61.99em) {
  .site-nav__nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .site-nav__nav[data-open="true"] { display: block; }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav__list a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.8rem;
  }
  .site-nav__list li:last-child a { border-bottom: 0; }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--rule); }
}

@media (min-width: 62em) {
  .site-nav__toggle { display: none; }
  .site-nav__nav { display: block !important; }
}

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--onDark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--onDark:hover { background: #fff; color: var(--ink); }

.btn--block { width: 100%; justify-content: center; }

.btn--large { padding: 1.15rem 2.2rem; font-size: 0.85rem; }

/* Next-step footer band that closes every page */
.next-step {
  text-align: center;
  border-top: 1px solid var(--rule);
}
.next-step h2 { max-width: 22ch; margin-inline: auto; }
.next-step p { margin-inline: auto; max-width: 40ch; color: var(--ink-soft); }
.next-step .btn { margin-top: 1.5rem; }

/* --- 6. Figures & image grids -------------------------------------------- */

figure { margin: 0; }

figure img {
  width: 100%;
  background: var(--paper-deep);
}

figcaption {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-faint);
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}
.section--deep figcaption { color: #ADA598; border-top-color: #3A362F; }

.figure-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) { .figure-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40em) { .figure-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .figure-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 34em) { .figure-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .figure-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Text beside a picture */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}

/* Centring is right when one side is a picture, and wrong when both sides are
   running text: an uneven pair of columns then floats the shorter one halfway
   down, with a gap above and below it and its first line agreeing with nothing
   opposite. Text against text starts at the top. */
.split--top { align-items: start; }

/* The other way out of the same problem. A short column left centred looks
   adrift because nothing marks where it begins; a rule down its left edge
   gives it an edge to hang from, and the centring then reads as chosen rather
   than as what was left over. Same idiom as .quote. */
.split__accent {
  border-left: 3px solid var(--accent);
  padding-left: clamp(1rem, 2.5vw, 1.4rem);
}
/* Oxblood on near-black is all but invisible. Lifted just far enough to read
   as a line, not far enough to become a second colour. */
.section--deep .split__accent { border-left-color: #8E2932; }

/* --- 7. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
/* The slides sit behind the words as one stacked layer. Holding the z-index
   here rather than on each image means the crossfade only ever animates
   opacity, and the text never has to be reasoned about. */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The hero is far wider than these photographs, so cover always crops the
     top and bottom away — around 40% of the height on a desktop. --focus
     chooses what survives: 0% holds the very top, 50% the middle, 100% the
     bottom. Set it per <img>, on the photograph that needs it.

     The shopfront is the reason this exists. Centred, the crop landed halfway
     through the GAGLIARDI GALLERY sign. */
  object-position: 50% var(--focus, 50%);
  /* 0.5 is the resting brightness — dimmed so the headline stays readable. */
  opacity: 0;
  transition: opacity 0.55s ease-in-out;
}
.hero__img.is-current { opacity: 0.5; }

/* With JS off, no image is ever marked current, so show the first and stack
   the rest underneath it. */
.no-js .hero__img:first-child { opacity: 0.5; }

/* A picture changing on its own is motion like any other. Hold the first. */
@media (prefers-reduced-motion: reduce) {
  .hero__img { transition: none; }
}
.hero__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(5rem, 18vw, 10rem) 1.25rem clamp(3rem, 8vw, 6rem);
}
@media (min-width: 48em) { .hero__inner { padding-inline: 2.5rem; } }

.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 0.4em; }
.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: #E4DFD6;
  max-width: 34ch;
  margin: 0;
}
.hero__cta { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; }

.hero__caption {
  font-size: 0.72rem;
  color: #BEB6A9;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 0.5rem;
  margin: clamp(2.5rem, 7vw, 4.5rem) 0 0;
  max-width: 40ch;
}

/* --- 8. Beats (the three short lines on Home) ----------------------------- */

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 44rem;
}
.beats li {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  line-height: 1.3;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.beats li:last-child {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 0;
}

/* --- 9. Numbered / listed blocks ----------------------------------------- */

.mistakes {
  list-style: none;
  counter-reset: mistake;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 48em) { .mistakes { grid-template-columns: 1fr 1fr; } }

.mistakes > li { counter-increment: mistake; }
.mistakes > li::before {
  content: counter(mistake, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.mistakes h3 { margin-bottom: 0.35em; }
.mistakes p { color: var(--ink-soft); }

/* Facts list — Who We Are */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.facts li {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 48em) {
  .facts li { grid-template-columns: 13rem 1fr; align-items: baseline; }
}
.facts dt, .facts .facts__key {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-faint);
}
.facts .facts__val { color: var(--ink); }

/* Big closing statement */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.6vw, 3rem);
  line-height: 1.2;
  max-width: 20ch;
  margin: 0 auto 0.6em;
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--accent); }
.section--deep .statement em { color: #E5B96B; }

/* --- 10. Pricing cards --------------------------------------------------- */

/* stretch, not start: the three editions carry different amounts of critical
   writing, so their last lines run to different depths. Left to size
   themselves the cards ended at three different heights along a shared top
   edge, which reads as a mistake rather than as a difference in content. */
.price-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 52em) { .price-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 72em) { .price-grid { gap: 2rem; } }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 18px 44px -24px rgba(20, 18, 15, 0.5);
  padding-top: 2.5rem;
}
@media (min-width: 52em) {
  .card--featured { margin-top: -1.5rem; padding-bottom: 2rem; }
}

.card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  white-space: nowrap;
}

.card__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-faint);
  margin: 0 0 0.35rem;
}
.card--featured .card__label { color: var(--accent); }

.card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.15rem;
}
.card__cover {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
}

.card__price {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 2.6rem);
  line-height: 1;
  margin: 0;
}
.card__klarna {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0.45rem 0 0;
}

.card__perpage {
  margin: 1.1rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--paper-warm);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.card__perpage b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 700;
}
.card--featured .card__perpage {
  background: var(--accent);
  color: #F3E4E4;
}
.card--featured .card__perpage b { color: #fff; font-size: 2.2rem; }

/* What the edition carries, in one line under the price. This was a .card__list
   of three bullets; two of them repeated the page count and the binding already
   set above, and once those went the list was a single row sitting between a
   rule above and a rule below with one bullet beside it — a table of one. A
   plain line under a single hairline says the same thing without the furniture.
   It stays under the price rather than being pushed to the foot of the card:
   with the cards stretched to equal height a bottom-pinned rule floats away
   from what it belongs to. Any slack goes to the bottom instead. */
.card__critical {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.card__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
}
.card__list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.card__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.42rem; height: 0.42rem;
  margin-top: 0.55rem;
  background: var(--accent);
  border-radius: 50%;
}
.card__list b { color: var(--ink); font-weight: 700; }

.card__note {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.card--featured .card__note {
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  color: var(--ink);
}

.card__cta { margin-top: auto; padding-top: 1.5rem; }

.card__media img { width: 100%; margin-bottom: 1.1rem; }

/* --- 11. Two-panel block (CV) -------------------------------------------- */

.panels {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 56em) { .panels { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.panel {
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel h3 { margin-bottom: 0.6em; }
.panel p, .panel li { color: var(--ink-soft); }
.panel ul { margin: 0 0 1em; padding-left: 1.1rem; }
.panel li { margin-bottom: 0.4em; }

.masters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.masters figcaption {
  font-size: 0.74rem;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
}
.masters b { display: block; color: var(--ink); font-size: 0.82rem; }

/* Emphasis block */
.pull {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 3px;
  text-align: center;
}
.pull p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.28;
  max-width: 26ch;
  margin-inline: auto;
  color: #fff;
}
.pull p + p { margin-top: 0.6em; }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  line-height: 1.35;
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 0;
  max-width: 32ch;
}

/* --- 12. Process steps ---------------------------------------------------- */

.process {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.2rem 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 48em) {
  .process li { grid-template-columns: 3.5rem 1fr 13rem; align-items: baseline; }
}
.process li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent);
}
@media (min-width: 48em) { .process li::before { grid-row: auto; } }

.process__what { font-size: 1.05rem; margin: 0; }
.process__when {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0;
}
@media (min-width: 48em) { .process__when { text-align: right; } }

/* --- 13. Flip-book viewer ------------------------------------------------- */

.flipbook {
  --page-w: 240px;
  --page-h: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.flipbook__stage {
  perspective: 2200px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-block: 0.5rem;
}

.flipbook__book {
  position: relative;
  width: calc(var(--page-w) * 2);
  height: var(--page-h);
  transform-style: preserve-3d;
  background: var(--paper-deep);
  box-shadow: 0 26px 50px -30px rgba(20, 18, 15, 0.85);
  /* Let the page scroll vertically, but keep horizontal drags for the book. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
/* Faint gutter down the middle of the open book */
.flipbook__book::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2rem;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
              rgba(20,18,15,0) 0%, rgba(20,18,15,0.14) 48%,
              rgba(20,18,15,0.14) 52%, rgba(20,18,15,0) 100%);
  pointer-events: none;
  z-index: 60;
}

.flipbook__leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--page-w);
  height: var(--page-h);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: grab;
  touch-action: pan-y;
}
.flipbook__leaf.is-dragging { transition: none; cursor: grabbing; }

.flipbook__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 22px -14px rgba(20,18,15,0.9);
}
.flipbook__face--back { transform: rotateY(180deg); }
.flipbook__face img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.flipbook__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flipbook__btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.flipbook__btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flipbook__btn:disabled { opacity: 0.32; cursor: default; }

.flipbook__status {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  min-width: 9rem;
  text-align: center;
  font-weight: 600;
}

.flipbook__hint {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0;
  text-align: center;
}

/* No-JS: fall back to a plain scrollable strip of pages */
.flipbook__fallback {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  width: 100%;
}
.flipbook__fallback img { flex: 0 0 auto; width: 200px; height: auto; }
.js .flipbook__fallback { display: none; }
.js .flipbook__stage,
.js .flipbook__controls { display: flex; }
.no-js .flipbook__stage,
.no-js .flipbook__controls { display: none; }

/* --- 14. Publication cover grid ------------------------------------------ */

/* Small, dense thumbnails, as on artcritics.co.uk — the covers are a
   catalogue to scan, not three hero images. auto-fill rather than a fixed
   column count so the row simply holds as many as the width allows. */
.covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
@media (min-width: 34em) { .covers { grid-template-columns: repeat(3, 1fr); } }
/* Four across, fixed rather than auto-fill: the row should hold four at any
   desktop width, not as many as happen to fit. */
@media (min-width: 52em) { .covers { grid-template-columns: repeat(4, 1fr); } }
.covers figcaption { font-size: 0.66rem; line-height: 1.35; }

/* --- 15. Contact form ---------------------------------------------------- */

.form { max-width: 34rem; }
.form__row { margin-bottom: 1.25rem; }
.form label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.form input, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { min-height: 9rem; resize: vertical; }

.form__status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-warm);
  font-size: 0.95rem;
}
.form__status[hidden] { display: none; }

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  font-style: normal;
}
.contact-details li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.contact-details li:first-child { border-top: 1px solid var(--rule); }
.contact-details span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* --- 16. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #B9B1A5;
  padding-block: 3rem 2.5rem;
  font-size: 0.85rem;
}
.site-footer a { color: #E4DFD6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 {
  font-size: 1.1rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8C857A;
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #322E28;
  font-size: 0.78rem;
  color: #8C857A;
}

/* --- 17. Thank-you page --------------------------------------------------- */

.thanks {
  min-height: calc(100vh - var(--nav-h) - 12rem);
  display: flex;
  align-items: center;
  text-align: center;
}
.thanks__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.thanks__chosen {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

/* --- 18. Scroll reveal & bottom scrim -------------------------------------
   Two effects, both hand-rolled: no AOS, no GSAP, no Framer Motion, so the
   no-dependency rule holds.

   REVEAL. js/main.js tags blocks with data-reveal and adds .is-revealed as
   each one crosses into view. The hidden state is gated on html.js — that
   class is set by the inline script in every <head>, so it lands before the
   first paint and nothing flashes. With JS off the attribute is never added
   and every block simply renders.
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  /* main.js sets --reveal-index on staggered rows; the step is a token so a
     media query can switch stagger off without JS knowing about breakpoints. */
  --reveal-delay: calc(var(--reveal-index, 0) * var(--reveal-step, 90ms));
}

/* On a phone every grid on this site is a single column, so items already
   arrive one at a time as you scroll — an extra stagger only reads as lag. */
@media (max-width: 39.99em) {
  :root { --reveal-step: 0ms; }
}

/* The transition lives on the revealed state, not the hidden one, so nothing
   animates while the page is settling — only the change into view. */
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s);
}

/* --- SCRIM. A soft haze at the bottom edge, so content dissolves out of the
   page rather than being cut off. The element is built in main.js — it is
   decorative, and without JS there is nothing to fade.

   --scrim-rgb is repainted as you scroll to match whatever the bottom edge is
   actually sitting over: gallery white, the warm band, or the near-black of a
   deep section, the hero and the footer. The stops are all one colour at
   rising alpha; fading to `transparent` instead would drag the gradient
   through rgba(0,0,0,0) and smear it grey.
   -------------------------------------------------------------------------- */

/* Registered so they can be transitioned. Initial values are --paper, the
   background the scrim sits over on most of the site. Browsers without
   @property support fall back to the old behaviour — a hard swap — rather
   than breaking. */
@property --scrim-r { syntax: '<number>'; inherits: false; initial-value: 251; }
@property --scrim-g { syntax: '<number>'; inherits: false; initial-value: 250; }
@property --scrim-b { syntax: '<number>'; inherits: false; initial-value: 248; }

.scrim {
  position: fixed;
  inset: auto 0 0 0;
  height: clamp(3.5rem, 8vh, 6.5rem);
  /* dvh follows the phone viewport as the URL bar slides away, where vh is
     fixed to the largest size; env() carries the haze through the home
     indicator instead of stopping short of it. Older browsers keep the line
     above. */
  height: calc(clamp(3.5rem, 8dvh, 6.5rem) + env(safe-area-inset-bottom, 0px));
  z-index: 50;              /* over content, under the nav (100) */
  pointer-events: none;     /* never intercepts a click or a page-turn drag */
  opacity: 1;
  background: linear-gradient(
    to bottom,
    rgb(var(--scrim-r) var(--scrim-g) var(--scrim-b) / 0),
    rgb(var(--scrim-r) var(--scrim-g) var(--scrim-b) / 0.55) 45%,
    rgb(var(--scrim-r) var(--scrim-g) var(--scrim-b) / 0.92)
  );
  /* The three channels are registered as numbers below, which is what makes
     them animatable — a plain custom property holding "251, 250, 248" is just
     a string to the browser and swaps instantly. That instant swap was the
     jump when the bottom edge crossed from a dark section into a light one.
     Registered, they interpolate, and the haze changes colour instead of
     cutting. */
  transition: opacity 0.45s ease,
              --scrim-r 0.4s ease,
              --scrim-g 0.4s ease,
              --scrim-b 0.4s ease;
}

/* Lifted at the foot of the page, and on any page too short to scroll —
   a permanent haze over the footer would just look like a rendering fault. */
.scrim[data-lifted="true"] { opacity: 0; }

/* Motion is the point of both effects, so honour the preference properly:
   show every block outright rather than transitioning it quickly. */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .scrim { transition: none; }
}

/* Print takes no notice of the viewport, so blocks below the fold would never
   have been revealed — the pages would come out blank. Show everything, and
   drop the haze. */
@media print {
  .js [data-reveal] { opacity: 1; transform: none; }
  .scrim { display: none; }
}

/* --- 19. Publications carousel -------------------------------------------
   A horizontal run of covers under the hero. Native scroll with snap, not a
   JS slider: it keeps the trackpad, the touch swipe, the keyboard and the
   scrollbar all working as they already do, and the arrows only nudge the
   same scroll. Nothing to fight.
   -------------------------------------------------------------------------- */

.carousel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.carousel__head h2 { margin: 0; }

.carousel__arrows { display: flex; gap: 0.5rem; flex: none; }

.carousel__btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, opacity 0.15s ease;
}
.carousel__btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.carousel__btn:disabled { opacity: 0.3; cursor: default; }

/* Arrows are a convenience on top of a scroll that already works, so on a
   phone — where the swipe is the natural gesture — they are just clutter. */
@media (max-width: 47.99em) { .carousel__arrows { display: none; } }

/* The viewport clips; the track slides inside it. No overflow-x, so no
   scrollbar, and nothing for the loop to hit the end of. */
.carousel__viewport {
  overflow: hidden;
  padding-block: 0.75rem 1.5rem;
}

.carousel {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem;
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  width: max-content;
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;      /* the page still scrolls vertically over it */
}
.carousel:active { cursor: grabbing; }
@media (min-width: 48em) {
  .carousel { padding-inline: max(1.25rem, calc((100% - var(--shell-wide)) / 2 + 1.25rem)); }
}

.carousel__item {
  flex: 0 0 auto;
  width: clamp(9.5rem, 30vw, 13rem);
  scroll-snap-align: start;
}

.carousel__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.carousel__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 849;
  object-fit: cover;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 24px -18px rgba(20, 18, 15, 0.8);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: center bottom;
}

/* The enlarge. transform only — scaling a width would reflow the whole row
   on every hover. :focus-within carries it to the keyboard. */
.carousel__link:hover .carousel__cover,
.carousel__link:focus-visible .carousel__cover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 22px 40px -22px rgba(20, 18, 15, 0.85);
}

.carousel__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.25;
  margin: 0.85rem 0 0.15rem;
}
.carousel__artist {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .carousel { scroll-behavior: auto; }
  .carousel__cover { transition: none; }
  .carousel__link:hover .carousel__cover,
  .carousel__link:focus-visible .carousel__cover { transform: none; }
}

/* --- 20. Publication page ------------------------------------------------- */

.publication {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 52em) {
  .publication { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.publication__cover {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 26px 50px -30px rgba(20, 18, 15, 0.8);
}
@media (min-width: 52em) {
  .publication__media { position: sticky; top: calc(var(--nav-h) + 2rem); }
}

.publication__kind {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.publication h1 { margin-bottom: 0.15em; }
.publication__artist {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.publication__bio { max-width: var(--measure); }

.publication__quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink);
}

.publication__buy {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.publication__note {
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin: 0.9rem 0 0;
  max-width: 34rem;
}

/* --- 21. Editorial review ------------------------------------------------- */


.form__hint {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 0.45rem 0 0;
}
.form__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
}

/* Who is applying. A fieldset because the two radios are one question, and a
   browser default border round it would be the only box of its kind on the
   page — so the legend carries the same weight as a label instead. */
.form__choice {
  border: 0;
  padding: 0;
  margin-inline: 0;
}
.form__choice legend {
  padding: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
/* The label is the hit area, so the whole line is clickable, not just the
   8px dot. */
/* .form label sets uppercase and letter-spacing, and beats a single class on
   specificity — hence .form in front of these. Without it the two answers were
   being shouted in the same voice as the field names above them. */
.form .form__choice-option {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form__choice-option input {
  /* width:100% from .form input would stretch the dot across the row. */
  width: auto;
  flex: none;
  accent-color: var(--accent);
}
.form__choice-option:last-child { margin-bottom: 0; }

/* The applicant's own details, revealed by the second choice. Ruled off so it
   reads as a group belonging to that answer rather than as three more fields
   that appeared from nowhere. */
.form__group {
  border-left: 2px solid var(--rule);
  padding-left: clamp(0.9rem, 3vw, 1.25rem);
  margin-bottom: 1.25rem;
}
.form__group[hidden] { display: none; }

/* --- 22. Outlined button on a photograph ---------------------------------
   The hero call to action: white on nothing, so the picture reads through it.
   Distinct from .btn--onDark, which is a solid paper-coloured button and is
   still used on the flat dark sections.
   -------------------------------------------------------------------------- */

.btn--outlineLight {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  /* A hairline of shadow keeps the outline legible over a pale part of a
     photograph without putting a fill behind it. */
  box-shadow: 0 2px 18px -8px rgba(0, 0, 0, 0.6);
}
.btn--outlineLight:hover,
.btn--outlineLight:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

/* Covers grid links — the same lift as the carousel, so a cover behaves the
   same way wherever it appears. */
.covers__link { display: block; text-decoration: none; color: inherit; }
.covers__link img {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: center bottom;
}
.covers__link:hover img,
.covers__link:focus-visible img {
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 20px 38px -22px rgba(20, 18, 15, 0.85);
}
@media (prefers-reduced-motion: reduce) {
  .covers__link img { transition: none; }
  .covers__link:hover img, .covers__link:focus-visible img { transform: none; }
}

/* The leaf after page 17. Not a page of the book — the offer, set on the same
   leaf so turning past the preview lands on it as if it were the next page. */
.flipbook__cart {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--paper-warm);
}
.flipbook__cart-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
  font-weight: 700;
}
.flipbook__cart-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 0.2rem;
}
.flipbook__cart-artist {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}
.flipbook__cart-note {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  max-width: 22ch;
}
.flipbook__cart .btn { font-size: 0.68rem; padding: 0.6rem 1rem; }

/* --- 23. Benefit pills ----------------------------------------------------
   What the artist gets, above the pricing. Each carries a picture, a heading
   that lands on its own, and a short line under it.
   -------------------------------------------------------------------------- */

.pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 52em) {
  .pills { grid-template-columns: repeat(3, 1fr); }
}

.pill {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;      /* the pill */
  overflow: hidden;         /* keeps the picture inside the rounded corner */
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -26px rgba(20, 18, 15, 0.85);
}

/* A fixed band rather than the picture's own height, so three pills with
   pictures of different shapes still line their headings up.

   The band is deep rather than shallow on purpose. Two of the three pictures
   are portrait, and `cover` crops whatever the band does not use — at a
   shallower band the books were reduced to a horizontal slice with their
   covers cut off top and bottom. This is as tall as it goes before the
   headings are pushed below the fold on a laptop. */
.pill__img {
  width: 100%;
  height: clamp(11rem, 26vw, 16rem);
  object-fit: cover;
  object-position: center;
}

.pill__body { padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.pill__body h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 0.5em;
}
.pill__body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
  .pill:hover { transform: none; }
}

/* --- 24. Publications: three, then a panel --------------------------------
   Three covers, then the rest in a panel that opens beneath them and scrolls
   on its own — a page within the page, so eighteen covers never push the
   whole document down.
   -------------------------------------------------------------------------- */

.covers__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin: 2rem auto 0;          /* centred under the three covers */
  padding: 0;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease;
}
.covers__toggle:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
/* An author display value beats the hidden attribute's UA display:none, so
   without this the button stays on screen after JS has hidden it. */
.covers__toggle[hidden] { display: none; }

.covers__chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.covers__toggle.is-open .covers__chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.covers__more {
  margin-top: 1.75rem;
  /* Its own scroll. overscroll-behavior is deliberately NOT contain: reaching
     the bottom of this panel should carry on down the page, rather than
     stopping dead and making the reader scroll around it. */
  /* max-height is set by main.js to exactly two rows of covers. */
  overflow-y: auto;
  scrollbar-width: thin;
}
.covers__more[hidden] { display: none; }

.covers__more .covers { padding-right: 0.5rem; }   /* clear of the scrollbar */


@media (prefers-reduced-motion: reduce) {
  .covers__chevron, .covers__toggle { transition: none; }
}

/* The book slides half a page when opening from, or closing to, a single
   page — see render() in main.js §4. */
.flipbook__book { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .flipbook__book { transition: none; } }

/* --- 25. The ICAC mark ---------------------------------------------------- */

.site-nav__logo {
  display: block;
  width: auto;
  height: clamp(2.1rem, 4.5vw, 3rem);
  transition: height 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-nav.is-compact .site-nav__logo { height: clamp(1.7rem, 3.4vw, 2.1rem); }

/* A shut book is one page. The board is two pages wide, so while a single page
   is showing it steps back and the page itself carries the shadow — otherwise
   the empty half sits there as a grey slab and reads as a failed load. */
/* The board deliberately keeps its background and shadow even when one page
   is showing. Making it transparent here blanked the page: between the book's
   preserve-3d, the transform used to centre it, and faces carrying
   backface-visibility, Chrome moved the face onto a compositing path that
   dropped its image child and left plain white paper. The centring shift on
   its own is safe and renders correctly; the background change is not worth
   the risk of the book appearing empty again. */
/* NO outer box-shadow anywhere inside the book. Tested in Chrome: an outer
   shadow on the leaf flattens its transform-style: preserve-3d, and one on the
   face — which carries backface-visibility: hidden — pushes it onto a
   compositing path that drops the image child entirely. Either way the page
   renders as blank white paper, which is precisely how this looked. The inset
   shadow already on .flipbook__face is safe and stays; a single page simply
   goes without a drop shadow. */
.flipbook__book::after { transition: opacity 0.3s ease; }


/* The three at the top carry a fade across their lower edge while there is
   more below — the visual half of the same hint the arrow gives. It lifts
   when the rest open, where it would only be dimming the books. */
.covers__lead { position: relative; }
.covers__lead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(4rem, 9vw, 7rem);
  pointer-events: none;
  background: linear-gradient(to bottom,
              rgba(251, 250, 248, 0) 0%,
              rgba(251, 250, 248, 0.82) 62%,
              var(--paper) 100%);
  transition: opacity 0.35s ease;
}
.covers__lead.is-open::after { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .covers__lead::after { transition: none; }
}

/* --- 27. Contact: ready to apply ------------------------------------------ */

.ready {
  padding: clamp(1.5rem, 3.5vw, 2rem);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  margin-bottom: 2.5rem;
}
.ready h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.ready__note { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0; }

.form__draft {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 1.25rem;
  display: none;
}
.form__draft.is-active { display: block; }

/* The bar used to carry a cart pill in a utility row above the menu. The cart
   is gone — books are bought on the printer's own checkout — so the menu is
   the only thing left in here, and it sits to the right on its own. */
@media (min-width: 62em) {
  .site-nav__nav {
    /* !important because the rule that reveals the desktop nav uses it to beat
       the mobile display:none, and it would otherwise win here too. */
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
  }
}

/* Two calls to action in the hero. The pill shape is shared so they read as a
   pair; the fill is what separates them — solid carries the eye, the outline
   waits beside it. */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}
.hero__btn { border-radius: 999px; }

/* The primary gets a little more presence than the outline beside it. */
.hero__btn.btn--onDark {
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.75);
  font-weight: 700;
}

/* On a phone the two of them stay on one line. At the desktop size they cannot
   both fit across 360px, so flex-wrap dropped the second onto its own row and
   the pair read as a list rather than as a choice. Held to one line, sharing it
   equally, with the padding and tracking tightened just enough that neither
   label breaks. */
@media (max-width: 30em) {
  .hero__cta {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .hero__btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding: 0.95rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

/* Same reason as the toggle: an author display value beats the hidden
   attribute, so the emptied lead grid would otherwise leave a gap. */
.covers__lead[hidden] { display: none; }

/* --- 28. What's inside ----------------------------------------------------- */

.inside {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 52em) { .inside { grid-template-columns: repeat(2, 1fr); } }

.inside > li {
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}
.inside h3 { margin-bottom: 0.4em; }
.inside p { color: var(--ink-soft); margin: 0; max-width: 40ch; }

/* --- 29. How we work ------------------------------------------------------- */

.steps__title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}
/* The mark sits on the baseline of the heading and scales with it. */
.steps__logo {
  height: 0.82em;
  width: auto;
  display: inline-block;
  position: relative;
  top: 0.06em;
}

.steps {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
}
@media (min-width: 52em) { .steps { grid-template-columns: repeat(2, 1fr); } }

.step {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.step h3 { margin-bottom: 0.4em; }
.step p:last-child { color: var(--ink-soft); margin: 0; }

.step__n {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

/* The fifth runs the full width and is centred, because it is not another
   step in a sequence — it is what the other four produce. The halo is a warm
   radial wash behind it plus a soft outer glow, so it reads as the thing the
   grid above has been building toward rather than a fifth box. */
.step--wide {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border-color: rgba(229, 185, 107, 0.3);
  color: var(--paper);
  background:
    radial-gradient(120% 150% at 50% 0%,
                    rgba(229, 185, 107, 0.18) 0%,
                    rgba(229, 185, 107, 0) 58%),
    var(--ink);
  box-shadow:
    0 0 60px -12px rgba(229, 185, 107, 0.35),
    0 26px 60px -34px rgba(20, 18, 15, 0.95);
}

/* A short line up into the gap, tying it to the four above so the eye reads
   one movement rather than a separate block. */
.step--wide::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: clamp(1rem, 3vw, 1.9rem);
  background: linear-gradient(to bottom,
              rgba(229, 185, 107, 0) 0%,
              rgba(229, 185, 107, 0.55) 100%);
}

.step--wide h3 {
  color: var(--paper);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}
.step--wide p:last-child {
  color: #DAD5CC;
  max-width: 48ch;
  margin-inline: auto;
}
.step--wide a { color: #fff; }

/* The number becomes a mark rather than a label. */
.step--wide .step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(229, 185, 107, 0.5);
  border-radius: 50%;
  color: #E5B96B;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

@media (prefers-reduced-motion: no-preference) {
  .step--wide { transition: box-shadow 0.4s ease; }
  .step--wide:hover { box-shadow:
    0 0 70px -10px rgba(229, 185, 107, 0.45),
    0 26px 60px -34px rgba(20, 18, 15, 0.95); }
}

/* --- 30. FAQ --------------------------------------------------------------- */

.faq { margin-top: clamp(2rem, 4vw, 2.75rem); max-width: 48rem; }

.faq details {
  border-top: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }

/* A plus that becomes a minus — a rotation would need a second element. */
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }

.faq details p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  max-width: 44rem;
}

/* Our publications leads with the books, not with a headline the size of the
   home page's — the covers below are the argument. */
.publications__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }

/* --- 31. Your book submenu -------------------------------------------------
   Opens on hover and on keyboard focus. :focus-within is what makes it
   reachable by tab — hover alone would hide these six links from anyone not
   using a mouse.
   -------------------------------------------------------------------------- */

.site-nav__has-sub { position: relative; }

@media (min-width: 62em) {
  .site-nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-0.35rem);
    min-width: 12rem;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    box-shadow: 0 18px 40px -24px rgba(20, 18, 15, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 120;
  }
  /* A gap between the link and the panel would close the menu as the pointer
     crossed it; this bridges it without being visible. */
  .site-nav__has-sub::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.6rem;
  }
  .site-nav__has-sub:hover .site-nav__sub,
  .site-nav__has-sub:focus-within .site-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .site-nav__sub li { margin: 0; }
  .site-nav__sub a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink-soft);
    text-decoration: none;
    border: 0;
  }
  .site-nav__sub a:hover { background: var(--paper-warm); color: var(--ink); }
}

/* On the mobile panel it is already a list; the sublist simply indents under
   its parent rather than hiding behind a hover that does not exist on touch. */
@media (max-width: 61.99em) {
  .site-nav__sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem 1rem;
  }
  .site-nav__sub a {
    padding: 0.5rem 0;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    border-bottom: 0;
  }
}


/* --- 32. Who we are: alternating run ---------------------------------------
   One section, one rhythm. Text and picture swap sides down the page; the
   separate sections this replaces broke a short page into slabs.
   -------------------------------------------------------------------------- */

.record {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
}

.record__row {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 52em) {
  .record__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* The picture takes the left on alternate rows. Below this width the order
     stays text-then-picture throughout: images that jump above and below their
     own text down a single column read as a mistake. */
  .record__row--flip .record__text { order: 2; }

  /* With the picture on the left the words turn to meet it. Ranging right on
     its own would leave the 40ch measure hanging at the left of a wider
     column with a ragged edge floating in the middle of the row, so the
     measure is pushed to the right edge as well and the two blocks close on
     the gutter between them. Only at this width: stacked, everything ranges
     left. */
  .record__row--flip .record__text { text-align: right; }
  .record__row--flip .record__text p { margin-left: auto; }

  /* Same idea one level down, for the captions. A caption ranges to whichever
     way its own picture faces, so on the rows where the picture sits right it
     turns with it. Scoped to .record — the alternating run on ICAC — so the
     single rows on Home and Your book keep their captions ranged left. */
  .record .record__row:not(.record__row--flip) figcaption { text-align: right; }
}

.record__text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.record__text p { color: var(--ink-soft); max-width: 40ch; }
.record__media { margin: 0; }

.btn--block { display: block; width: 100%; text-align: center; }

.publication__price {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink);
  margin: 0 0 1.5rem;
}

/* --- 33. Checkout ----------------------------------------------------------
   The Bookvault titles are bought here rather than on somebody else's site,
   so this is the one page on which money is discussed. It is deliberately
   plain: a cover, a short form, real delivery prices, a total. Nothing to
   read past and nothing to decide except how many and where to.
   -------------------------------------------------------------------------- */

.checkout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}
@media (min-width: 48em) {
  .checkout { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
}

.checkout__artist {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: -0.5rem 0 0;
}

.checkout__cover { margin: 0; }
.checkout__cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.16);
}

.checkout__form { max-width: 34rem; }
.checkout__form input[type="number"] { max-width: 7rem; }

/* --- delivery options --- */

.checkout__services { margin: 1.75rem 0 0; }
.checkout__services-title {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
}

.checkout__service {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  margin-bottom: -1px;          /* collapse the borders into one list */
  cursor: pointer;
  background: var(--paper);
  transition: background-color 0.15s ease;
}
.checkout__service:hover { background: var(--paper-warm); }
.checkout__service:has(input:checked) {
  background: var(--paper-warm);
  border-color: var(--accent);
  position: relative;           /* lift the lit border over its neighbours */
  z-index: 1;
}

.checkout__service input { margin: 0; flex: none; }

.checkout__service-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1 1 auto;
  min-width: 0;
}
.checkout__service-name { font-size: 0.95rem; }
.checkout__service-detail { font-size: 0.78rem; color: var(--ink-faint); }
.checkout__service-price { font-size: 0.95rem; white-space: nowrap; }

/* --- the total --- */

.checkout__totals {
  margin: 1.75rem 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.checkout__total {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 0.45rem;
}
.checkout__total--sum {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
  margin-top: 0.7rem;
}

.checkout__note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 1rem 0 0;
  max-width: 34rem;
}

/* A failed quote or a refused checkout is not the same as a confirmation,
   and should not look like one. */
.form__status--error { border-left-color: #8a1f1f; }

/* The site styles inputs and textareas but never needed a <select> before.
   Match them, so the country field is not a browser default sitting between
   two styled fields. */
.checkout__form select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
}
.checkout__form select:focus { border-color: var(--accent); }

/* `hidden` is only display:none at user-agent strength, so ANY class that
   sets display beats it — .btn--block does, which put "Pay and order" on
   screen before a delivery option had been chosen. The stylesheet already
   handles this per-component elsewhere; same fix here. */
.checkout__form .btn[hidden],
.checkout__services[hidden],
.checkout__totals[hidden] { display: none; }

/* The quote button leads, so it should not sit flush against the field above
   it as though it were one. */
.checkout__form [data-co-quote] { margin-top: 0.25rem; }

/* The cover is tall, so without this the back link ends up tucked against the
   bottom of it and reads as a caption. */
.checkout__back { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* The delivery options are <label> elements inside .form, so `.form label`
   (0,1,1) outranks `.checkout__service` (0,1,0) and was turning each row into
   a block of uppercase bold — radio on one line, name, tier and price stacked
   under it. Scoped here to outrank it and put the row back to a plain line of
   text with a price on the right. */
.checkout__form .checkout__service {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: -1px;
}
.checkout__form .checkout__service-name {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.checkout__form .checkout__service-detail {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.checkout__form .checkout__service-price {
  font-size: 0.95rem;
  white-space: nowrap;
  font-weight: 400;
}
/* The radio is a control, not a form field to be stretched to full width. */
.checkout__form .checkout__service input[type="radio"] {
  width: auto;
  margin: 0;
  flex: none;
  align-self: center;
}

/* --- 35. The honeypot ------------------------------------------------------
   Off-screen rather than display:none or hidden: the better scrapers skip
   fields that are obviously not rendered, and this one needs to look
   fillable. It is out of the tab order and out of the accessibility tree in
   the markup, so nobody using a keyboard or a screen reader meets it.
   -------------------------------------------------------------------------- */
.form__trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- 36. Consent bar -------------------------------------------------------
   Sits at the foot of the window until it is answered. Deliberately not a
   full-screen blocker: it asks about analytics, not about entry, and holding
   the page hostage over a recording tool would be a poor trade for a reader
   who came to look at books.

   Decline is first, and the two buttons carry equal weight. A "no" that is
   harder to find than the "yes" is not a choice, and is not consent.
   -------------------------------------------------------------------------- */

.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 54rem;
  margin-inline: auto;
  padding: 1.1rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.consent.is-up { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

.consent__text {
  flex: 1 1 22rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.consent__text a { color: var(--accent); }

.consent__actions {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.consent__actions .btn { padding: 0.7rem 1.3rem; font-size: 0.68rem; }

@media (max-width: 32em) {
  .consent { padding: 1rem; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}

/* --- 37. A quiet aside -----------------------------------------------------
   For the sentence under a price or a form that qualifies it — what is billed
   separately, what this page is not. Small and grey, because it is a footnote
   rather than an argument, but present, because leaving it out would make the
   figure above it read as the whole story.
   -------------------------------------------------------------------------- */
.note {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 46ch;
}

/* --- 38. A row whose halves are different heights --------------------------
   .record__row centres its two columns against each other, which is right
   when the picture and the words are about the same height. Where the words
   run longer — three or four paragraphs against one tall portrait image — the
   picture ends up floating in the middle of the column with uneven space
   above and below it, and the two halves read as unrelated.

   This aligns them at the top and gives the words the larger share, so the
   picture sits beside the heading rather than hovering somewhere near the
   third paragraph.
   -------------------------------------------------------------------------- */
@media (min-width: 52em) {
  .record__row--top {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
  /* The heading has space above it that the picture does not, so aligning the
     two columns at the top still left the image sitting lower than the words.
     A negative margin lifts it to the cap-height of the heading, which is
     where the eye expects the top of the picture to be — level with the first
     letter rather than with the invisible box around it. */
  .record__row--top .record__text > h2:first-child {
    margin-top: 0;
    /* Room between the heading and the first line, so the two read as a
       heading and its text rather than as one block. */
    margin-bottom: 2.4rem;
  }

  /* .record__text caps its paragraphs at 40ch, which is a good measure in a
     narrow column and far too narrow here: it left the words in a thin strip
     with half the column empty beside them, against a picture taking its full
     half. Wider, so the two sides carry comparable weight. */
  .record__row--top .record__text p { max-width: 52ch; }
  .record__row--top .record__media { margin-top: -0.6rem; }

  /* The books are photographed against a pale ground, so without this the
     stack dissolves into the page. Same treatment as the cover on the
     checkout: enough shadow to sit on the paper, not enough to look pasted. */
  .record__row--top .record__media img {
    box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.14);
  }
}

/* --- 39. Recent work -------------------------------------------------------
   Three sites in one row. They are small at this size, but they read as a set
   — three pieces of work, not a list that happens to have three entries — and
   each one links out to the real thing.
   -------------------------------------------------------------------------- */

.work {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
/* One row of three. Two columns left the third site sitting alone under an
   empty cell, which read as an afterthought rather than a set. */
@media (min-width: 42em) { .work { grid-template-columns: repeat(3, 1fr); } }

.work__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work__link img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Only the ones that go somewhere lift. A card that responds to the cursor
   and then does nothing when clicked is a small lie. */
a.work__link:hover img {
  box-shadow: 0 1.1rem 2.6rem rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .work__link img { transition: none; }
  a.work__link:hover img { transform: none; }
}

.work__name {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
a.work__link:hover .work__name { color: var(--accent); }

.work__note {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
}

/* The one line on the thank-you page that states what was bought and what was
   charged. Set apart from the paragraphs around it, because it is the detail
   somebody checks before closing the tab. */
.thanks__order {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
}
.thanks__order[hidden] { display: none; }

/* Two buttons side by side rather than stacked on a wide screen. */
.thanks .btn + .btn { margin-left: 0.6rem; }

/* --- 34. Home: the institution --------------------------------------------
   Home is about ICAC, not the monograph — the artist pages sit behind
   Artist resources. The register is the learned society's: lighter display
   weights, more air, rules instead of boxes, one picture at a time.
   -------------------------------------------------------------------------- */

.home h1, .home h2, .home h3 { font-weight: 400; letter-spacing: 0; }

/* Introduction: statement left, account right */
.home-intro__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 5rem);
}
@media (min-width: 52em) {
  .home-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.home-intro__title {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin: 0;
}
.home-intro__body p { color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; }

/* Six panels, one grid */
.home-panels {
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
}
@media (min-width: 40em) { .home-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-panel {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.home-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
  margin-bottom: 1.15rem;
  transition: opacity 0.25s ease;
}
.home-panel:hover img { opacity: 0.88; }
.home-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.home-panel:hover .home-panel__title { color: var(--accent); }
.home-panel__text { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.9rem; }
.home-panel__more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--accent);
}
.home-panel__more::after { content: "  \2192"; }

/* Membership page */
.member-banner {
  position: relative;
  min-height: clamp(26rem, 62vh, 40rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}
.member-banner__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  z-index: -2;
}
.member-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(12,10,8,0.78) 0%, rgba(12,10,8,0.45) 50%, rgba(12,10,8,0.1) 80%);
}
.member-banner__inner {
  width: 100%;
  max-width: var(--shell-wide);
  margin-inline: auto;
  padding: 6rem 1.25rem clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 48em) { .member-banner__inner { padding-inline: 2.5rem; } }
.member-banner h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 0.3em; }
.member-banner p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  color: #EFEAE2;
  max-width: 34ch;
  margin-bottom: 2rem;
}
.member-banner__btn { border-radius: 0; }

/* How to join: four steps, numbered, ruled */
.member-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 2rem;
}
@media (min-width: 40em) { .member-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .member-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; } }
.member-steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 1.25rem; }
.member-steps li::before {
  content: counter(step, upper-roman);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.member-steps h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: 0.45em; }
.member-steps p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

/* The form: heading left, fields right, two to a row */
.member-apply { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 62em) { .member-apply { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.member-apply__intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.member-apply__intro p { color: var(--ink-soft); max-width: 34ch; }
@media (min-width: 62em) { .member-apply__intro { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; } }
@media (min-width: 40em) {
  .member-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
  .member-form__wide, .member-form .form__trap, .member-form input[type="hidden"] { grid-column: 1 / -1; }
}

/* --- 35. The honeypot ------------------------------------------------------
   Off-screen rather than display:none or hidden: the better scrapers skip
   fields that are obviously not rendered, and this one needs to look
   fillable. It is out of the tab order and out of the accessibility tree in
   the markup, so nobody using a keyboard or a screen reader meets it.
   -------------------------------------------------------------------------- */
.form__trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- 36. Consent bar -------------------------------------------------------
   Sits at the foot of the window until it is answered. Deliberately not a
   full-screen blocker: it asks about analytics, not about entry, and holding
   the page hostage over a recording tool would be a poor trade for a reader
   who came to look at books.

   Decline is first, and the two buttons carry equal weight. A "no" that is
   harder to find than the "yes" is not a choice, and is not consent.
   -------------------------------------------------------------------------- */

.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 54rem;
  margin-inline: auto;
  padding: 1.1rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.consent.is-up { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

.consent__text {
  flex: 1 1 22rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.consent__text a { color: var(--accent); }

.consent__actions {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.consent__actions .btn { padding: 0.7rem 1.3rem; font-size: 0.68rem; }

@media (max-width: 32em) {
  .consent { padding: 1rem; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}

/* --- 37. A quiet aside -----------------------------------------------------
   For the sentence under a price or a form that qualifies it — what is billed
   separately, what this page is not. Small and grey, because it is a footnote
   rather than an argument, but present, because leaving it out would make the
   figure above it read as the whole story.
   -------------------------------------------------------------------------- */
.note {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 46ch;
}

/* --- 38. A row whose halves are different heights --------------------------
   .record__row centres its two columns against each other, which is right
   when the picture and the words are about the same height. Where the words
   run longer — three or four paragraphs against one tall portrait image — the
   picture ends up floating in the middle of the column with uneven space
   above and below it, and the two halves read as unrelated.

   This aligns them at the top and gives the words the larger share, so the
   picture sits beside the heading rather than hovering somewhere near the
   third paragraph.
   -------------------------------------------------------------------------- */
@media (min-width: 52em) {
  .record__row--top {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
  /* The heading has space above it that the picture does not, so aligning the
     two columns at the top still left the image sitting lower than the words.
     A negative margin lifts it to the cap-height of the heading, which is
     where the eye expects the top of the picture to be — level with the first
     letter rather than with the invisible box around it. */
  .record__row--top .record__text > h2:first-child {
    margin-top: 0;
    /* Room between the heading and the first line, so the two read as a
       heading and its text rather than as one block. */
    margin-bottom: 2.4rem;
  }

  /* .record__text caps its paragraphs at 40ch, which is a good measure in a
     narrow column and far too narrow here: it left the words in a thin strip
     with half the column empty beside them, against a picture taking its full
     half. Wider, so the two sides carry comparable weight. */
  .record__row--top .record__text p { max-width: 52ch; }
  .record__row--top .record__media { margin-top: -0.6rem; }

  /* The books are photographed against a pale ground, so without this the
     stack dissolves into the page. Same treatment as the cover on the
     checkout: enough shadow to sit on the paper, not enough to look pasted. */
  .record__row--top .record__media img {
    box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.14);
  }
}

/* --- 39. Recent work -------------------------------------------------------
   Three sites in one row. They are small at this size, but they read as a set
   — three pieces of work, not a list that happens to have three entries — and
   each one links out to the real thing.
   -------------------------------------------------------------------------- */

.work {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
/* One row of three. Two columns left the third site sitting alone under an
   empty cell, which read as an afterthought rather than a set. */
@media (min-width: 42em) { .work { grid-template-columns: repeat(3, 1fr); } }

.work__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work__link img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Only the ones that go somewhere lift. A card that responds to the cursor
   and then does nothing when clicked is a small lie. */
a.work__link:hover img {
  box-shadow: 0 1.1rem 2.6rem rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .work__link img { transition: none; }
  a.work__link:hover img { transform: none; }
}

.work__name {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
a.work__link:hover .work__name { color: var(--accent); }

.work__note {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
}

/* The one line on the thank-you page that states what was bought and what was
   charged. Set apart from the paragraphs around it, because it is the detail
   somebody checks before closing the tab. */
.thanks__order {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
}
.thanks__order[hidden] { display: none; }

/* Two buttons side by side rather than stacked on a wide screen. */
.thanks .btn + .btn { margin-left: 0.6rem; }

/* --- 34. Home: the institution --------------------------------------------
   Home is about ICAC, not the monograph — the artist pages sit behind
   Artist resources. The register is the learned society's: lighter display
   weights, more air, rules instead of boxes, one picture at a time.
   -------------------------------------------------------------------------- */

.home h1, .home h2, .home h3 { font-weight: 400; letter-spacing: 0; }

/* Introduction: statement left, account right */
.home-intro__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 5rem);
}
@media (min-width: 52em) {
  .home-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.home-intro__title {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin: 0;
}
.home-intro__body p { color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; }

/* Six panels, one grid */
.home-panels {
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
}
@media (min-width: 40em) { .home-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-panel {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.home-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
  margin-bottom: 1.15rem;
  transition: opacity 0.25s ease;
}
.home-panel:hover img { opacity: 0.88; }
.home-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.home-panel:hover .home-panel__title { color: var(--accent); }
.home-panel__text { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.9rem; }
.home-panel__more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--accent);
}
.home-panel__more::after { content: "  \2192"; }

/* Membership page */

/* --- 35. Menu: no "you are here" ----------------------------------------
   As on the Royal Society: the menu reads the same on every page. aria-current
   stays in the HTML for screen readers; it just isn't drawn.
   -------------------------------------------------------------------------- */

/* --- 36. The Royal Society header --------------------------------------------
   The name in a solid oxblood block hanging from the top-left corner, the
   logo knocked out in white, and the menu in plain sentence case beside it.
   Every page. On Home only (body.page-home) the header rides transparent over
   the full-height photograph, with white links, and turns back to paper as
   soon as it compacts on scroll.
   -------------------------------------------------------------------------- */

.site-nav__inner { align-items: stretch; }
.site-nav__toggle { align-self: center; }
.site-nav__nav { align-self: center; }

.site-nav__brand {
  display: flex;
  align-items: flex-end;
  background: var(--accent);
  padding: 0.7rem 0.9rem;
  margin-left: -0.25rem;
}
.site-nav__logo {
  filter: brightness(0) invert(1);
  height: clamp(1.8rem, 4vw, 2.4rem);
}
@media (min-width: 62em) {
  .site-nav__brand { padding: 1.1rem 1.4rem 1.2rem; }
  .site-nav__logo { height: 2.9rem; }
  .site-nav.is-compact .site-nav__brand { padding: 0.55rem 1rem; }
  .site-nav.is-compact .site-nav__logo { height: 2.1rem; }

  .site-nav__list { gap: 2.1rem; }
  .site-nav__list > li > a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    padding: 0.4rem 0;
  }
  .site-nav__list > li > a:hover { color: var(--accent); border-bottom-color: currentColor; }
}

/* Home: transparent over the photograph until it compacts. */
.page-home, .page-hero { padding-top: 0; }
.page-home .site-nav:not(.is-compact), .page-hero .site-nav:not(.is-compact) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.page-home .site-nav:not(.is-compact) .site-nav__toggle, .page-hero .site-nav:not(.is-compact) .site-nav__toggle { color: #fff; border-color: rgba(255,255,255,0.7); }
.page-home .site-nav:not(.is-compact) .site-nav__toggle-bars,
.page-hero .site-nav:not(.is-compact) .site-nav__toggle-bars,
.page-home .site-nav:not(.is-compact) .site-nav__toggle-bars::before,
.page-hero .site-nav:not(.is-compact) .site-nav__toggle-bars::before,
.page-home .site-nav:not(.is-compact) .site-nav__toggle-bars::after, .page-hero .site-nav:not(.is-compact) .site-nav__toggle-bars::after { background: #fff; }
@media (min-width: 62em) {
  .page-home .site-nav:not(.is-compact) .site-nav__list > li > a, .page-hero .site-nav:not(.is-compact) .site-nav__list > li > a { color: #fff; }
  .page-home .site-nav:not(.is-compact) .site-nav__list > li > a:hover, .page-hero .site-nav:not(.is-compact) .site-nav__list > li > a:hover { border-bottom-color: #fff; }
}
.page-home .site-nav.is-animated, .page-hero .site-nav.is-animated { transition: background-color 0.3s ease, border-color 0.3s ease; }

/* The hero */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}
.home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  z-index: -2;
}
/* Darkened at the top for the menu and along the left for the words. */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(12,10,8,0.55) 0%, rgba(12,10,8,0) 22%),
    linear-gradient(to right, rgba(12,10,8,0.7) 0%, rgba(12,10,8,0.35) 45%, rgba(12,10,8,0) 70%);
}
.home-hero__inner {
  width: 100%;
  max-width: var(--shell-wide);
  margin-inline: auto;
  padding: 9rem 1.25rem clamp(3rem, 7vw, 5.5rem);
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 48em) { .home-hero__inner { padding-inline: 2.5rem; } }
@media (min-width: 62em) { .home-hero__inner { grid-template-columns: minmax(0, 1fr) 24rem; } }

.home-hero__text h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.04;
  max-width: 13ch;
  margin-bottom: 0.4em;
}
.home-hero__text p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: #EFEAE2;
  max-width: 36ch;
  margin-bottom: 2rem;
}
.home-hero__btn { border-radius: 0; }

/* The feature card, bottom right */
.home-feature {
  display: none;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  transition: transform 0.25s ease;
}
@media (min-width: 62em) { .home-feature { display: block; } }
.home-feature:hover { color: #fff; transform: translateY(-3px); }
.home-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home-feature__body { display: block; padding: 1.4rem 1.6rem 1.6rem; }
.home-feature__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}
.home-feature__text { display: block; font-size: 0.95rem; line-height: 1.55; color: #F1DDDD; }

/* --- 37. The bar once scrolled -----------------------------------------------
   Solid paper, not frosted: the photographs on Home were bleeding through the
   96% background. The block keeps its proportions as it shrinks — logo
   centred in it rather than sat on its floor — and everything eases together.
   -------------------------------------------------------------------------- */
.site-nav { background: var(--paper); backdrop-filter: none; }
.site-nav.is-compact {
  background: var(--paper);
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 24px -18px rgba(20, 18, 15, 0.45);
}
.site-nav.is-compact .site-nav__brand { align-items: center; }
.site-nav.is-animated,
.site-nav.is-animated .site-nav__brand,
.site-nav.is-animated .site-nav__logo {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    height 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (min-width: 62em) {
  .site-nav.is-compact .site-nav__brand { padding: 0 1.15rem; }
  .site-nav.is-compact .site-nav__logo { height: 2.3rem; }
  .site-nav.is-compact .site-nav__list > li > a { font-size: 0.95rem; }
}

/* The dropdowns, in the same voice as the menu: square, sentence case, an
   oxblood rule along the top. */
@media (min-width: 62em) {
  .site-nav__sub {
    border-radius: 0;
    border: 0;
    border-top: 3px solid var(--accent);
    padding: 0.4rem 0;
    min-width: 14rem;
    box-shadow: 0 18px 40px -20px rgba(20, 18, 15, 0.45);
    left: 0;
    transform: translateY(-0.35rem);
  }
  .site-nav__has-sub:hover .site-nav__sub,
  .site-nav__has-sub:focus-within .site-nav__sub { transform: translateY(0); }
  .site-nav__sub a {
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    padding: 0.65rem 1.25rem;
  }
  .site-nav__sub a:hover { background: var(--paper-warm); color: var(--accent); }
}

/* Picture on the left, text on the right, without the right-ranged text that
   .record__row--flip brings. Stacked on a phone, the text still comes first. */
@media (min-width: 52em) {
  .record__row--media-left .record__media { order: -1; }
}

/* Membership: a picture beside the statement, and one under the form's
   heading. */
.member-writing { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 52em) { .member-writing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.member-writing img, .member-apply__intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.member-writing__text .home-intro__title { margin-bottom: 1.5rem; }
.member-writing__text p { color: var(--ink-soft); font-size: 1.08rem; max-width: 44ch; }
.member-apply__intro img { margin-top: 2rem; }

.member-form { max-width: none; }

/* --- 38. Out of the way while reading ---------------------------------------
   Scrolling down slides the bar up out of view; scrolling up brings it back.
   js/main.js → wireNavShrink sets .is-hidden.
   -------------------------------------------------------------------------- */
.site-nav.is-hidden { transform: translateY(-100%); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .site-nav.is-animated { transition: none; }
}

/* --- 39. Home after the Royal Society -----------------------------------------
   The logo block hangs a little below the bar, the six panels are white cards
   three across, and the selected publications open like the Royal Society's
   "Key work" strip.
   -------------------------------------------------------------------------- */

/* The oxblood block runs past the foot of the bar. A negative margin on a
   stretched flex item makes it taller than the bar it sits in. */
.site-nav__brand { margin-bottom: -0.6rem; }
@media (min-width: 62em) {
  .site-nav__brand { margin-bottom: -1.35rem; padding-bottom: 1.1rem; }
  .site-nav.is-compact .site-nav__brand { align-items: flex-end; padding: 0 1.15rem 0.85rem; }
}
/* Hidden means hidden: the hanging part goes too. */
.site-nav.is-hidden { transform: translateY(calc(-100% - 1.6rem)); }

/* Panels: three across, two down, white cards on warm paper. */
.home-panels-section { background: var(--paper-warm); }
@media (min-width: 62em) { .home-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-panels { gap: clamp(1rem, 1.6vw, 1.5rem); }
.home-panel {
  background: var(--paper);
  box-shadow: 0 3px 0 -1px var(--rule), 0 10px 24px -20px rgba(20, 18, 15, 0.5);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.home-panel:hover { transform: translateY(-2px); box-shadow: 0 3px 0 -1px var(--rule), 0 18px 30px -20px rgba(20, 18, 15, 0.55); }
.home-panel img { aspect-ratio: 16 / 10; margin-bottom: 0; }
.home-panel:hover img { opacity: 1; }
.home-panel__body { display: flex; flex-direction: column; padding: 1.1rem 1.15rem 1.6rem; }
.home-panel:hover .home-panel__title { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.home-panel__text { margin-bottom: 0; }

/* Selected publications */
.home-pubs-section .home-title { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.pub-accordion { list-style: none; margin: 0; padding: 0; }
.pub-accordion__link { display: block; color: inherit; text-decoration: none; }
.pub-accordion__bg { display: none; }
.pub-accordion__cover { display: block; width: 100%; height: auto; box-shadow: 0 12px 28px -16px rgba(20, 18, 15, 0.55); }
.pub-accordion__body { display: flex; flex-direction: column; padding-top: 0.8rem; }
.pub-accordion__kind {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.3rem;
}
.pub-accordion__title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.pub-accordion__artist { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.2rem; }
.pub-accordion__more { display: none; }
.home-pubs__all { margin: 2rem 0 0; }
.home-pubs__all a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 0.3rem;
}
.home-pubs__all a::after { content: "  \2192"; }

/* Phone: a plain grid of covers. */
@media (max-width: 51.99em) {
  .pub-accordion { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
}



/* --- 40. Fellows -------------------------------------------------------------
   Four points in a 2×2, the fees as heading-and-text, and the extra pieces
   the application form needs: a CV upload, a character count, a checkbox.
   -------------------------------------------------------------------------- */
.fellow-points { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 52em) { .fellow-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fellow-points > div { border-top: 1px solid var(--rule-strong); padding-top: 1.25rem; }
.fellow-points h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 0.75rem; }
.fellow-points p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; margin: 0; max-width: 60ch; }

.fellow-fees { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 52em) { .fellow-fees { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.fellow-fees p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; max-width: 62ch; }

.form input[type="file"] { padding: 0.65rem; background: #fff; cursor: pointer; }
.form input[type="file"]::file-selector-button {
  font: inherit; font-size: 0.85rem; margin-right: 0.9rem; padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule-strong); background: var(--paper-warm); color: var(--ink); cursor: pointer;
}
.form .form__hint { margin: 0.45rem 0 0; }
.form__hint.is-over { color: #8a1f1f; }
.form .form__check {
  display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer;
  font-size: 0.98rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink);
}
.form__check input { width: auto; flex: none; margin-top: 0.25rem; accent-color: var(--accent); }
.member-form .btn + .form__hint { margin-top: 0.8rem; }

/* --- 41. Fellows, simplified -------------------------------------------------
   One reading column on plain paper. Headings and paragraphs, then the form
   stacked one field under another, the full width of the column.
   -------------------------------------------------------------------------- */
.fellow-page h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: clamp(2.75rem, 6vw, 4rem) 0 1rem;
}
.fellow-page h2:first-child { margin-top: 0; }
.fellow-page p { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; margin: 0 0 1.1rem; }
.fellow-page #apply { scroll-margin-top: calc(var(--nav-h) + 2rem); }
.fellow-form { max-width: none; margin-top: 2rem; }
.fellow-form .form__hint { font-size: 0.85rem; margin: 0.45rem 0 0; }
.fellow-form .btn { margin-top: 0.5rem; }
.fellow-form .btn + .form__hint { margin-top: 0.8rem; }

/* --- 42. Selected publications: the shelf -----------------------------------
   Closed, each book is a spine: a flat colour taken from its cover, the
   title running up it. Open, the whole cover stands on that same colour with
   the title beside it. No blur, no cropping. Each <li> sets --spine.
   Phone: the plain grid of covers above (section 39).
   -------------------------------------------------------------------------- */
.pub-accordion__spine { display: none; }
@media (min-width: 52em) {
  .pub-accordion { display: flex; gap: 4px; height: clamp(26rem, 36vw, 32rem); }
  .pub-accordion__item {
    --spine: var(--ink);
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    background: var(--spine);
    transition: flex-grow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .pub-accordion__item.is-open { flex-grow: 5; }
  .pub-accordion__link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    color: #fff;
  }
  .pub-accordion__link:hover { color: #fff; }

  /* The spine label: title running bottom to top, as on a shelf. */
  .pub-accordion__spine {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    max-height: calc(100% - 3.5rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.25s ease;
  }
  .pub-accordion__item.is-open .pub-accordion__spine { opacity: 0; }
  .pub-accordion__item:not(.is-open):hover .pub-accordion__spine { color: #fff; }

  .pub-accordion__bg { display: none; }
  .pub-accordion__cover,
  .pub-accordion__body {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }
  .pub-accordion__item.is-open .pub-accordion__cover,
  .pub-accordion__item.is-open .pub-accordion__body {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease 0.3s, visibility 0s;
  }
  .pub-accordion__cover {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
    box-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.6);
  }
  .pub-accordion__body { flex: 0 1 17rem; min-width: 12rem; padding: 0; }
  .pub-accordion__kind { color: rgba(255, 255, 255, 0.75); }
  .pub-accordion__title { font-size: clamp(1.45rem, 2.1vw, 1.9rem); color: #fff; }
  .pub-accordion__artist { color: rgba(255, 255, 255, 0.8); font-size: 0.98rem; margin-top: 0.4rem; }
  .pub-accordion__more { display: block; margin-top: 1.4rem; font-size: 0.9rem; font-weight: 600; color: #fff; }
  .pub-accordion__more::after { content: "  \2192"; }
  .pub-accordion__link:hover .pub-accordion__more { text-decoration: underline; text-underline-offset: 0.2em; }
  .pub-accordion__link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .pub-accordion__item, .pub-accordion__cover, .pub-accordion__body, .pub-accordion__spine { transition: none !important; }
}

/* The welcome line is longer than the name alone: a little smaller and wider
   so it sits in four lines rather than six. */
.home-hero__text h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 16ch; }

/* Feature card: a quieter photograph, a tighter red block, and a line that
   says where it goes. */
.home-feature__body { padding: 1.25rem 1.5rem 1.4rem; }
.home-feature__title { font-size: 1.4rem; }
.home-feature__text { font-size: 0.9rem; }
.home-feature__more {
  display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6); padding-bottom: 0.15rem;
}
.home-feature__more::after { content: "  \2192"; }

/* --- 43. The shelf, bound ------------------------------------------------------
   The spines dressed as cloth-bound books rather than flat blocks: a rounded
   sheen across each one, a faint weave, gilt bands top and foot, the title in
   gilt capitals, and ICAC at the foot as the publisher's mark. The open book
   keeps the cloth and a soft light, without the sheen that only makes sense
   on something narrow and round.
   -------------------------------------------------------------------------- */
@media (min-width: 52em) {
  .pub-accordion { gap: 3px; }
  .pub-accordion__item {
    --gilt: #d6bd84;
    background:
      linear-gradient(90deg,
        rgba(0, 0, 0, 0.34) 0%,
        rgba(255, 255, 255, 0.10) 16%,
        rgba(255, 255, 255, 0.02) 42%,
        rgba(0, 0, 0, 0.10) 70%,
        rgba(0, 0, 0, 0.32) 100%),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, rgba(0, 0, 0, 0.03) 1px 3px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, rgba(0, 0, 0, 0.025) 1px 3px),
      var(--spine);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  .pub-accordion__item.is-open {
    background:
      radial-gradient(ellipse at 28% 45%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 60%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, 0.22)),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, rgba(0, 0, 0, 0.028) 1px 3px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, rgba(0, 0, 0, 0.022) 1px 3px),
      var(--spine);
  }
  .pub-accordion__item:not(.is-open):hover { filter: brightness(1.12); }
  .pub-accordion__item { transition: flex-grow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.25s ease; }

  /* Gilt bands: a pair of fine rules at the head and the foot. */
  .pub-accordion__item::before,
  .pub-accordion__item::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    height: 6px;
    border-top: 1px solid var(--gilt);
    border-bottom: 1px solid var(--gilt);
    opacity: 0.75;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .pub-accordion__item::before { top: 1.5rem; }
  .pub-accordion__item::after { bottom: 3.6rem; }
  .pub-accordion__item.is-open::before,
  .pub-accordion__item.is-open::after { opacity: 0; }

  /* Title: gilt capitals, centred on the spine. */
  .pub-accordion__spine {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) rotate(180deg);
    max-height: calc(100% - 8rem);
    font-family: var(--font-display);
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gilt);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  }
  .pub-accordion__item:not(.is-open):hover .pub-accordion__spine { color: #ecd8a6; }

  /* Publisher's mark at the foot of each spine. */
  .pub-accordion__link::after {
    content: "ICAC";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--gilt);
    opacity: 0.85;
    transition: opacity 0.25s ease;
  }
  .pub-accordion__item.is-open .pub-accordion__link::after { opacity: 0; }

  /* The open book's words pick up the gilt. */
  .pub-accordion__kind { color: var(--gilt); }
}

/* --- 44. The shelf, quieter ---------------------------------------------------
   Same books, less dressing: a gentle sheen, the cloth weave, a single faint rule at
   head and foot, and the gilt toned back.
   -------------------------------------------------------------------------- */
@media (min-width: 52em) {
  .pub-accordion__item {
    --gilt: rgba(226, 208, 168, 0.78);
    background:
      linear-gradient(90deg,
        rgba(0, 0, 0, 0.16) 0%,
        rgba(255, 255, 255, 0.04) 22%,
        rgba(255, 255, 255, 0) 55%,
        rgba(0, 0, 0, 0.14) 100%),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, rgba(0, 0, 0, 0.03) 1px 3px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, rgba(0, 0, 0, 0.025) 1px 3px),
      var(--spine);
    box-shadow: none;
  }
  .pub-accordion__item.is-open {
    background:
      radial-gradient(ellipse at 28% 45%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 60%),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, rgba(0, 0, 0, 0.028) 1px 3px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, rgba(0, 0, 0, 0.022) 1px 3px),
      var(--spine);
  }
  .pub-accordion__item:not(.is-open):hover { filter: brightness(1.07); }

  .pub-accordion__item::before,
  .pub-accordion__item::after {
    left: 30%;
    right: 30%;
    height: 0;
    border-bottom: 0;
    opacity: 0.45;
  }

  .pub-accordion__spine {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-shadow: none;
  }
  .pub-accordion__item:not(.is-open):hover .pub-accordion__spine { color: rgba(240, 226, 192, 0.95); }

  .pub-accordion__link::after { font-size: 0.66rem; letter-spacing: 0.18em; opacity: 0.55; }
}

/* "Explore ICAC" heading over the cards, wherever the cards appear. */
.home-panels-section .home-title {
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

/* Artist resources: two cards side by side, three steps across. */
@media (min-width: 40em) { .home-panels--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) {
  .home-panels--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Contact: the main sections of the site, as a quiet list of links. */
.contact-explore h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 400; margin: 0 0 1rem; }
.contact-explore ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contact-explore li { border-bottom: 1px solid var(--rule); }
.contact-explore a {
  display: block; padding: 1rem 2rem 1rem 0; position: relative;
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; line-height: 1.5;
}
.contact-explore a span { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.15rem; }
.contact-explore a::after { content: "\2192"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); color: var(--accent); transition: transform 0.2s ease; }
.contact-explore a:hover span { color: var(--accent); }
.contact-explore a:hover::after { transform: translate(4px, -50%); }
/* Both columns start level: the list's heading sits on the line of the
   form's first label, and the page's two bands sit closer together. */
.contact-split + * { margin-top: 0; }
@media (min-width: 56em) { .contact-split { column-gap: clamp(3rem, 7vw, 6rem); } }
.contact-explore h2 { margin-top: -0.35rem; }


/* --- 45. Artist resources: the homepage treatment ---------------------------
   body.page-hero: the menu rides transparent over the photograph, as on Home.
   The photograph is brighter, darkened only behind the words, and the two
   buttons are square like every other button on the site.
   -------------------------------------------------------------------------- */
.page-hero .hero { min-height: min(88vh, 52rem); display: flex; align-items: flex-end; }
.page-hero .hero__inner { width: 100%; max-width: var(--shell-wide); padding-top: 9rem; }
.page-hero .hero__img.is-current, .no-js .page-hero .hero__img:first-child { opacity: 1; }
.page-hero .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12,10,8,0.55) 0%, rgba(12,10,8,0) 24%),
    linear-gradient(to right, rgba(12,10,8,0.78) 0%, rgba(12,10,8,0.45) 45%, rgba(12,10,8,0.1) 75%);
}
.page-hero .hero__inner { position: relative; z-index: 1; }
.page-hero .hero h1 { font-weight: 400; font-size: clamp(2.5rem, 6vw, 4.4rem); }
.page-hero .hero__sub { color: #EFEAE2; }
.page-hero .hero__btn { border-radius: 0; box-shadow: none; }
.page-hero .hero__btn.btn--onDark { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-hero .hero__btn.btn--onDark:hover { background: #fff; border-color: #fff; color: var(--accent); }

/* Cards: the photograph eases in a little on hover, inside its frame. */
.home-panel { overflow: hidden; }
.home-panel img { transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.home-panel:hover img, .home-panel:focus-visible img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .home-panel:hover img { transform: none; } }
/* The text block sits over the grown picture's lower edge. */
.home-panel__body { position: relative; z-index: 1; background: var(--paper); }

/* --- 46. Heroes line up with the menu ------------------------------------------
   The words start on the same left edge as the oxblood logo block, sit low in
   the picture with clear air under the menu, and the caption goes: on a hero
   that is a mood photograph it was one more thing floating about.
   -------------------------------------------------------------------------- */
.page-hero .hero__inner,
.home-hero__inner { padding-inline: 1rem; }
@media (min-width: 48em) {
  .page-hero .hero__inner,
  .home-hero__inner { padding-inline: 1rem; }
}
.page-hero .hero__inner { padding-top: 12rem; padding-bottom: clamp(3.5rem, 8vh, 6rem); }
.page-hero .hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 0.35em; }
.page-hero .hero__sub { max-width: 38ch; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; }
.page-hero .hero__caption { display: none; }

/* Fellows: the opening paragraph reads as an introduction, not body text */
.fellow-page p.fellow-page__lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.55;
  margin-bottom: 2.4rem;
}
