:root {
  --paper: #f1ede3;
  --paper-light: #f8f5ed;
  --paper-deep: #e3dac8;
  --ink: #1d2822;
  --forest: #18392e;
  --forest-light: #285445;
  --moss: #62715d;
  --rust: #9b4f35;
  --rust-light: #c57b5e;
  --sand: #d8cdb7;
  --rule: rgba(29, 40, 34, 0.2);
  --card-hover: #edf0e7;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1240px;
  --wide: 1440px;
  --section-space: clamp(6rem, 10vw, 10rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 0.18em; }
img { max-width: 100%; }
button { font: inherit; }
::selection { background: var(--rust); color: white; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 200;
  background: var(--forest);
  color: white;
  padding: 0.75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 max(1.5rem, calc((100vw - var(--max)) / 2));
  background: rgba(241, 237, 227, 0.93);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(16px);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.wordmark-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--forest);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.wordmark-text,
.site-header nav {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-header nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2rem); }
.site-header nav a { position: relative; padding: 0.3rem 0; text-decoration: none; }
.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.15rem;
  left: 0;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-header nav a:hover::after,
.site-header nav a.active::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; }

.hero {
  width: min(calc(100% - 3rem), var(--max));
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  grid-template-rows: 1fr auto;
  gap: 2.5rem 5vw;
  align-items: center;
  padding: 4.5rem 0 2.5rem;
}
.eyebrow,
.section-kicker,
.person-relation {
  margin: 0;
  color: var(--rust);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.section-kicker.light { color: #d8b7a9; }
.hero h1 {
  margin: 1.2rem 0 1.7rem;
  font-family: var(--serif);
  font-size: clamp(3.45rem, 7vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.84;
}
.hero-deck {
  max-width: 660px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2vw, 1.6rem);
  line-height: 1.5;
}
.hero-facts {
  max-width: 650px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.hero-facts div { display: grid; gap: 0.12rem; }
.hero-facts span,
.profile-dates,
.billy-dates {
  color: var(--moss);
  font-size: 0.64rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-facts strong { font-family: var(--serif); font-size: 1rem; font-weight: 600; }

.photo-placeholder {
  position: relative;
  margin: 0;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.68), transparent 30%),
    linear-gradient(145deg, #d5cbb9, #aaa492);
  border: 1px solid rgba(29,40,34,0.25);
  color: var(--forest);
}
.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29,40,34,0.12) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  opacity: 0.3;
  pointer-events: none;
}
.photo-placeholder > img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder.is-loaded { background: var(--forest); }
.photo-placeholder.is-loaded::after,
.photo-placeholder.is-loaded .photo-label,
.photo-placeholder.is-loaded .photo-corners { display: none; }
.photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: none;
  margin: 0;
  padding: 2.4rem 1.1rem 0.85rem;
  background: linear-gradient(to top, rgba(17, 26, 22, 0.82), transparent);
  color: white;
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.015em;
  line-height: 1.3;
  text-align: left;
}
.photo-placeholder.is-loaded .photo-caption { display: block; }
.hero-photo {
  width: min(100%, 510px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  transform: rotate(1.1deg);
  box-shadow: 16px 22px 0 rgba(24,57,46,0.08);
}
.photo-corners::before,
.photo-corners::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-color: rgba(29,40,34,0.34);
}
.photo-corners::before { top: 18px; left: 18px; border-top: 1px solid; border-left: 1px solid; }
.photo-corners::after { right: 18px; bottom: 18px; border-right: 1px solid; border-bottom: 1px solid; }
.photo-label {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}
.photo-label span,
.photo-label small {
  font-size: 0.6rem;
  font-weight: 780;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.photo-label small { opacity: 0.72; }
.photo-label strong {
  max-width: 300px;
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.18;
}
.record-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  max-width: 650px;
  align-items: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.record-note-number { color: var(--rust); font-family: var(--serif); font-size: 1.3rem; }
.record-note p { margin: 0; color: #4c554f; font-size: 0.84rem; }

.content-section { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; padding: var(--section-space) 0; }
.section-heading h2,
.runner-copy h2,
.timeline-intro h2,
.billy-copy h2,
.minden-hero h2,
.photo-archive-heading h2 {
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 1.01;
}
.section-heading { max-width: 970px; }
.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: 4.5rem;
}
.split-heading > p { margin: 0; color: #556059; }
.opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.opening-lede {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  line-height: 1.45;
}
.body-copy p:first-child { margin-top: 0; }
.body-copy p:last-child { margin-bottom: 0; }
.research-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 6rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.research-key > div { min-height: 170px; padding: 2rem; background: var(--paper-light); }
.research-key p { margin: 1rem 0 0; color: #59625c; font-size: 0.86rem; }
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.62rem 0.34rem;
  border: 1px solid;
  border-radius: 100px;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}
.status.documented { border-color: #799085; color: #315b4b; background: rgba(49,91,75,0.06); }
.status.family { border-color: #8b7862; color: #6f533a; background: rgba(111,83,58,0.07); }
.status.inferred { border-color: #b4816f; color: #8b4933; background: rgba(139,73,51,0.06); }
.status.open { border-color: #9d9584; color: #665f52; background: rgba(102,95,82,0.06); }

.gwen-life { padding-top: 0; }
.gwen-life-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.gwen-life-card { min-height: 320px; padding: 2.5rem; background: var(--paper-light); border: 1px solid var(--rule); }
.gwen-life-card h3 {
  margin: 0.7rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.16;
}
.gwen-life-card > p { color: #58625b; }
.gwen-life-card .status { margin-top: 1rem; }
.gwen-life-card.second-chapter {
  grid-column: 1 / -1;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.gwen-life-card.second-chapter h3 { margin-top: 0.7rem; font-size: clamp(2.4rem, 4.8vw, 4.4rem); }
.gwen-life-card.second-chapter > div:last-child > p { color: #c2cbc5; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.gwen-life-card.second-chapter .status.family { border-color: #caa792; color: #f1d5c7; background: rgba(255,255,255,0.04); }

.dark-section { background: var(--forest); color: var(--paper-light); }
.dark-section a { color: #e0b59f; }
.runner-story {
  display: grid;
  grid-template-columns: minmax(270px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding: var(--section-space) max(1.5rem, calc((100vw - var(--max)) / 2));
}
.runner-figure { display: flex; flex-direction: column; align-items: center; color: #d4c8b7; }
.runner-number { font-family: var(--serif); font-size: clamp(6rem, 14vw, 12rem); letter-spacing: -0.08em; line-height: 0.8; }
.runner-rule { width: 1px; height: 90px; margin: 2rem 0 1.5rem; background: rgba(255,255,255,0.28); }
.runner-figure > span:last-child { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.runner-copy { max-width: 760px; }
.runner-copy p { font-family: var(--serif); font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.6; }
.runner-copy .runner-aside { margin-top: 2.3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.18); color: #bfcac2; font-family: var(--sans); font-size: 0.85rem; }

.family-tree { margin-top: 1rem; }
.tree-generation { display: grid; gap: 1.2rem; }
.tree-generation.ancestors,
.tree-generation.children { grid-template-columns: repeat(3, 1fr); }
.tree-generation.parents { grid-template-columns: repeat(2, 1fr); max-width: 850px; margin: 0 auto; }
.person-card,
.central-couple {
  position: relative;
  padding: 2rem;
  background: var(--paper-light);
  border: 1px solid var(--rule);
  text-align: center;
}
.person-card.subdued { background: transparent; }
.person-card h3,
.central-couple h3 {
  margin: 0.65rem 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
}
.person-card p,
.central-couple p { margin: 0; color: #687069; font-size: 0.82rem; }
.person-card.compact { padding: 1.7rem 1.3rem; }
.central-couple {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--forest);
  color: white;
  border: 0;
}
.central-couple h3 { font-size: clamp(1.8rem, 3.4vw, 3.1rem); }
.central-couple h3 i { color: #d5ad9c; font-weight: 400; }
.central-couple p { color: #b9c4bd; }
.tree-connector { position: relative; width: 1px; height: 68px; margin: 0 auto; background: var(--rule); }
.tree-connector.short { height: 54px; }

.timeline-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: var(--section-space) max(1.5rem, calc((100vw - var(--max)) / 2));
  background: #202c26;
  color: var(--paper-light);
}
.timeline-intro { position: sticky; top: 130px; height: fit-content; }
.timeline-intro > p:last-child { color: #b7c0ba; }
.timeline-list { margin: 0; padding: 0; list-style: none; }
.timeline-list li { display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem; padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,0.16); }
.timeline-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.timeline-list time { color: #d5ae9c; font-family: var(--serif); font-size: 1.35rem; }
.timeline-list h3 { margin: 0 0 0.6rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.timeline-list p { margin: 0 0 1.1rem; color: #bdc5c0; }
.timeline-list .status.documented { border-color: #78978a; color: #b7d1c6; background: rgba(183,209,198,0.05); }
.timeline-list .status.family { border-color: #b89b7c; color: #e2c7aa; background: rgba(226,199,170,0.05); }
.timeline-list .status.inferred { border-color: #a97967; color: #e1baa9; background: rgba(225,186,169,0.05); }

.parent-portrait-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.landscape-photo { min-height: auto; aspect-ratio: 5 / 3; }
.pull-quote { margin: 0 0 2rem; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.18; }
.profile-grid { display: grid; gap: 1.3rem; margin-top: 6rem; }
.profile-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.profile-card { position: relative; padding: 3rem; background: var(--paper-light); border: 1px solid var(--rule); }
.profile-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 5px; }
.profile-card.rust-top::before { background: var(--rust); }
.profile-card.green-top::before { background: var(--forest); }
.profile-index { float: right; color: var(--sand); font-family: var(--serif); font-size: 3.5rem; line-height: 0.8; }
.profile-card h3,
.sibling-grid h3,
.minden-feature h3,
.story-card h3,
.next-records h3,
.source-list h3 {
  margin: 0.7rem 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.18;
}
.profile-dates { margin: 0 0 1.6rem; }
.note-box { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.note-box p { margin-bottom: 0; color: #5f6761; font-size: 0.84rem; }
.sibling-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 6rem; padding-top: 4rem; border-top: 1px solid var(--rule); }
.sibling-grid article { padding-right: 2rem; }

.billy-section { padding: var(--section-space) max(1.5rem, calc((100vw - var(--max)) / 2)); }
.billy-layout { display: grid; grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.billy-photo { min-height: auto; aspect-ratio: 1 / 1; color: var(--forest); }
.billy-copy h2 { color: white; }
.billy-dates { color: #bcc8c0; }
.billy-lede { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.5; }
.billy-copy > p:not(.section-kicker):not(.billy-dates):not(.billy-lede) { color: #c0c8c3; }
.career-route { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; margin-top: 7rem; padding: 2.4rem 0; border-top: 1px solid rgba(255,255,255,0.17); border-bottom: 1px solid rgba(255,255,255,0.17); }
.career-route > div { display: grid; min-width: 110px; }
.career-route div span { color: #d4a992; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; }
.career-route div strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.career-route div small { color: #9cacA2; }
.career-route > i { flex: 1; height: 1px; background: rgba(255,255,255,0.2); }
.billy-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 5rem; background: rgba(255,255,255,0.16); }
.billy-notes article { padding: 2rem; background: var(--forest); }
.billy-notes span { color: #d4a992; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.billy-notes p { color: #bdc6c0; font-size: 0.86rem; }

.descendant-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.descendant-family { padding: 2rem; background: var(--paper-light); border: 1px solid var(--rule); }
.descendant-heading { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.descendant-heading > span { color: var(--rust); font-family: var(--serif); font-size: 1.3rem; }
.descendant-heading h3 { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.descendant-heading p { margin: 0.25rem 0 0; color: var(--moss); font-size: 0.75rem; }
.descendant-family ul { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.descendant-family li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.05rem; }
.descendant-family li small { display: block; color: var(--moss); font-family: var(--sans); font-size: 0.7rem; }
.descendant-note { color: #5c665f; }
.great-grandchildren { margin-top: 2rem; padding: 2rem; border: 1px solid var(--rule); text-align: center; }
.great-grandchildren p { margin: 0.5rem 0 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 1.8rem); }
.great-grandchildren small { display: block; max-width: 780px; margin: 0.75rem auto 0; color: var(--moss); font-size: 0.74rem; }
.memorial-story { display: grid; grid-template-columns: 120px 1fr; gap: 2.5rem; max-width: 950px; margin: 6rem auto 0; padding-top: 4rem; border-top: 1px solid var(--rule); }
.memorial-initial { width: 110px; height: 110px; display: grid; place-items: center; border: 1px solid var(--forest); border-radius: 50%; font-family: var(--serif); font-size: 3.2rem; }
.memorial-story h3 { margin: 0.4rem 0 1rem; font-family: var(--serif); font-size: 2.5rem; font-weight: 500; }

.minden-section { background: var(--rust); color: var(--paper-light); }
.minden-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 5rem; align-items: end; padding: var(--section-space) max(1.5rem, calc((100vw - var(--max)) / 2)) 5rem; }
.minden-hero > p { margin: 0; color: #f0d7cc; }
.minden-grid { display: grid; grid-template-columns: 1fr 1.08fr 1fr; border-top: 1px solid rgba(255,255,255,0.25); }
.minden-feature { padding: clamp(2rem, 5vw, 5rem); }
.minden-feature + .minden-feature { border-left: 1px solid rgba(255,255,255,0.22); }
.minden-feature h3 { color: white; }
.minden-feature p { color: #f0d7cc; }
.feature-number { color: white !important; font-family: var(--serif); font-size: 1.4rem; }
.minden-photo { min-height: 550px; border-top: 0; border-bottom: 0; color: var(--forest); }
.hypothesis { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.25); }
.hypothesis .status.open { color: white; border-color: rgba(255,255,255,0.55); }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.story-card { min-height: 300px; padding: 2.2rem; background: var(--paper-light); border: 1px solid var(--rule); }
.story-card.large { grid-column: span 2; min-height: 380px; background: var(--forest); color: white; }
.story-card.large p { color: #c2cbc5; }
.story-card.wide { grid-column: span 2; }
.story-index { color: var(--rust); font-family: var(--serif); font-size: 1.3rem; }
.story-card.large .story-index { color: #d5a68f; }
.story-card p { color: #58625b; }

.research-key > div,
.gwen-life-card,
.person-card,
.profile-card,
.descendant-family,
.great-grandchildren,
.story-card,
.lineage-line > div:not(.lineage-plus):not(.lineage-arrow):not(.lineage-result),
.photo-placeholder:not(.is-loaded) {
  transition: background-color 180ms ease;
}
.research-key > div:hover,
.research-key > div:focus-within,
.gwen-life-card:not(.second-chapter):hover,
.gwen-life-card:not(.second-chapter):focus-within,
.person-card:hover,
.person-card:focus-within,
.profile-card:hover,
.profile-card:focus-within,
.descendant-family:hover,
.descendant-family:focus-within,
.great-grandchildren:hover,
.great-grandchildren:focus-within,
.story-card:not(.large):hover,
.story-card:not(.large):focus-within,
.lineage-line > div:not(.lineage-plus):not(.lineage-arrow):not(.lineage-result):hover,
.lineage-line > div:not(.lineage-plus):not(.lineage-arrow):not(.lineage-result):focus-within,
.photo-placeholder:not(.is-loaded):hover,
.photo-placeholder:not(.is-loaded):focus-within {
  background-color: var(--card-hover);
}
.gwen-life-card.second-chapter,
.story-card.large,
.billy-notes article,
.next-records {
  transition: background-color 180ms ease;
}
.gwen-life-card.second-chapter:hover,
.gwen-life-card.second-chapter:focus-within,
.story-card.large:hover,
.story-card.large:focus-within,
.billy-notes article:hover,
.billy-notes article:focus-within,
.next-records:hover,
.next-records:focus-within {
  background-color: var(--forest-light);
}
.minden-feature { transition: background-color 180ms ease; }
.minden-feature:hover,
.minden-feature:focus-within { background-color: rgba(111, 50, 32, 0.18); }

.lineage-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.lineage-line > div:not(.lineage-plus):not(.lineage-arrow) { padding: 2rem; background: var(--paper-light); border: 1px solid var(--rule); text-align: center; }
.lineage-line span { color: var(--rust); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.lineage-line h3 { margin: 0.6rem 0 0.25rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.lineage-line p { margin: 0; color: var(--moss); font-size: 0.78rem; }
.lineage-plus { font-family: var(--serif); font-size: 1.8rem; }
.lineage-arrow { grid-column: 1 / -1; text-align: center; color: var(--rust); font-size: 1.4rem; }
.lineage-result { grid-column: 1 / -1; max-width: 540px; width: 100%; margin: 0 auto; background: var(--forest) !important; color: white; border: 0 !important; }
.lineage-result p { color: #b7c2bb; }
.lineage-note { max-width: 800px; margin: 3rem auto 0; text-align: center; color: #58625b; }

.photo-archive { padding: var(--section-space) max(1.5rem, calc((100vw - var(--max)) / 2)); }
.photo-archive-heading { max-width: 820px; }
.photo-archive-heading > p:last-child { color: #bdc7c0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 4rem; }
.photo-grid .photo-placeholder { aspect-ratio: 4 / 5; color: var(--forest); }

.research-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: clamp(3rem, 8vw, 8rem); }
.source-list h3,
.next-records h3 { margin-top: 0; }
.source-list ol { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: sources; border-top: 1px solid var(--rule); }
.source-list li { counter-increment: sources; border-bottom: 1px solid var(--rule); }
.source-list a { position: relative; display: grid; gap: 0.35rem; padding: 1.3rem 3rem 1.3rem 2.7rem; text-decoration: none; }
.source-list a::before { content: counter(sources, decimal-leading-zero); position: absolute; top: 1.35rem; left: 0; color: var(--rust); font-family: var(--serif); }
.source-list a::after { content: "↗"; position: absolute; right: 0; top: 1.35rem; color: var(--rust); }
.source-list a:hover strong { color: var(--rust); }
.source-list strong { font-family: var(--serif); font-size: 1.14rem; font-weight: 500; }
.source-list span { color: #667068; font-size: 0.76rem; }
.next-records { padding: 2.5rem; background: var(--forest); color: white; }
.next-records ol { margin: 2rem 0 0; padding: 0; list-style: none; }
.next-records li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,0.17); }
.next-records li span { color: #d6aa94; font-family: var(--serif); }
.next-records li p { margin: 0; color: #c0c9c3; font-size: 0.84rem; }
.method-note { margin-top: 5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.method-note summary { padding: 1.5rem 0; cursor: pointer; font-family: var(--serif); font-size: 1.25rem; }
.method-note > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; padding: 0 0 2rem; color: #5e6761; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem max(1.5rem, calc((100vw - var(--max)) / 2));
  background: #111a16;
  color: #b9c3bd;
  font-size: 0.78rem;
}
.site-footer > div { display: flex; align-items: center; gap: 1rem; }
.site-footer p { margin: 0; }
.site-footer strong { color: white; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.wordmark-mark.inverted { border-color: #b9c3bd; color: white; }
.site-footer > a { color: white; font-weight: 700; text-decoration: none; }

@media (max-width: 1080px) {
  .site-header nav { gap: 1rem; }
  .hero { grid-template-columns: 1.08fr 0.92fr; }
  .minden-grid { grid-template-columns: 1fr 1fr; }
  .minden-photo { min-height: 430px; }
  .minden-feature:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.22); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .career-route { display: grid; grid-template-columns: repeat(5, 1fr); }
  .career-route > i { display: none; }
}

@media (max-width: 800px) {
  .site-header { min-height: 72px; }
  .wordmark-text { display: none; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .menu-button i,
  .menu-button i::before { display: block; width: 20px; height: 1px; background: var(--ink); transition: transform 160ms ease; }
  .menu-button i { position: relative; }
  .menu-button i::before { content: ""; position: absolute; top: -6px; }
  .menu-button[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] i::before { top: 0; transform: rotate(90deg); }
  .site-header nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    padding: 2rem 1.5rem 3rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .site-header nav.is-open { display: grid; gap: 0; }
  .site-header nav a { padding: 1rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0; text-transform: none; }
  .menu-open { overflow: hidden; }

  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero-copy { order: 1; }
  .hero-photo { order: 2; width: 90%; justify-self: center; }
  .record-note { order: 3; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .opening-grid,
  .split-heading,
  .gwen-life-card.second-chapter,
  .runner-story,
  .timeline-section,
  .parent-portrait-row,
  .billy-layout,
  .minden-hero,
  .research-layout { grid-template-columns: 1fr; }
  .split-heading { gap: 1.5rem; margin-bottom: 3.5rem; }
  .research-key,
  .gwen-life-grid,
  .profile-grid.two-up,
  .sibling-grid,
  .descendant-columns,
  .billy-notes { grid-template-columns: 1fr; }
  .runner-story { padding-top: 6rem; padding-bottom: 6rem; }
  .runner-figure { flex-direction: row; justify-content: flex-start; gap: 1.3rem; }
  .runner-number { font-size: 5rem; }
  .runner-rule { width: 70px; height: 1px; margin: 0; }
  .tree-generation.ancestors,
  .tree-generation.children { grid-template-columns: 1fr; }
  .tree-generation.parents { grid-template-columns: 1fr; }
  .timeline-intro { position: static; }
  .timeline-list li { grid-template-columns: 82px 1fr; }
  .sibling-grid { gap: 2.5rem; }
  .career-route { grid-template-columns: 1fr; gap: 0; }
  .career-route > div { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .memorial-story { grid-template-columns: 80px 1fr; gap: 1.5rem; }
  .memorial-initial { width: 72px; height: 72px; font-size: 2rem; }
  .minden-grid { grid-template-columns: 1fr; }
  .minden-feature:last-child { grid-column: auto; }
  .minden-photo { min-height: 480px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card.large,
  .story-card.wide { grid-column: auto; }
  .method-note > div { grid-template-columns: 1fr; gap: 0; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 560px) {
  .hero,
  .content-section { width: min(calc(100% - 2rem), var(--max)); }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-facts { grid-template-columns: 1fr; gap: 0.8rem; }
  .hero-facts div { grid-template-columns: 90px 1fr; align-items: baseline; }
  .hero-photo { width: 96%; }
  .research-key > div,
  .profile-card { padding: 1.7rem; }
  .central-couple { padding: 2.2rem 1.5rem; }
  .timeline-list li { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline-list time { font-size: 1.1rem; }
  .descendant-family { padding: 1.5rem; }
  .great-grandchildren { text-align: left; }
  .memorial-story { grid-template-columns: 1fr; }
  .minden-photo { min-height: 400px; }
  .photo-grid { grid-template-columns: 1fr; }
  .lineage-line { grid-template-columns: 1fr; }
  .lineage-plus,
  .lineage-arrow { grid-column: 1; text-align: center; }
  .lineage-result { grid-column: 1; }
  .next-records { padding: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header,
  .menu-button,
  .site-footer { position: static; }
  .site-header nav,
  .photo-archive { display: none; }
  .dark-section,
  .timeline-section,
  .minden-section,
  .central-couple,
  .next-records,
  .lineage-result { background: white !important; color: black !important; }
  .content-section { width: 100%; }
  a { text-decoration: none; }
}
