:root {
  --ink: #2f4d3d;
  --ink-deep: #243b30;
  --sage: #8ba192;
  --sage-soft: #dfe8e1;
  --paper: #f8f7f0;
  --warm: #d4b85d;
  --blue: #8aa7ad;
  --clay: #c88368;
  --shadow: 0 22px 60px rgba(33, 52, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-deep);
  background:
    radial-gradient(circle at 10% 20%, rgba(212, 184, 93, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(138, 167, 173, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 247, 240, 0.92)),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(47, 77, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 77, 61, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(47, 77, 61, 0.12);
  background: rgba(248, 247, 240, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand strong {
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.5rem);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a,
nav button {
  text-decoration: none;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.05rem;
  border: 1px solid rgba(47, 77, 61, 0.28);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-button,
.button {
  cursor: pointer;
}

button.nav-button,
button.button {
  color: inherit;
}

.button:hover,
.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(33, 52, 42, 0.14);
}

.primary {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.secondary,
.nav-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.hero {
  display: grid;
  grid-template-columns: minmax(17rem, 0.95fr) minmax(19rem, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: calc(100svh - 5rem);
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem) 2rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  color: var(--ink);
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: 0.92;
}

h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.35rem;
}

.intro {
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.living-note {
  max-width: 34rem;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--warm);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(36, 59, 48, 0.86);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.portrait-stage {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  min-height: 34rem;
}

.photo-card {
  position: relative;
  z-index: 1;
  margin: 0;
}

.photo-card.current {
  transform: translateY(3.2rem);
}

.photo-placeholder {
  position: relative;
  display: grid;
  min-height: clamp(18rem, 35vw, 31rem);
  place-items: end start;
  padding: 1.25rem;
  overflow: hidden;
  border: 10px solid #fff;
  background:
    linear-gradient(140deg, rgba(36, 59, 48, 0.2), transparent 45%),
    linear-gradient(35deg, rgba(138, 167, 173, 0.42), rgba(212, 184, 93, 0.22)),
    var(--sage-soft);
  box-shadow: var(--shadow);
}

.childhood .photo-placeholder {
  filter: grayscale(0.88);
  background:
    linear-gradient(135deg, rgba(36, 59, 48, 0.62), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 7px),
    #7b766d;
}

.photo-placeholder span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.childhood .photo-placeholder img {
  filter: grayscale(1) sepia(0.12) contrast(0.94);
  object-position: center top;
}

.current .photo-placeholder img {
  object-position: 54% 40%;
}

figcaption {
  margin-top: 0.85rem;
  color: rgba(36, 59, 48, 0.76);
  font-size: 1rem;
  font-style: italic;
}

.balloon {
  position: absolute;
  width: clamp(5rem, 10vw, 8rem);
  opacity: 0.86;
}

.balloon-one {
  top: 0;
  right: 5%;
}

.balloon-two {
  bottom: 0;
  left: -2%;
  transform: scaleX(-1) rotate(-10deg);
}

.memory-band,
.celebration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-block: 1px solid rgba(47, 77, 61, 0.18);
}

.memory-band h2,
.celebration h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.section,
.timeline-section {
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(14rem, 0.45fr) minmax(19rem, 1fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading h2 {
  max-width: 15ch;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
}

.memory-card {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem;
  border: 1px solid rgba(47, 77, 61, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 32px rgba(33, 52, 42, 0.08);
}

.memory-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.memory-card p {
  font-size: 1.13rem;
}

.memory-card details {
  margin-top: 1rem;
}

.memory-card summary {
  width: fit-content;
  cursor: pointer;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-card details p {
  margin-top: 1rem;
}

.long-memory {
  grid-column: span 2;
}

.memory-card cite {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-section {
  padding-top: 2rem;
}

.gallery-chapters {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.gallery-chapter {
  display: grid;
  grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.25rem, 3vw, 2.4rem);
  border-top: 1px solid rgba(47, 77, 61, 0.16);
}

.chapter-copy {
  position: sticky;
  top: 6rem;
}

.chapter-copy h3 {
  margin-bottom: 0.6rem;
}

.chapter-copy p {
  color: rgba(36, 59, 48, 0.76);
  font-size: 1.05rem;
}

.chapter-copy span,
.more-photos summary {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-gallery {
  display: grid;
  gap: 1rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.more-photos {
  display: grid;
  gap: 1rem;
}

.more-photos summary {
  width: fit-content;
  cursor: pointer;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(47, 77, 61, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.extra-photos {
  padding-top: 0.2rem;
}

.gallery-photo {
  margin: 0;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  background: var(--sage-soft);
  box-shadow: 0 12px 32px rgba(33, 52, 42, 0.09);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.timeline {
  display: grid;
  gap: 1rem;
  max-width: 58rem;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(47, 77, 61, 0.18);
}

.timeline span,
.date-lockup span {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.party-details p {
  max-width: 38rem;
  font-size: 1.2rem;
}

.date-lockup {
  display: grid;
  min-width: 11rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(47, 77, 61, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.date-lockup strong {
  margin-top: -1.2rem;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.8rem;
  line-height: 1;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1.2rem;
  padding: 2rem 1rem 3rem;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

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

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .portrait-stage {
    min-height: 26rem;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }

  .long-memory {
    grid-column: auto;
  }

  .gallery-chapter {
    grid-template-columns: 1fr;
  }

  .chapter-copy {
    position: static;
  }

  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-band,
  .celebration {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand span {
    display: none;
  }

  nav {
    gap: 0.55rem;
    font-size: 0.72rem;
  }

  .nav-button,
  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .portrait-stage {
    grid-template-columns: 1fr;
  }

  .photo-card.current {
    transform: none;
  }

  .balloon-one {
    top: -2rem;
    right: 0;
  }

  .balloon-two {
    display: none;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }
}
