:root {
  color-scheme: light;
  --ink: #2c2022;
  --pink: #ed8e9c;
  --soft: #fff4f3;
  --rose: #f7c6ca;
  --muted: #806c70;
  --white: #fffdfc;
  --display: "Playfair Display", Georgia, serif;
  --script: "Parisienne", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--soft);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#c9959b .8px, transparent .8px);
  background-size: 22px 22px;
  content: "";
  opacity: .2;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #a84e60;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.sample-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 5vw;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  background: #24191b;
  color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
}

.sample-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.sample-brand span {
  color: #f6a8b1;
}

.sample-bar-label {
  color: #d9c8ca;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.sample-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sample-links a,
.sample-back {
  padding: 8px 10px;
  border-radius: 2px;
  color: #f6e9e9;
}

.sample-links a:hover,
.sample-links a[aria-current="page"] {
  background: rgb(255 255 255 / 13%);
  color: white;
}

.sample-back {
  color: #f6c8ce;
}

.sample-back span {
  margin-left: 5px;
}

.page-nav {
  position: absolute;
  z-index: 20;
  top: 48px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 5%;
  color: white;
  font-size: 12px;
}

.page-logo {
  font-family: var(--script);
  font-size: 28px;
}

.page-logo span {
  color: #f6a8b1;
}

.page-nav-links {
  display: flex;
  gap: clamp(15px, 2.4vw, 30px);
}

.page-nav-links a,
.nav-heart {
  transition: color .2s ease;
}

.page-nav-links a:hover,
.nav-heart:hover {
  color: #ffccd2;
}

.nav-heart {
  font-size: 19px;
}

.hero {
  position: relative;
  display: flex;
  min-height: max(680px, calc(100svh - 48px));
  align-items: flex-end;
  overflow: hidden;
  background: #39272a url("https://images.unsplash.com/photo-1513151233558-d860c5398176?auto=format&fit=crop&w=1800&q=90") center 43% / cover;
  color: white;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(22 16 17 / 77%), rgb(22 16 17 / 18%) 80%), linear-gradient(0deg, rgb(36 23 25 / 86%), transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1150px, 90%);
  margin: 0 auto 12vh;
}

.kicker,
.section-label,
.letter-kicker,
.chapter,
.scroll-cue,
.film-card figcaption > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.kicker {
  margin: 0;
  color: #ffe2e4;
}

.hero h1 {
  margin: 20px 0;
  font-family: var(--display);
  font-size: clamp(58px, 9vw, 110px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .9;
}

.script {
  color: #f6a8b1;
  font-family: var(--script);
  font-size: 1.05em;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 0;
  color: #fff5f5;
  font-size: 15px;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 23px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: white;
  box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
  color: #3a292c;
  cursor: pointer;
  font: 600 12px "DM Sans", sans-serif;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #ffe8ea;
}

.scroll-cue {
  position: absolute;
  right: 5%;
  bottom: 35px;
  z-index: 2;
  color: #fff2f2;
  font-size: 8px;
  text-align: center;
}

.scroll-cue span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.section {
  padding: clamp(70px, 9vw, 110px) 5%;
}

.content-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-label {
  margin: 0;
  color: #d86f7d;
  text-align: center;
}

.section-title {
  margin: 10px 0 44px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 61px);
  font-weight: 500;
  letter-spacing: -.05em;
  text-align: center;
}

.section-title > span {
  color: #dd8490;
}

.letter-section {
  background: #fffaf9;
}

.letter-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
}

.portrait-image {
  min-height: 540px;
  border-radius: 22px;
  background: #e7c9c7 url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1000&q=90") center / cover;
  box-shadow: 0 20px 55px rgb(109 65 71 / 12%);
}

.letter-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #f0dddd;
  border-radius: 22px;
  background: white;
}

.letter-kicker {
  margin: 0 0 15px;
  color: #d86f7d;
}

.letter-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.13;
}

.letter-card p:not(.letter-kicker, .signature) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.signature {
  margin: 20px 0 0;
  color: #c86b78;
  font-family: var(--script);
  font-size: 34px;
}

.story-section {
  background: #fff4f3;
}

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

.memory-card {
  overflow: hidden;
  border: 1px solid #f1dddd;
  border-radius: 18px;
  background: white;
  transition: transform .25s ease, box-shadow .25s ease;
}

.memory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgb(109 65 71 / 10%);
}

.memory-card img {
  display: block;
  width: 100%;
  height: clamp(210px, 27vw, 310px);
  object-fit: cover;
}

.memory-copy {
  padding: 22px 24px 25px;
}

.chapter {
  color: #df7a88;
  font-size: 9px;
}

.memory-copy h3,
.love-card h3 {
  margin: 8px 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
}

.memory-copy p,
.love-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.gallery-section {
  background: #fffaf9;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 13px;
}

.photo-gallery img {
  display: block;
  width: 100%;
  height: clamp(150px, 23vw, 270px);
  border-radius: 15px;
  object-fit: cover;
}

.photo-gallery img:nth-child(even) {
  margin-top: 22px;
}

.love-section {
  background: #fff1f1;
}

.love-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.love-card {
  min-height: 185px;
  padding: 24px;
  border: 1px solid #f0dddd;
  border-radius: 17px;
  background: white;
}

.love-card > span {
  color: #d86f7d;
  font-size: 25px;
}

.love-card h3 {
  font-size: 20px;
}

.film-section {
  background: #fffaf9;
}

.film-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  background: #201719;
  color: white;
}

.film-card img {
  display: block;
  width: 100%;
  height: clamp(300px, 47vw, 510px);
  object-fit: cover;
  opacity: .65;
}

.film-card::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgb(25 17 18 / 80%));
  content: "";
}

.film-card figcaption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 25px;
  left: 34px;
}

.film-card figcaption > span {
  color: #ffd8de;
  font-size: 9px;
}

.film-card figcaption p {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 30px);
}

.film-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  padding-left: 4px;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  font-size: 17px;
}

.wish-section {
  background: linear-gradient(135deg, #fff0f1, #fffaf8);
  text-align: center;
}

.wish-content {
  max-width: 740px;
}

.cake-button {
  display: inline-grid;
  width: 110px;
  height: 110px;
  place-items: center;
  margin-top: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 40px rgb(109 65 71 / 10%);
  cursor: pointer;
  font-size: 65px;
  transition: transform .2s ease;
}

.cake-button:hover {
  transform: scale(1.08) rotate(-4deg);
}

.wish-content h2 {
  margin: 19px 0 12px;
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 65px);
  font-weight: 500;
  letter-spacing: -.05em;
}

.wish-content > p:not(.section-label, .celebration-message) {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.wish-button {
  background: #3a292c;
  color: white;
}

.wish-button:hover {
  background: #583c41;
}

.celebration-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: #a94d60;
  font-size: 12px;
}

.confetti {
  position: fixed;
  z-index: 99;
  top: -24px;
  pointer-events: none;
  animation: confetti-fall 3.5s linear forwards;
  font-size: 20px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 5%;
  background: #21181a;
  color: #d9c8ca;
  font-size: 11px;
}

.page-footer a:hover {
  color: white;
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

@media (max-width: 800px) {
  .sample-bar {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-right: 4vw;
    padding-left: 4vw;
    white-space: nowrap;
  }

  .sample-bar-label {
    display: none;
  }

  .sample-links {
    flex: 1 0 auto;
  }

  .sample-links a,
  .sample-back {
    padding: 8px 7px;
    font-size: 10px;
  }

  .page-nav {
    padding: 15px 6%;
  }

  .page-nav-links {
    gap: 13px;
  }

  .page-nav-links a {
    font-size: 10px;
  }

  .letter-layout {
    grid-template-columns: 1fr;
  }

  .portrait-image {
    min-height: 430px;
  }

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

@media (max-width: 560px) {
  .sample-brand {
    font-size: 14px;
  }

  .sample-links {
    gap: 0;
  }

  .sample-links a,
  .sample-back {
    padding: 8px 5px;
    font-size: 9px;
  }

  .page-nav {
    top: 48px;
    padding: 13px 6%;
  }

  .page-logo {
    font-size: 25px;
  }

  .page-nav-links {
    gap: 12px;
  }

  .page-nav-links a:nth-child(3) {
    display: none;
  }

  .nav-heart {
    font-size: 17px;
  }

  .hero {
    min-height: max(650px, calc(100svh - 48px));
    background-position: 58% center;
  }

  .hero-inner {
    width: 88%;
    margin-bottom: 14vh;
  }

  .kicker {
    max-width: 240px;
    font-size: 9px;
    line-height: 1.7;
  }

  .hero h1 {
    font-size: clamp(56px, 14vw, 78px);
  }

  .hero-copy {
    font-size: 13px;
  }

  .scroll-cue {
    right: 6%;
    bottom: 24px;
  }

  .section {
    padding: 70px 6%;
  }

  .section-title {
    margin-bottom: 31px;
  }

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

  .memory-card img {
    height: 255px;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .photo-gallery img {
    height: 220px;
  }

  .photo-gallery img:nth-child(even) {
    margin-top: 0;
  }

  .love-grid {
    gap: 9px;
  }

  .love-card {
    min-height: 170px;
    padding: 17px;
  }

  .love-card h3 {
    font-size: 18px;
  }

  .love-card p {
    font-size: 12px;
  }

  .portrait-image {
    min-height: 350px;
  }

  .film-card figcaption {
    right: 17px;
    bottom: 20px;
    left: 20px;
  }

  .page-footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
