/* Palette: ivory #f6f1e6, paper #efe8d9, charcoal #23211e, muted #58534a,
   olive #3d4a2c, olive-light #dfe2cf, rust #8e4124, rule #d6ccb8 */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #f6f1e6;
  color: #23211e;
  font-family: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #3d4a2c;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #8e4124;
}

:focus-visible {
  outline: 0.1875rem solid #8e4124;
  outline-offset: 0.1875rem;
  border-radius: 0.125rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: #23211e;
  color: #f6f1e6;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f6f1e6;
  border-bottom: 0.0625rem solid #d6ccb8;
}

.header-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: #23211e;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark em,
.footer-mark em {
  color: #8e4124;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  color: #23211e;
  border: 0.0625rem solid #23211e;
  border-radius: 0.125rem;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.125rem;
  height: 0.125rem;
  background: currentColor;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -0.375rem;
}

.nav-toggle-bars::after {
  top: 0.375rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  width: 100%;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 0.75rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0;
  color: #23211e;
  text-decoration: none;
  border-top: 0.0625rem solid #d6ccb8;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: #8e4124;
}

/* JS-disabled fallback: show nav */
.no-js .nav-toggle {
  display: none;
}

.no-js .site-nav {
  display: block;
}

@media (min-width: 60em) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: block;
    width: auto;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
  }
  .site-nav a {
    padding: 0.25rem 0;
    border-top: 0;
    border-bottom: 0.0625rem solid transparent;
    font-size: 0.9375rem;
  }
  .site-nav a[aria-current="true"] {
    border-bottom-color: #8e4124;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  border: 0.0625rem solid #3d4a2c;
  border-radius: 0.125rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  background: #3d4a2c;
  color: #f6f1e6;
}

.button-primary:hover {
  background: #23211e;
  border-color: #23211e;
  color: #f6f1e6;
}

.button-quiet {
  background: transparent;
  color: #3d4a2c;
}

.button-quiet:hover {
  background: #dfe2cf;
  color: #23211e;
}

/* Hero */
.hero {
  max-width: 76rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  display: grid;
  gap: 3rem;
}

.eyebrow,
.hero-panel-label,
.timeline-title,
.tag,
.memorial-meta,
.filter-status {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow {
  color: #8e4124;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  letter-spacing: -0.02em;
  max-width: 14em;
}

.lede {
  margin-top: 1.75rem;
  font-size: 1.25rem;
  color: #58534a;
  max-width: 34em;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: #3d4a2c;
  color: #f6f1e6;
  padding: 2rem 1.75rem;
  border-radius: 0.125rem;
  align-self: start;
}

.hero-panel-label {
  color: #dfe2cf;
  padding-bottom: 1rem;
  border-bottom: 0.0625rem solid #6b7656;
}

.hero-names {
  margin-top: 1rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.45;
  columns: 2 11rem;
  column-gap: 1.5rem;
}

.hero-names li {
  break-inside: avoid;
  padding: 0.25rem 0;
}

.hero-panel-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid #6b7656;
  font-size: 0.875rem;
  color: #dfe2cf;
}

.hero-panel-note a {
  color: #f6f1e6;
}

.hero-panel-note a:hover {
  color: #efd9c8;
}

.hero-panel :focus-visible {
  outline-color: #f6f1e6;
}

@media (min-width: 56em) {
  .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    padding-top: 5.5rem;
    padding-bottom: 6rem;
    gap: 4rem;
  }
}

/* Sections */
.section {
  max-width: 76rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  border-top: 0.0625rem solid #d6ccb8;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 44rem;
}

.section-number {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  color: #8e4124;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.015em;
}

.section-intro {
  margin-top: 1rem;
  color: #58534a;
  font-size: 1.125rem;
}

.prose {
  max-width: 40rem;
  display: grid;
  gap: 1.25rem;
}

.prose-lead {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.4;
}

@media (min-width: 56em) {
  .section {
    padding: 6rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: 0 4rem;
  }
  .section-head {
    margin-bottom: 0;
  }
  .section-head,
  .section > * {
    grid-column: 2;
  }
  .section > .section-head {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    position: sticky;
    top: 6rem;
  }
}

/* Facts */
.facts-group + .facts-group {
  margin-top: 3.5rem;
}

.facts-group-title {
  font-family: "Public Sans", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #58534a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.125rem;
}

.tag-olive {
  background: #dfe2cf;
  color: #2c3620;
}

.tag-rust {
  background: #f1dfd3;
  color: #6f3019;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  border-top: 0.0625rem solid #23211e;
  margin: 0;
}

.fact {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 0.0625rem solid #d6ccb8;
}

.fact dt {
  order: 2;
  font-size: 0.9375rem;
  color: #3a3732;
  margin-top: 0.5rem;
}

.fact-figure {
  order: 1;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: #3d4a2c;
}

.facts-two .fact-figure {
  color: #8e4124;
}

.fact-source {
  order: 3;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}

.method-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #efe8d9;
  border: 0.0625rem solid #d6ccb8;
  font-size: 0.9375rem;
  max-width: 44rem;
}

/* Story */
.story-grid {
  display: grid;
  gap: 3rem;
}

.story-source {
  font-size: 0.875rem;
  color: #58534a;
  padding-top: 1.25rem;
  border-top: 0.0625rem solid #d6ccb8;
}

.timeline {
  border: 0.0625rem solid #d6ccb8;
  background: #efe8d9;
  padding: 1.75rem;
  align-self: start;
}

.timeline-title {
  font-family: "Public Sans", Helvetica, Arial, sans-serif;
  color: #58534a;
  margin-bottom: 1.5rem;
}

.timeline ol {
  display: grid;
  gap: 1.5rem;
  border-left: 0.0625rem solid #8e4124;
  padding-left: 1.5rem;
}

.timeline li {
  position: relative;
  font-size: 0.9375rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.8125rem;
  top: 0.4em;
  width: 0.625rem;
  height: 0.625rem;
  background: #efe8d9;
  border: 0.0625rem solid #8e4124;
  border-radius: 50%;
}

.timeline-date {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.125rem;
  color: #23211e;
  margin-bottom: 0.25rem;
}

@media (min-width: 72em) {
  .story-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

/* Names */
.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-button {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: #23211e;
  background: transparent;
  border: 0.0625rem solid #b9ad95;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-button:hover {
  background: #efe8d9;
}

.filter-button[aria-pressed="true"] {
  background: #23211e;
  border-color: #23211e;
  color: #f6f1e6;
}

.filter-status {
  width: 100%;
  color: #58534a;
  margin-top: 0.5rem;
}

.memorial {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  border-top: 0.0625rem solid #23211e;
}

.memorial-item {
  padding: 1.5rem 1.5rem 1.75rem 0;
  border-bottom: 0.0625rem solid #d6ccb8;
  display: grid;
  gap: 0.375rem;
  align-content: start;
  font-size: 0.9375rem;
}

.memorial-item[hidden] {
  display: none;
}

.memorial-item h3 {
  font-size: 1.5rem;
}

.memorial-meta {
  color: #8e4124;
  font-size: 0.75rem;
}

.memorial-source {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #58534a;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2.5rem 3rem;
}

.why-item {
  padding-top: 1.25rem;
  border-top: 0.125rem solid #3d4a2c;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.why-item h3 {
  font-size: 1.5rem;
}

/* Act — dark band */
.section-act {
  max-width: none;
  background: #23211e;
  color: #f6f1e6;
  border-top: 0;
  padding-left: max(1.25rem, calc((100% - 73.5rem) / 2));
  padding-right: max(1.25rem, calc((100% - 73.5rem) / 2));
}

.section-act .section-number {
  color: #e0a888;
}

.section-act .section-intro {
  color: #cfc7b6;
}

.actions {
  display: grid;
  gap: 0;
  counter-reset: action;
  border-top: 0.0625rem solid #58534a;
}

.action {
  counter-increment: action;
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem 0 1.75rem 3rem;
  border-bottom: 0.0625rem solid #58534a;
  position: relative;
}

.action::before {
  content: counter(action);
  position: absolute;
  left: 0;
  top: 1.625rem;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #e0a888;
}

.action h3 {
  font-size: 1.625rem;
}

.action p {
  color: #cfc7b6;
  max-width: 36rem;
}

.action-link {
  justify-self: start;
  margin-top: 0.5rem;
  color: #f6f1e6;
  font-weight: 500;
}

.action-link::after {
  content: " →";
}

.action-link:hover {
  color: #e0a888;
}

.section-act :focus-visible {
  outline-color: #e0a888;
}

/* Sources */
.sources {
  display: grid;
  border-top: 0.0625rem solid #23211e;
}

.sources li {
  padding: 1.25rem 0;
  border-bottom: 0.0625rem solid #d6ccb8;
  display: grid;
  gap: 0.25rem;
}

.sources a {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3125rem;
  overflow-wrap: anywhere;
}

.sources p {
  font-size: 0.9375rem;
  color: #58534a;
}

.credits {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #58534a;
  max-width: 44rem;
}

/* Footer */
.site-footer {
  background: #3d4a2c;
  color: #dfe2cf;
}

.footer-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.9375rem;
}

.footer-mark {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  color: #f6f1e6;
}

.footer-mark em {
  color: #efd9c8;
}

.back-to-top {
  color: #f6f1e6;
}

.back-to-top:hover {
  color: #efd9c8;
}

.site-footer :focus-visible {
  outline-color: #f6f1e6;
}
