:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: #e8e0d4;
  --accent: #6f4e37;
  --accent-soft: #efe4d8;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }

a { color: var(--accent); }

.site-header,
.site-footer {
  padding: 1rem clamp(1rem, 4vw, 3rem);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.95);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.container {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: clamp(3rem, 9vw, 7rem) 0 2rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

h1, h2 {
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 8vw, 5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 68ch;
}

.card-grid {
  display: grid;
  gap: 1rem;
  padding: 2rem 0 4rem;
}

.person-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.person-card img,
.portrait {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--accent-soft);
}

.muted, .dates { color: var(--muted); }

.profile {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 8vw, 5rem) 0;
}

.portrait {
  width: 100%;
  box-shadow: var(--shadow);
}

.section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.photo-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.photo-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-button img,
.video-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.video-card { margin: 0; }
.video-card figcaption { padding: 0.75rem 1rem 1rem; color: var(--muted); }

.story { max-width: 72ch; }
.timeline ol { padding-left: 1.25rem; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

#lightbox {
  border: 0;
  border-radius: 1rem;
  padding: 0;
  max-width: min(92vw, 1100px);
  background: transparent;
}

#lightbox::backdrop { background: rgba(0, 0, 0, 0.75); }
#lightbox img { border-radius: 1rem; max-height: 86vh; }
#close-lightbox {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
  border: 0;
  background: white;
  border-radius: 999px;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .person-card,
  .profile {
    grid-template-columns: 1fr;
  }

  .person-card img { width: 120px; }
}

.photo-button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.random-photo-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 2rem;
}

.random-photo-frame {
  width: 100%;
  margin: 1rem 0;
  cursor: zoom-in;
}

.random-photo-frame img {
  width: 100%;
  max-height: 70vh;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--accent-soft);
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.primary-button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.1rem;
  font: inherit;
  cursor: pointer;
}