/* The Barefoot Journey
   Voice: academic, literary, quietly mystical, professional.
   Type: EB Garamond (display), Source Serif 4 (reading text), Hanken Grotesk (small interface labels only).
   Colour: warm ink on paper, antique gold accent.
   Rhythm: one reading measure, one section spacing, one heading scale. */

/* Fonts, hosted with the site (SIL Open Font License) */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations"), url("/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2-variations"), url("/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ink: #3f3b37;          /* headings */
  --text: #55504a;         /* body */
  --muted: #6f685f;        /* captions, dates (WCAG AA on white and paper) */
  --gold: #806a1a;         /* deep enough for white text (5.3:1) */
  --gold-dark: #6f5b16;
  --paper: #ffffff;
  --shade: #f5f2ec;        /* warm paper tint for alternating sections */
  --line: #e6e0d5;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;   /* menu, buttons, labels, meta */
  --hair: rgba(63,59,55,.14);  /* hairline rules */

  --measure: 660px;        /* reading column */
  --wide: 1080px;          /* layouts with images */
  --section: clamp(64px, 8vw, 112px);   /* vertical padding of every section */
  --gutter: max(5vw, 20px);
  --stack: 1em;            /* paragraph spacing */
  /* spacing steps: everything snaps to these */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 19px/1.65 var(--body); font-optical-sizing: auto; font-variant-numeric: oldstyle-nums proportional-nums;
  color: var(--text); background: var(--paper); overflow-x: clip; hanging-punctuation: first; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
/* links: a fine underline in a faded tone that darkens on hover */
a { color: var(--gold-dark); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); transition: text-decoration-color .2s, color .2s; }
a:hover { color: var(--gold-dark); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 var(--stack); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 64px); letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.016em; }
h3 { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.15; }
h4 { font-size: 21px; line-height: 1.2; }
p, li { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; margin: 0 0 var(--stack); }
li { margin-bottom: .35em; }
blockquote { margin: 1.4em 0; padding-left: 1.1em; border-left: 1px solid var(--gold); font-family: var(--serif); font-size: 1.2em; line-height: 1.4; font-style: italic; color: var(--ink); }
hr { border: 0; text-align: center; margin: 2.4em 0; }
hr::after { content: "✦"; color: var(--gold); }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 16px; color: var(--muted); }
/* section labels: small capitals */
.eyebrow, .label { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 var(--s2); line-height: 1.3; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-family: var(--serif); font-style: italic; font-size: clamp(23px, 2.4vw, 28px); color: var(--gold-dark); line-height: 1.3; letter-spacing: -.005em; }
.ornament { text-align: center; color: var(--gold); font-size: 18px; letter-spacing: 0; margin: 0; padding: 4px 0; line-height: 1; }
.more { color: var(--gold-dark); }

/* ---------- sections ---------- */
.band { padding: var(--section) var(--gutter); }
.band > * { max-width: var(--wide); margin-inline: auto; }
.band > img, .band > a > img { width: 100%; }
.shade { background: var(--shade); }
.center { text-align: left; }
.band + .ornament { margin-top: calc(var(--section) * -0.5); }
.ornament + .band { padding-top: calc(var(--section) * 0.5); }

/* Reading column: every block of prose shares one measure, centred */
.prose > * { max-width: var(--measure); margin-inline: auto; }
.prose > .video, .prose > figure { max-width: calc(var(--measure) + 80px); }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose img { margin: 1.6em auto; }
.essay > h1, .essay > .essay-title { margin-bottom: .35em; }
.essay > .ornament { margin-bottom: 1.2em; text-align: left; }
.essay > .lead { margin-bottom: 1em; }
/* dramatic opening paragraph (as on the original site): first paragraph set large in Garamond */
.essay > p:first-child:not(.lead), .essay > h1 + p:not(.lead), .essay > .page-title + p:not(.lead), .essay > .essay-title + p, .essay > .lead + p, .feature-text > .page-title + p,
.opening > h1 + p, .opening > h2:first-child + p, .post > .date + p, .post > .post-cover + p {
  font-family: var(--serif); font-size: clamp(24px, 2.5vw, 31px); line-height: 1.4; letter-spacing: -.008em; color: var(--ink); margin-bottom: 1em;
}

/* ---------- header ----------
   Sticky on every page. Over a banner photo it is transparent with white type; once scrolled
   (and on pages without a banner) it becomes a translucent paper bar with ink type and a hairline. */
:root { --header-h: 72px; }
.site-header { position: sticky; top: 0; z-index: 50; isolation: isolate; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--header-h); padding: 12px var(--gutter); color: #fff; transition: color .35s ease;
  /* subtle scrim at all times so the white menu stays readable over any photo */
  background: linear-gradient(180deg, rgba(20,14,4,.45) 0%, rgba(20,14,4,.14) 70%, rgba(20,14,4,0) 100%); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s ease;
  background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hair); }
.site-header.solid { color: var(--ink); background: none; }
.site-header.solid::before { opacity: 1; }
.site-header.over-hero ~ main > .hero:first-child { margin-top: calc(-1 * var(--header-h)); }
.wordmark { font-family: var(--serif); font-size: 25px; letter-spacing: -.005em; text-decoration: none; color: inherit; white-space: nowrap; }
.wordmark { display: inline-block; transform-origin: left center; transition: transform .35s ease; }
.wordmark:hover, .wordmark:focus-visible { color: inherit; transform: scale(1.04); }
nav ul { list-style: none; margin: 0; padding: 0; }
nav li { margin: 0; }
nav > ul { display: flex; gap: 30px; align-items: center; }
nav a { font: 500 15.5px/1.2 var(--sans); letter-spacing: 0; text-decoration: none; color: inherit; padding: 6px 0;
  border-bottom: 1px solid transparent; transition: border-color .2s; }
nav > ul > li > a:hover { color: inherit; border-bottom-color: currentColor; }
nav a.active { border-bottom-color: currentColor; }
.has-sub { position: relative; }
.sub-toggle { background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; color: inherit; padding: 6px 0;
  font: 500 15.5px/1.2 var(--sans); display: inline-flex; gap: 6px; align-items: center; }
.sub-toggle:hover { border-bottom-color: currentColor; }
.sub-toggle span { font-size: 10px; transition: transform .2s; }
.sub-toggle.active { border-bottom-color: currentColor; }
.has-sub.open .sub-toggle span { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 14px); left: -24px; width: 360px; background: #fff; padding: 8px 0; border: 1px solid var(--hair);
  box-shadow: 0 18px 40px rgba(20,14,4,.12); border-radius: 2px; display: none; }
.sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.has-sub.open .sub { display: block; }
@media (hover: hover) and (min-width: 821px) { .has-sub:hover .sub { display: block; } }
.sub a { display: block; padding: 12px 24px; color: var(--ink); border: 0; }
.sub-name { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.2; letter-spacing: -.005em; }
.sub-note { display: block; font: 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 3px; }
.sub a:hover, .sub a[aria-current] { background: var(--shade); }
.sub a:hover .sub-name, .sub a[aria-current] .sub-name { color: var(--gold-dark); }
.menu-toggle { display: none; }

/* ---------- hero ----------
   Banner photo with a gradient scrim and an optional centred title.
   The photo drifts slower than the page and the title fades as you scroll (see site.js). */
.hero { position: relative; overflow: hidden; min-height: clamp(380px, 70vh, 840px); display: grid; place-items: center; background: #3b3328; isolation: isolate; }
.hero-home { min-height: clamp(440px, 80vh, 860px); }
/* half-height banner (Research) */
.hero-short { min-height: clamp(220px, 35vh, 420px); }
.hero-short .hero-text h1 { font-size: clamp(40px, 5.4vw, 76px); }
/* banner slideshow: photos slowly crossfade */
.hero-slide { opacity: 0; transition: opacity 2.6s ease-in-out; }
.hero-slide.on { opacity: 1; }
.hero-bg { position: absolute; inset: -12% 0 -12% 0; background: center / cover no-repeat; z-index: -2; will-change: transform; }
.hero-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24,18,8,.42) 0%, rgba(24,18,8,.12) 26%, rgba(24,18,8,.18) 55%, rgba(24,18,8,.5) 100%); }
.hero.has-title .hero-scrim { background:
  radial-gradient(ellipse 60% 45% at 50% 58%, rgba(24,18,8,.38), rgba(24,18,8,0) 70%),
  linear-gradient(180deg, rgba(24,18,8,.42) 0%, rgba(24,18,8,.14) 30%, rgba(24,18,8,.22) 60%, rgba(24,18,8,.5) 100%); }
.hero-text { position: relative; text-align: center; color: #fff; padding: var(--header-h) var(--gutter) 0; will-change: opacity, transform; }
.hero-text h1 { color: #fff; font-size: clamp(48px, 7.4vw, 104px); line-height: 1; letter-spacing: -.025em; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-sub { font-family: var(--serif); font-style: italic; letter-spacing: -.005em; font-size: clamp(22px, 2.6vw, 32px); margin: .35em 0 0; color: rgba(255,255,255,.92); }

/* ---------- calls to action ----------
   Most are quiet text links that say where they go, with an arrow that nudges on hover.
   One solid button per screen for the main ask (contact, CV, wedding inquiry). */
.btn { position: relative; display: inline-block; font: 500 16px/1.3 var(--sans); color: var(--gold-dark); padding: 4px 1.4em 4px 0;
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .3em;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); }
.btn:has(.orcid) { display: inline-flex; align-items: center; gap: 8px; }
/* the arrow sits outside the text flow so the underline stops at the words */
.btn::after { content: "→"; position: absolute; right: 0; top: 50%; translate: 0 -54%; transition: transform .25s ease; }
.btn:hover { text-decoration-color: currentColor; }
.btn:hover::after { transform: translateX(4px); }
.btn.solid { background: var(--gold); color: #fff; padding: 13px 44px 13px 22px; border-radius: 2px; text-decoration: none; transition: background .2s; }
.btn.solid:hover { background: var(--gold-dark); color: #fff; }
.btn.solid::after { right: 22px; }

/* grid sections stay within the content width on wide screens */
.intro, .split, .dark-photo, .feature, .research-item, .scholar-intro, .photo-strip {
  padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2)); }

/* ---------- home ---------- */
.qa { max-width: var(--wide); padding-top: var(--s4); border-top: 1px solid var(--hair); }
.qa h2 { font-size: clamp(30px, 3.6vw, 46px); margin: .1em 0; }
.qa h2:last-child { font-style: italic; color: var(--gold-dark); }
.intro, .split, .dark-photo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro > *, .split > *, .dark-photo > * { margin: 0; max-width: none; }
.pullquote { font-family: var(--serif); font-size: clamp(26px, 2.7vw, 34px); line-height: 1.22; letter-spacing: -.01em; color: var(--gold-dark); padding-left: var(--s3); border-left: 1px solid var(--gold); }
.pullquote p { margin: 0 0 .6em; }
.pullquote p:last-child { margin: 0; }
.big { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.022em; }
.dark-photo { background: #2e2a26; color: #f2efe9; position: relative; isolation: isolate; }
.dark-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,22,18,.6) 0%, rgba(25,22,18,.63) 38%, rgba(25,22,18,.72) 60%, rgba(25,22,18,.72) 100%); z-index: -1; }
@media (max-width: 820px) { .dark-photo::before { background: rgba(25,22,18,.7); } }
.dark-photo { overflow: hidden; }
.dp-bg { position: absolute; inset: -16% 0; background: center / cover no-repeat; z-index: -2; will-change: transform; }
.dark-photo p { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.dark-photo h2 { color: #fff; }
.split { padding-bottom: calc(var(--section) * .75); }
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature > * { margin: 0; max-width: none; }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.feature.flip > img { order: -1; }
.feature img:not(.tall) { width: 100%; aspect-ratio: 10 / 9; object-fit: cover; }
.feature img.tall { width: 100%; }
.feature .btn { margin-top: var(--s1); }

.gold { background: var(--gold); color: #fff; }
.gold p { max-width: var(--wide); margin: 0 auto; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.008em; }
.gold h2, .gold a { color: #fff; }
.asl-band .asl-inner { max-width: var(--wide); margin-inline: auto; display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.asl-band .asl-inner .video { margin: 0; box-shadow: 0 1px 0 rgba(255,255,255,.18), 0 14px 34px -18px rgba(0,0,0,.5); }
.asl-band .asl-inner p { margin: 0; text-align: left; max-width: none; }
@media (max-width: 720px) { .asl-band .asl-inner { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.photo-strip > * { margin: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.testimonial { max-width: var(--wide); margin: 0 auto; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); border: 0; padding: 0; }
.testimonial cite { display: block; margin-top: var(--s3); font: 500 12.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--gold-dark); }
.video { position: relative; aspect-ratio: 16 / 9; background: #111; margin: 1.6em auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* About: memoir */
.memoir.chapter > * { max-width: var(--wide); }
.plates.n1:has(figure.small) { max-width: 345px; }
.plates { display: grid; gap: 22px; margin: 0 auto 2.2em; }
.plates.n1 { max-width: 460px; }
.plates.n2 { max-width: 760px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.plates.n3 { max-width: 920px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.plates figure { margin: 0; }
.plates.n2 img, .plates.n3 img { width: 100%; }
@media (min-width: 561px) { .plates.n2 img, .plates.n3 img { aspect-ratio: 4 / 5; object-fit: cover; } }
figcaption { font-family: var(--body); font-style: italic; font-size: 15px; line-height: 1.4; color: var(--muted); text-align: left; margin-top: 10px; }
.memoir .prose > h2 { margin-top: 1.6em; }
.memoir .prose > h2:first-child { margin-top: 0; }

/* Writing: shelf */
.shelf-inner { max-width: 860px; }
.shelf-title { margin-bottom: 1.2em; }
.book-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--hair); }
.book-row:last-child { padding-bottom: 0; }
.book-row img { width: 132px; outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px; }
.book-row h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; letter-spacing: -.015em; margin-bottom: .25em; }
.book-row h3 a { color: var(--ink); text-decoration: none; }
.book-row h3 a:hover { color: var(--gold-dark); }
.book-sub { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--gold-dark); margin-bottom: .7em; }
.book-details { font-size: 18px; }
.book-details p { margin-bottom: .5em; }
.book-row .more { font: 500 15px var(--sans); }

/* ---------- research ---------- */
.scholar-head { border-bottom: 1px solid var(--line); }
.scholar-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.scholar-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.scholar-head h1, .scholar-head .scholar-name { margin-bottom: .15em; }
.scholar-title { font-family: var(--serif); font-size: 23px; color: var(--ink); line-height: 1.35; margin-bottom: .6em; }
.scholar-tags { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-dark); }
.scholar-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: var(--s3) 0 0; }
.scholar-links .btn { display: inline-flex; align-items: center; gap: 8px; }
.orcid { width: 18px; height: 18px; flex: none; }
.scholar-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.scholar-intro > * { margin: 0; max-width: none; }
/* the heading sits above both columns' shared top line, so the projects box hangs from the
   same line as the first paragraph rather than from the heading */
.scholar-intro-head { margin-bottom: .4em !important; }
@media (min-width: 821px) {
  .scholar-intro { row-gap: 0; }
  .scholar-intro-head { grid-column: 1; }
  .scholar-intro > .prose { grid-column: 1; grid-row: 2; }
  .scholar-intro > .projects { grid-column: 2; grid-row: 2; }
}
.scholar-intro .prose > * { max-width: none; }
.projects { background: var(--shade); padding: var(--s3) var(--s3) var(--s2); }
.projects h2 { font: 500 12.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: var(--s2); }
.projects ul { margin: 0; }
.projects li { margin-bottom: .8em; font-size: 16px; line-height: 1.6; }
.pubs > * { max-width: 880px; }
.pubs h3 { margin-top: 1.8em; }
.pub-list { font-size: 16px; line-height: 1.65; padding-left: 1.3em; }
.pub-list li { margin-bottom: 1.15em; padding-left: .3em; }
.pub-list ul { padding-left: 1.1em; }
.pub-list.single { padding-left: 0; }
.pub-files { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; font-size: 14px; }
.chapters { display: grid; gap: 36px; }
.chapter-cite { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; align-items: start; }
.chapter-cite img { width: 110px; outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px; }
.chapter-cite h3 { margin: 0 0 .25em; font-size: 23px; }
.chapter-cite p { font-size: 16px; margin-bottom: .5em; }
.posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.poster { margin: 0; }
.poster img { width: 100%; outline: 1px solid var(--hair); outline-offset: -1px; }
.poster figcaption { text-align: left; font-style: normal; font-family: var(--body); font-size: 16px; color: var(--text); margin-top: 14px; }
.poster strong { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ink); }
.research-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.research-item > * { margin: 0; max-width: none; }
.research-item img { outline: 1px solid var(--hair); outline-offset: -1px; }
.research-item .video { margin: 0; }
.research-item h3 { margin-bottom: .3em; }
.tight { padding-top: 28px; padding-bottom: 28px; }
.media-head { padding-bottom: 12px; }
.download { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); text-decoration: none; color: var(--ink); font-size: 16px; }
.download span { font: 500 14px var(--sans); color: var(--gold-dark); white-space: nowrap; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badges img { height: 44px; width: auto; box-shadow: none; }
.archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.archive figure { margin: 0; }
.archive img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.archive figcaption { text-align: left; font-size: 16px; }
.collaborate p { font-family: var(--body); font-size: 19px; }

/* ---------- blog ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: clamp(40px, 6vw, 88px); align-items: start; }
.blog-layout > * { margin: 0; max-width: none; }
.blog-wrap { max-width: 800px; }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.post-card:first-of-type { padding-top: 0; }
.post-card:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.post-card h2 { font-size: clamp(25px, 2.6vw, 30px); margin-bottom: .15em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold-dark); }
.post-card p { font-size: 17px; }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.date { font: 400 14px/1.4 var(--sans); color: var(--muted); margin-bottom: .9em; }
.blog-side h2 { font-size: 24px; }
.tag-cloud { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud li { margin: 0; }
.tag-cloud a { display: inline-block; padding: 3px 10px; border: 1px solid var(--hair); border-radius: 2px; font: 14px var(--sans); text-decoration: none; color: var(--ink); }
.tag-cloud a:hover { border-color: var(--gold); color: var(--gold-dark); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 32px; font-size: 16px; }

.post > .date { margin-bottom: 2em; }
.post-cover { width: 100%; max-width: calc(var(--measure) + 120px) !important; margin: 0 auto 2.4em !important; }
.post-tags, .share { font-size: 15px; color: var(--muted); }
.post-tags { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.copy-link { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 2.4em; font-family: var(--serif); font-size: 18px; }
.post-nav a { max-width: 48%; text-decoration: none; }

/* ---------- footer ----------
   Left-aligned: a large sign-off with the one solid button, then columns, then a small meta row. */
.site-footer { padding: var(--section) var(--gutter) var(--s4); border-top: 1px solid var(--hair); }
.footer-inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.headshot { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 0 var(--s3); }
.footer-signoff { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.018em; margin: 0 0 var(--s2); }
.footer-note { font-size: 17px; color: var(--muted); margin-bottom: var(--s3); }
.footer-cols { display: grid; grid-template-columns: minmax(min-content, 1.55fr) minmax(0, 1.25fr) minmax(0, .8fr); gap: var(--s3); padding-top: 8px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { font: 400 15px/1.45 var(--sans); color: var(--text); margin-bottom: 10px; }
.footer-cols a { color: var(--ink); }
.footer-cols a[href^="tel"] { white-space: nowrap; }
.footer-cols .label { margin-bottom: var(--s2); }
.footer-meta { max-width: var(--wide); margin: var(--s5) auto 0; padding-top: var(--s3); border-top: 1px solid var(--hair); font: 13px var(--sans); color: var(--muted); }

/* ---------- narrow screens ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; font: 500 15.5px var(--sans); color: inherit; cursor: pointer; }
  .site-header { flex-wrap: wrap; }
  .site-header:has(nav.open) { background-color: #3b3328; }
  nav { display: none; width: 100%; background: #fff; border: 1px solid var(--hair); border-radius: 2px; padding: 8px 18px; }
  nav.open { display: block; }
  nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav > ul > li > a { color: var(--ink); display: block; padding: 12px 0; }
  nav > ul > li > a:hover { color: var(--gold-dark); }
  /* phones: one flat list — the offerings sit alongside the other pages, no bucket, no descriptions */
  .sub-toggle { display: none; }
  .sub, .has-sub .sub { display: block; position: static; box-shadow: none; border: 0; border-radius: 0; width: 100%; padding: 0; background: none; }
  .sub::before { display: none; }
  .sub a { padding: 12px 0; }
  .sub a:hover, .sub a[aria-current] { background: none; }
  .sub-name { font: 500 15.5px/1.2 var(--sans); letter-spacing: 0; }
  .sub a[aria-current] .sub-name { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
  .sub-note { display: none; }

  .has-sub.open .sub { display: block; }
  .intro, .split, .dark-photo, .feature, .feature.flip, .research-item, .scholar-grid, .scholar-intro, .blog-layout, .posters, .archive { grid-template-columns: minmax(0, 1fr); }
  .feature img { order: -1; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .scholar-photo { max-width: 220px; }
  .plates.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .wordmark { font-size: 22px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .photo-strip, .plates.n2, .plates.n3 { grid-template-columns: minmax(0, 1fr); }
  .book-row { grid-template-columns: 92px minmax(0, 1fr); gap: 22px; align-items: start; }
  .book-row img { width: 92px; }
  .chapter-cite { grid-template-columns: 80px minmax(0, 1fr); gap: 18px; }
  .chapter-cite img { width: 80px; }
  .post-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post-card img { order: -1; }
  .post-nav { flex-direction: column; } .post-nav a { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .hero-bg, .hero-text, .dp-bg { transform: none !important; opacity: 1 !important; } .hero-slide:not(.on) { opacity: 0 !important; } }

/* ---------- carousel (Ritual & Meditation) ---------- */
.carousel-band { background: #12100e; }
.carousel { position: relative; max-width: 900px; margin: 0 auto; }
.carousel-track { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: 6px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: grid; place-items: center; height: clamp(320px, 62vh, 620px); overflow: hidden; }
.carousel-slide img { max-height: clamp(320px, 62vh, 620px); width: auto; height: auto; max-width: 100%; object-fit: contain; }
.carousel-slide figcaption { color: #d9d2c4; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-60%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(18,16,14,.55); color: #fff; font: 30px/1 var(--serif); cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.carousel-btn:hover { background: rgba(18,16,14,.85); border-color: #fff; }
.carousel-btn.prev { left: -64px; } .carousel-btn.next { right: -64px; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 22px; }
.carousel-dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; position: relative; }
.carousel-dots button::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.carousel-dots button[aria-current="true"]::after { background: #fff; }
@media (max-width: 1060px) { .carousel-btn.prev { left: 8px; } .carousel-btn.next { right: 8px; } }

/* Home: keep the Q&A close to the intro below it */
.qa-band { padding-bottom: clamp(20px, 3vw, 36px); }
.qa-band + .intro { padding-top: clamp(20px, 3vw, 36px); }

/* Home: title set in a thin box over the photo, as on the original site */
.hero-text .hero-box { display: inline-block; border: 1.5px solid rgba(255,255,255,.9); padding: .55em 1.1em .6em;
  font-size: clamp(30px, 4.6vw, 58px); line-height: 1.02; letter-spacing: .2em; text-transform: uppercase; max-width: 9.5em; text-indent: .2em; }
.hero-text .hero-box .the { display: block; font-size: .4em; letter-spacing: .3em; margin-bottom: .25em; }

.reveal { overflow-x: clip; }
/* ---------- scroll-linked reveal (home offerings) ----------
   Tied directly to scroll position (site.js sets --p from 0 to 1 and --pb for the button):
   photos slide in from partly off the page as you scroll down and back out as you scroll up;
   heading and button start farther from the paragraph and glide in; the button fades in. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal > img { opacity: calc(.15 + .85 * var(--p, 1)); transform: translateX(calc((1 - var(--p, 1)) * 26%)); will-change: transform, opacity; }
  .js .reveal.flip > img { transform: translateX(calc((1 - var(--p, 1)) * -26%)); }
  /* phones: no sideways slide (the photo sits above its text there); it just fades in */
  @media (max-width: 820px) { .js .reveal > img, .js .reveal.flip > img { transform: none; } }
  .js .reveal .feature-text h2 { transform: translateY(calc((1 - var(--p, 1)) * -34px)); }
  .js .reveal .feature-text .btn { transform: translateY(calc((1 - var(--p, 1)) * 34px)); }
}

/* ---------- text fade and CTA pop (scroll-scrubbed; site.js sets --f and --c/--cs) ----------
   Uses the separate opacity/translate/scale properties so it stacks with the other scroll effects. */
@media (prefers-reduced-motion: no-preference) {
  .fade-text { opacity: var(--f, 1); translate: 0 calc((1 - var(--f, 1)) * 14px); }
  .pop-cta { opacity: var(--c, 1); scale: calc(.9 + .1 * var(--cs, 1)); transform-origin: left center; }
  /* Writing: book covers slide in from the left */
  .slide-in { opacity: calc(.1 + .9 * var(--s, 1)); translate: calc((1 - var(--s, 1)) * -70%) 0; }
}

/* banner and section background photos are real <img>s (so they get responsive sizes) filling their layer */
.hero-bg > .bg-img, .dp-bg > .bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; max-width: none; }
