:root {
  --ink: #0c0a09;
  --ink-soft: #161210;
  --ivory: #f4eadc;
  --ivory-dim: rgba(244, 234, 220, 0.72);
  --gold: #c9a35a;
  --gold-soft: #e0c48a;
  --wine: #5c242c;
  --line: rgba(201, 163, 90, 0.35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Great Vibes", cursive;
  --sans: "Outfit", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--ivory);
}

body {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
}

.skip:focus {
  top: 1rem;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 12;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

.kicker {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  color: var(--ivory);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-desk {
  display: none;
}

.hero-mobile {
  display: block;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.55) 0%, rgba(12, 10, 9, 0.18) 38%, rgba(12, 10, 9, 0.88) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(12, 10, 9, 0.7), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(52rem, calc(100% - 2 * var(--pad)));
  padding: 0 0 6.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.hero .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.15rem, 8.4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.hero .amp {
  font-family: var(--script);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  color: var(--gold);
  line-height: 0.8;
  margin: 0.15rem 0 0.35rem;
}

.since {
  margin: 1.6rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.vow-line {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  color: var(--gold-soft);
}

.scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(1.4rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.scroll svg {
  width: 1.15rem;
  height: 1.15rem;
  animation: dip 2.2s ease-in-out infinite;
}

#vows {
  position: relative;
  background: var(--ink);
}

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

.vows-figure {
  margin: 0;
  height: 42vh;
  min-height: 16rem;
  overflow: hidden;
}

.vows-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  filter: saturate(0.9);
}

.vows-copy {
  padding: clamp(3rem, 8vw, 6rem) var(--pad) 4rem;
  max-width: 42rem;
  margin: 0 auto;
}

.vows-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
}

.lede {
  margin: 1.25rem 0 2.75rem;
  max-width: 34rem;
  color: var(--ivory-dim);
  font-size: 1.02rem;
  line-height: 1.7;
}

.vow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.vow-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.9rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards;
}

.vow-list li:nth-child(1) { animation-delay: 0.05s; }
.vow-list li:nth-child(2) { animation-delay: 0.12s; }
.vow-list li:nth-child(3) { animation-delay: 0.19s; }
.vow-list li:nth-child(4) { animation-delay: 0.26s; }
.vow-list li:nth-child(5) { animation-delay: 0.33s; }
.vow-list li:nth-child(6) { animation-delay: 0.40s; }
.vow-list li:nth-child(7) { animation-delay: 0.47s; }
.vow-list li:nth-child(8) { animation-delay: 0.54s; }
.vow-list li:nth-child(9) { animation-delay: 0.61s; }
.vow-list li:nth-child(10) { animation-delay: 0.68s; }

.num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  padding-top: 0.2rem;
}

.vow-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.15;
}

.vow-list p {
  margin: 0;
  color: var(--ivory-dim);
  line-height: 1.65;
  font-size: 0.98rem;
}

footer {
  padding: 4.5rem var(--pad) calc(3.5rem + env(safe-area-inset-bottom));
  text-align: center;
  background:
    linear-gradient(180deg, var(--ink), #140e0e);
  border-top: 1px solid var(--line);
}

.pt {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold-soft);
}

.count {
  margin: 1.1rem 0 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--ivory-dim);
}

.seal {
  margin: 2.4rem 0 0;
  font-family: var(--serif);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--gold);
}

#install {
  margin-top: 2rem;
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
}

#install:hover,
#install:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

@keyframes dip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 860px) {
  .hero {
    place-items: center;
  }

  .hero-desk {
    display: block;
  }

  .hero-mobile {
    display: none;
  }

  .hero-media img {
    object-position: center 62%;
  }

  .hero-inner {
    padding: 0;
  }

  .hero-veil {
    background:
      linear-gradient(90deg, rgba(12, 10, 9, 0.72) 0%, rgba(12, 10, 9, 0.28) 48%, rgba(12, 10, 9, 0.55) 100%),
      linear-gradient(180deg, rgba(12, 10, 9, 0.35), rgba(12, 10, 9, 0.55));
  }

  .vows-stage {
    grid-template-columns: minmax(18rem, 0.9fr) 1.15fr;
    min-height: 100svh;
  }

  .vows-figure {
    height: auto;
    position: sticky;
    top: 0;
    min-height: 100svh;
  }

  .vows-copy {
    padding: 6.5rem 5vw 7rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll svg,
  .vow-list li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
