@font-face {
  font-family: "Libre Caslon Text";
  src: url("fonts/libre-caslon-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #b21f32;
  --red-deep: #8d1828;
  --red-shade: #7f1825;
  --paper: #f8f6f0;
  --offwhite: #fffefa;
  --ink: #332b2d;
  --muted: #665d60;
  --rule: #e2d9d5;
  --on-red: #f5e3e5;
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 108px;
  --gap: 24px;
  color-scheme: light;
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 430;
  text-rendering: optimizeLegibility;
}

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

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

a:hover { color: var(--red-deep); }

:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  z-index: 80;
  background: var(--offwhite);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
}

.utility {
  background: var(--red);
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 620;
  line-height: 1.3;
}

.utility-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.mast { border-bottom: 1px solid var(--rule); }

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-height: 48px;
}

.brand-mark { width: 28px; height: 34px; flex: none; }

.brand-type { display: flex; flex-direction: column; line-height: 1; }

.brand-type strong {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-type span {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 650;
  text-transform: uppercase;
}

.primary-nav { display: flex; align-items: center; gap: 1.15rem; }

.primary-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 560;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.4rem 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 0.5rem var(--gutter) 1.25rem;
}

.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.15;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

body[data-tone="red"] .site-header,
body[data-tone="red"] .utility,
body[data-tone="red"] .mast {
  background: var(--red);
  color: var(--paper);
  border-bottom-color: var(--red);
}

body[data-tone="ink"] .site-header,
body[data-tone="ink"] .utility,
body[data-tone="ink"] .mast {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--ink);
}

body[data-tone="red"] .mark-shield,
body[data-tone="ink"] .mark-shield { fill: var(--paper); }

body[data-tone="red"] .mark-star { fill: var(--red); }

body[data-tone="ink"] .mark-star { fill: var(--ink); }

body[data-tone="red"] .mark-fold { fill: #6e1522; }

body[data-tone="ink"] .mark-fold { fill: #1b1416; }

body[data-tone="red"] .primary-nav a,
body[data-tone="ink"] .primary-nav a,
body[data-tone="red"] .brand,
body[data-tone="ink"] .brand { color: var(--paper); }

body[data-tone="red"] :focus-visible,
body[data-tone="ink"] :focus-visible,
.chapter--precinct :focus-visible,
.chapter--events :focus-visible,
.utility :focus-visible {
  outline-color: var(--offwhite);
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, .brand-type strong, .step-num, .event-date strong, .story-nav b {
  font-family: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: clamp(3.15rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 { margin: 0 0 0.35rem; font-size: 1.35rem; line-height: 1.25; font-weight: 650; }

.lede, .hero-intro { font-size: 1.2rem; line-height: 1.5; max-width: 38rem; }

.button, .text-link {
  text-decoration: none;
  font-weight: 620;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  background: var(--red);
  color: var(--offwhite);
  line-height: 1.2;
}

.button:hover { background: var(--red-deep); color: var(--offwhite); }

.button-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.button-secondary:hover { background: var(--ink); color: var(--paper); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--red);
  border-bottom: 1px solid transparent;
}

.text-link:hover { border-bottom-color: currentColor; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.25rem; margin: 1.4rem 0 0.4rem; }

.footnote, .note, small { color: var(--muted); }

.footnote { margin: 0.6rem 0 0; font-size: 0.95rem; }

.note { font-size: 1rem; line-height: 1.5; }

.story-pin { position: relative; }

.story-progress {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: color-mix(in srgb, currentColor 18%, transparent);
  z-index: 3;
}

.story-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}

.story-nav {
  padding: 1.25rem 0 0;
}

.story-nav-inner { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }

.story-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  font-size: 0.95rem;
}

.story-nav b {
  font-size: 1.15rem;
  color: var(--red);
  font-weight: 700;
}

.story-nav a[aria-current="step"] span { border-bottom: 1px solid currentColor; }

.story-skip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.2rem 0 0.6rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.chapter { padding: 4.2rem 0; }

.chapter--stay { background: var(--paper); }

.chapter--precinct { background: var(--red); color: var(--on-red); }

.chapter--precinct h2,
.chapter--precinct .kicker,
.chapter--precinct a { color: var(--paper); }

.chapter--precinct .button { background: var(--paper); color: var(--red); }

.chapter--precinct .button:hover { background: var(--offwhite); color: var(--red-deep); }

.chapter--volunteer { background: var(--paper); }

.chapter--events { background: var(--ink); color: var(--paper); }

.chapter--events .kicker,
.chapter--events h2,
.chapter--events a,
.chapter--events .text-link { color: var(--paper); }

.chapter--events .note,
.chapter--events small,
.chapter--events .footnote { color: #eadfe2; }

.chapter--next { background: var(--offwhite); }

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.5rem;
  align-items: end;
}

.chapter-copy { grid-column: 1 / 8; }

.chapter-media { grid-column: 8 / 13; margin: 0; }

.chapter--precinct .chapter-copy { grid-column: 1 / 6; }

.chapter--precinct .chapter-side { grid-column: 6 / 13; }

.chapter--events .chapter-copy,
.chapter--next .chapter-copy,
.chapter--volunteer .chapter-copy { grid-column: 1 / 13; }

.chapter-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #ebe4dc;
}

.chapter-media figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}

.chapter-media figcaption a { color: inherit; }

.way-list, .resource-rows, .steps { list-style: none; margin: 1.2rem 0 0; padding: 0; }

.way, .resource-row, .steps li {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.4rem 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}

.way, .resource-row { grid-template-columns: 4.2rem minmax(0, 1fr) auto; align-items: center; }

.way:hover h3, .resource-row:hover h3 { color: var(--red); }

.way-num, .step-num {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--red);
}

.way p, .resource-row p, .steps p { margin: 0; }

.way svg, .resource-row svg { flex: none; }

.resource-label, .event-category {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter--events .resource-label,
.chapter--events .event-category,
.chapter--precinct .resource-label { color: var(--on-red); }

.caveat {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  max-width: 42rem;
}

.caveat strong { display: block; margin-bottom: 0.2rem; }

.event-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding: 1.1rem 0 0.4rem;
  border-top: 1px solid currentColor;
}

.event-date { display: flex; flex-direction: column; line-height: 1; }

.event-date span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

.event-date strong { font-size: 2.6rem; }

.event-summary h3 { font-size: 1.7rem; line-height: 1.15; }

.event-summary h3 a, .event-details a { color: inherit; }

.event-summary p, .event-organizer { margin: 0.35rem 0 0; }

.event-details { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; font-size: 1rem; }

.event-details span { display: inline-flex; align-items: center; gap: 0.4rem; }

.event-empty h3 { font-family: "Libre Caslon Text", Georgia, serif; font-size: 2rem; }

.event-empty p { max-width: 38rem; }

.page { padding: 4.5rem 0 5rem; }

.page-head { max-width: 22em; margin-bottom: 3rem; }

.page-head h1 { max-width: 16ch; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.5rem;
}

.page-main { grid-column: 1 / 8; }

.page-aside {
  grid-column: 9 / 13;
  align-self: start;
  padding-top: 0.2rem;
  border-top: 1px solid var(--rule);
}

.page-aside h2 { font-size: 2.1rem; }

.page-aside .text-link, .page-aside .button { margin: 0.35rem 0; }

.prose h2 { font-size: 2rem; margin-top: 2rem; }

.steps h2,
.steps h3 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 2rem;
  line-height: 1.15;
}

.prose p { max-width: 40rem; }

.divider { height: 1px; background: var(--rule); margin: 1.4rem 0; border: 0; }

#after-story { height: 0; scroll-margin-top: calc(var(--header-h) + 12px); }

.site-footer { border-top: 1px solid var(--rule); padding: 3rem 0 2rem; background: var(--paper); color: var(--ink); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2rem;
}

.footer-identity { grid-column: 1 / 6; }

.footer-identity p { max-width: 22rem; }

.footer-links { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.footer-links h2 {
  margin: 0 0 0.6rem;
  font-family: "Public Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-links a, .footer-legal a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0.2rem 0;
}

.footer-links a:hover, .footer-legal a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.95rem; }

.paid-for { margin: 0; color: var(--muted); font-size: 0.95rem; }

.chapter:focus { outline: none; }

.story.is-pinned .story-progress { display: block; }

.story.is-pinned .story-pin {
  position: sticky;
  top: var(--header-h);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story.is-pinned .story-nav {
  position: absolute;
  inset: 0 0 2.5rem 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0;
  pointer-events: none;
}

.story.is-pinned .story-nav .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.story.is-pinned .story-nav-inner {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  pointer-events: auto;
}

.story.is-pinned .story-stage { flex: 1; min-height: 0; position: relative; }

.story.is-pinned .chapter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 1.5rem 0 3.2rem;
  background: transparent;
}

.story.is-pinned .chapter-copy { grid-column: 3 / 8; }

.story.is-pinned .chapter-media { grid-column: 8 / 13; }

.story.is-pinned .chapter--precinct .chapter-copy { grid-column: 3 / 7; }

.story.is-pinned .chapter--precinct .chapter-side { grid-column: 7 / 13; }

.story.is-pinned .chapter--volunteer .wrap,
.story.is-pinned .chapter--events .wrap,
.story.is-pinned .chapter--next .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}

.story.is-pinned .chapter--volunteer .chapter-copy,
.story.is-pinned .chapter--events .chapter-copy,
.story.is-pinned .chapter--next .chapter-copy { grid-column: 3 / 13; }

.story.is-pinned .actions { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

.story.is-pinned .chapter-media img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--header-h) - 11rem);
  aspect-ratio: auto;
}

.story.is-pinned .story-skip {
  position: static;
  z-index: 5;
  margin-top: 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid currentColor;
  background: transparent;
}

.story.is-pinned[data-active-chapter="0"] .story-pin { background: var(--paper); color: var(--ink); }

.story.is-pinned[data-active-chapter="1"] .story-pin { background: var(--red); color: var(--paper); }

.story.is-pinned[data-active-chapter="2"] .story-pin { background: var(--paper); color: var(--ink); }

.story.is-pinned[data-active-chapter="3"] .story-pin { background: var(--ink); color: var(--paper); }

.story.is-pinned[data-active-chapter="4"] .story-pin { background: var(--offwhite); color: var(--ink); }

.story.is-pinned[data-active-chapter="1"] .story-nav b,
.story.is-pinned[data-active-chapter="3"] .story-nav b,
.story.is-pinned[data-active-chapter="1"] .chapter--precinct h2,
.story.is-pinned[data-active-chapter="1"] .kicker { color: var(--paper); }

.story.is-pinned[data-active-chapter="1"] .text-link,
.story.is-pinned[data-active-chapter="3"] .text-link,
.story.is-pinned[data-active-chapter="3"] h2,
.story.is-pinned[data-active-chapter="3"] .kicker { color: var(--paper); }

@media (max-width: 1099px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: block; }
  .chapter-copy,
  .chapter-media,
  .chapter--precinct .chapter-copy,
  .chapter--precinct .chapter-side,
  .chapter--events .chapter-copy,
  .chapter--next .chapter-copy,
  .chapter--volunteer .chapter-copy,
  .page-main,
  .page-aside,
  .footer-identity,
  .footer-links {
    grid-column: 1 / -1;
  }
  .chapter-grid, .page-grid, .footer-grid { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .event-details { grid-column: 1 / -1; }
  h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
}

@media (max-width: 700px) {
  .utility-row span:last-child { display: none; }
  .way { grid-template-columns: 3rem minmax(0, 1fr); }
  .way svg { display: none; }
  .footer-links { grid-template-columns: 1fr; }
  .page { padding-top: 2.8rem; }
  .chapter { padding: 3.2rem 0; }
  .chapter-media figcaption { flex-direction: column; }
}

@media (max-height: 820px) and (min-width: 1100px) {
  .story.is-pinned h1 { font-size: 3.3rem; }
  .story.is-pinned h2 { font-size: 2.5rem; }
  .story.is-pinned .lede { font-size: 1.05rem; }
  .story.is-pinned .way { padding: 0.55rem 0; }
  .story.is-pinned .chapter-media img { max-height: calc(100vh - var(--header-h) - 8rem); width: auto; margin-left: auto; }
}

@media (min-width: 1100px) {
  html.pin-intent .story { height: calc(100vh - var(--header-h)); overflow: hidden; }
  html.pin-intent .chapter + .chapter { opacity: 0; position: absolute; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html.pin-intent .story { height: auto; overflow: visible; }
  html.pin-intent .chapter + .chapter { opacity: 1; position: static; }
  .story-progress span { transform: none; }
}

@media print {
  .site-header { position: static; }
  .story, .story-pin, .chapter { height: auto !important; position: static !important; overflow: visible !important; opacity: 1 !important; visibility: visible !important; }
  .story-nav, .story-skip, .menu-toggle { display: none !important; }
}
