:root {
  --paper: #f5efe7;
  --paper-strong: #efe5d8;
  --ink: #26221e;
  --muted: #6b635a;
  --rose: #d9b4ae;
  --rose-strong: #c58d87;
  --sage: #647260;
  --line: rgba(38, 34, 30, 0.14);
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 45px rgba(38, 34, 30, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 14% 14%, rgba(213, 160, 153, 0.24), transparent 40%),
    radial-gradient(circle at 88% 10%, rgba(223, 188, 147, 0.22), transparent 46%),
    radial-gradient(circle at 82% 82%, rgba(123, 151, 120, 0.15), transparent 44%),
    linear-gradient(180deg, #f7f1ea 0%, #f3ece4 46%, #efe7dc 100%);
  min-height: 100vh;
}

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

.page-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 95%);
  z-index: -1;
}

.hero,
main,
.footer {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: 1.1rem 0 1.2rem;
}

.hero__kicker {
  margin: 0 0 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero__layout {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}

.invite-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.invite-card__date {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  padding: 1rem 1.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: #252525;
  background: rgba(245, 240, 236, 0.95);
  backdrop-filter: blur(8px);
}

.invite-card__image {
  width: 100%;
  aspect-ratio: 1134 / 1600;
  object-fit: cover;
}

.invite-card__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 1.2rem 1rem;
  background:
    linear-gradient(180deg, rgba(245, 240, 236, 0) 0%, rgba(245, 240, 236, 0.86) 23%, rgba(245, 240, 236, 0.97) 100%);
}

.invite-card__save {
  margin-top: 0.25rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.88;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  mix-blend-mode: soft-light;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.invite-card__date-script {
  margin-top: -0.65rem;
  font-family: "Parisienne", cursive;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.85;
  color: #171717;
  transform: translateX(0.1rem);
}

.invite-card__names {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(37, 34, 31, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: #26221e;
}

.hero-copy {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.67), rgba(255, 255, 255, 0.45));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
}

.hero-copy h1 {
  margin: 0.4rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.92;
  font-weight: 600;
}

.hero-copy__lead {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.hero-copy__chips {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(38, 34, 30, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-strong) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(197, 141, 135, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(197, 141, 135, 0.35);
}

.button--secondary {
  margin-left: 0.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(38, 34, 30, 0.14);
  box-shadow: none;
}

.button:focus-visible {
  outline: 2px solid rgba(38, 34, 30, 0.35);
  outline-offset: 3px;
}

main {
  padding: 0.3rem 0 2.2rem;
  display: grid;
  gap: 1rem;
}

.panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 1.1rem;
}

.panel__header h2 {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 0.95;
}

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

.time-box {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(38, 34, 30, 0.08);
  padding: 0.85rem 0.75rem;
  display: grid;
  gap: 0.3rem;
  text-align: center;
}

.time-box__value {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--ink);
}

.time-box__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-panel__intro {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.video-frame {
  margin-top: 0.9rem;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(38, 34, 30, 0.03);
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  background: #0e0e0e;
}

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

.detail-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(38, 34, 30, 0.08);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
}

.detail-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

.detail-card__value {
  margin: 0.45rem 0 0;
  font-weight: 700;
  color: var(--ink);
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.detail-card p {
  color: var(--muted);
  line-height: 1.55;
}

.note-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: center;
}

.note-panel__media {
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.note-panel__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.note-panel__content h2 {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
  line-height: 0.98;
}

.note-panel__content p {
  color: var(--muted);
  line-height: 1.65;
}

.note-panel__signature {
  margin: 0.4rem 0 0;
  font-family: "Parisienne", cursive;
  font-size: 2rem;
  color: var(--ink);
}

.footer {
  padding: 0.2rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 700ms cubic-bezier(.2,.8,.2,1) forwards;
}

.reveal--delay-1 {
  animation-delay: 120ms;
}

.reveal--delay-2 {
  animation-delay: 220ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
  }

  .countdown-grid,
  .details-grid,
  .note-panel {
    grid-template-columns: 1fr 1fr;
  }

  .note-panel__media {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero,
  main,
  .footer {
    width: min(1100px, calc(100% - 1rem));
  }

  .hero__kicker {
    letter-spacing: 0.28em;
    font-size: 0.68rem;
  }

  .invite-card__date {
    letter-spacing: 0.22em;
    font-size: 0.65rem;
    padding: 0.8rem 0.6rem;
  }

  .invite-card__caption {
    padding: 0 0.75rem 0.7rem;
  }

  .invite-card__date-script {
    margin-top: -0.45rem;
  }

  .invite-card__names {
    font-size: 0.64rem;
    letter-spacing: 0.19em;
  }

  .hero-copy {
    padding: 1rem;
  }

  .countdown-grid,
  .details-grid,
  .note-panel {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 0.95rem;
  }

  .media-invite .button {
    width: 100%;
  }

  .button--secondary {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .button {
    transition: none;
  }
}
