/* haroldandsue.com — Harold & Sue Sermon
   Palette drawn from the Snake River valley: basalt, sagebrush dust,
   river green, dry-grass gold. */

:root {
  --ink: #1b2320;
  --ink-soft: #3c463f;
  --paper: #e9ebe4;
  --paper-deep: #dee2d7;
  --river: #2e5a56;
  --wheat: #b98a2f;
  --sage: #8a9187;
  --rule: #c3c9bd;

  --display: "Zilla Slab", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --utility: "Barlow Condensed", "Helvetica Neue", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

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

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

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

a { color: var(--river); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--river); outline-offset: 3px; }

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

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--measure); }

/* ---------- utility label ---------- */
.label {
  font-family: var(--utility);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sage);
}

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.masthead__home {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.nav { display: flex; gap: 1.4rem; }
.nav a {
  font-family: var(--utility);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav a[aria-current="page"] { color: var(--river); box-shadow: 0 2px 0 var(--wheat); }

/* ---------- hero: the confluence ---------- */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }

.confluence {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}
.confluence__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.confluence__dates {
  font-family: var(--utility);
  letter-spacing: 0.1em;
  font-size: 0.9375rem;
  color: var(--sage);
  margin-top: 0.5rem;
  text-transform: uppercase;
}
.confluence__side--right { text-align: right; }

.knot {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--river);
}
.knot__rule { width: 1px; height: clamp(2.5rem, 8vw, 4.5rem); background: var(--rule); }
.knot__mark {
  font-family: var(--utility);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  writing-mode: vertical-rl;
  color: var(--wheat);
}

.hero__thesis {
  margin: clamp(2.25rem, 6vw, 3.25rem) auto 0;
  font-size: clamp(1.125rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  text-align: center;
  max-width: 33rem;
  color: var(--ink-soft);
}
.hero__thesis strong { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(2.75rem, 7vw, 4.75rem) 0; border-top: 1px solid var(--rule); }
.section__head { margin-bottom: 2rem; }
.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.015em;
  margin: 0.35rem 0 0;
}

.lives { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr 1fr; }
@media (max-width: 46rem) { .lives { grid-template-columns: 1fr; } }

.life h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  margin: 0.3rem 0 0.75rem;
}
.life p { margin: 0 0 1rem; }
.life p:last-child { margin-bottom: 0; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0 1.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.tl:first-child { border-top: 0; }
.tl__year {
  font-family: var(--utility);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--wheat);
  padding-top: 0.15rem;
}
.tl__body p { margin: 0; }
.tl__who {
  font-family: var(--utility);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage);
  display: block;
  margin-bottom: 0.15rem;
}
.tl--both { background: var(--paper-deep); }
.tl--both .tl__who { color: var(--river); }
@media (max-width: 34rem) {
  .tl { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- memories ---------- */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: flex-end;
  padding: 1.25rem 0 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.control { display: grid; gap: 0.35rem; }
.control select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  min-width: 11rem;
}
.count {
  font-family: var(--utility);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  color: var(--sage);
  margin-left: auto;
}

.memory { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.memory__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; margin-bottom: 0.6rem; }
.memory__from { font-family: var(--display); font-weight: 600; font-size: 1.125rem; }
.memory__tag {
  font-family: var(--utility);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--river);
  border: 1px solid var(--rule);
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
}
.memory__when { font-family: var(--utility); letter-spacing: 0.08em; font-size: 0.875rem; color: var(--sage); }
.memory__text { max-width: var(--measure); }
.memory__text p { margin: 0 0 0.9rem; }
.memory__text p:last-child { margin-bottom: 0; }

.gallery { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.gallery a { display: block; width: 9.5rem; }
.gallery img { border: 1px solid var(--rule); aspect-ratio: 4/3; object-fit: cover; }

.empty {
  padding: 3.5rem 0;
  text-align: center;
  color: var(--ink-soft);
}
.empty p { max-width: 28rem; margin: 0 auto 1.25rem; }

/* ---------- callout / button ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  font-family: var(--utility);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--river);
  border-radius: 2px;
  text-decoration: none;
  background: var(--river);
  color: var(--paper);
  cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--river); }
.btn--ghost:hover { background: var(--river); color: var(--paper); }

/* ---------- form ---------- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.4rem; max-width: var(--measure); }
.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  width: 100%;
}
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.6; }
.field__hint { font-size: 0.9rem; color: var(--sage); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3.5rem;
  color: var(--sage);
  font-size: 0.9375rem;
}
.foot a { color: var(--ink-soft); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
