/* Colors and fonts in one place, so they are easy to change. */
:root {
  --paper: #faf8f4;
  --ink: #2b2a28;
  --muted: #6d6860;
  --rule: #ddd6ca;
  --accent: #6b5a43;
  --placeholder: #ece7de;
  --heading-font: "Cormorant Garamond", Georgia, serif;
  --body-font: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Header */
.hero {
  text-align: center;
  padding: 4.5rem 1rem 2.5rem;
}
.portrait {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--placeholder);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1.1;
  margin: 0.4rem 0 0.5rem;
}
.dates { margin: 0; color: var(--muted); }
.epigraph {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  font-style: italic;
  color: var(--accent);
}

/* Section links */
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); }

/* Sections */
main { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
section { padding: 3.5rem 0 1rem; }
h2 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 2.1rem;
  text-align: center;
  margin: 0 0 1.75rem;
}
h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--accent);
  margin: 0.9rem auto 0;
}

/* Photos */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
figure { margin: 0; }
figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
figure.empty::before {
  content: "Photo to come";
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--placeholder);
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}
figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Memories */
.intro, .share { text-align: center; color: var(--muted); }
.memory {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--rule);
}
.memory p { margin: 0 0 0.5rem; }
.memory cite { font-style: normal; font-size: 0.95rem; color: var(--accent); }
.memory cite::before { content: "\2014\00a0"; }

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem 1rem 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
