:root {
  --ink: #17343b;
  --teal: #0d4650;
  --teal-deep: #082f36;
  --coral: #e96852;
  --gold: #e8ad3c;
  --cream: #f7f0e5;
  --paper: #fffdf9;
  --white: #ffffff;
  --muted: #667477;
  --line: rgba(23, 52, 59, .16);
  --measure: 42rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: #dfe5e4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 4px;
  background: rgba(255,255,255,.16);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 52rem;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  color: var(--white);
  background: var(--teal-deep);
}

.cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 52svh;
  min-height: 25rem;
  background: #0a272d;
}

.cover-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #0a272d;
}

.cover-grid img:nth-child(1),
.cover-grid img:nth-child(2) { border-bottom: 3px solid var(--teal-deep); }

.cover-grid img:nth-child(odd) { border-right: 3px solid var(--teal-deep); }

.cover-shade {
  display: none;
}

.cover-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 2rem 5.2rem max(2rem, env(safe-area-inset-bottom)) 1.35rem;
}

.lmc-logo {
  display: block;
  height: auto;
  padding: .55rem;
  background: var(--white);
}

.cover-logo {
  width: min(13.5rem, 68vw);
  margin: 0 0 1.25rem;
  padding: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}

.eyebrow,
.section-label,
.overline,
.church {
  margin: 0 0 .7rem;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cover h1 {
  max-width: 9ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 19vw, 7.5rem);
  font-weight: 700;
  line-height: .76;
  letter-spacing: -.065em;
}

.cover h1 em,
.story h2 em {
  color: var(--gold);
  font-weight: 700;
}

.deck {
  max-width: 29rem;
  margin: 1.15rem 0 .85rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.church { color: rgba(255,255,255,.72); }

.scroll-cue {
  position: absolute;
  right: 1.25rem;
  bottom: max(2rem, env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--teal-deep);
  background: var(--gold);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.35rem;
}

.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  gap: .45rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: .78rem max(1rem, env(safe-area-inset-left));
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(8,47,54,.96);
  box-shadow: 0 5px 24px rgba(8,47,54,.18);
  backdrop-filter: blur(12px);
}

.chapter-nav::-webkit-scrollbar { display: none; }

.chapter-nav a {
  flex: 0 0 auto;
  padding: .48rem .72rem;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.chapter-nav a[aria-current="true"] {
  color: var(--teal-deep);
  background: var(--gold);
  border-color: var(--gold);
}

main,
footer {
  max-width: 52rem;
  margin: 0 auto;
}

.story {
  padding: 4.75rem clamp(1.25rem, 5vw, 3.5rem);
  overflow: hidden;
  background: var(--paper);
}

.story + .story { border-top: 1px solid var(--line); }

.story.tinted { background: var(--cream); }

.story.dark {
  color: #f6eee3;
  background: var(--teal-deep);
}

.section-label {
  display: inline-block;
  padding-bottom: .42rem;
  color: var(--coral);
  border-bottom: 3px solid currentColor;
}

.story.dark .section-label { color: var(--gold); }

.story h2 {
  max-width: 11ch;
  margin: 1rem 0 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 14vw, 6.25rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.055em;
}

.story h2 em { color: var(--coral); }
.story.dark h2 em { color: var(--gold); }

.kicker {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.prose {
  max-width: var(--measure);
  margin: 2rem auto;
}

.prose p,
.milestones p {
  margin: 0 0 1.15em;
  font-size: clamp(1.05rem, 4.55vw, 1.18rem);
  line-height: 1.68;
}

.lead-copy > p:first-child::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.3rem;
  font-weight: 700;
  line-height: .75;
}

.final-line {
  color: var(--teal);
  font-weight: 800;
}

.dark .final-line { color: var(--gold); }

.gallery {
  margin: 2rem calc(clamp(1.25rem, 5vw, 3.5rem) * -1);
}

.mosaic {
  columns: 2;
  column-gap: 6px;
}

.mosaic img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 6px;
  break-inside: avoid;
  background: #d8dddc;
}

.mosaic .wide { column-span: all; }

.hero-photo,
.feature-figure img {
  display: block;
  width: calc(100% + 2 * clamp(1.25rem, 5vw, 3.5rem));
  height: auto;
  max-width: none;
  margin: 2rem calc(clamp(1.25rem, 5vw, 3.5rem) * -1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2rem 0 2.5rem;
  color: var(--white);
  background: rgba(13,70,80,.25);
  border: 1px solid rgba(13,70,80,.16);
}

.stats div {
  min-width: 0;
  padding: 1rem .55rem;
  background: var(--teal);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 7vw, 2.4rem);
  line-height: 1;
}

.stats span {
  margin-top: .55rem;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stats > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: .75rem 1rem;
  color: var(--teal);
  background: var(--gold);
  font-size: .83rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.stats.compact { grid-template-columns: 1fr 1fr; }

.chapter {
  margin-top: 4rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--line);
}

.overline {
  color: var(--coral);
}

.chapter h3 {
  margin: .5rem 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.chapter h3 span {
  display: block;
  margin-top: .4rem;
  color: var(--coral);
  font-size: .66em;
  font-style: italic;
}

.roster {
  margin: 1rem 0 2rem;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.6;
}

.prose h4 {
  margin: 3rem 0 .8rem;
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.dark .prose h4 { color: var(--gold); }

blockquote {
  position: relative;
  margin: 3rem 0;
  padding: 1.8rem 0 1.8rem 1.3rem;
  color: var(--teal);
  border-left: 7px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.dark blockquote {
  color: var(--gold);
  border-left-color: var(--coral);
}

.ballpark-feature {
  position: relative;
  margin: 2rem calc(clamp(1.25rem, 5vw, 3.5rem) * -1) 3rem;
  padding-bottom: 2rem;
  background: var(--teal-deep);
}

.ballpark-feature > img:first-child {
  display: block;
  width: 100%;
  height: auto;
}

.team-logo {
  position: absolute;
  right: 1rem;
  bottom: .9rem;
  width: 5.4rem;
  height: 5.4rem;
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.ballpark-stat {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: 1rem 7.2rem 0 1.15rem;
  color: var(--white);
}

.ballpark-stat strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.ballpark-stat span {
  font-size: .75rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-figure {
  margin: 2rem 0;
}

.feature-figure img { margin-bottom: 0; }

.feature-figure figcaption {
  margin: 0 calc(clamp(1.25rem, 5vw, 3.5rem) * -1);
  padding: .8rem clamp(1.25rem, 5vw, 3.5rem);
  color: var(--white);
  background: var(--teal);
  font-size: .84rem;
  font-weight: 700;
}

.milestones {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.milestones article + article {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.closing {
  color: var(--white);
  background: var(--teal);
}

.closing .section-label,
.closing .overline { color: var(--gold); }

.manifesto {
  margin: 3rem 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 10vw, 4.3rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}

.litany {
  margin: 3rem calc(clamp(1.25rem, 5vw, 3.5rem) * -1);
  padding: 2.8rem clamp(1.25rem, 5vw, 3.5rem);
  color: var(--teal-deep);
  background: var(--gold);
}

.litany p {
  margin: 0 0 .45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.thanks {
  margin-top: 4rem;
  padding: 1.5rem;
  color: var(--teal-deep);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--gold);
}

.thanks p { margin: 0 0 .8rem; }
.thanks p:last-child { margin-bottom: 0; font-weight: 800; }

footer {
  padding: 2.5rem 1.25rem max(2.5rem, env(safe-area-inset-bottom));
  color: rgba(255,255,255,.82);
  background: var(--teal-deep);
  text-align: center;
}

.footer-logo {
  width: min(14rem, 72vw);
  margin: 0 auto 1.6rem;
}

footer a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

footer p {
  margin: 1rem 0 0;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

@media (min-width: 700px) {
  body { font-size: 1.06rem; }
  .cover-grid { min-height: 34rem; }
  .cover-copy { padding-inline: 3rem 7rem; }
  .scroll-cue { right: 3rem; }
  .story { padding-block: 6.5rem; }
  .mosaic { columns: 3; }
  .mosaic.three { columns: 3; }
  .milestones { grid-template-columns: 1fr 1fr; }
  .milestones article + article {
    padding-top: 0;
    padding-left: 2.5rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
