:root {
  --maroon-900: #1b0b0d;
  --maroon-800: #261012;
  --maroon-700: #3a1a1d;
  --maroon-600: #5a2a2f;
  --rose: #c08f93;
  --gold: #c9a46e;
  --cream: #f1e7da;
  --paper: #f5eee4;
  --ink: #2b1a1b;
  --ink-soft: #5b4847;
  --serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(27, 11, 13, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 164, 110, 0.18);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; gap: 1rem;
}
.brand {
  font-family: var(--serif-display); font-size: 1.35rem; letter-spacing: 0.02em;
  color: var(--cream); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--rose); font-weight: 600; font-style: italic; }
.nav { display: flex; gap: 1.5rem; }
.nav a {
  color: rgba(241, 231, 218, 0.78); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.25rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); border-color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(241,231,218,0.35);
  color: var(--cream); border-radius: 4px; padding: 0.35rem 0.6rem; font: inherit; font-size: 0.85rem; cursor: pointer;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--maroon-900);
    border-bottom: 1px solid rgba(201, 164, 110, 0.18);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 58px);
  display: grid; place-items: center; text-align: center;
  padding: 4rem 1.25rem 5rem;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(122, 52, 60, 0.55), transparent 60%),
    radial-gradient(ellipse at 15% 90%, rgba(90, 42, 47, 0.5), transparent 55%),
    linear-gradient(180deg, var(--maroon-800), var(--maroon-900));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.oval {
  width: clamp(190px, 34vw, 260px); aspect-ratio: 3 / 4;
  margin: 0 auto 2.25rem; border-radius: 50%; overflow: hidden;
  outline: 1px solid rgba(201, 164, 110, 0.55); outline-offset: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.oval img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: sepia(0.25) contrast(1.02); }
.hero h1 {
  font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.15; margin: 0 0 0.35rem;
}
.hero h1 .odobo { display: block; color: var(--rose); font-style: italic; font-weight: 600; font-size: 0.72em; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.dates { font-family: var(--serif-display); letter-spacing: 0.3em; color: var(--gold); font-size: 1.05rem; margin: 0.6rem 0 1.8rem; }
.dedication {
  font-style: italic; color: rgba(241, 231, 218, 0.86);
  max-width: 34rem; margin: 0 auto 0.9rem; font-size: 1.05rem;
}
.sponsor { font-size: 0.9rem; color: rgba(241, 231, 218, 0.6); margin: 0 auto 2.4rem; max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--serif-text); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; border-radius: 2px;
  border: 1px solid rgba(201, 164, 110, 0.7); color: var(--cream); background: transparent;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: var(--maroon-900); }
.btn.solid { background: var(--gold); color: var(--maroon-900); border-color: var(--gold); }
.btn.solid:hover { background: #d9b882; }

/* ---------- Page headers ---------- */
.page-head {
  background: linear-gradient(180deg, var(--maroon-800), var(--maroon-700));
  color: var(--cream); text-align: center; padding: 3.5rem 1.25rem 3rem;
}
.eyebrow { font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.6rem; }
.page-head h1 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0; line-height: 1.1; }
.page-head p.lede { max-width: 36rem; margin: 0.9rem auto 0; color: rgba(241,231,218,0.75); font-style: italic; }

/* ---------- Biography ---------- */
.bio {
  max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.25rem 4rem;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 3.5rem; align-items: start;
}
.bio aside { position: sticky; top: 84px; }
.bio aside figure { margin: 0 0 2rem; }
.bio aside img { width: 100%; height: auto; border: 8px solid #fff; box-shadow: 0 10px 30px rgba(43,26,27,0.18); filter: sepia(0.15); }
.bio aside figcaption { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin-top: 0.6rem; text-align: center; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(90, 42, 47, 0.3); }
.timeline li { position: relative; padding: 0 0 1rem 1.1rem; font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 0.45em; width: 7px; height: 7px; border-radius: 50%; background: var(--maroon-600); }
.timeline b { display: block; font-family: var(--serif-display); font-size: 1.15rem; color: var(--maroon-600); font-weight: 600; }
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1.35rem; }
.prose > p:first-of-type::first-letter {
  font-family: var(--serif-display); float: left; font-size: 4.2rem; line-height: 0.85;
  padding: 0.35rem 0.6rem 0 0; color: var(--maroon-600);
}
.prose blockquote {
  margin: 2.2rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 2px solid var(--gold);
  font-family: var(--serif-display); font-size: 1.5rem; line-height: 1.35; font-style: italic; color: var(--maroon-600);
}
.prose .closing { font-family: var(--serif-display); font-size: 1.45rem; font-style: italic; color: var(--maroon-600); text-align: center; margin-top: 2.6rem; }
@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; gap: 2rem; }
  .bio aside { position: static; max-width: 360px; margin: 0 auto; }
}

/* ---------- Gallery ---------- */
.gallery-wrap { max-width: 1280px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.gallery-wrap h2 { font-family: var(--serif-display); font-weight: 500; font-size: 1.9rem; color: var(--maroon-600); margin: 0 0 0.3rem; }
.gallery-wrap h2 + p { color: var(--ink-soft); margin: 0 0 1.6rem; font-style: italic; }
.gallery-section + .gallery-section { margin-top: 3.5rem; }
.grid { columns: 4 240px; column-gap: 14px; }
.grid a {
  display: block; margin: 0 0 14px; break-inside: avoid; background: #fff; padding: 6px;
  box-shadow: 0 4px 14px rgba(43,26,27,0.12); transition: transform 0.2s, box-shadow 0.2s;
}
.grid a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43,26,27,0.2); }
.grid img { width: 100%; height: auto; }

.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(15, 6, 7, 0.95); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--cream); cursor: pointer;
  font-size: 2.2rem; line-height: 1; padding: 0.8rem; opacity: 0.8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 0.5rem; right: 0.75rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(241,231,218,0.6); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ---------- Memory form ---------- */
.form-wrap { max-width: 40rem; margin: 0 auto; padding: 3rem 1.25rem 4.5rem; }
.form-wrap > p { color: var(--ink-soft); }
form.memory { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
form.memory label { display: grid; gap: 0.35rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--maroon-600); }
form.memory input, form.memory textarea {
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: normal; color: var(--ink);
  padding: 0.75rem 0.85rem; border: 1px solid rgba(90, 42, 47, 0.3); background: #fffdf9; border-radius: 2px;
}
form.memory input:focus, form.memory textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
form.memory textarea { min-height: 11rem; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-wrap .btn { justify-self: start; color: var(--maroon-900); }
.form-status { min-height: 1.5rem; font-style: italic; }
.form-status.ok { color: #3f6b3f; }
.form-status.err { color: #8a2f2f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-900); color: rgba(241, 231, 218, 0.6);
  text-align: center; padding: 2.4rem 1.25rem; font-size: 0.85rem;
}
.site-footer .rip { font-family: var(--serif-display); font-style: italic; font-size: 1.3rem; color: var(--cream); margin: 0 0 0.5rem; }
.site-footer p { margin: 0.25rem 0; }
