:root {
  --ink: #2f2430;
  --muted: #775c64;
  --rose: #c84f74;
  --rose-deep: #8d294f;
  --petal: #fff3f6;
  --blush: #ffd8e3;
  --mint: #dff4e8;
  --leaf: #0f766e;
  --sun: #ffe99a;
  --cream: #fffaf4;
  --shadow: 0 20px 60px rgba(62, 31, 48, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 216, 227, 0.8), rgba(223, 244, 232, 0.7) 45%, rgba(255, 233, 154, 0.55)),
    var(--cream);
  font-family:
    "Segoe UI",
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 34%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(41, 25, 34, 0.82), rgba(75, 31, 49, 0.32) 48%, rgba(255, 216, 227, 0.08)),
    linear-gradient(0deg, rgba(47, 36, 48, 0.7), transparent 50%);
}

.topbar {
  position: absolute;
  top: 24px;
  right: clamp(18px, 4vw, 56px);
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.topbar a {
  min-width: 78px;
  padding: 10px 14px;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.topbar a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-copy {
  width: min(760px, calc(100% - 40px));
  margin: 0 0 clamp(34px, 7vw, 82px) clamp(20px, 7vw, 96px);
  color: white;
}

.name-ribbon {
  width: min(520px, 92vw);
  height: 86px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.88;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.5vw, 4.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.lede {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--sun);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.primary-link:hover {
  transform: translateY(-2px);
}

.intro-band,
.timeline-section,
.gallery-section,
.promise-band,
.letter-section {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 6vw, 84px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  background: rgba(255, 250, 244, 0.86);
}

.intro-copy p:last-child,
.memory-card p,
.promise-list p,
.letter p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stats-grid article,
.memory-card,
.letter {
  border: 1px solid rgba(141, 41, 79, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.stats-grid article {
  min-height: 132px;
  padding: 22px;
}

.stats-grid strong {
  display: block;
  color: var(--rose-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.timeline-section {
  background:
    linear-gradient(180deg, rgba(255, 216, 227, 0.55), rgba(223, 244, 232, 0.5)),
    var(--petal);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.memory-card {
  min-height: 260px;
  padding: 22px;
}

.memory-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: white;
  background: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-section {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1.1fr;
  grid-auto-rows: 310px;
  gap: 14px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--petal);
  box-shadow: var(--shadow);
}

.photo-tile.tall {
  grid-row: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  color: white;
  background: rgba(47, 36, 48, 0.62);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-tile.is-loved::after {
  content: "Loved";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 11px;
  color: var(--rose-deep);
  background: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promise-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  color: white;
  background:
    linear-gradient(120deg, rgba(47, 36, 48, 0.94), rgba(15, 118, 110, 0.86)),
    var(--ink);
}

.promise-band .section-kicker,
.promise-band h2 {
  color: white;
}

.promise-list {
  display: grid;
  gap: 12px;
}

.promise-list p {
  margin: 0;
  padding: 18px;
  color: rgba(255, 255, 255, 0.88);
  border-left: 4px solid var(--sun);
  background: rgba(255, 255, 255, 0.08);
}

.letter-section {
  background:
    linear-gradient(rgba(255, 250, 244, 0.9), rgba(255, 250, 244, 0.82)),
    url("assets/sharmeen-yellow-dress.jpeg") center 28% / cover fixed;
}

.letter {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
}

.letter h2 {
  color: var(--rose-deep);
}

.signature {
  margin: 26px 0 0;
  color: var(--rose-deep) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem !important;
  font-weight: 800;
}

@media (max-width: 980px) {
  .intro-band,
  .promise-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .hero {
    min-height: 88vh;
  }

  .hero-photo {
    object-position: 58% 28%;
  }

  .topbar {
    left: 12px;
    right: auto;
    width: min(360px, calc(100vw - 24px));
    gap: 0;
    justify-content: center;
  }

  .topbar a {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 8px;
  }

  .hero-copy {
    width: min(360px, calc(100vw - 28px));
    margin: 0 14px 30px;
  }

  .name-ribbon {
    width: min(360px, calc(100vw - 28px));
    height: 58px;
  }

  h1 {
    font-size: clamp(2.95rem, 13.5vw, 3.9rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.65rem);
    overflow-wrap: break-word;
  }

  .intro-copy,
  .section-heading,
  .promise-list,
  .letter {
    min-width: 0;
    max-width: min(100%, 360px);
  }

  .intro-band,
  .timeline-section,
  .gallery-section,
  .promise-band,
  .letter-section {
    padding-inline: 16px;
  }

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

  .stats-grid article {
    min-height: 110px;
  }

  .gallery-grid {
    grid-auto-rows: 420px;
  }

  .photo-tile.tall {
    grid-row: span 1;
  }
}
