:root {
  --bg: #faf6f0;
  --bg-soft: #f4eee6;
  --paper: #fffdf9;
  --ink: #3f3831;
  --ink-soft: #6f665c;
  --champagne: #efd7ba;
  --blush: #ead5d1;
  --sage: #b8c0a8;
  --milk: #e7e2d7;
  --sand: #e8ddd0;
  --gold: #8a650f;
  --border: rgba(63, 56, 49, 0.16);
  --shadow-soft: 0 18px 48px rgba(63, 56, 49, 0.12);
  --shadow-card: 0 10px 28px rgba(63, 56, 49, 0.09);
  --radius-sm: 8px;
  --radius-md: 18px;
  --z-nav: 20;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(184, 192, 168, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, #fffaf4 44%, #f7f0e9 100%);
  background-size: 64px 64px, auto;
  font-family: "Cormorant Infant", Georgia, serif;
  font-size: 20px;
  line-height: 1.45;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(234, 213, 209, 0.8), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(239, 215, 186, 0.66), transparent 25rem),
    radial-gradient(circle at 76% 74%, rgba(184, 192, 168, 0.48), transparent 30rem);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(138, 101, 15, 0.46);
  outline-offset: 4px;
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: var(--z-nav);
  display: flex;
  width: min(1080px, calc(100% - 32px));
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 8px 30px rgba(63, 56, 49, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 600;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(184, 192, 168, 0.26);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 24px;
  z-index: -1;
  content: "";
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(120deg, rgba(234, 213, 209, 0.28), transparent 30%),
    linear-gradient(300deg, rgba(184, 192, 168, 0.24), transparent 35%),
    linear-gradient(rgba(255, 253, 249, 0.88), rgba(255, 253, 249, 0.82));
  box-shadow: var(--shadow-soft);
}

.hero::after {
  position: absolute;
  inset: 48px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(63, 56, 49, 0.12);
  border-radius: 12px;
  pointer-events: none;
}

.hero__ambient {
  position: absolute;
  width: min(960px, calc(100vw - 96px));
  aspect-ratio: 1;
  z-index: -1;
  overflow: hidden;
  border: 1px solid rgba(63, 56, 49, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 249, 0.78) 0%, rgba(255, 253, 249, 0.3) 58%, transparent 60%);
  box-shadow:
    inset 0 0 0 58px rgba(255, 253, 249, 0.24),
    0 28px 80px rgba(63, 56, 49, 0.08);
}

.hero__seal {
  position: absolute;
  top: clamp(64px, 9vh, 104px);
  left: 50%;
  display: grid;
  width: clamp(120px, 15vw, 176px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(63, 56, 49, 0.28);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.66);
  box-shadow: inset 0 0 0 12px rgba(255, 253, 249, 0.68);
  transform: translateX(-50%);
}

.hero__seal::before,
.hero__seal::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(63, 56, 49, 0.12);
  border-radius: 50%;
}

.hero__seal::after {
  inset: 23px;
  border-style: dashed;
}

.hero__seal span {
  position: absolute;
  font-family: "Great Vibes", cursive;
  font-size: clamp(58px, 8vw, 88px);
  line-height: 0.8;
}

.hero__seal span:first-child {
  transform: translate(-16px, -12px);
}

.hero__seal span:last-child {
  transform: translate(18px, 20px);
}

.hero__content {
  width: min(920px, 100%);
  margin-top: clamp(126px, 18vh, 184px);
  text-align: center;
}

.kicker,
.place span {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(72px, 12vw, 154px);
  font-weight: 400;
  line-height: 0.94;
}

.hero__date {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.hero__text {
  width: min(680px, 100%);
  margin: 0 auto 32px;
  color: var(--ink-soft);
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.28;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.button--primary {
  color: #fffdf9;
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(63, 56, 49, 0.22);
}

.button--primary:hover {
  background: #2f2924;
}

.button--ghost {
  border-color: rgba(63, 56, 49, 0.2);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.62);
}

.button--ghost:hover {
  border-color: rgba(138, 101, 15, 0.36);
  background: rgba(239, 215, 186, 0.32);
}

.countdown {
  position: absolute;
  right: clamp(40px, 7vw, 104px);
  bottom: clamp(48px, 8vw, 86px);
  display: grid;
  grid-template-columns: repeat(3, 88px);
  gap: 8px;
}

.countdown div {
  min-height: 88px;
  padding: 10px;
  border: 1px solid rgba(63, 56, 49, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 249, 0.72);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.countdown strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 16px;
}

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

.note {
  padding: clamp(56px, 9vw, 108px) 0;
}

.note p {
  width: min(900px, 100%);
  margin: 0;
  border-left: 4px solid var(--sage);
  padding-left: clamp(20px, 4vw, 44px);
  font-size: clamp(34px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 1.04;
}

.program {
  padding: clamp(40px, 7vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.script {
  margin-bottom: 8px;
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5.4vw, 74px);
  font-weight: 600;
  line-height: 0.96;
}

.schedule {
  display: grid;
  gap: 12px;
}

.schedule__item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(63, 56, 49, 0.1);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.82), rgba(244, 238, 230, 0.64));
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.schedule__item:hover {
  border-color: rgba(138, 101, 15, 0.28);
  box-shadow: var(--shadow-card);
}

.schedule time {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
}

h3 {
  margin-bottom: 6px;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  line-height: 1;
}

.schedule p,
.place p,
.dresscode p,
.finale p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.34;
}

.places {
  padding: clamp(64px, 10vw, 120px) 0;
}

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

.place {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(63, 56, 49, 0.11);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(239, 215, 186, 0.64), rgba(255, 253, 249, 0.72)),
    var(--paper);
  box-shadow: var(--shadow-card);
}

.place:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(184, 192, 168, 0.54), rgba(234, 213, 209, 0.42)),
    var(--paper);
}

.place h3 {
  margin-top: 18px;
}

.place a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 700;
  transition:
    color 220ms ease,
    border-color 220ms ease;
}

.place a:hover {
  color: var(--gold);
}

.dresscode {
  padding: clamp(58px, 9vw, 96px) 24px;
  background: linear-gradient(135deg, rgba(232, 221, 208, 0.86), rgba(255, 253, 249, 0.64));
}

.dresscode__inner {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.dresscode h2 {
  max-width: 660px;
  margin-bottom: 18px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 260px;
  gap: 10px;
}

.swatches span {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(63, 56, 49, 0.08);
  border-radius: var(--radius-sm);
  background: var(--swatch);
  box-shadow: inset 0 -48px 80px rgba(63, 56, 49, 0.09);
}

.swatches b {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  color: rgba(63, 56, 49, 0.76);
  font-size: 16px;
  line-height: 1.05;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.finale {
  display: grid;
  place-items: center;
  padding: clamp(70px, 10vw, 126px) 0;
}

.finale__copy {
  text-align: center;
}

.finale h2 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 400;
}

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

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

@media (max-width: 1100px) {
  .section-title,
  .dresscode__inner,
  .finale {
    grid-template-columns: 1fr;
  }

  .countdown {
    position: static;
    width: min(420px, 100%);
    grid-template-columns: repeat(3, 1fr);
    margin: 34px auto 0;
  }

  .hero__content {
    width: min(920px, calc(100vw - 64px));
    margin-top: 146px;
  }

  .hero__ambient {
    width: min(960px, calc(100vw - 32px));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 18px;
  }

  .topbar {
    top: 10px;
    width: min(100% - 20px, 540px);
    padding-left: 12px;
  }

  .nav a {
    padding: 0 10px;
    font-size: 16px;
  }

  .hero {
    padding: 92px 14px 30px;
  }

  .hero::before {
    inset: 10px;
    background:
      linear-gradient(120deg, rgba(234, 213, 209, 0.3), transparent 36%),
      linear-gradient(300deg, rgba(184, 192, 168, 0.28), transparent 38%),
      linear-gradient(rgba(255, 253, 249, 0.9), rgba(255, 253, 249, 0.88));
  }

  .hero::after {
    inset: 22px;
  }

  .hero__seal {
    top: 82px;
  }

  .hero__ambient {
    width: max(680px, calc(100vw - 44px));
    transform: translateY(-52px);
  }

  .hero__content {
    width: min(100%, calc(100vw - 64px));
    margin-top: 132px;
  }

  .kicker {
    margin-bottom: 18px;
    font-size: 14px;
    letter-spacing: 0.15em;
  }

  .hero__actions {
    display: grid;
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .button {
    width: 100%;
  }

  .schedule__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

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

  .program {
    width: min(100% - 20px, 1120px);
    padding: 28px 18px;
  }

  .note p {
    padding-left: 20px;
  }

  .swatches {
    min-height: 150px;
    gap: 8px;
  }

  .swatches b {
    right: 8px;
    bottom: 10px;
    left: 8px;
    font-size: 14px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: 760px;
  }

  .hero__seal {
    top: 86px;
  }

  .hero__content {
    margin-top: 146px;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 0;
  }

  .nav a {
    min-height: 38px;
    padding: 0 7px;
    font-size: 15px;
  }

  h1 {
    font-size: 58px;
    line-height: 0.98;
  }

  .hero__date {
    font-size: 29px;
  }

  .hero__text {
    font-size: 18px;
    line-height: 1.28;
  }

  .countdown div {
    min-height: 78px;
  }

  .countdown strong {
    font-size: 28px;
  }
}

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

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