:root {
  --paper: #fbf7ef;
  --paper-soft: #fffdf8;
  --ink: #2d2a23;
  --muted: #756d60;
  --rose: #c56b72;
  --rose-soft: #f7d9d4;
  --sage: #8aa58a;
  --sage-soft: #e6efe3;
  --gold: #b58b3a;
  --marigold: #f1bf62;
  --line: rgba(77, 62, 43, 0.16);
  --shadow: 0 24px 70px rgba(93, 68, 34, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(247, 217, 212, 0.52), transparent 30rem),
    radial-gradient(circle at 88% 22%, rgba(230, 239, 227, 0.75), transparent 24rem),
    linear-gradient(180deg, #fffaf0 0%, var(--paper) 46%, #fff9f3 100%);
  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.42;
  background-image:
    linear-gradient(rgba(181, 139, 58, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 139, 58, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

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

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 250, 240, 0.78);
  border-bottom: 1px solid rgba(181, 139, 58, 0.12);
  backdrop-filter: blur(18px) saturate(1.3);
}

.brand {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.2rem;
  align-items: center;
  min-width: 3.4rem;
  min-height: 2.5rem;
  color: var(--rose);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span:nth-child(2) {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 3vw, 2rem);
  color: var(--muted);
  font: 600 0.78rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.nav-links a {
  padding: 0.45rem 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 5.8rem clamp(1rem, 5vw, 5rem) 2.4rem;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.94) 0%, rgba(255, 250, 240, 0.78) 34%, rgba(255, 250, 240, 0.18) 68%),
    linear-gradient(180deg, transparent 70%, var(--paper) 100%);
}

.hero-glass {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(43rem, 100%);
  padding: clamp(1.2rem, 3vw, 3rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--rose);
  font: 700 0.78rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.8rem, 9vw, 6.8rem);
  line-height: 0.92;
  font-weight: 500;
}

.hero-date {
  margin: 0.95rem 0 0;
  color: var(--gold);
  font: 700 clamp(1.1rem, 2vw, 1.55rem)/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-line {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 700 0.9rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--rose), #a85a62);
  box-shadow: 0 14px 28px rgba(197, 107, 114, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line);
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0.9rem;
  width: 1.6rem;
  height: 2.6rem;
  border: 1px solid rgba(45, 42, 35, 0.32);
  border-radius: 999px;
}

.scroll-cue span {
  display: block;
  width: 0.32rem;
  height: 0.32rem;
  margin: 0.55rem auto 0;
  border-radius: 999px;
  background: var(--rose);
  animation: cue 1.9s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(0.78rem); opacity: 1; }
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.invitation {
  text-align: center;
}

.section h2 {
  margin: 0 auto;
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 500;
}

.section p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.invitation p {
  max-width: 630px;
  margin: 1.3rem auto 0;
}

.countdown-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown-band h2,
.details h2,
.moments h2,
.contact h2 {
  margin-left: 0;
}

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

.countdown div,
.detail-grid article,
.contact-form {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.countdown div {
  min-height: 8.5rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.countdown strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--rose);
}

.countdown span {
  color: var(--muted);
  font: 700 0.75rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.detail-grid article {
  min-height: 14rem;
  padding: 1.2rem;
}

.detail-icon {
  display: inline-grid;
  place-items: center;
  min-width: 3.1rem;
  min-height: 3.1rem;
  margin-bottom: 1.4rem;
  color: var(--gold);
  background: var(--sage-soft);
  border-radius: 999px;
  font: 800 0.78rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.detail-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.moments {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.moment-rail {
  display: grid;
  gap: 1rem;
}

.moment-card {
  min-height: 9rem;
  display: flex;
  align-items: end;
  padding: 1.1rem;
  border: 1px solid rgba(181, 139, 58, 0.24);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.1)),
    conic-gradient(from 180deg at 35% 35%, #fff8df, #f7d9d4, #e6efe3, #fff8df);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.moment-card:nth-child(2) {
  margin-left: 10%;
}

.moment-card:nth-child(3) {
  margin-left: 20%;
}

.moment-card span {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 7rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font: 700 0.78rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(117, 109, 96, 0.25);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: 1rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(197, 107, 114, 0.18);
  border-color: var(--rose);
}

textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  width: fit-content;
}

.form-note {
  margin: 0;
  font: 0.9rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
  color: var(--rose);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem 1rem;
    max-width: 17rem;
  }

  .hero {
    min-height: 90vh;
    padding-top: 7.8rem;
  }

  .hero-art {
    object-position: 82% center;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.93) 0%, rgba(255, 250, 240, 0.76) 45%, rgba(255, 250, 240, 0.08) 78%),
      linear-gradient(180deg, transparent 74%, var(--paper) 100%);
  }

  .countdown-band,
  .moments,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

  .contact-copy {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .nav-links {
    font-size: 0.68rem;
  }

  .hero-art {
    object-position: 88% center;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .hero-copy {
    padding: 1rem;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .countdown div {
    min-height: 7rem;
  }

  .moment-card:nth-child(n) {
    margin-left: 0;
  }
}
