/* ---- tokens ------------------------------------------------------- */
:root {
  --ground:     #faf8f4;
  --surface:    #ffffff;
  --ink:        #24211d;
  --ink-soft:   #5f584f;
  --ink-faint:  #8b8379;
  --line:       #e6e0d6;
  --accent:     #6b7f6e;
  --accent-bg:  #eef1ec;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 40rem;
  --gutter:  1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:    #161514;
    --surface:   #1f1d1b;
    --ink:       #ece7df;
    --ink-soft:  #a8a096;
    --ink-faint: #7d766d;
    --line:      #332f2b;
    --accent:    #9ab09b;
    --accent-bg: #212523;
  }
}

/* ---- base --------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

/* ---- hero --------------------------------------------------------- */
.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 4.5rem 3rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.dates {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.lede {
  max-width: 28rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

/* ---- portrait ----------------------------------------------------- */
.portrait {
  margin: 0 auto 2rem;
  width: min(15rem, 60vw);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  filter: saturate(0.92);
}

/* ---- life sketch -------------------------------------------------- */
.remembering p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

/* ---- sections ----------------------------------------------------- */
main { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }

section { padding-block: 2.75rem; border-top: 1px solid var(--line); }
section[hidden] { display: none; }

section h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

/* date line directly under a section heading */
.section-date {
  margin: -1rem 0 1.75rem;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---- schedule ----------------------------------------------------- */
.schedule { list-style: none; margin: 0; padding: 0; }

.schedule li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}
.schedule li:last-child { padding-bottom: 0; }

.schedule .time {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  padding-top: 0.2rem;
}

.schedule .what { border-left: 1px solid var(--line); padding-left: 1.25rem; }

.schedule h3 { font-size: 1.1875rem; margin: 0 0 0.2rem; }

.schedule .dur {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.schedule .where {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

/* events without a duration line: keep the usual gap before the description */
.schedule .where + p:not(.dur) { margin-top: 0.6rem; }

.schedule .what > p:not(.dur):not(.where) { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---- places ------------------------------------------------------- */
.place {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.place:last-child { margin-bottom: 0; }

.place h3 { font-size: 1.25rem; margin: 0 0 0.75rem; }

.addr {
  font-family: var(--serif);
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.note { font-size: 0.9375rem; color: var(--ink-soft); }
.note strong { color: var(--ink); font-weight: 600; }

/* arrival / wayfinding sub-block inside a place card */
.place .arrival {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.arrival-label,
.place-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
}

.arrival .addr { font-size: 0.9375rem; margin-bottom: 0.4rem; }

.arrival .note { margin-bottom: 0.9rem; }

.maplink {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ---- facts list --------------------------------------------------- */
.facts { margin: 0; }

.facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}

.facts dd {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.facts dd:last-child { margin-bottom: 0; }

/* hidden entries stay in the markup but are fully removed from the page */
.facts [hidden] { display: none; }
.facts dd:has(+ dt[hidden]) { margin-bottom: 0; }

/* ---- footer ------------------------------------------------------- */
footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 2.5rem 4.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.thanks {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-faint);
  margin-top: 1.5rem;
}

/* ---- narrow ------------------------------------------------------- */
@media (max-width: 34rem) {
  .schedule li { grid-template-columns: 1fr; gap: 0.35rem; }
  .schedule .what { border-left: none; padding-left: 0; }
  .hero { padding-block: 3rem 2rem; }
}

/* ---- print -------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  section { break-inside: avoid; }
  .maplink { display: none; }
  .arrival .note { margin-bottom: 0; }
}

