/* Picture-magazine styling: newsprint paper, black ink, heavy gothic headlines over a book serif,
   bold caption lead-ins, thick rules between stories and one red used sparingly for kickers. */
:root {
  --bg: #f4f1ea;          /* paper */
  --bg-2: #e4dfd4;        /* photo placeholder */
  --ink: #141413;
  --body: #2b2925;        /* running text */
  --muted: #6e695f;
  --faint: #d4cec2;       /* hairlines */
  --accent: #c8102e;      /* kicker red */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  --mono: var(--sans);
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(10px, 1.4vw, 20px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --heavy: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.eyebrow {
  font: 700 11px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Headline type: heavy gothic, with an <em> set in the serif italic for contrast. */
.hero__title, .toc__title, .chapter__title, .colophon__big, .page__title, .project__name,
.post-card__title, .post-head__title, .post > h2, .about__item h2, .track h3, .song__pager a {
  font-family: var(--sans); font-weight: 900; letter-spacing: -.035em;
}
.hero__title em, .chapter__title em, .colophon__big em, .page__title em, .post-card__title em, .post-head__title em {
  font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--accent);
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px var(--gutter);
  font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, color .35s ease;
}
/* Over the front-page hero the bar is white on the photo; once anything scrolls under it, it becomes a paper strip. */
body:has(.hero) .topbar:not(.is-scrolled) { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.topbar.is-scrolled {
  background-color: rgba(244, 241, 234, .96);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 2px 0 var(--ink);
  pointer-events: auto;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.is-scrolled { background-color: rgba(244, 241, 234, .97); }
}
.topbar a { pointer-events: auto; text-decoration: none; }
.topbar__name { flex: 1; font: 900 16px/1 var(--sans); letter-spacing: -.01em; }
.topbar__where {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 14px; opacity: 0; transition: opacity .4s; white-space: nowrap;
}
.topbar.is-reading .topbar__where { opacity: 1; }
.topbar__nav { flex: 1; display: flex; justify-content: flex-end; gap: clamp(14px, 2.4vw, 32px); }
.topbar__nav a { opacity: .7; transition: opacity .2s; padding: 6px 0; }
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { opacity: 1; }
.topbar__nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1180px) { .topbar__where { display: none; } }
.topbar__name { white-space: nowrap; }
@media (max-width: 560px) {
  .topbar { font-size: 10px; letter-spacing: .07em; }
  .topbar__name { font-size: 13px; }
  .topbar__nav { gap: 11px; }
}
@media (max-width: 420px) { .topbar__nav a:first-child { display: none; } }
#where-num { color: var(--accent); }
.topbar__progress {
  position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden; background: #000; color: #fff;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); opacity: 0;
  transition: transform 3.2s var(--ease), opacity 1.6s ease;
}
.hero.is-loaded .hero__img { transform: scale(1.02); opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 9%, transparent 20%, transparent 45%, rgba(0,0,0,.72) 100%);
}
.hero__text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 10vh, 120px);
}
.hero__text::before { content: ""; display: block; width: 56px; height: 6px; background: var(--accent); margin-bottom: 18px; }
.hero__title {
  font-size: clamp(52px, 10vw, 168px); line-height: .88; margin: 14px 0 0;
}
.hero__title span { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title span i {
  display: block; font-style: normal;
  transform: translateY(105%); transition: transform 1.3s var(--ease);
}
.hero__title span:nth-child(2) i {
  font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em;
  transition-delay: .12s; padding-left: .6em;
}
.hero.is-loaded .hero__title span i { transform: none; }
.hero .eyebrow { color: rgba(255,255,255,.85); opacity: 0; transition: opacity 1s .6s; }
.hero.is-loaded .eyebrow { opacity: 1; }
.hero__cue {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 10vh, 120px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,.85);
}
.hero__cue i { width: 1px; height: 56px; background: currentColor; transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- intro + contents ---------- */
.intro { padding: clamp(96px, 18vh, 200px) var(--gutter) clamp(64px, 10vh, 120px); }
.intro__text {
  max-width: 30ch; margin: 0 auto;
  font: 400 clamp(26px, 3.4vw, 46px)/1.25 var(--serif);
  text-wrap: pretty;
}
@media (min-width: 900px) { .intro__text { max-width: 36ch; } }

.toc { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 14vh, 160px); }
.toc .eyebrow { padding: 14px 0 18px; border-top: var(--heavy); border-bottom: 1px solid var(--ink); color: var(--ink); }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list a {
  display: grid; grid-template-columns: 5ch 1fr auto; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--faint);
  text-decoration: none; transition: color .3s, padding .4s var(--ease);
}
.toc__num { font: 700 13px/1 var(--sans); color: var(--accent); letter-spacing: .06em; }
.toc__title { font-size: clamp(30px, 4.4vw, 60px); line-height: 1; }
.toc__meta { font: 600 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (hover: hover) {
  .toc__list:hover a { color: var(--muted); }
  .toc__list a:hover { color: var(--ink); padding-left: 14px; }
}
.toc__peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: 260px; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-1.5deg);
  transition: opacity .25s, transform .4s var(--ease);
}
.toc__peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-1.5deg); }
.toc__peek img { width: 100%; height: auto; border: 6px solid #fff; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
@media (max-width: 700px) {
  .toc__list a { grid-template-columns: 4ch 1fr; }
  .toc__meta { grid-column: 2; text-align: left; margin-top: -6px; }
  .toc__peek { display: none; }
}

/* ---------- chapters ---------- */
.chapter { padding-bottom: clamp(80px, 16vh, 200px); }
.chapter__head {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 8vh, 96px);
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
.chapter__head::before { content: ""; grid-column: 1 / -1; border-top: var(--heavy); margin-bottom: clamp(40px, 8vh, 96px); }
.chapter__num {
  font: 700 12px/1 var(--sans); color: var(--accent); letter-spacing: .14em; text-transform: uppercase;
}
.chapter__title {
  font-size: clamp(56px, 10.5vw, 180px); line-height: .86; margin: 0;
}
.chapter__text { max-width: 44ch; color: var(--body); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; margin: 10px 0 0; text-wrap: pretty; }
.chapter__aside .eyebrow { color: var(--ink); }
.chapter__link {
  display: inline-flex; gap: 10px; margin-top: 18px; text-decoration: none;
  font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  border-bottom: 2px solid currentColor; padding-bottom: 6px; transition: gap .3s var(--ease);
}
.chapter__link:hover { gap: 16px; }
@media (min-width: 960px) {
  .chapter__head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 64px; }
  .chapter__head .chapter__num { grid-column: 1 / -1; }
  .chapter__aside { padding-bottom: .9em; }
}

/* ---------- rows ---------- */
.row { max-width: var(--maxw); margin: 0 auto clamp(var(--gap), 9vh, 120px); padding: 0 var(--gutter); }
.row--full { max-width: none; padding: 0; }
.row--pair, .row--trio { display: flex; gap: var(--gap); align-items: flex-start; }
/* never let a photo be taller than the window: width is capped by its aspect ratio (--ar) */
.row--full .shot, .row--wide .shot { width: min(100%, calc(var(--ar) * 90vh)); margin-inline: auto; }
.row--left .shot  { width: min(62%, 860px, calc(var(--ar) * 86vh)); }
.row--right .shot { width: min(62%, 860px, calc(var(--ar) * 86vh)); margin-left: auto; }
.row--pair, .row--trio { max-width: min(var(--maxw), calc(var(--sum) * 84vh + 2 * var(--gutter) + 2 * var(--gap))); }
.row + .row--pair, .row + .row--trio { margin-top: 0; }
@media (max-width: 700px) {
  .row--pair, .row--trio { flex-direction: column; }
  .row--pair .shot, .row--trio .shot { flex: none !important; width: 100%; }
  .row--left .shot, .row--right .shot { width: 88%; }
  .row { margin-bottom: 48px; }
}

.shot { margin: 0; position: relative; cursor: zoom-in; }
.shot__frame { position: relative; overflow: hidden; background: var(--bg-2); }
.shot__frame img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  opacity: 0; transition: opacity .9s ease, transform 1.2s var(--ease);
}
.shot__frame img.is-loaded { opacity: 1; }
@media (hover: hover) { .shot:hover .shot__frame img { transform: scale(1.015); } }
.shot__cap {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 10px; font: 400 12px/1.45 var(--sans); color: var(--muted);
  opacity: 0; transition: opacity .4s;
}
.shot__cap b { font-weight: 700; color: var(--ink); }
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; }
@media (hover: none) { .shot__cap { opacity: .9; } }
.row--full .shot__cap { padding-left: var(--gutter); padding-right: var(--gutter); }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 1.1s ease, transform 1.3s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.row--pair .reveal:nth-child(2), .row--trio .reveal:nth-child(2) { transition-delay: .1s; }
.row--trio .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- colophon ---------- */
.colophon {
  padding: clamp(96px, 16vh, 180px) var(--gutter) 40px;
  max-width: var(--maxw); margin: 0 auto;
}
.colophon::before { content: ""; display: block; border-top: var(--heavy); margin-bottom: clamp(48px, 8vh, 96px); }
.colophon__big { font-size: clamp(44px, 8vw, 128px); line-height: .9; margin: 0 0 clamp(48px, 8vh, 96px); }
.colophon__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.colophon__grid .eyebrow { color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.colophon__grid p { margin: 10px 0 0; color: var(--body); font-size: 16px; }
.colophon__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 96px; padding-top: 18px; border-top: 1px solid var(--faint); font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.colophon__base a { text-decoration: none; }
.colophon__base a:hover { color: var(--accent); }
.colophon__links { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- inner pages (about, projects) ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: clamp(110px, 18vh, 200px) var(--gutter) 0; }
.page__head { padding-bottom: clamp(56px, 10vh, 120px); }
.page__head > .eyebrow { color: var(--accent); }
.page__title {
  font-size: clamp(48px, 8.4vw, 144px); line-height: .9;
  margin: 18px 0 0; max-width: 14ch; text-wrap: balance;
}
.page .reveal { transition-delay: .05s; }
.inline-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness .2s; }
.inline-link:hover { text-decoration-thickness: 2px; }

/* about */
.about { display: grid; gap: clamp(48px, 6vw, 96px); padding-bottom: clamp(96px, 16vh, 180px); }
@media (min-width: 960px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.about__photo { margin: 0; }
.about__photo .shot__frame { aspect-ratio: 4 / 5; }
.about__photo img { opacity: 1; }
.about__photo figcaption { padding-top: 10px; font: 400 12px/1.45 var(--sans); color: var(--muted); }
@media (min-width: 960px) { .about__photo { position: sticky; top: 96px; align-self: start; } }
.about__item { padding: 22px 0 36px; border-top: var(--heavy); }
.about__item:first-child { padding-top: 22px; }
.about__item > .eyebrow { color: var(--accent); }
.about__item h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.02; margin: 10px 0 14px; }
.about__item p { margin: 0 0 12px; color: var(--body); max-width: 54ch; font-size: clamp(17px, 1.25vw, 19px); text-wrap: pretty; }
.kit { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; }
.kit li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--faint); font-size: 16px; }
.kit li span:last-child { font: 600 11px/1.9 var(--sans); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* projects */
.projects { list-style: none; margin: 0; padding: 0; }
.project {
  display: grid; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(48px, 8vh, 96px) 0; border-top: var(--heavy);
}
@media (min-width: 960px) {
  .project { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .project:nth-child(even) .project__media { order: 2; }
}
.project__media {
  display: block; position: relative; border-radius: 8px; overflow: hidden;
  background: var(--bg-2); box-shadow: 0 24px 60px rgba(40, 30, 10, .18), 0 0 0 1px rgba(0,0,0,.08);
  transition: transform .6s var(--ease);
}
.project__media::before {
  content: ""; display: block; height: 26px; background: #e2ddd2;
  background-image: radial-gradient(circle at 14px 13px, #b9b2a4 4px, transparent 5px),
                    radial-gradient(circle at 30px 13px, #b9b2a4 4px, transparent 5px),
                    radial-gradient(circle at 46px 13px, #b9b2a4 4px, transparent 5px);
}
.project__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@media (hover: hover) { .project__media:hover { transform: translateY(-6px); } }
.project__num { font: 700 12px/1 var(--sans); color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.project__name { font-size: clamp(52px, 6.4vw, 104px); line-height: .9; margin: 14px 0 6px; }
.project__tag { font: italic 400 clamp(22px, 2vw, 30px)/1.2 var(--serif); color: var(--muted); margin: 0 0 22px; }
.project__body p { color: var(--body); max-width: 46ch; margin: 0 0 22px; text-wrap: pretty; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.facts li { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); padding: 7px 10px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg); background: var(--ink); padding: 15px 20px;
  transition: background .2s, gap .3s var(--ease);
}
.button:hover { background: var(--accent); gap: 16px; }

/* journal index */
.posts { list-style: none; margin: 0; padding: 0 0 clamp(96px, 16vh, 180px); }
.post-card {
  display: grid; gap: clamp(24px, 4vw, 56px); align-items: end; text-decoration: none;
  padding: clamp(28px, 5vh, 56px) 0 clamp(40px, 6vh, 72px); border-top: var(--heavy);
}
/* Never let a card photo run taller than the window; the text column lines up with the photo's edge (--ar from page.js). */
.post-card { grid-template-columns: min(100%, calc(var(--ar, 1.5) * 78vh)); justify-content: center; }
@media (min-width: 960px) { .post-card { grid-template-columns: min(calc((100% - clamp(24px, 4vw, 56px)) * 7 / 12), calc(var(--ar, 1.5) * 78vh)) minmax(0, 1fr); justify-content: stretch; } }
.post-card figure { margin: 0; overflow: hidden; }
.post-card .shot__frame img { transition: opacity .9s ease, transform 1.2s var(--ease); }
@media (hover: hover) { .post-card:hover .shot__frame img { transform: scale(1.03); } }
.post-card .eyebrow { color: var(--accent); }
.post-card__title { font-size: clamp(44px, 5.6vw, 90px); line-height: .9; margin: 14px 0 14px; }
.post-card__dek { font: italic 400 clamp(20px, 1.8vw, 26px)/1.3 var(--serif); color: var(--body); margin: 0 0 24px; max-width: 30ch; }
.post-card .chapter__link { margin-top: 0; }

/* journal post */
.post-head { max-width: 1000px; margin: 0 auto; padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(40px, 6vh, 72px); text-align: center; }
.post-head > .eyebrow:first-child { color: var(--accent); }
.post-head__title { font-size: clamp(60px, 11vw, 184px); line-height: .86; margin: 22px 0 22px; text-wrap: balance; }
.post-head__dek { font: italic 400 clamp(22px, 2.4vw, 32px)/1.3 var(--serif); color: var(--body); margin: 0 auto; max-width: 30ch; text-wrap: balance; }
.post-head__by { margin-top: 28px; color: var(--ink); }
.post-head__by::before, .post-head__by::after { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1px; background: var(--ink); margin: 0 12px; }
.post-hero { margin: 0 0 clamp(56px, 10vh, 112px); }
/* Never crop the hero: cap its width so the whole photo fits in the window (--ar comes from page.js). */
.post-hero { width: min(100%, calc(var(--ar, 1.5) * 86vh)); margin-inline: auto; }
.post-hero figcaption, .post figcaption {
  padding: 10px var(--gutter) 0; font: 400 13px/1.5 var(--sans); color: var(--muted);
  max-width: 1100px; margin: 0 auto; text-wrap: pretty;
}
.post-hero figcaption b, .post figcaption b { color: var(--ink); font-weight: 800; }
.post { padding: 0 var(--gutter) clamp(80px, 12vh, 140px); }
.post > p, .post > h2, .post > blockquote, .post > ul, .post > .post__note { max-width: 660px; margin-left: auto; margin-right: auto; }
.post > p { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.68; color: var(--body); margin-top: 0; margin-bottom: 1.3em; text-wrap: pretty; }
.post > p a, .post__sources a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post > p a:hover, .post__sources a:hover { text-decoration-thickness: 2px; }
.post__lede::first-letter { font: 900 4.9em/.78 var(--sans); float: left; margin: .05em .1em 0 0; color: var(--accent); }
.post > h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; margin-top: 2.2em; margin-bottom: .6em; padding-top: 18px; border-top: var(--heavy); }
.post > h2 span { display: block; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.post > blockquote {
  margin-top: 2em; margin-bottom: 2em; padding: 0 0 0 28px; border-left: 4px solid var(--accent);
  font: italic 400 clamp(24px, 2.4vw, 34px)/1.3 var(--serif); color: var(--ink);
}
.post > blockquote cite { display: block; margin-top: 12px; font: normal 700 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* A pull figure: one big number or fact, set like a magazine callout. */
.post > .post__stat { max-width: 660px; margin: 2.4em auto; padding: 22px 0; border-top: var(--heavy); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; align-items: baseline; }
.post__stat strong { font: 900 clamp(56px, 7vw, 96px)/.9 var(--sans); letter-spacing: -.04em; color: var(--accent); }
.post__stat span { font: 400 clamp(17px, 1.3vw, 19px)/1.45 var(--serif); color: var(--body); }
.post figure { margin: clamp(40px, 7vh, 80px) auto; }
.post figure figcaption { padding-left: 0; padding-right: 0; }
.post__fig--wide { width: min(1100px, 100%, calc(var(--ar, 1.5) * 84vh)); }
.post__pair { max-width: min(1100px, calc(var(--sum, 2.7) * 80vh)); }
.post__fig--full { width: 100vw; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; }
.post__fig--full figcaption { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.post__pair { display: flex; gap: var(--gap); margin: clamp(40px, 7vh, 80px) auto; align-items: flex-start; }
.post__pair figure { margin: 0; }
@media (max-width: 700px) {
  .post__pair { flex-direction: column; }
  .post__pair figure { flex: none !important; width: 100%; }
}
.post figure .shot__frame { position: relative; overflow: hidden; }
.post-hero .shot__frame, .post figure .shot__frame { width: 100%; }
.post__note { border-top: var(--heavy); padding-top: 22px; margin-top: 3em; }
.post__note .eyebrow { color: var(--ink); }
.post__note p { font-size: 16px; color: var(--body); margin: 8px 0 0; }
.post__sources { margin: 12px 0 0; padding-left: 1.2em; font-size: 15px; color: var(--muted); }
.post__sources li { margin: 6px 0; }
.post__back { display: block; width: max-content; max-width: 660px; margin: 3em auto 0; }

/* songs: thread page */
.track {
  display: grid; gap: clamp(20px, 3vw, 48px); align-items: center;
  max-width: 1100px; margin: clamp(40px, 7vh, 80px) auto;
}
@media (min-width: 900px) {
  .track { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .track:nth-of-type(even) figure { order: 2; }
}
.track figure { margin: 0 !important; }
.track .eyebrow { color: var(--accent); }
.track h3 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.02; margin: 10px 0 16px; }
.track h3 a { text-decoration: none; }
.track h3 a:hover { color: var(--accent); }
.track__text > p:not(.eyebrow):not(.excerpt) { color: var(--body); margin: 0 0 18px; max-width: 46ch; }
.excerpt {
  font: italic 400 clamp(20px, 1.8vw, 25px)/1.4 var(--serif); color: var(--ink);
  border-left: 4px solid var(--accent); padding-left: 18px; margin: 0 0 18px;
}
.track .chapter__link { margin-top: 0; }
.post > .fragment {
  font: italic 400 clamp(19px, 1.6vw, 23px)/1.45 var(--serif); color: var(--body); text-align: center;
  max-width: 600px; margin: 2.2em auto;
}
.fragment span { display: block; margin-top: 10px; font: normal 700 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* songs: song page */
.song__head { padding-bottom: clamp(32px, 6vh, 64px); }
.song__head .eyebrow a { text-decoration: none; color: var(--accent); }
.song__head .page__title { max-width: 16ch; }
.listen { margin-top: 28px; }
.listen .eyebrow { margin-top: 12px; }
.listen .eyebrow a { color: var(--ink); }
.listen iframe { width: 100%; max-width: 720px; height: 166px; border: 0; display: block; }
.song__body { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(56px, 10vh, 112px); }
@media (min-width: 960px) {
  .song__body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .song__photo { position: sticky; top: 96px; }
}
.song__photo { margin: 0; }
.lyrics { font: 400 clamp(20px, 1.7vw, 24px)/1.55 var(--serif); color: var(--ink); }
.stanza { margin: 0 0 1.4em; }
.stanza--chorus { padding-left: 20px; border-left: 4px solid var(--accent); font-style: italic; color: var(--body); }
.song__pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  border-top: var(--heavy); padding: 28px 0 clamp(64px, 10vh, 120px);
}
.song__pager a { text-decoration: none; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; }
.song__pager a:last-child { text-align: right; }
.song__pager a:hover { color: var(--accent); }
.song__pager .eyebrow { display: block; margin-bottom: 8px; }

.site-foot {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 40px; border-top: var(--heavy);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--accent); }

/* ---------- lightbox (stays dark: photos read best on black) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: #0a0a09; color: #f2efe8;
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  opacity: 0; transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb__figure { margin: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px 0 24px; min-width: 0; }
.lb__img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; transition: opacity .25s; }
.lb__img.is-swapping { opacity: 0; }
.lb__cap { width: 100%; display: flex; justify-content: space-between; gap: 24px; padding-top: 14px; font: 400 12px/1.45 var(--sans); color: #9c968b; }
.lb__cap b { color: #f2efe8; font-weight: 700; }
.lightbox button {
  background: none; border: 0; color: #f2efe8; cursor: pointer;
  font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.lb__close { position: absolute; top: 18px; right: var(--gutter); padding: 6px 0; }
.lb__nav { height: 100%; font-size: 22px !important; opacity: .5; transition: opacity .2s; }
.lb__nav:hover { opacity: 1; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lb__nav { display: none; }
  .lb__figure { padding: 56px 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   lenses.lighting
   ===================================================================== */

/* Wordmark: lowercase gothic with the dot drawn as a red lens. The real "." stays in the text
   for copying and screen readers; it is only painted as a disc. */
.wordmark { font-family: var(--sans); font-weight: 900; letter-spacing: -.04em; text-transform: none; white-space: nowrap; }
.wordmark i {
  font-style: normal; display: inline-block; width: .3em; height: .3em; margin: 0 .05em 0 .07em;
  border-radius: 50%; background: var(--accent); color: transparent; overflow: hidden; text-indent: 1em;
  vertical-align: baseline;
}
.topbar__name.wordmark { font-size: 20px; letter-spacing: -.035em; }
.site-foot .wordmark, .colophon__base .wordmark { font-size: 15px; letter-spacing: -.02em; color: var(--ink); }

/* ---------- cover ---------- */
.cover { max-width: var(--maxw); margin: 0 auto; padding: clamp(76px, 12vh, 120px) var(--gutter) 0; }
.mast { border-top: var(--heavy); border-bottom: 1px solid var(--ink); padding: clamp(14px, 2vw, 26px) 0 clamp(12px, 1.6vw, 22px); }
.mast__name { display: block; margin: 0; font-size: min(12.6vw, 196px); line-height: .9; text-align: center; padding-bottom: .04em; }
.mast__line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; border-bottom: var(--heavy); padding: 10px 0; margin-bottom: clamp(28px, 5vh, 56px); }
.mast__line .eyebrow { color: var(--ink); }
.mast__line .eyebrow:nth-child(2) { color: var(--accent); }
@media (max-width: 640px) { .mast__line .eyebrow:nth-child(3) { display: none; } }

.lead { display: block; text-decoration: none; margin-bottom: clamp(56px, 10vh, 120px); }
.lead figure { margin: 0; overflow: hidden; }
.lead .shot__frame, .feature .shot__frame, .also .shot__frame { width: 100%; }
/* Never crop the lead photo: cap its width so the whole frame fits in the window (--ar comes from page.js). */
.lead { width: min(100%, calc(var(--ar, 1.5) * 80vh)); margin-inline: auto; }
.lead .shot__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease, transform 1.4s var(--ease); }
@media (hover: hover) { .lead:hover .shot__frame img { transform: scale(1.02); } }
.lead__text { display: grid; gap: 14px 48px; padding-top: clamp(18px, 3vh, 32px); }
/* Laid out against the lead's own width (it shrinks to fit the photo), not the window. */
.lead { container-type: inline-size; }
@container (min-width: 1100px) { .lead__text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.lead__text .eyebrow { color: var(--accent); grid-column: 1 / -1; }
.lead__title { font: 900 clamp(44px, 8.2cqi, 120px)/.88 var(--sans); letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.lead__title em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--accent); }
.lead__dek { font: italic 400 clamp(20px, 1.9vw, 28px)/1.3 var(--serif); color: var(--body); margin: 0; max-width: 32ch; }
.lead__dek .chapter__link { display: flex; margin-top: 18px; font-style: normal; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: var(--heavy); padding: 12px 0 0; margin-bottom: clamp(20px, 3vh, 32px); }
.section-head h2 { font: 900 clamp(26px, 2.6vw, 38px)/1 var(--sans); letter-spacing: -.03em; margin: 0; }
.section-head a { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--accent); white-space: nowrap; }
.section-head a:hover { color: var(--ink); }

.also { list-style: none; margin: 0 0 clamp(72px, 12vh, 140px); padding: 0; display: grid; gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
@media (min-width: 760px) { .also { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.also a { display: block; text-decoration: none; }
.also figure { margin: 0 0 14px; overflow: hidden; }
.also .shot__frame { aspect-ratio: 4 / 3 !important; }
.also .shot__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease, transform 1.2s var(--ease); }
@media (hover: hover) { .also a:hover .shot__frame img { transform: scale(1.03); } }
.also .eyebrow { color: var(--accent); }
.also h3 { font: 900 clamp(28px, 2.6vw, 40px)/.95 var(--sans); letter-spacing: -.035em; margin: 8px 0 10px; }
.also h3 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); letter-spacing: -.02em; }
.also p:not(.eyebrow) { font: italic 400 18px/1.4 var(--serif); color: var(--body); margin: 0; }

.feature { display: grid; gap: 20px 48px; text-decoration: none; margin-bottom: clamp(72px, 12vh, 140px); }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; } }
.feature figure { margin: 0; overflow: hidden; }
.feature .shot__frame img { width: 100%; transition: opacity .9s ease, transform 1.4s var(--ease); }
@media (hover: hover) { .feature:hover .shot__frame img { transform: scale(1.02); } }
.feature .eyebrow { color: var(--accent); }
.feature__title { font: 900 clamp(40px, 4.6vw, 72px)/.9 var(--sans); letter-spacing: -.04em; margin: 8px 0 14px; }
.feature__title em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); letter-spacing: -.02em; }
.feature p { color: var(--body); margin: 0 0 18px; max-width: 36ch; }

.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: clamp(72px, 12vh, 140px); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.strip a { display: block; aspect-ratio: 1; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease, transform 1s var(--ease); }
.strip img.is-loaded { opacity: 1; }
@media (hover: hover) { .strip a:hover img { transform: scale(1.05); } }

.creed { border-top: var(--heavy); border-bottom: var(--heavy); padding: clamp(40px, 8vh, 88px) 0; margin-bottom: clamp(72px, 12vh, 140px); text-align: center; }
.creed p { font: italic 400 clamp(26px, 3.4vw, 50px)/1.18 var(--serif); margin: 0 auto 22px; max-width: 28ch; text-wrap: balance; }
.creed .chapter__link { justify-content: center; }

/* ---------- contact sheet (the raw feed) ---------- */
.sheet-intro { max-width: 60ch; color: var(--body); font-size: clamp(17px, 1.3vw, 20px); margin: calc(-1 * clamp(24px, 5vh, 64px)) 0 clamp(40px, 7vh, 72px); text-wrap: pretty; }
.sheet-day { border-top: var(--heavy); padding-top: 12px; margin-bottom: clamp(40px, 7vh, 80px); }
.sheet-day__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.sheet-day__head h2 { font: 900 clamp(22px, 2.2vw, 32px)/1 var(--sans); letter-spacing: -.03em; margin: 0; }
.sheet-day__head .eyebrow { align-self: end; }
.frames { display: flex; flex-wrap: wrap; gap: 18px 10px; }
.frames::after { content: ""; flex-grow: 999; }
.frame { margin: 0; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 150px); max-width: calc(var(--ar) * 280px); cursor: zoom-in; }
.frame .shot__frame img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; padding-top: 6px; font: 600 11px/1.3 var(--sans); letter-spacing: .03em; color: var(--muted); }
.frame figcaption b { color: var(--accent); font-weight: 800; }
.frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 560px) { .frame { flex-basis: calc(var(--ar) * 100px); } .frame figcaption span:last-child { display: none; } }
.lb__where { display: block; margin-top: 6px; }
.lb__where a { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- about: the statement ---------- */
.creed-page { max-width: 720px; padding-bottom: clamp(96px, 16vh, 180px); }
.creed-page > p { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; color: var(--body); margin: 0 0 1.1em; text-wrap: pretty; }
.creed-page > p:first-of-type::first-letter { float: left; font: 900 4.4em/.8 var(--sans); color: var(--accent); margin: .07em .08em 0 0; }
.creed-page h2 { font: 900 clamp(28px, 3vw, 40px)/1 var(--sans); letter-spacing: -.03em; border-top: var(--heavy); padding-top: 14px; margin: clamp(48px, 8vh, 80px) 0 16px; }
.creed-page h2 + p, .creed-page h2 ~ p { font-size: 18px; }
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin: 0; }
.masthead dt, .masthead dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--faint); }
.masthead dt { font: 700 11px/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.masthead dd { font-size: 17px; }
/* Small phones: keep Essays (the point of the place) and drop Portfolio from the bar instead. */
.topbar__nav a { white-space: nowrap; }
@media (max-width: 560px) { .topbar__name.wordmark { font-size: 17px; } }
@media (max-width: 420px) {
  .topbar__nav a:first-child { display: inline; }
  .topbar__nav a:nth-child(2) { display: none; }
}

/* newsletter signup (Buttondown): end of each essay and on the home page */
.signup { border-top: var(--heavy); border-bottom: 1px solid var(--ink); padding: clamp(28px, 5vh, 48px) 0; text-align: center; }
.post > .signup { max-width: 660px; margin: 3em auto 0; }
.cover .signup { margin-bottom: clamp(56px, 9vh, 100px); }
.signup > .eyebrow { color: var(--accent); }
.signup__title { font: 900 clamp(32px, 3.6vw, 52px)/1 var(--sans); letter-spacing: -.03em; margin: 12px 0 12px; border: 0; padding: 0; }
.signup__title em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); letter-spacing: -.02em; }
.signup__dek { font: italic 400 clamp(19px, 1.6vw, 23px)/1.35 var(--serif); color: var(--body); margin: 0 auto 24px; max-width: 34ch; text-wrap: balance; }
.signup__form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 480px; margin: 0 auto; }
.signup__form input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 14px 16px;
  font: 400 17px/1.2 var(--serif); color: var(--ink); background: #fff;
  border: 1px solid var(--ink); border-radius: 0;
}
.signup__form input[type="email"]::placeholder { color: var(--muted); }
.signup__form input[type="email"]:focus-visible, .signup__form .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signup__form .button { border: 0; cursor: pointer; flex: 0 0 auto; }
.signup__fine { margin: 14px 0 0; font: 600 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
