/* Biography and church share the homepage's typography, palette and manuscript axis. */
.editorial-page { isolation: isolate; }
.editorial-page figure { margin: 0; }
.editorial-page :is(h1, h2, h3, h4) { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
.editorial-page :is(p, h1, h2, h3, h4, a) { overflow-wrap: anywhere; }
.editorial-page h2 { font-size: var(--font-heading); line-height: 1.15; letter-spacing: -.025em; margin-top:50px; }
.editorial-page h3 { font-size: clamp(25px, 2.3vw, 34px); line-height: 1.3; margin-top:50px;}
.editorial-page h4 { font-size: 22px; line-height: 1.4; margin: 0 0 10px; }
.story-section { padding-block: var(--space-section); }
.story-section > .editorial-axis, .story-section > .wrap > .editorial-axis { margin-bottom: 44px; }
.story-hero { display: grid; gap: 7%; align-items: center; padding-block: 84px 100px; }
.story-hero.has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.story-hero h1 { max-width: 13ch; font-size: clamp(50px, 6.5vw, 90px); line-height: 1.06; letter-spacing: -.045em; margin-bottom: 30px; }
.story-lead { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.65; max-width: 42ch; }
.ministry-line { font-size: 14px; line-height: 1.7; max-width: 62ch; margin: 16px 0 0; color: var(--color-text-muted); }
.story-narrative { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8%; align-items: start; }
.story-prose { max-width: 68ch; }
.story-prose > :last-child { margin-bottom: 0; }
.story-prose a:not(.editorial-link) { text-decoration: underline; text-underline-offset: 4px; }
.story-prose figure { margin-block: 30px 0; }
.story-prose img { width: 100%; height: auto; }
.story-journey, .church-history { background: var(--color-bg-alt); }
.story-timeline { position: relative; list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: 1fr 1fr; }
.story-timeline::before { content: ''; position: absolute; inset-block: 0; left: 50%; width: 1px; background: var(--color-burgundy); }
.story-timeline-stop { position: relative; min-width: 0; padding: 0 12% 42px 0; grid-column: 1; }
.story-timeline-stop:nth-child(even) { grid-column: 2; padding: 0 0 42px 12%; margin-top: 20px; }
.story-timeline-stop::before { content: ''; position: absolute; right: -4px; top: 12px; width: 9px; height: 9px; background: var(--color-gold); border: 1px solid var(--color-accent-dark); transform: rotate(45deg); }
.story-timeline-stop:nth-child(even)::before { right: auto; left: -4px; }
.story-timeline-stop h3 { font-size: clamp(25px, 2.4vw, 34px); margin: 14px 0; }
.story-year { font: 400 clamp(27px, 2.6vw, 36px)/1.2 var(--serif); color: var(--color-accent); }
.story-meta { font-size: 14px; color: var(--color-text-muted); }
.story-education { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 6%; }
.story-education li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding-block: 26px; border-top: var(--rule); }
.story-education h3 { font-size: 26px; margin-bottom: 10px; }
.story-education p { margin-bottom: 8px; }
.story-index { color: var(--color-accent-dark); font: 400 30px/1.2 var(--serif); }
.story-specializations { border-top: var(--rule); padding-top: 32px; }
.story-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 7%; }
.story-list li { border-inline-start: 1px solid var(--color-gold); padding-inline-start: 18px; }
.story-list h4 { font-size: 20px; }
.story-teaching { background: var(--color-navy-deep); color: var(--color-ivory); }
.story-teaching .editorial-kicker, .story-teaching .editorial-link { color: var(--color-gold-light); }
.story-participations { list-style: none; margin: 0; padding: 0; }
.story-participations li { padding-block: 24px; border-top: var(--rule); }
.story-participations h3 { font-size: 26px; }
.story-spread { display: grid; align-items: center; gap: 7%; }
.story-spread.has-image { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.story-spread:not(.has-image) > div { max-width: 820px; }
.story-family { background: var(--color-burgundy); color: var(--color-ivory); }
.story-family .editorial-axis, .story-teaching .editorial-axis { border-color: var(--color-gold); }
.story-family .story-meta { color: var(--color-on-burgundy); }
.story-family .editorial-link { color: var(--color-gold-light); }
.story-family-image img { width: 100%; max-height: 620px; object-fit: contain; }
.story-current { background: var(--color-bg-alt); }
.story-current h2 { font-size: clamp(32px, 3.5vw, 48px); }
.story-current-image img { width: 100%; max-height: 500px; object-fit: contain; }
.story-role { color: var(--color-accent); font-size: 21px; margin-bottom: 12px; }
.church-hero { padding-block: 60px 70px; }
.church-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.church-hero-image { grid-column: 4 / -1; grid-row: 1; }
.church-hero-image img { width: 100%; min-height: 500px; height: 100%; max-height: 700px; object-fit: cover; }
.church-hero-copy { grid-column: 1 / 8; grid-row: 1; align-self: end; background: var(--color-navy-deep); color: var(--color-ivory); margin-top: 170px; margin-bottom: -25px; padding: clamp(26px, 4vw, 56px); z-index: 1; }
.church-hero-copy .editorial-axis { border-color: var(--color-gold); }
.church-hero-copy .editorial-kicker { color: var(--color-gold-light); }
.church-hero h1 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.13; letter-spacing: -.025em; }
.church-hero:not(.has-image) .church-hero-copy { grid-column: 1 / -1; margin-top: 0; }
.church-hero:not(.has-image) h1 { max-width: 25ch; }
.church-secondary-image { grid-column: 9 / -1; margin-top: 34px !important; }
.church-secondary-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.church-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.church-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-related ul { list-style: none; padding: 0; margin: 0; }
.story-related li { border-top: var(--rule); }
.story-related .editorial-kicker { margin-block: 24px 12px; }
.church-schedule { border-top: var(--rule); }
.schedule-upcoming { margin-block: 44px 64px; }
.schedule-upcoming .service-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6%; }
.schedule-upcoming .service-entry { grid-template-columns: 1fr; gap: 12px; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-entry { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: var(--rule); scroll-margin-top: 25px; }
.service-entry:target { outline: 2px solid var(--color-accent); outline-offset: 8px; }
.service-entry.is-important { border-top: 2px solid var(--color-accent); }
.service-important { color: var(--color-accent); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.service-date { color: var(--color-accent); font-family: var(--serif); font-size: 22px; }
.service-copy > :last-child { margin-bottom: 0; }
.service-time { font-size: 16px; font-weight: 600; }
.service-time span { font-size: 14px; font-weight: 400; }
.service-image { max-width: 480px; margin-block: 20px !important; }
.month-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-block: var(--rule); padding: 15px 0; margin-bottom: 24px; }
.month-navigation h3 { margin: 0; font-size: clamp(25px, 2.8vw, 36px); }
.month-navigation a { min-height: 44px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.month-navigation a:last-child { justify-self: end; }
.month-navigation a:hover { color: var(--color-accent); }
.schedule-grid { border-collapse: collapse; table-layout: fixed; width: 100%; margin-block: 24px 44px; font-size: 14px; }
.schedule-grid th { text-align: start; font-weight: 600; padding: 12px; }
.schedule-grid abbr { text-decoration: none; }
.schedule-grid td { vertical-align: top; height: 106px; border: var(--rule); padding: 12px; }
.schedule-grid td > time { font-size: 17px; }
.schedule-grid td.is-today > time { display: inline-block; background: var(--color-burgundy); color: var(--color-ivory); padding: 0 8px; }
.schedule-grid td.has-services > time { border-bottom: 2px solid var(--color-gold); }
.schedule-grid td a { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.calendar-event-time { display: block; color: var(--color-accent); }
.schedule-grid .calendar-padding { background: var(--color-bg-alt); }
.schedule-empty { padding-block: 24px; color: var(--color-text-muted); }
.story-family :is(a, button):focus-visible, .story-teaching :is(a, button):focus-visible { outline-color: var(--color-gold-light); }
@media (max-width: 1000px) {
  .church-hero-copy { grid-column: 1 / 10; }
  .church-hero-image { grid-column: 2 / -1; }
  .church-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .story-hero, .story-hero.has-image { grid-template-columns: 1fr; gap: 56px; padding-block: 42px 70px; }
  .story-hero h1 { font-size: clamp(44px, 12vw, 70px); }
  .story-narrative, .story-spread.has-image { grid-template-columns: 1fr; gap: 30px; }
  .story-timeline { grid-template-columns: 1fr; margin-top: 40px; padding-left: 22px; }
  .story-timeline::before { left: 0; }
  .story-timeline-stop, .story-timeline-stop:nth-child(even) { grid-column: 1; margin-top: 0; padding: 0 0 38px; }
  .story-timeline-stop::before, .story-timeline-stop:nth-child(even)::before { right: auto; left: -26px; }
  .story-education { grid-template-columns: 1fr; }
  .story-list { grid-template-columns: 1fr; }
  .church-hero { padding-block: 30px 0; }
  .church-hero-grid { display: flex; flex-direction: column; }
  .church-hero-image img { min-height: 0; height: auto; max-height: none; aspect-ratio: 4 / 3; }
  .church-hero-copy { margin: 0; padding: 30px 22px; }
  .church-hero h1 { font-size: clamp(32px, 9vw, 48px); }
  .church-secondary-image { max-width: 65%; align-self: end; }
  .church-gallery { gap: 16px; }
  .service-entry { grid-template-columns: 1fr; gap: 12px; }
  .schedule-upcoming .service-list { grid-template-columns: 1fr; }
  .month-navigation { grid-template-columns: 1fr 1fr; gap: 8px; }
  .month-navigation h3 { grid-row: 1; grid-column: 1 / -1; text-align: center; }
  .month-navigation a { grid-row: 2; }
  .schedule-grid { display: none; }
  .schedule-agenda { margin-top: 32px; }
}
@media (max-width: 430px) {
  .church-gallery { grid-template-columns: 1fr; }
}

/* Biography: a continuous reading column and a chronological, single-axis journey. */
.biography-page { --font-heading: clamp(32px, 3.1vw, 44px); }
.biography-page .story-hero { padding-block: clamp(48px, 6vw, 80px) 80px; }
.biography-page .story-hero h1 { font-size: clamp(44px, 5.5vw, 76px); max-width: 15ch; }
.biography-page .story-lead { font-size: clamp(18px, 1.65vw, 22px); }
.biography-page .ministry-line { border-top: var(--rule); padding-top: 18px; margin-top: 24px; }
.biography-page .editorial-hero-figure::before { inset: 24px -12px -20px 24%; }
.biography-page .editorial-hero-figure::after { inset: -12px 36px 30px -12px; }
.biography-page .story-narrative { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); }
.biography-page .story-prose { max-width: 70ch; }
.biography-page .story-prose p { margin-bottom: 1.4em; text-wrap: pretty; }
.biography-page .story-prose > :last-child { margin-bottom: 0; }
.biography-page .story-section > .editorial-axis,
.biography-page .story-section > .wrap > .editorial-axis { margin-bottom: 32px; }
.biography-page .story-narrative > .editorial-axis { margin-bottom: 0; }
.biography-page .story-narrative h2 { margin-bottom: 0; }
.biography-page .story-timeline { display: block; margin-top: 40px; padding: 0; }
.biography-page .story-timeline::before,
.biography-page .story-timeline-stop::before { display: none; }
.biography-page .story-timeline-stop,
.biography-page .story-timeline-stop:nth-child(even) {
  display: grid;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
  column-gap: clamp(32px, 6vw, 88px);
  margin: 0;
  padding: 28px 0;
  border-top: var(--rule);
}
.biography-page .story-timeline-stop:last-child { border-bottom: var(--rule); }
.biography-page .story-timeline-stop > :not(.story-year) { grid-column: 2; }
.biography-page .story-timeline-stop h3 { grid-row: 1; font-size: clamp(23px, 2.2vw, 30px); margin: 0 0 10px; max-width: 42ch; }
.biography-page .story-timeline-stop .story-year { grid-column: 1; grid-row: 1; font-size: clamp(23px, 2.2vw, 30px); line-height: 1.3; margin: 0; font-variant-numeric: tabular-nums; }
.biography-page .story-timeline-stop .story-meta { margin: 0 0 10px; }
.biography-page .story-timeline-stop > :last-child:not(.story-year) { margin-bottom: 0; }
.biography-page .story-education { margin-block: 32px 44px; column-gap: 48px; }
.biography-page .story-education li { grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding-block: 22px; }
.biography-page .story-education h3,
.biography-page .story-participations h3 { font-size: clamp(22px, 2vw, 27px); margin-bottom: 10px; }
.biography-page .story-index { font-size: 24px; }
.biography-page .story-specializations { padding-top: 28px; }
.biography-page .story-specializations > h3 { font-size: 28px; margin-bottom: 26px; }
.biography-page .story-list { gap: 28px 40px; }
.biography-page .story-list p { margin-bottom: 0; }
.biography-page .story-participations li { padding-block: 22px; }
.biography-page .story-participations p { margin-bottom: 0; }
.biography-page .story-teaching .story-prose { color: var(--color-on-dark); }
.biography-page .story-teaching .editorial-link { border-bottom: 1px solid var(--color-rule-dark); margin-top: 12px; }
.biography-page .story-family { background: var(--color-bg); color: var(--color-text); border-top: var(--rule); }
.biography-page .story-family .story-meta { color: var(--color-text-muted); }
.biography-page .story-family .editorial-link { color: var(--color-accent); }
.biography-page .story-family .editorial-link:hover { color: var(--color-navy-deep); }
.biography-page .story-family :is(a, button):focus-visible { outline-color: var(--color-accent); }
.biography-page .story-spread.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.biography-page .story-family-image { padding: 16px; border: var(--rule); }
.biography-page .story-family-image img { max-height: 500px; }
.biography-page .story-current { border-top: var(--rule); }
.biography-page .story-current h2 { font-size: clamp(28px, 3vw, 40px); }
.biography-page .story-current-image { padding: 12px; background: var(--color-bg); border: var(--rule); }
.biography-page .story-current-image img { max-height: 480px; }
@media (max-width: 900px) {
  .biography-page .story-narrative { grid-template-columns: 1fr; gap: 28px; }
  .biography-page .story-prose { max-width: none; }
  .biography-page .story-narrative h2 { max-width: 28ch; }
}
@media (max-width: 700px) {
  .biography-page .story-hero { padding-block: 38px 64px; gap: 42px; }
  .biography-page .story-hero h1 { font-size: clamp(40px, 10.5vw, 64px); }
  .biography-page .editorial-hero-figure::before { inset: 18px -8px -18px 24%; }
  .biography-page .editorial-hero-figure::after { inset: -8px 24px 24px -8px; }
  .biography-page .story-timeline-stop,
  .biography-page .story-timeline-stop:nth-child(even) { display: block; padding-block: 24px; }
  .biography-page .story-timeline-stop .story-year { margin-bottom: 12px; font-size: 24px; }
  .biography-page .story-education { column-gap: 0; }
  .biography-page .story-spread.has-image { grid-template-columns: 1fr; gap: 32px; }
}

/* Keep tablet introductions readable before the narrow mobile breakpoint. */
@media (min-width: 701px) and (max-width: 900px) {
  .church-hero-grid { grid-template-columns: 1fr; }
  .church-hero-image { grid-column: 1; grid-row: 1; }
  .church-hero-image img { min-height: 0; height: auto; max-height: 520px; aspect-ratio: 16 / 10; }
  .church-hero-copy { grid-column: 1; grid-row: 2; width: 90%; margin: -48px 0 0; padding: 32px; }
  .church-secondary-image { grid-column: 1; width: 42%; justify-self: end; }
}
@media (max-width: 700px) {
  .biography-page { --space-section: 44px; }
  .biography-page .story-hero { padding-block: 32px 48px; gap: 32px; }
  .biography-page .story-narrative { gap: 22px; }
  .biography-page .story-education { margin-block: 24px 30px; }
  .biography-page .story-education li, .biography-page .story-participations li { padding-block: 18px; }
  .biography-page .story-timeline { margin-top: 28px; }
  .biography-page .story-timeline-stop, .biography-page .story-timeline-stop:nth-child(even) { padding-block: 20px; }
}
