:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --paper-warm: #f2eee6;
  --ink: #232321;
  --muted: #6e6a62;
  --line: #ded7ca;
  --sage: #5e7164;
  --sage-dark: #40554a;
  --rose: #b17c71;
  --shadow: 0 24px 70px rgba(62, 57, 49, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(222, 215, 202, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 560px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 56px);
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 820px;
  font-size: clamp(68px, 13vw, 154px);
}

h2 {
  font-size: clamp(42px, 6vw, 78px);
}

.dates {
  margin: 18px 0 0;
  color: var(--rose);
  font-size: clamp(20px, 3vw, 30px);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.intro {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--sage-dark);
  color: #fff;
}

.button.secondary {
  color: var(--sage-dark);
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

.gallery-placeholder span {
  color: rgba(35, 35, 33, 0.48);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.remembrance,
.photos,
.service {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.remembrance {
  background: #fffdf8;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 18px;
}

.prose p:first-child {
  margin-top: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: 28px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 16px;
}

.gallery figure {
  min-width: 0;
  margin: 0;
}

.gallery-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(94, 113, 100, 0.12), rgba(177, 124, 113, 0.14)),
    #f5f1e9;
}

.gallery figure:has(.tall) {
  grid-row: span 2;
}

.gallery figure:has(.wide) {
  grid-column: span 2;
}

.service {
  background: var(--paper-warm);
}

.service-card {
  max-width: 760px;
}

.service-card p:not(.section-kicker) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  padding: 28px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero,
  .section-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-photo {
    width: min(100%, 520px);
    max-width: 520px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
}

@media (max-width: 520px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 58px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery figure:has(.tall),
  .gallery figure:has(.wide) {
    grid-column: auto;
    grid-row: auto;
  }
}
