:root {
  --ink: #211925;
  --muted: #6c5b62;
  --paper: #fffaf7;
  --white: #ffffff;
  --rose: #c92f58;
  --rose-soft: #ffe6eb;
  --teal: #08756f;
  --teal-soft: #e6f5f1;
  --gold: #c98812;
  --gold-soft: #fff1c9;
  --plum: #4b284f;
  --shadow: 0 24px 70px rgba(33, 25, 37, 0.16);
  --line: rgba(33, 25, 37, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

#confettiCanvas {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  color: #fff;
}

.brand-mark,
.quick-links,
.icon-text-button {
  border-radius: var(--radius);
}

.brand-mark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

.brand-mark span:first-child {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  background: var(--rose);
  border-radius: 50%;
  font-size: 0.85rem;
}

.quick-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(16px);
}

.quick-links a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.9);
}

.quick-links a:hover,
.quick-links a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92svh;
  padding: 7rem max(1rem, calc((100vw - 1120px) / 2)) 3rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 16, 22, 0.84), rgba(24, 16, 22, 0.44) 48%, rgba(24, 16, 22, 0.2)),
    linear-gradient(0deg, rgba(24, 16, 22, 0.7), rgba(24, 16, 22, 0.02) 42%),
    url("assets/hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6rem;
  background: linear-gradient(0deg, #fbfbf8, rgba(251, 251, 248, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
  padding-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd76f;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.25rem;
  font-weight: 700;
}

h2 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.9rem;
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  font-weight: 850;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.icon-text-button span {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  line-height: 1;
  font-weight: 900;
}

.icon-text-button:hover,
.icon-text-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.primary {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 16px 34px rgba(201, 47, 88, 0.28);
}

.primary:hover,
.primary:focus-visible {
  background: #ad2348;
}

.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
}

.secondary:hover,
.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(720px, 100%);
  margin-top: 1rem;
}

.metric {
  min-height: 5.7rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.metric-label {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.2;
}

.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 3rem;
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 1.5rem;
}

.section-heading.narrow {
  position: static;
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading p:last-child,
.letter-paper p,
.wish-item p,
.moment-card p,
.final-copy p {
  color: var(--muted);
}

.letter-band {
  background: #fbfbf8;
}

.letter-paper {
  position: relative;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.96)),
    var(--paper);
  border: 1px solid rgba(201, 47, 88, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 1.08rem;
}

.letter-paper.is-lit {
  animation: letterPulse 900ms ease;
}

.signature {
  margin-bottom: 0;
  font-weight: 850;
  color: var(--plum);
}

.month-band {
  background: var(--teal-soft);
}

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

.moment-card,
.wish-item {
  min-height: 15rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(8, 117, 111, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(8, 117, 111, 0.08);
}

.moment-number {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.1rem;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.gallery-band {
  background: #fbfbf8;
}

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

.photo-tile {
  position: relative;
  min-height: 18rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(201, 47, 88, 0.12), rgba(8, 117, 111, 0.16)),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 200ms ease;
}

.photo-tile.has-photo img {
  opacity: 1;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.photo-placeholder span {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  color: #fff;
  background: var(--rose);
  border-radius: 50%;
  font-size: 1.5rem;
}

.photo-placeholder p {
  margin: 0;
  font-weight: 850;
}

.photo-tile.has-photo .photo-placeholder {
  opacity: 0;
}

.wish-band {
  background: var(--gold-soft);
}

.wish-list {
  display: grid;
  gap: 1rem;
}

.wish-item {
  min-height: 9rem;
  border-color: rgba(201, 136, 18, 0.2);
  box-shadow: 0 18px 42px rgba(201, 136, 18, 0.08);
}

.wish-item h3::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
  background: var(--gold);
  border-radius: 50%;
}

.final-band {
  display: grid;
  min-height: 70svh;
  place-items: center;
  padding: 4rem 1rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(75, 40, 79, 0.96), rgba(8, 117, 111, 0.9)),
    var(--plum);
}

.final-copy {
  width: min(760px, 100%);
  text-align: center;
}

.final-copy h2 {
  max-width: none;
  margin: 0 auto;
}

.final-copy p:not(.eyebrow) {
  max-width: 43rem;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.final-copy .icon-text-button {
  margin-top: 1.4rem;
}

@keyframes letterPulse {
  0% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 24px 80px rgba(201, 47, 88, 0.28);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .quick-links {
    display: none;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-heading {
    position: static;
  }

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

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 1rem);
    gap: 0.5rem;
  }

  .brand-mark span:last-child {
    display: none;
  }

  .hero {
    min-height: 90svh;
    padding: 6rem 1rem 2.2rem;
    background-position: 63% center;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    max-width: 14ch;
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .hero-metrics {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .hero-metrics::-webkit-scrollbar {
    display: none;
  }

  .metric {
    flex: 0 0 9.35rem;
    min-height: 4.75rem;
  }

  .section-shell {
    width: calc(100% - 1rem);
    padding: 4rem 0;
  }

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

  .moment-card,
  .photo-tile {
    min-height: 13rem;
  }

  .photo-tile {
    aspect-ratio: 16 / 11;
  }

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