/* ══════════════════════════════════════════════════════════════
   Dr. Lauren E. Liefland
   Built against reference/mockups/01-home.png
   ══════════════════════════════════════════════════════════════ */

/* ── Placeholder art ───────────────────────────────────────────
   Every path below is a throwaway SVG. To swap in real artwork,
   change the path here — no layout changes needed. See
   ../PLACEHOLDERS.md for the slot list and target aspect ratios.
   (Book cover + the three card images are <img> tags in the HTML.)  */
:root {
  --art-hero:    url("/img/hero-top.webp");
  --art-closing: url("/img/closing-landscape.webp");
  --art-ornament: url("/img/botanical-spray.svg");
}

:root {
  /* Page cap. The hero artwork is 2170px native; past this it would upscale and
     go soft, and the layout drifts away from her ~1440 mockup. */
  --page: 1560px;

  --ground: #FCF8F3;
  --band:   #F7F1E4;
  --navy:   #00133E;
  /* darker than the mockup's #485362: Lauren asked for bolder, brighter print
     that she and older readers can read without straining */
  --ink:    #2B3443;
  --olive:  #475731;
  --blue:   #074C76;
  --purple: #443462;
  --gold:   #EBB05C;
  --rule:   rgba(0, 19, 62, .17);

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text:    "EB Garamond", Georgia, "Times New Roman", serif;

  --shell: 1180px;
  --gut: clamp(1.15rem, 4vw, 2.75rem);

  --track: var(--olive); /* per-card override */
}

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

html {
  -webkit-text-size-adjust: 100%;
  font-size: 106.25%; /* 17px rem, so every rem-sized label grows with the text */
  background: #f1ebdd; /* shows either side of the capped page on wide screens */
}

body {
  margin: 0 auto;
  max-width: var(--page);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, .96rem + .22vw, 1.14rem);
  font-weight: 500;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

a { color: var(--blue); }

.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: .7rem 1.1rem; z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.rule {
  border: 0; height: 1px;
  background: var(--rule);
  margin: 1.6rem 0;
}
.rule--short { width: 116px; }
.rule--center { margin-inline: auto; }

/* ── what she can change ──────────────────────────────────────
   The editor lets Lauren resize and re-letter a run of words. These are the
   only forms it can produce: classes, not inline styles, and relative sizes
   rather than absolute ones. The design keeps ownership of what "bigger"
   means, the type scale can still be retuned in one place afterwards, and a
   heading that is already 3rem does not get a 14px span dropped inside it. */
.t-xs { font-size: .78em }
.t-sm { font-size: .88em }
.t-lg { font-size: 1.16em }
.t-xl { font-size: 1.38em }
.t-display { font-family: var(--display) }
.t-text    { font-family: var(--text) }

/* ── Masthead ─────────────────────────────────────────────── */

/* Two rows, two columns, following Lauren's mockup: her name over her
   credentials on the left, the tagline over the nav on the right. */
.masthead {
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
  padding: clamp(.62rem, 1.3vw, .9rem) var(--gut);
}
.masthead__in {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: .3rem;
}

.wordmark {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  text-decoration: none;
  display: block;
}
.wordmark__name {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.02rem + 1.25vw, 1.85rem);
  color: var(--navy);
  letter-spacing: .012em;
  line-height: 1.06;
}
/* Lauren asked for PhD to carry the same weight and size as her name, so it
   inherits both and keeps only the letter-spacing, which an all-caps-ish word
   at this size needs to avoid looking set solid. She can still resize it
   herself from the editor's formatting bar. */
.wordmark__phd { font-size: 1em; letter-spacing: .04em; }
.wordmark__creds {
  display: block;
  font-size: clamp(.66rem, .6rem + .22vw, .78rem);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .105em;
  margin-top: .3rem;
}

.masthead__tag {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(.85rem, .76rem + .32vw, 1.05rem);
  color: var(--navy);
  letter-spacing: .02em;
}

/* The nav gets the full width of the shell on its own row, under a rule,
   rather than tucking in beside the wordmark. space-between spreads the links
   edge to edge, so the row reads as a band rather than a right-aligned huddle
   — and it leaves room for pages to be added without the nav crowding the
   tagline. Below 860px this is overridden into a centred column. */
.nav {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: stretch;
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--rule);
}
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: .35rem clamp(.7rem, 1.55vw, 1.4rem);
}
.nav__list a {
  text-decoration: none;
  color: var(--blue);
  font-size: clamp(.68rem, .63rem + .2vw, .76rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s, color .18s;
}
.nav__list a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav__list a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* the menu button only exists below the desktop breakpoint */
.nav__toggle { display: none; }

/* ── Hero ─────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; }

.hero__art {
  position: absolute; inset: 0;
  background: var(--art-hero) center bottom / cover no-repeat;
}
/* The artwork's centre is calm sky and water, so the headline only needs a
   gentle lift rather than the heavy side-scrim the old hero image required. */
.hero__art::after {
  content: "";
  position: absolute; inset: 0;
  /* Cream wash over the middle so the headline sits on a calm field and the
     artwork still breathes at the edges. Extra mid-stops keep the falloff
     smooth — too few and the wash reads as a visible oval. */
  background:
    radial-gradient(68% 76% at 50% 46%,
      rgba(252,248,243,.94) 0%,
      rgba(252,248,243,.88) 26%,
      rgba(252,248,243,.66) 46%,
      rgba(252,248,243,.34) 68%,
      rgba(252,248,243,.10) 86%,
      rgba(252,248,243,0) 100%),
    linear-gradient(180deg, rgba(252,248,243,.34), rgba(252,248,243,0) 32%);
}

.hero__in {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.4rem, 6vw, 4.6rem) var(--gut);
}

.hero__center {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.hero__divider {
  display: block;
  width: clamp(250px, 52%, 360px);
  height: auto;
  margin: clamp(1rem, 2.4vw, 1.6rem) auto;
}
.hero__center .deck {
  max-width: 36rem;
  margin: 1rem auto 0;
}
.hero__subline {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, .94rem + .38vw, 1.2rem);
  color: var(--navy);
}


.hero__quote { margin-top: clamp(1.6rem, 3.5vw, 2.2rem); }
@media (min-width: 1100px) {
  .hero__quote {
    position: absolute;
    top: clamp(2.4rem, 6vw, 4.6rem);
    right: var(--gut);
    width: 15rem;
    margin-top: 0;
    text-align: right;
  }
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.1vw, 3.3rem);
  letter-spacing: .004em;
}

.deck {
  font-size: clamp(1.02rem, .96rem + .34vw, 1.24rem);
  max-width: 30ch;
  margin: 1.35rem 0 0;
}

.pull { margin: 0; }
.pull p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, .98rem + .42vw, 1.3rem);
  color: var(--navy);
  line-height: 1.44;
  margin: 0;
  text-wrap: pretty;
}
.pull cite {
  display: block;
  margin-top: .6rem;
  font-style: normal;
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
}
.pull cite::before { content: "— "; }
.pull--sm p { font-size: clamp(.92rem, .88rem + .2vw, 1.02rem); }
.hero__lede .pull p { max-width: 36ch; }
.pull--sm cite { font-size: .66rem; }

.hero__book img {
  width: 100%;
  filter: drop-shadow(0 18px 34px rgba(60, 52, 30, .2));
}

.hero__rail { align-self: center; }
.pillars {
  list-style: none; margin: 0 0 1.6rem; padding: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(.92rem, .88rem + .22vw, 1.06rem);
  color: var(--navy);
  line-height: 1.85;
}

/* ── Three tracks ─────────────────────────────────────────── */

.tracks {
  padding: clamp(1.1rem, 2.4vw, 1.8rem) var(--gut) clamp(1.3rem, 2.8vw, 2rem);
  background: var(--ground);
}
.tracks__head {
  max-width: var(--shell);
  margin: 0 auto clamp(.85rem, 1.9vw, 1.35rem);
  text-align: center;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.tracks__head::before,
.tracks__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.tracks__grid {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--shell);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* each card ends where its words end. Stretching them to one height left the
     shorter ones with a blank band that Lauren kept asking to have closed */
  align-items: start;
  gap: clamp(.6rem, 1.4vw, 1.1rem);
}

.track {
  --track: var(--olive);
  background: var(--band);
  border: 1px solid var(--rule);
  overflow: hidden;
  /* one plain column at every width, the same layout the editor shows. The
     desktop subgrid it replaced is what made the live page and the editor
     look different */
  display: flex;
  flex-direction: column;
}
.track__body { display: flex; flex-direction: column; flex: 1; }
.track__text { padding-bottom: .3rem; }
.track--olive  { --track: var(--olive); }
.track--blue   { --track: var(--blue); }
.track--purple { --track: var(--purple); }

.track__art {
  width: 100%;
  aspect-ratio: 600 / 310;
  object-fit: cover;
}

.track > *, .track__body > * { --pad: clamp(1.1rem, 2vw, 1.6rem); }
.track__head {
  padding: clamp(.7rem, 1.2vw, .95rem) var(--pad) 0;
}
.track h2 {
  text-align: center;
  /* a shade smaller and tighter, so the longest title fits two lines instead of
     three — that third line set the height of every card in the row */
  font-size: clamp(1rem, .9rem + .42vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.22;
  font-weight: 600;
  /* fill lines greedily — `balance` was stretching every title to 3 lines
     and blowing open the shared subgrid row */
  text-wrap: pretty;
}
.track__sub {
  margin: .28rem 0 0;
  min-height: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: .95rem;
  color: var(--track);
  text-align: center;
}
.track__text > p {
  margin: .5rem 0 0;
  padding: 0 var(--pad);
  text-align: center;
  font-size: clamp(.9rem, .87rem + .16vw, .98rem);
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  justify-self: center;
  align-self: start;
  margin: .8rem 0 0;
  background: var(--track);
  color: #fff;
  text-decoration: none;
  padding: .62rem 1.4rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  border: 1px solid transparent;
  transition: filter .18s, transform .18s;
}
.track .btn { align-self: center; }
.btn:hover { filter: brightness(1.18); transform: translateY(-1px); }

.track__note {
  margin: .55rem 0 0;
  padding: 0 var(--pad) clamp(.75rem, 1.3vw, 1rem);
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: .9rem;
  color: var(--navy);
  line-height: 1.45;
}

/* An optional line break — the one Lauren sets after "who we are," in her
   closing quote. Only above the width where the second line still fits;
   narrower than that, let the text wrap on its own. */
.brk { display: none; }
@media (min-width: 900px) {
  .brk { display: inline; }
}

/* ── Closing band ─────────────────────────────────────────── */

.closing {
  position: relative;
  overflow: hidden;
  /* the artwork is 4.77:1; give the band that shape so cover does not crop
     the flowers off the bottom edge */
  min-height: min(21vw, 330px);
  display: flex;
  /* the top ~45% of the painting is pale sky and the bottom is dense flowers,
     so the copy rides high rather than centred */
  align-items: flex-start;
}
.closing__art {
  position: absolute; inset: 0;
  background: var(--art-closing) var(--art-pos, center) / var(--art-fit, cover) no-repeat;
}
/* Lauren's painting, not the flat placeholder it replaced — its own sky is
   already pale where the quote sits, so it needs a fraction of the old wash.
   Heavier at the crown than the foot, so the flowers along the bottom keep
   their colour. */
.closing__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(252,248,243,.46), rgba(252,248,243,.20) 62%, rgba(252,248,243,.10));
}
.closing__in {
  position: relative;
  /* .closing is a flex container, so this is a flex item and sizes to its
     content unless told otherwise — without width:100% it shrinks when the
     quote gets a measure, dragging the word rail in off the edge. */
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  /* Her closing band runs wider than the body column — the word rail sits about
     8% in from the frame edge, where the 1180 shell would hold it back at ~12%.
     So this one band uses the frame with its own inset. */
  max-width: none;
  padding: clamp(1.5rem, 3.4vw, 2.6rem) clamp(1.15rem, 5.5vw, 5.5rem) clamp(2.6rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.pull--lg p { font-size: clamp(1.14rem, 1rem + .7vw, 1.55rem); }
/* wider band, so the quote needs a measure of its own or it runs to a single
   115-character line instead of the two in her render */
.closing__in .pull { text-align: center; max-width: 46rem; margin-inline: auto; }
.pillars--closing { margin: 0; text-align: right; line-height: 1.62; }
.closing__in--solo { grid-template-columns: 1fr; }
.closing__in--solo .pull { text-align: center; }

/* ── Footer ───────────────────────────────────────────────── */



/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1020px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) clamp(170px, 26vw, 230px); }
  .tracks__grid { grid-template-columns: 1fr 1fr; }
  .btn { align-self: center; margin-top: auto; }
  .track--purple { grid-column: 1 / -1; }
  .track--purple .track__art { aspect-ratio: 1100 / 340; }
}

@media (max-width: 860px) {
  .masthead { padding-bottom: clamp(.8rem, 2vw, 1.1rem); }

  /* Collapse to a single centred column. The hero below is centred, so a
     left-ragged masthead above it is what reads as unbalanced. Centring also
     makes the nav's two-line wrap look deliberate rather than accidental.
     The explicit grid-column/row on .nav has to be cleared too, or it spawns
     an implicit second column and crushes the wordmark. */
  .masthead { text-align: center; }
  .masthead__in { grid-template-columns: 1fr; justify-items: center; }
  .wordmark,
  .masthead__tag,
  .nav { grid-column: 1; grid-row: auto; justify-self: center; align-self: auto; }
  .wordmark { text-align: center; }
  .masthead__tag { margin-top: .15rem; }
  .nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: .8rem;
    padding-top: .9rem;
    border-top: 1px solid var(--rule);
  }
  .nav__list {
    justify-content: center;
    gap: .6rem 1.15rem;
  }
}

@media (max-width: 720px) {
  .hero__art::after {
    background: linear-gradient(180deg,
      var(--ground) 0%, rgba(252,248,243,.9) 42%, rgba(252,248,243,.5) 100%);
  }
  .hero__in { grid-template-columns: 1fr; text-align: left; }
  .hero__book { max-width: 240px; margin-inline: auto; }
  .tracks__grid { grid-template-columns: 1fr; }
  .track--purple .track__art { aspect-ratio: 600 / 380; }
  .closing__in { grid-template-columns: 1fr; }
  .pillars--closing { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   Interior pages
   ══════════════════════════════════════════════════════════════ */

.draftbar {
  margin: 0;
  padding: .6rem var(--gut);
  background: #f4e6c9;
  border-bottom: 1px solid #e0cb9f;
  color: #6b5628;
  font-size: .82rem;
  letter-spacing: .03em;
  text-align: center;
}

/* ── Interior page hero ───────────────────────────────────── */

.phero { position: relative; overflow: hidden; }
.phero__art {
  position: absolute; inset: 0;
  /* Bottom by default, which is what every banner shipped with. Lauren can
     move it: a painting is not a stock photograph, and the part of it worth
     showing in a 4:1 slot is hers to choose, not the crop's. */
  background: var(--art) var(--art-pos, center bottom) / var(--art-fit, cover) no-repeat;
}
/* The wash that keeps the title readable over the artwork. It used to be a flat
   62-88% cream across the whole band, which was fine over the pale SVG
   landscape it was designed against and ruinous over an actual painting —
   Lauren uploaded an ocean scene and reported it back as "so grey", twice,
   having assumed the upload was at fault.

   Concentrated behind the words and fading out at the edges instead, the way
   the banner variant already did it: the title keeps its contrast and the
   painting keeps its colour. */
.phero__art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 96% at 24% 50%,
      rgba(252,248,243,.74) 0%,
      rgba(252,248,243,.60) 34%,
      rgba(252,248,243,.38) 58%,
      rgba(252,248,243,.18) 78%,
      rgba(252,248,243,.06) 92%,
      rgba(252,248,243,0) 100%),
    linear-gradient(180deg, rgba(252,248,243,.05), rgba(252,248,243,.15));
}
.phero--plain { background: var(--band); border-bottom: 1px solid var(--rule); }

/* A full painted scene (Lauren's watercolour) rather than the flat SVG
   landscape. It needs height to survive a 5.7:1 hero — the art is 3:1 — and a
   much lighter wash, since it is already pale. Anchored to the top so the
   olive corners frame the title and the ridgeline lands under the copy;
   the lake at the foot of the painting is the part that gets cropped. */
/* A full-bleed painted banner — her music page. Unlike `scene` the artwork
   spans the whole band and the type sits on it, so it needs a wash; unlike the
   old default that wash is light, because her sky is already pale where the
   headline lands. */
.phero--banner {
  min-height: min(19vw, 300px);
  display: flex;
  align-items: center;
}
.phero--banner .phero__in {
  width: 100%;
  /* the default hero padding pushed the band to 338px against the artwork's
     265px at this width, so cover was cropping a fifth of the painting off the
     sides — the staff at one end, the cliffs at the other */
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
}
.phero--banner .phero__art { background-position: var(--art-pos, center center); }
.phero--banner .phero__art::after {
  background:
    radial-gradient(58% 86% at 38% 50%,
      rgba(252,248,243,.70) 0%,
      rgba(252,248,243,.52) 45%,
      rgba(252,248,243,.16) 78%,
      rgba(252,248,243,0) 100%),
    linear-gradient(180deg, rgba(252,248,243,.30), rgba(252,248,243,.06) 40%, rgba(252,248,243,.22));
}
.phero--banner .phero__lead { text-align: center; }
.phero--banner .phero__lead h1 { font-size: clamp(1.9rem, 1rem + 3vw, 3.4rem); line-height: 1.08; }
.phero--banner .deck--wide { margin-inline: auto; }

.phero--scene {
  min-height: min(36vw, 560px);
  display: flex;
  align-items: center;
  background: var(--ground);
}
/* Her mockup does not wash the painting at all — it runs the artwork at full
   strength across the left 46% of the band, feathers its right edge into the
   cream, and sets all the type on plain ground beside it. So this is a panel
   with a mask, not a full-bleed image under a scrim. */
.phero--scene .phero__art {
  right: auto;
  width: 46%;
  background-position: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 66%, rgba(0, 0, 0, .55) 86%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 66%, rgba(0, 0, 0, .55) 86%, transparent 100%);
}
.phero--scene .phero__art::after { content: none; }

/* The sprig that hangs into the right edge of her hero. Sits above the cream
   but below .phero__in, which carries its own stacking context. */
.phero__leaf {
  position: absolute;
  right: -2.4%;
  /* below the quote rail, as in her render — at 38% it crossed the last two
     lines of the pull quote */
  top: 54%;
  width: clamp(92px, 10.5vw, 165px);
  aspect-ratio: 380 / 473;
  background: var(--leaf) right top / contain no-repeat;
  pointer-events: none;
}

.phero--scene .phero__in {
  width: 100%;
  /* The band is full-bleed and the painting takes the left 46% of it, so the
     type gets the rest of the frame rather than being squeezed into the 1180
     shell — inside the shell there is only ~630px left of the panel, which is
     not enough to hold her two-line tagline. */
  max-width: none;
  /* NB percentage padding resolves against .phero, i.e. the frame. */
  padding-left: max(var(--gut), 47%);   /* clears the 46% panel */
  grid-template-columns: minmax(0, 1fr) minmax(0, 8.5rem);
  align-items: start;
}
/* Title block left, quote in a narrow rail beside it, intro paragraph running
   the full width beneath both — the arrangement in her render. */
.phero--scene .phero__lead  { grid-column: 1; grid-row: 1; }
.phero--scene .phero__quote { grid-column: 2; grid-row: 1; }
.phero--scene .phero__lede  { grid-column: 1 / -1; grid-row: 2; max-width: 64ch; }
/* The page title carries this hero the way it does in her mockup. `.phero h1`
   is defined further down at equal specificity, so this needs the extra
   class to win rather than relying on source order. */
.phero--scene .phero__lead h1 { font-size: clamp(2rem, .6rem + 3.6vw, 4.2rem); line-height: 1.02; }

.phero__in {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.4rem, 5.5vw, 4.2rem) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}
.phero h1 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); }
.deck--wide { max-width: 46ch; }
.phero__quote { justify-self: end; }
.phero__in--solo { grid-template-columns: 1fr; }

/* Hero lead block — her psychotherapy mockup stacks title, byline and a green
   tagline over a centred rule, then drops to a left-ranged intro paragraph. */
.phero__lead--centred { text-align: center; }
.phero__lead--centred .phero__lede { text-align: left; }
.phero__byline {
  margin: .5rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem);
  color: var(--navy);
  line-height: 1.3;
}
.phero__tagline {
  margin: .9rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.02rem, .94rem + .42vw, 1.32rem);
  color: var(--olive);
  line-height: 1.32;
}
.rule--centred { margin-inline: auto; }
.phero__lede {
  margin: 1rem 0 0;
  font-size: clamp(.98rem, .94rem + .2vw, 1.08rem);
  line-height: 1.6;
  max-width: 72ch;
}
.phero__lead--centred .phero__lede { margin-inline: auto; }

/* ── Chips ────────────────────────────────────────────────── */

.chips { padding: clamp(1.6rem, 3.4vw, 2.6rem) var(--gut); background: var(--ground); }
.chips__in { max-width: var(--shell); margin-inline: auto; }
.chips__head {
  margin: 0 0 clamp(1rem, 2.2vw, 1.6rem);
  text-align: center;
  font-weight: 600;
  font-size: clamp(1.25rem, 1.02rem + 1vw, 1.75rem);
  line-height: 1.24;
  text-wrap: balance;
}
.chips__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 1.3vw, 1rem);
}
.chip {
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(.85rem, 1.6vw, 1.15rem) clamp(.7rem, 1.3vw, 1rem);
  text-align: center;
}
.chip h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.22;
}
.chip p {
  margin: .45rem 0 0;
  font-size: clamp(.86rem, .83rem + .15vw, .93rem);
  line-height: 1.42;
  color: var(--ink);
}

/* ── Full-width quote band ────────────────────────────────── */

.qband {
  padding: clamp(1.8rem, 4vw, 3rem) var(--gut);
  background: #e8edf9;
  border-block: 1px solid #d6ddf0;
}
.qband__in { max-width: 62rem; margin-inline: auto; text-align: center; }
.qband p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, .95rem + .55vw, 1.42rem);
  line-height: 1.5;
  /* her render sets this in blue; we keep body copy in ink throughout */
  color: var(--ink);
  text-wrap: pretty;
}
.qband cite {
  display: block;
  margin-top: .9rem;
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4f586a;
}

/* ── Three-column service block ───────────────────────────── */

.colsec { padding: clamp(1.8rem, 4vw, 3rem) var(--gut); background: var(--ground); }
.colsec__in {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  /* One track per column, weighted by the content. The renderer sets --tracks;
     the fallback is only reached if a section predates it. */
  grid-template-columns: var(--tracks, repeat(3, minmax(0, 1fr)));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: stretch;
}
.colsec__fig {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.colsec__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* hairline between columns, matching the footer's divider treatment */
.colsec__col + .colsec__col {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
}
.colsec__col h2 {
  margin: 0;
  font-size: clamp(1.18rem, 1.05rem + .6vw, 1.5rem);
  color: var(--navy);
}
.colsec__col > p {
  margin: .7rem 0 0;
  font-size: clamp(.92rem, .89rem + .16vw, 1rem);
  line-height: 1.55;
}
.colsec__col .btn { margin-top: auto; align-self: flex-start; }
.colsec__col > p + .btn { margin-top: 1.1rem; }
.colsec__note {
  margin: .7rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: .92rem;
  color: #4f586a;
}

/* These have to sit after the base rules above, not up with the other
   breakpoints — the chips and column blocks are defined further down the
   sheet than the 720/860/900 media blocks, so an override placed up there
   loses on source order and silently does nothing. */

/* 1080, not the usual 860: the side-by-side hero needs the title column to be
   at least ~6.3x the headline size, and below this width the 46% panel does not
   leave that much — the headline starts colliding with the quote rail. */
@media (max-width: 1080px) {
  .phero--scene .phero__in {
    padding-left: var(--gut);
    grid-template-columns: 1fr;
  }
  .phero--scene { min-height: 0; }
  /* No room for a side-by-side panel, so the artwork goes back to filling the
     band and needs its scrim again. */
  .phero--scene .phero__art {
    right: 0;
    width: auto;
    background-position: center 42%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .phero--scene .phero__art::after {
    content: "";
    background: linear-gradient(180deg,
      rgba(252, 248, 243, .60) 0%,
      rgba(252, 248, 243, .86) 26%,
      rgba(252, 248, 243, .92) 100%);
  }
  .phero--scene .phero__lead,
  .phero--scene .phero__quote,
  .phero--scene .phero__lede { grid-column: 1; grid-row: auto; }
  /* the artwork fills the band again at this size — a second sprig on top of
     it is just clutter */
  .phero__leaf { display: none; }
}

@media (max-width: 900px) {
  /* the banner is 5.43:1; at phone widths cover crops three quarters of it
     horizontally, so anchor left and keep the staff and foliage rather than
     a featureless patch of sky */
  .phero--banner .phero__art { background-position: var(--art-pos, left center); }
  .chips__grid { grid-template-columns: repeat(2, 1fr); }
  .colsec__in,
  .colsec__in--fig { grid-template-columns: 1fr; }
  .colsec__fig { max-height: 260px; }
  .colsec__col + .colsec__col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: clamp(1.2rem, 3vw, 1.8rem);
  }
  .colsec__col .btn { margin-top: 1.1rem; }
}
@media (max-width: 430px) {
  .chips__grid { grid-template-columns: 1fr; }
}

/* ── Prose ────────────────────────────────────────────────── */

.prose { padding: clamp(2.4rem, 5.5vw, 4.2rem) var(--gut); }
.prose__in {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.4rem);
}
.prose--split .prose__in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.prose__in--narrow { max-width: 62ch; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.prose__text p { margin: 0 0 1.1rem; max-width: 62ch; }
.prose__text p:last-child { margin-bottom: 0; }

.pull--inset {
  margin: 1.8rem 0 0;
  padding: 1.2rem 0 1.2rem 1.5rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(247,241,228,.75), transparent);
}

.prose__fig { margin: 0; }
.prose__fig img {
  width: 100%;
  filter: drop-shadow(0 14px 28px rgba(60, 52, 30, .18));
}
.prose__fig figcaption {
  margin-top: .9rem;
  font-family: var(--display);
  font-style: italic;
  font-size: .98rem;
  color: var(--navy);
  text-align: center;
  line-height: 1.45;
}

/* ── Card grid ────────────────────────────────────────────── */

.cards {
  padding: clamp(2.2rem, 5vw, 3.6rem) var(--gut);
  background: var(--band);
  border-block: 1px solid var(--rule);
}
/* Alternate the ground so consecutive banded sections don't merge into one
   undifferentiated slab. */
.cards--ground,
.letters--ground {
  background: var(--ground);
}
/* the final card grid sits a shade deeper, to close the page rather than
   trail off into the same cream it started in */
.cards:not(.cards--ground) {
  background: linear-gradient(180deg, #f5eee0 0%, #efe7d5 100%);
}
.cards--ground .card,
.letters--ground .lgroup {
  background: var(--band);
}
.cards__in { max-width: var(--shell); margin-inline: auto; }
.cards__head {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem);
  text-align: center;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.cards__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
/* Six cards land as 3+3 rather than a lopsided 4+2. */
@media (min-width: 62rem) {
  .cards__grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex; flex-direction: column;
  padding: clamp(1.2rem, 2.2vw, 1.7rem);
  background: var(--ground);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(60, 52, 30, .07);
}
.card__eyebrow {
  margin: 0 0 .45rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  /* short labels only — wrapping one of them to two lines knocks that card's
     title out of line with the rest of the row */
  white-space: nowrap;
  flex: 0 0 auto;
  color: var(--track, var(--olive));
}
.card h3 {
  font-size: 1.16rem;
  letter-spacing: .03em;
  margin-bottom: .55rem;
}
/* must exclude .card__eyebrow — it is also a <p>, and `.card p` outranks the
   class selector, which made the eyebrow a flex item and stretched it. */
.card p:not(.card__eyebrow) { margin: 0; font-size: .96rem; flex: 1; }
.card__link {
  margin-top: 1rem;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--olive);
  align-self: flex-start;
  border-bottom: 1px solid transparent;
}
.card__link:hover { border-bottom-color: var(--gold); }

/* ── CTA band ─────────────────────────────────────────────── */

.ctaband {
  padding: clamp(2.4rem, 5vw, 3.6rem) var(--gut);
  text-align: center;
}
.ctaband__in { max-width: 54ch; margin-inline: auto; }
.ctaband h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.ctaband p { margin: .9rem 0 1.6rem; }

/* ── Music page ───────────────────────────────────────────── */

/* Two layers, following her mockup: an inset panel in --band holding the
   tracks, sitting on the page's own --ground, with the closing line beneath it
   and the foliage growing up off the page behind and over the panel's foot. */
.music {
  padding: clamp(2.4rem, 5.5vw, 4rem) clamp(.75rem, 3vw, 2.75rem) 0;
  background: var(--ground);
}
.music__panel {
  position: relative;
  /* --band is a warm cream; the panel in her render is a cooler grey paper */
  background: #EFEFE9;
  border: 1px solid var(--rule);
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 3vw, 2.4rem) clamp(3.2rem, 7vw, 5.5rem);
}
.music--foliage {
  position: relative;
  overflow: hidden;
  /* this gap is what sets how far the leaves ride up over the panel:
     overlap = foliage height - (closing line + this) */
  padding-bottom: clamp(1.5rem, 3.2vw, 2.9rem);
}
.music__tail {
  position: relative;
  /* above the foliage: at phone widths the two sprays meet in the middle and
     would otherwise cover this line */
  z-index: 2;
  text-align: center;
  padding-top: clamp(1.1rem, 2.4vw, 1.8rem);
}
.music__rule {
  width: min(46rem, 70%);
  margin: 0 auto clamp(.9rem, 2vw, 1.4rem);
  border: 0;
  border-top: 1px solid var(--gold);
}
.music__tail p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, .94rem + .3vw, 1.18rem);
  color: var(--navy);
}
.music__fol {
  position: absolute;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
}
.music__fol--l {
  left: 0;
  width: clamp(280px, 40vw, 600px);
  aspect-ratio: 900 / 309;
  background-image: url("/img/music-foliage-left.webp");
}
.music__fol--r {
  right: 0;
  width: clamp(250px, 36vw, 540px);
  aspect-ratio: 900 / 336;
  background-image: url("/img/music-foliage-right.webp");
}
.music__in { position: relative; max-width: var(--shell); margin-inline: auto; }
/* Her staff-and-notes flourish. The source is flat ink on paper with no alpha;
   rather than lean on mix-blend-mode, the export derives a real alpha channel
   from the ink density, so the artwork sits correctly on any ground. */
.music__notes {
  position: absolute;
  top: clamp(-.9rem, -.8vw, -.2rem);
  right: clamp(-.9rem, -2.2vw, -.2rem);
  width: clamp(120px, 17vw, 268px);
  aspect-ratio: 520 / 376;
  background: url("/img/music-notes.webp") center / contain no-repeat;
  pointer-events: none;
}
.music__head {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem);
  text-align: center;
}
.music__head em { font-style: italic; font-weight: 400; }
.music__deck {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--navy);
  margin: .7rem 0 clamp(1.6rem, 3.5vw, 2.6rem);
}
.music__cols {
  display: grid;
  /* measured off her render: Songs takes ~47% of the inner width, Rhapsodies
     ~35%, the pull quote ~15% — auto-fit was splitting them evenly instead */
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .44fr);
  gap: clamp(1.6rem, 3.4vw, 2.6rem);
  align-items: start;
}
.music__group h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 1rem;
}
.tracks-list { list-style: none; margin: 0; padding: 0; }

.trk {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "play title" "play controls";
  align-items: center;
  column-gap: .85rem;
  row-gap: .25rem;
  padding: .65rem 0;
}
.trk + .trk { border-top: 1px solid rgba(0, 19, 62, .08); }

.trk__play {
  grid-area: play;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.trk__play:hover { background: #0a2a63; transform: scale(1.06); }
.trk__play:active { transform: scale(.97); }
.trk.is-playing .trk__play { background: var(--purple); }

/* Icon swap lives here, not in JS: SVG elements don't implement the `hidden`
   property, so setting it from script silently did nothing and both the
   triangle and the bars painted on top of each other. */
.trk__ico-pause { display: none; }
.trk.is-playing .trk__ico-play { display: none; }
.trk.is-playing .trk__ico-pause { display: block; }
.trk.is-error .trk__play { background: #8f2f2f; }

.trk__title {
  grid-area: title;
  font-family: var(--display);
  font-size: 1.06rem;
  color: var(--navy);
  line-height: 1.3;
}

.trk__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.trk__seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 1rem;
  margin: 0;
  cursor: pointer;
}
.trk__seek:disabled { cursor: default; opacity: .55; }
.trk__seek::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px;
  background: rgba(0, 19, 62, .16);
}
.trk__seek::-moz-range-track {
  height: 3px; border-radius: 2px;
  background: rgba(0, 19, 62, .16);
}
.trk__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--navy);
  border: 0;
}
.trk__seek::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--navy);
  border: 0;
}
.trk__seek:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.trk__time {
  font-size: .78rem;
  color: #5d6678;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.music__quote { align-self: center; }

/* Three fixed columns need the width; below this they collide — the quote was
   landing on top of the Rhapsodies rows. Stack, and let each track have a row
   to itself. */
@media (max-width: 900px) {
  .music__cols { grid-template-columns: 1fr; }
  /* the heading wraps to fill the narrow panel and runs under the flourish */
  .music__notes { width: clamp(84px, 14vw, 120px); }
  .music__quote { align-self: start; }
  /* more room under the closing line so the leaves do not run through it */
  .music--foliage { padding-bottom: clamp(3.5rem, 9vw, 5rem); }
}
.music__note {
  margin: clamp(1.6rem, 3.5vw, 2.4rem) 0 0;
  text-align: center;
  font-size: .86rem;
  font-style: italic;
  color: #5d6678;
}

/* ── Contact ──────────────────────────────────────────────── */

.contact__cta { margin: 1.8rem 0 0; }
.contact__cta .btn { text-transform: none; letter-spacing: .04em; font-size: .95rem; }
.contact__after { margin: 1.4rem 0 0; font-size: .88rem; color: #5d6678; font-style: italic; }

@media (max-width: 820px) {
  .phero__in { grid-template-columns: 1fr; }
  .phero__quote { justify-self: start; }
  .prose--split .prose__in { grid-template-columns: 1fr; }
  .prose__fig { max-width: 22rem; margin-inline: auto; }
}

/* ── Contact form ─────────────────────────────────────────── */

.formsec { padding: clamp(2.4rem, 5.5vw, 4.2rem) var(--gut); }
.formsec__in {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.formsec__pitch h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.formsec__pitch p { margin: 0 0 1.1rem; max-width: 46ch; }
.formsec__points {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: .6rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--navy);
}
.formsec__points li::before { content: "— "; color: var(--gold); font-style: normal; }
.formsec__alt {
  margin: 1.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  font-size: .92rem;
}

.cform {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--band);
  border: 1px solid var(--rule);
  padding: clamp(1.3rem, 3vw, 2.1rem);
}
.cform[hidden] { display: none; }

.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cform__field { display: flex; flex-direction: column; gap: .42rem; }
.cform__field label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--navy);
}
.cform__opt { text-transform: none; letter-spacing: .02em; color: #5e677a; }

.cform input,
.cform select,
.cform textarea {
  font-family: var(--text);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid rgba(0, 19, 62, .22);
  border-radius: 0;
  padding: .7rem .8rem;
  width: 100%;
}
.cform textarea { resize: vertical; }
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}
.cform ::placeholder { color: #8d95a6; }

/* Browsers force a pale autofill background; paint over it with an inset shadow. */
.cform input:-webkit-autofill,
.cform input:-webkit-autofill:hover,
.cform input:-webkit-autofill:focus,
.cform textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--ground) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999999s ease-in-out 0s;
}

.cform__privacy {
  margin: .3rem 0 0;
  font-size: .86rem;
  line-height: 1.55;
  color: #454e60;
  padding: .8rem .9rem;
  background: rgba(235, 176, 92, .12);
  border-left: 2px solid var(--gold);
}

.cform__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cform__submit { align-self: flex-start; margin: .4rem 0 0; }

.cform__status { display: none; margin: 0; font-size: .9rem; }
.cform__status.is-visible { display: block; }
.cform__status.is-error {
  color: #8f2f2f;
  border: 1px solid #c98787;
  background: #f9eded;
  padding: .8rem .9rem;
}

.cform-sent {
  display: none;
  background: var(--band);
  border: 1px solid var(--rule);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  outline: none;
}
.cform-sent.is-shown { display: block; animation: sent-in .45s ease both; }
.cform-sent h3 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); }
.cform-sent p { margin: .9rem 0 0; }

@keyframes sent-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .formsec__in { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cform-sent.is-shown { animation: none; }
}


/* ── Pillar band ──────────────────────────────────────────────
   Lifted out of the hero: the real hero artwork runs its cell-globe out to 94%
   of the frame, leaving no quiet column for this list to sit in. On its own
   cream band it reads, and it gives the eye a rest before the three tracks. */

.pillarband {
  padding: clamp(1.5rem, 3.2vw, 2.4rem) var(--gut);
  background: var(--band);
  border-block: 1px solid var(--rule);
}
.pillarband__in {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}
.pillars--band {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.6rem;
  line-height: 1.5;
}
.pillars--band li { white-space: nowrap; }
.pillars--band li:not(:last-child)::after {
  content: "·";
  color: var(--gold);
  margin-left: 1.6rem;
  font-style: normal;
}
.pillarband .pull { text-align: right; }

@media (max-width: 760px) {
  .pillarband__in { grid-template-columns: 1fr; }
  .pillarband .pull { text-align: left; }
}

/* ── LENS & MAPS ──────────────────────────────────────────────
   Her mnemonic framework from the book. Two panels, each a word
   spelled down the letters with what each one stands for. */

.letters {
  position: relative;
  overflow: hidden;
  padding: clamp(2.8rem, 6vw, 4.6rem) var(--gut);
  /* a sage-tinted ground, deeper than the ordinary band, so her framework reads
     as a feature panel rather than one more pale strip */
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(143, 160, 106, .18), transparent 62%),
    radial-gradient(80% 70% at 92% 100%, rgba(143, 160, 106, .14), transparent 60%),
    linear-gradient(180deg, #ece6d2 0%, #e6dfc9 100%);
  border-block: 1px solid rgba(0, 19, 62, .12);
}
/* an olive sprig in the corner, echoing the hero */
.letters::after {
  content: "";
  position: absolute;
  top: -12%;
  right: -3%;
  width: clamp(140px, 18vw, 270px);
  aspect-ratio: 384 / 222;
  background: url("/img/olive-b.svg") right top / contain no-repeat;
  opacity: .28;
  pointer-events: none;
}
.letters__in { max-width: var(--shell); margin-inline: auto; }
.letters__head {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem);
  text-align: center;
}
.letters__deck {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, .95rem + .3vw, 1.14rem);
  color: var(--navy);
  margin: .7rem auto clamp(1.6rem, 3.5vw, 2.6rem);
  max-width: 52ch;
}
.letters__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
}
.lgroup {
  position: relative;
  background: #fdfaf2;
  border: 1px solid rgba(0, 19, 62, .10);
  box-shadow: 0 4px 18px rgba(60, 52, 30, .10);
  padding: clamp(1.3rem, 2.6vw, 2rem);
}
.lgroup__word {
  margin: 0;
  display: flex;
  gap: .6rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  color: var(--navy);
  line-height: 1;
}
.lgroup__word span { display: block; }
.lgroup__sub {
  margin: .5rem 0 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}
.lgroup__list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem 1rem;
  align-items: baseline;
}
.lgroup__list dt {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--olive);
  line-height: 1;
}
.lgroup__list dd { margin: 0; font-size: .98rem; }

/* ── Footer with real practice details ────────────────────── */

/* Footer follows Lauren's mockup: one row of columns divided by hairlines,
   with a sprig of her own olive artwork rising out of each end of the band. */
.foot {
  position: relative;
  overflow: hidden;
  background: var(--band);
  border-top: 1px solid var(--rule);
  padding: clamp(1.1rem, 2.4vw, 1.75rem) var(--gut) clamp(.75rem, 1.6vw, 1.05rem);
}
.foot__sprig {
  position: absolute;
  bottom: 4%;
  width: clamp(76px, 7.6vw, 112px);
  aspect-ratio: 300 / 286;
  background: url("/img/foot-sprig.webp") left bottom / contain no-repeat;
  opacity: .9;
  pointer-events: none;
}
.foot__sprig--l { left: clamp(.3rem, 1.6vw, 1.9rem); }
.foot__sprig--r { right: clamp(.3rem, 1.6vw, 1.9rem); transform: scaleX(-1); }

.foot__in {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  align-items: center;
}
/* Hairline dividers rather than gaps — the columns are already spread by
   space-between, so a gap on top of the padding would double the gutter. */
.foot__in > * { padding-inline: clamp(.7rem, 2.2vw, 1.9rem); }
.foot__in > :first-child { padding-left: 0; }
.foot__in > :last-child { padding-right: 0; }
.foot__in > * + * { border-left: 1px solid var(--rule); }

.foot__id { display: flex; flex-direction: column; gap: .1rem; }
/* her name and title never break: "PhD" alone on a line was the first thing
   Lauren asked to have fixed in the footer */
.foot__name, .foot__creds { white-space: nowrap; }
.foot__name {
  font-family: var(--display);
  font-size: clamp(1.02rem, .92rem + .48vw, 1.28rem);
  color: var(--navy);
  margin: 0;
  line-height: 1.22;
}
.foot__creds { margin: 0; font-size: clamp(.82rem, .78rem + .18vw, .93rem); color: var(--navy); }
.foot__npi { margin: 0; font-size: .8rem; color: #4f586a; font-variant-numeric: tabular-nums; }

.foot__item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: clamp(.85rem, .81rem + .18vw, .95rem);
  color: var(--navy);
  white-space: nowrap;
}
.foot__ico { width: 1.15rem; height: 1.15rem; flex: none; fill: var(--navy); }
.foot__item a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot__item a:hover { border-bottom-color: var(--gold); }
.foot__secure {
  display: block;
  font-size: .78rem;
  font-style: italic;
  color: #4f586a;
}

/* No hard <br> in the tagline: the footer's copy has to match the string in
   the content or the editor cannot find it on the page. Where it wraps (on a
   phone) it wraps naturally. */
.foot__tag {
  margin: 0;
  text-wrap: pretty; /* never a lone word on the last line */
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(.86rem, .8rem + .24vw, 1rem);
  color: var(--navy);
  text-align: right;
  line-height: 1.42;
}

.foot__legal {
  max-width: var(--shell);
  margin: clamp(.8rem, 1.8vw, 1.2rem) auto 0;
  padding-top: .7rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: .76rem;
  color: #5d6678;
}

/* The sprigs sit in the side margin; without one wide enough they land on
   the NPI line and the tagline. */
@media (max-width: 1400px) { .foot__sprig { display: none; } }

/* As a fifth column the tagline got a sliver of width and broke a word or two
   per line, wherever the measure happened to fall. On its own centred row it
   fits on one line at every desktop width. */
@media (min-width: 901px) {
  .foot__in { grid-auto-flow: row; grid-template-columns: repeat(4, auto); row-gap: .9rem; }
  .foot__in > .foot__tag {
    grid-column: 1 / -1;
    max-width: none;
    justify-self: center;
    text-align: center;
    border-left: 0;
    padding-inline: 0;
  }
  .foot__in > .foot__item:nth-last-child(2) { padding-right: 0; }
}

/* The five footer columns need ~900px to sit on one line; below that they
   stack into a centred column and the sprigs would only crowd them. */
@media (max-width: 900px) {
  .foot__in {
    grid-auto-flow: row;
    justify-content: center;
    justify-items: center;
    gap: clamp(.8rem, 2.5vw, 1.2rem);
    text-align: center;
  }
  .foot__in > * { padding-inline: 0; }
  .foot__in > * + * { border-left: 0; }
  .foot__id { align-items: center; }
  .foot__tag { text-align: center; }
  .foot__sprig { display: none; }
}

/* ── Painting gallery ─────────────────────────────────────────
   Plates vary a lot in aspect ratio, so a masonry column flow reads better
   than a grid that would either crop them or leave ragged gaps. */

.gallery { padding: clamp(2.4rem, 5.5vw, 4rem) var(--gut); }
.gallery__in { max-width: var(--shell); margin-inline: auto; }
.gallery__head {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem);
  text-align: center;
}
.gallery__deck {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, .95rem + .3vw, 1.14rem);
  color: var(--navy);
  margin: .7rem auto clamp(1.6rem, 3.5vw, 2.4rem);
  max-width: 46ch;
}

.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 4 14rem;
  column-gap: clamp(.8rem, 2vw, 1.4rem);
}
.plate {
  break-inside: avoid;
  margin: 0 0 clamp(.8rem, 2vw, 1.4rem);
}
.plate figure { margin: 0; }
.plate__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 0;
}
.plate__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.plate img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--band);
  border: 1px solid var(--rule);
  box-shadow: 0 6px 16px rgba(60, 52, 30, .12);
  transition: transform .22s ease, box-shadow .22s ease;
}
.plate__btn:hover img,
.plate__btn:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(60, 52, 30, .22);
}
.plate figcaption {
  margin-top: .55rem;
  text-align: center;
  line-height: 1.35;
}
.plate__title {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: .95rem;
  color: var(--navy);
}
.plate__medium {
  display: block;
  margin-top: .18rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: #5e677a;
}
.gallery__note {
  margin: clamp(1.6rem, 3.5vw, 2.4rem) 0 0;
  text-align: center;
  font-size: .86rem;
  color: #5d6678;
}


/* ── Lightbox ─────────────────────────────────────────────────
   Native <dialog>: focus trapping, Escape, and an inert backdrop come free.
   The plates are small (largest 755x566), so the image is capped at its own
   natural size — upscaling a pastel past that just looks soft. */

.lbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lbox::backdrop {
  background: rgba(22, 20, 14, .82);
  backdrop-filter: blur(3px);
}
.lbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.4rem, 2vw, 1.4rem);
  padding: clamp(.8rem, 3vw, 2rem);
}

.lbox__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}
.lbox__img {
  /* Width and height are set by the script, which is the only place that knows
     the picture's real shape. A width here with max-height clamping it holds
     the width and squashes the height — every portrait painting came out
     landscape. These are the backstop if the script has not run. */
  max-width: 92vw;
  max-height: 82vh;
  background: var(--ground);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.lbox__cap {
  text-align: center;
  color: #f4efe4;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.lbox__title {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, .95rem + .4vw, 1.25rem);
}
.lbox__medium { font-size: .8rem; color: #c3bcae; letter-spacing: .04em; }
.lbox__count  { font-size: .74rem; color: #bdb5a6; letter-spacing: .12em; margin-top: .2rem; }

.lbox__close,
.lbox__nav {
  border: 0;
  background: rgba(255,255,255,.10);
  color: #f4efe4;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s;
  font-family: var(--display);
  line-height: 1;
}
.lbox__close:hover,
.lbox__nav:hover { background: rgba(255,255,255,.22); }
.lbox__close:focus-visible,
.lbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lbox__nav {
  width: clamp(2.4rem, 6vw, 3.2rem);
  height: clamp(2.4rem, 6vw, 3.2rem);
  border-radius: 50%;
  font-size: 1.8rem;
  padding-bottom: .18em;
}
.lbox__close {
  position: absolute;
  top: clamp(.6rem, 2vw, 1.2rem);
  right: clamp(.6rem, 2vw, 1.2rem);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 1.6rem;
  padding-bottom: .1em;
}

@media (max-width: 640px) {
  .lbox[open] { grid-template-columns: 1fr; grid-template-areas: "fig"; }
  .lbox__fig { grid-area: fig; }
  .lbox__nav { position: absolute; bottom: clamp(.8rem, 4vw, 1.6rem); }
  .lbox__prev { left: 1rem; }
  .lbox__next { right: 1rem; }
  .lbox__img { max-height: 62vh; }
}

@media (prefers-reduced-motion: reduce) {
  .plate img { transition: none; }
  .plate__btn:hover img,
  .plate__btn:focus-visible img { transform: none; }
}

/* ── 3D book ──────────────────────────────────────────────────
   Built from her print wrap: the crop marks give a 2550x3300 cover
   (0.7727) and a 210px spine, i.e. 8.24% of the cover width. Those two
   numbers drive the whole geometry below. */

.bookhero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) var(--gut) clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
  /* A lamplit alcove rather than flat cream: warm gold falling from upper right,
     umber mid-ground, near-black at the corners so the book is the brightest
     thing on the page. */
  background:
    radial-gradient(110% 80% at 68% 8%,  rgba(255, 232, 182, .40), transparent 58%),
    radial-gradient(70%  60% at 68% 42%, rgba(196, 150, 84, .38),  transparent 74%),
    linear-gradient(180deg, #574430 0%, #45341f 52%, #3a2b1a 100%);
  color: #f3ead8;
}
/* environmental shadow: soft dark masses at the wings, as if the light is
   being blocked by something just outside the frame */
.bookhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 120% at -6% 30%,  rgba(28, 18, 8, .46), transparent 70%),
    radial-gradient(38% 100% at 104% 76%, rgba(28, 18, 8, .40), transparent 68%),
    radial-gradient(60% 44% at 30% 112%,  rgba(28, 18, 8, .34), transparent 72%);
  pointer-events: none;
}

/* vignette, drawn over the gradients but under the content */
.bookhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(82% 74% at 60% 45%, transparent 46%, rgba(26, 17, 7, .34) 100%);
  pointer-events: none;
}

/* Olive boughs arching in from the corners, following her comps: a woody stem
   with broad soft leaves in a muted sage range, not the saturated ferns that
   preceded them. */
.bookhero__boughs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bough {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
}

/* top-left, arcing down and right across the corner */
.bough--a {
  top: -4%;
  left: -2%;
  width: clamp(240px, 30vw, 450px);
  height: 34%;
  background-image: url("/img/olive-a.svg");
  background-position: left top;
  /* the tilt is baked into the SVG, so CSS only has to place it */
  opacity: .6;
}
/* top-right, mirrored */
.bough--b {
  top: -3%;
  right: -2%;
  width: clamp(175px, 22vw, 330px);
  height: 44%;
  background-image: url("/img/olive-b.svg");
  background-position: right top;
  opacity: .52;
}


.bookhero__in {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.bookhero__text h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  color: #fdf6e7;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.bookhero__text .deck { color: #d8cbb2; }
.bookhero__text .pull { margin-top: 1.6rem; }
.bookhero__text .pull p { color: #f2e7d2; }
.bookhero__text .pull cite { color: #b3a68d; }
.bookhero__cta { margin: 2rem 0 0; }
/* the CTA is another object on the lit stage, not a flat slab pasted over it:
   gilt face, a lit top edge, a seated base and a warm halo */
.bookhero__cta .btn {
  position: relative;
  background: linear-gradient(180deg, #fbf0d4 0%, #f0dcae 46%, #dfc188 100%);
  color: #32240f;
  border: 1px solid rgba(255, 248, 226, .6);
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: .17em;
  padding: .85rem 1.9rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -1px 0 rgba(140, 104, 46, .28),
    0 2px 0 rgba(96, 70, 30, .55),
    0 16px 34px rgba(0, 0, 0, .42),
    0 0 40px rgba(255, 206, 128, .20);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.bookhero__cta .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.42) 46%, transparent 62%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.bookhero__cta .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(140, 104, 46, .28),
    0 4px 0 rgba(96, 70, 30, .55),
    0 22px 44px rgba(0, 0, 0, .48),
    0 0 62px rgba(255, 206, 128, .34);
}
.bookhero__cta .btn:hover::after { opacity: 1; }
.bookhero__cta .btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(120, 88, 40, .35),
    0 1px 0 rgba(96, 70, 30, .5),
    0 8px 18px rgba(0, 0, 0, .4);
}
@media (prefers-reduced-motion: reduce) {
  .bookhero__cta .btn { transition: none; }
  .bookhero__cta .btn:hover { transform: none; }
}

.bookstage {
  --cover-w: clamp(15.5rem, 38vw, 26rem);
  --cover-h: calc(var(--cover-w) / 0.7727);
  --depth:   calc(var(--cover-w) * 0.0824);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  perspective: 1700px;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 5vw, 3.5rem);
}

/* the beam: a spotlight cone falling from above and slightly off-axis */
.bookstage__beam {
  position: absolute;
  left: 50%;
  top: -38%;
  width: 190%;
  height: 175%;
  transform: translateX(-50%) rotate(6deg);
  pointer-events: none;
  z-index: 0;
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 0 43.5%,
    rgba(255, 231, 178, .13) 46%,
    rgba(255, 236, 192, .20) 50%,
    rgba(255, 231, 178, .13) 54%,
    transparent 56.5% 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 4%, rgba(0,0,0,.55) 58%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 4%, rgba(0,0,0,.55) 58%, transparent 92%);
  filter: blur(6px);
}

/* the book's own radiance — it is the source, not just the subject */
.bookstage__glow {
  position: absolute;
  left: 50%;
  top: 45%;
  width: calc(var(--cover-w) * 2.2);
  height: calc(var(--cover-w) * 2.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle,
    rgba(255, 238, 198, .46) 0%,
    rgba(255, 222, 160, .26) 26%,
    rgba(252, 205, 128, .10) 46%,
    transparent 68%);
  filter: blur(10px);
  animation: bookbreathe 7s ease-in-out infinite;
}
@keyframes bookbreathe {
  0%, 100% { opacity: .84; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

.book3d {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 0;
  cursor: grab;
  /* horizontal drags are ours; vertical still scrolls the page */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  width: var(--cover-w);
  height: var(--cover-h);
  transform-style: preserve-3d;
  border-radius: 2px;
}
.book3d.is-grabbing { cursor: grabbing; }
.book3d:focus-visible { outline: 2px solid var(--blue); outline-offset: 12px; }
.book3d img { pointer-events: none; -webkit-user-drag: none; }

.book3d__body {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 18deg));
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.book3d.is-live .book3d__body { transition: transform .09s linear; }

.book3d__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
}
.book3d__face img { width: 100%; height: 100%; object-fit: cover; display: block; }

.book3d__front  { transform: translateZ(calc(var(--depth) / 2)); box-shadow: 0 0 0 1px rgba(0,0,0,.28), 0 26px 70px rgba(0,0,0,.55); }
.book3d__back   { transform: rotateY(180deg) translateZ(calc(var(--depth) / 2)); box-shadow: 0 0 0 1px rgba(0,0,0,.28), 0 26px 70px rgba(0,0,0,.55); }

.book3d__spine {
  width: var(--depth);
  left: 0;
  transform-origin: left center;
  transform: rotateY(-90deg) translateX(calc(var(--depth) / -2));
}

/* fore-edge and head/tail: the paper block, drawn rather than photographed */
.book3d__edge,
.book3d__top,
.book3d__bottom {
  background:
    repeating-linear-gradient(to right,
      #efe7d6 0 1px, #e2d8c2 1px 2px, #f6f0e2 2px 3px);
  box-shadow: inset 0 0 10px rgba(120, 104, 74, .35);
}
.book3d__edge {
  width: var(--depth);
  left: auto; right: 0;
  transform-origin: right center;
  transform: rotateY(90deg) translateX(calc(var(--depth) / 2));
}
.book3d__top,
.book3d__bottom {
  height: var(--depth);
  inset: 0 0 auto 0;
  background-image: repeating-linear-gradient(to right,
    #efe7d6 0 1px, #e2d8c2 1px 2px, #f6f0e2 2px 3px);
}
.book3d__top    { transform-origin: top center;    transform: rotateX(90deg)  translateY(calc(var(--depth) / -2)); }
.book3d__bottom { top: auto; bottom: 0; transform-origin: bottom center; transform: rotateX(-90deg) translateY(calc(var(--depth) / 2)); }

/* cast shadow on the floor: offset away from the light, soft and wide */
.bookstage::after {
  content: "";
  display: block;
  order: 1;
  width: calc(var(--cover-w) * 1.15);
  height: calc(var(--cover-w) * .20);
  margin: calc(var(--cover-w) * -.10) 0 0 calc(var(--cover-w) * -.10);
  border-radius: 50%;
  background: radial-gradient(ellipse at 42% 50%,
    rgba(38, 24, 10, .52) 0%, rgba(38, 24, 10, .26) 42%, transparent 72%);
  filter: blur(9px);
  pointer-events: none;
}
.bookstage__hint {
  order: 2;
  position: relative;
  margin: 0;
  font-size: .78rem;
  color: #c7b89c;
  letter-spacing: .04em;
  text-align: center;
}

@media (max-width: 900px) {
  .bookhero {
    padding-top: clamp(2.4rem, 7vw, 3.5rem);
    padding-bottom: clamp(3rem, 9vw, 4.5rem);
    /* light falls from straight above when the book sits under the text */
    background:
      radial-gradient(120% 60% at 50% -6%,  rgba(255, 232, 182, .40), transparent 60%),
      radial-gradient(90%  50% at 50% 62%,  rgba(196, 150, 84, .38),  transparent 76%),
      linear-gradient(180deg, #574430 0%, #45341f 52%, #3a2b1a 100%);
  }
  .bookhero::before {
    background:
      radial-gradient(60% 40% at -8% 18%,  rgba(28, 18, 8, .42), transparent 72%),
      radial-gradient(60% 40% at 108% 22%, rgba(28, 18, 8, .38), transparent 72%),
      radial-gradient(90% 34% at 50% 108%, rgba(28, 18, 8, .40), transparent 74%);
  }
  .bookhero__in {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .bookhero__text .deck,
  .bookhero__text .pull p { margin-inline: auto; }
  .bookhero__text .pull cite::before { content: "— "; }
  .bookstage {
    justify-self: center;
    padding-inline: clamp(1rem, 6vw, 2.5rem);
  }
  .bookstage__beam { top: -46%; height: 168%; transform: translateX(-50%) rotate(0deg); }
  /* one bough only on narrow screens, or the corner crowds the headline */
  .bough--b { display: none; }
  .bough--a { left: -6%; top: -3%; width: 58vw; opacity: .45; }
}

@media (max-width: 430px) {
  .bookstage { --cover-w: min(17rem, 74vw); }
}

@media (prefers-reduced-motion: reduce) {
  .book3d__body { transition: none; }
  .bookstage__glow { animation: none; opacity: .92; }
  .bookstage__hint::after { content: ""; }
}

/* ── Sticky quote rail ────────────────────────────────────────
   A line from the book holds in the right column while its section
   scrolls past, so long prose has something to sit beside. */

.prose--aside .prose__in {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.prose__aside {
  position: sticky;
  top: clamp(4rem, 12vh, 7rem);
}
.pull--rail {
  padding-top: 1.6rem;
  border-top: 2px solid var(--gold);
}
.pull--rail p {
  font-size: clamp(1.15rem, 1rem + .85vw, 1.7rem);
  line-height: 1.36;
  text-wrap: pretty;
}
.pull--rail cite {
  margin-top: .9rem;
  font-size: .7rem;
  letter-spacing: .17em;
}

@media (max-width: 860px) {
  .prose--aside .prose__in { grid-template-columns: 1fr; }
  .prose__aside {
    position: static;
    order: -1;                 /* lead with the line, then the prose */
    max-width: 34rem;
  }
  .pull--rail p { font-size: clamp(1.05rem, .98rem + .5vw, 1.3rem); }
}

/* ── Mobile navigation ────────────────────────────────────────
   Six items wrapping to three centred rows read as a block of fine print
   rather than navigation. Below the desktop breakpoint they collapse behind
   a labelled button instead. */

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 auto;
    padding: .6rem 1.3rem;
    background: transparent;
    border: 1px solid rgba(0, 19, 62, .28);
    border-radius: 999px;
    color: var(--navy);
    font-family: var(--text);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    cursor: pointer;
    transition: background .18s, border-color .18s;
  }
  .nav__toggle:hover { background: rgba(0, 19, 62, .05); border-color: rgba(0, 19, 62, .45); }
  .nav__toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

  .nav__toggle-bars {
    display: grid;
    gap: 3px;
    width: 15px;
  }
  .nav__toggle-bars i {
    display: block;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .22s, opacity .18s;
  }
  .nav.is-open .nav__toggle-bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .nav.is-open .nav__toggle-bars i:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle-bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

  .nav__list {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-top: .9rem;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .nav.is-open .nav__list { display: flex; }
  .nav__list li { width: 100%; }
  .nav__list a {
    display: block;
    padding: .72rem .5rem;
    border-bottom: 1px solid var(--rule);
    font-size: .88rem;
    letter-spacing: .1em;
  }
  .nav__list li:first-child a { border-top: 1px solid var(--rule); }
  .nav__list a[aria-current="page"] {
    border-bottom-color: var(--rule);
    color: var(--olive);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__toggle, .nav__toggle-bars i { transition: none; }
}

@media (max-width: 700px) {
  .music__notes { display: none; }
}

/* Below ~620px the two foliage sprays meet across the middle of the page, so
   the closing line has to sit clear above them instead of among the leaves.
   Foliage height is width / 2.9, hence the calc: keep the pad taller than the
   leaves at every width in the range. */
@media (max-width: 620px) {
  .music__fol--l { width: clamp(170px, 44vw, 270px); }
  .music__fol--r { width: clamp(155px, 40vw, 245px); }
  .music--foliage { padding-bottom: calc(15vw + 22px); }
}


/* ── Components she can add ───────────────────────────────────────
   A heading on its own, and a single picture. Both sit in the same shell as
   prose so a page built out of parts still lines up down its left edge. */

.titlesec { padding: clamp(1.6rem, 3.5vw, 2.6rem) var(--gut) 0; }
.titlesec__in { max-width: var(--shell); margin-inline: auto; }
.titlesec__in h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  color: var(--navy);
}

.figsec { padding: clamp(1.6rem, 3.5vw, 2.6rem) var(--gut); }
.figsec__in {
  max-width: var(--shell);
  margin-inline: auto;
}
.figsec__in img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.figsec__in figcaption {
  margin: .6rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(.85rem, .8rem + .2vw, .96rem);
  color: #4f586a;
  text-align: center;
}

/* A closing line at the foot of a page — the treatment the music page ends on,
   made standalone so any page can use it. */
.pfoot { padding: clamp(1.6rem, 3.6vw, 2.8rem) var(--gut) clamp(2rem, 4.5vw, 3.4rem); }
.pfoot__in {
  max-width: var(--shell);
  margin-inline: auto;
  text-align: center;
}
.pfoot__rule {
  width: min(46%, 420px);
  margin: 0 auto clamp(1rem, 2.2vw, 1.6rem);
  border: 0;
  border-top: 1px solid var(--gold);
}
.pfoot__in p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, .94rem + .3vw, 1.18rem);
  color: var(--navy);
}
.pfoot__in cite {
  display: block;
  margin: .55rem 0 0;
  font-style: normal;
  font-size: clamp(.68rem, .63rem + .2vw, .76rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4A5466;
}

/* ── Rows ─────────────────────────────────────────────────────────
   A row is one, two or three columns; a column holds blocks. The row owns the
   spacing so the blocks inside it carry none of their own — which is the whole
   reason blocks and sections are separate things. */

.row { padding: clamp(1.4rem, 3vw, 2.2rem) var(--gut); }
.row__in {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--tracks, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}
.row__col { min-width: 0; }
.row__col + .row__col {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
}
.blk + .blk { margin-top: 1rem; }

.blk__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.05rem + .6vw, 1.5rem);
  color: var(--navy);
}
.blk__text {
  margin: 0 0 .8rem;
  font-size: clamp(.92rem, .89rem + .16vw, 1rem);
  line-height: 1.6;
}
.blk__text:last-child { margin-bottom: 0; }
.blk__fig { margin: 0; }
.blk__fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.blk__fig figcaption {
  margin: .5rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: .9rem;
  color: #4f586a;
}
.blk__quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}
.blk__quote p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, .94rem + .3vw, 1.12rem);
  color: var(--navy);
}
.blk__quote cite {
  display: block;
  margin: .45rem 0 0;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4A5466;
}
.blk__btnwrap { margin: 0; }

@media (max-width: 860px) {
  .row__in { grid-template-columns: 1fr; }
  .row__col + .row__col {
    border-left: 0;
    padding-left: 0;
    padding-top: clamp(1.1rem, 3vw, 1.6rem);
    border-top: 1px solid var(--rule);
  }
}

/* A picture component she has added but not yet chosen. Invisible on the site;
   the editor un-hides it and puts a chooser inside. */
.figsec--unset, .blk__fig--unset { display: none; }

/* ── The owner's strip ────────────────────────────────────────────
   Only ever built for someone signed in, by the script in the shell. It sits
   above the masthead rather than inside the menu, so the site below it reads
   exactly as a visitor sees it — which is the whole point of looking at the
   real page instead of the editor. */
.ownerbar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .4rem var(--gut);
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .76rem;
  letter-spacing: .03em;
}
.ownerbar a,
.ownerbar button {
  font: inherit;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 3px;
  padding: .2rem .55rem;
  cursor: pointer;
  text-decoration: none;
}
.ownerbar a:hover,
.ownerbar button:hover { background: rgba(255, 255, 255, .14); }
.ownerbar span { margin-right: auto; }

@media print { .ownerbar { display: none; } }

/* ── Contact details, no form ─────────────────────────────────────
   Her details as a page's content rather than a form to fill in. The values
   come from the site-wide document, so the footer and this cannot drift. */
/* Her contact details.
   A 34rem centred ribbon inside an 1180px shell left the page reading like a
   placeholder: a title band, then three lines adrift in white. The sentence and
   the numbers are two different kinds of thing, so they take two columns - the
   prose keeps the measure it wants, and the details sit in a panel with enough
   weight to hold their side of the page. The panel is the same card the home
   page already uses; nothing new was invented to fix this. */
.details { padding: clamp(2.4rem, 5vw, 4.2rem) var(--gut); }
.details__in {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}
.details__say { max-width: 36rem; }
.details__say h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.3rem);
  line-height: 1.15;
  color: var(--navy);
}
.details__say .rule { margin-inline: 0; }
.details__lead {
  margin: 0 0 .9rem;
  font-size: clamp(.95rem, .9rem + .22vw, 1.06rem);
  line-height: 1.7;
}
.details__lead:last-child { margin-bottom: 0; }
.details__after {
  margin: clamp(1.1rem, 2.5vw, 1.6rem) 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: .98rem;
  color: #4f586a;
}

.details__card {
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  background: var(--ground);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(60, 52, 30, .07);
}
.details__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
}
.details__list li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}
.details__list svg {
  width: 1.15rem; height: 1.15rem;
  margin-top: .3rem;
  fill: var(--navy);
  opacity: .55;
}
.details__body {
  display: block;
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  color: var(--navy);
  /* an address is one word to a browser and will not wrap; without this it
     pushes the panel wider than its column on a narrow screen */
  overflow-wrap: anywhere;
}
.details__label {
  display: block;
  margin-bottom: .1rem;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--olive);
}
/* The site underlines nothing and marks links with a gold rule on hover, the
   way the navigation does. Default underlines made these read as raw markup. */
.details__list a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .05em;
  transition: border-color .15s;
}
.details__list a:hover,
.details__list a:focus-visible { border-bottom-color: var(--gold); }
.details__note {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: .82rem;
  color: #4A5466;
  margin-top: .15rem;
}

@media (max-width: 760px) {
  .details__in { grid-template-columns: 1fr; gap: clamp(1.4rem, 5vw, 2rem); }
  .details__say { max-width: none; }
}

/* ── Readability ──────────────────────────────────────────────
   Cormorant italic at its default 400 is hairline-thin at these sizes. Lauren
   asked for bolder print, so every italic display line gets a heavier cut.
   Kept as one list so it can be tuned in one place. */
.masthead__tag,
.hero__subline,
.pull p,
.pillars,
.track__sub,
.track__note,
.phero__tagline,
.colsec__note,
.prose__fig figcaption,
.music__tail p,
.music__deck,
.formsec__points,
.letters__deck,
.lgroup__sub,
.foot__tag,
.gallery__deck,
.plate__title,
.lbox__title,
.figsec__in figcaption,
.pfoot__in p,
.blk__fig figcaption,
.blk__quote p,
.details__after,
.details__note { font-weight: 600; }
