:root {
  color-scheme: light;
  --ivory: #f2ecdc;
  --paper: #fbf8ef;
  --sage: #597176;
  --sage-deep: #304c55;
  --rose: #e1c75f;
  --gold: #a58a46;
  --ink: #293d42;
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--ivory); font-family: var(--body); line-height: 1.6; }
body.is-locked { overflow: hidden; }
button, input, textarea, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b87345; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; }
h1 { margin-bottom: 1.2rem; font-size: clamp(3.7rem, 19vw, 7.6rem); letter-spacing: -.055em; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.45rem, 11vw, 5.5rem); }
h3 { margin: 1.3rem 0 .4rem; font-size: clamp(1.7rem, 7vw, 2.6rem); }
.eyebrow { margin-bottom: .85rem; font-size: .73rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.section { position: relative; padding: 5.7rem max(1.25rem, calc((100vw - 1040px) / 2)); text-align: center; }
.section > p { max-width: 42rem; margin-left: auto; margin-right: auto; }
.section--green { color: var(--paper); background: var(--sage-deep); }
.section--green h2 { color: inherit; }
.section--linen { background: repeating-linear-gradient(90deg, rgba(77,87,59,.035) 0 1px, transparent 1px 4px), #e7dfcc; }

.opening { position: fixed; inset: 0; z-index: 20; width: 100%; min-height: 100svh; padding: 0; overflow: hidden; border: 0; color: white; background: var(--ivory); cursor: pointer; }
.opening__panel { position: absolute; inset-block: 0; width: 50.25%; background-color: #f0ebdf; background-image: radial-gradient(ellipse at 28% 22%, #e4ca62 0 1.05rem, transparent 1.12rem), radial-gradient(circle at 72% 34%, transparent 0 2.1rem, #70826a 2.2rem 2.48rem, transparent 2.55rem), radial-gradient(ellipse at 40% 70%, transparent 0 1.5rem, #879a78 1.58rem 1.9rem, transparent 1.98rem), repeating-linear-gradient(72deg, transparent 0 4.2rem, rgba(83,107,80,.22) 4.25rem 4.42rem, transparent 4.5rem 7.3rem); box-shadow: inset 0 0 0 1px rgba(85,81,67,.18); transition: transform 1.15s cubic-bezier(.65,0,.25,1); }
.opening__panel::after { content: ""; position: absolute; inset: 7% 9%; border: 2px solid rgba(168,132,80,.5); border-radius: 48% 52% 44% 56% / 41% 45% 55% 59%; }
.opening__panel--left { left: 0; transform-origin: left center; }
.opening__panel--right { right: 0; transform-origin: right center; }
.opening__bow { position: absolute; left: 50%; top: 55%; width: 9.5rem; height: 3.1rem; transform: translate(-50%, -50%) rotate(-5deg); border-radius: 60% 18% 60% 20%; background: #f9f3e7; box-shadow: -4rem .2rem 0 -.35rem #f9f3e7, 4rem -.15rem 0 -.35rem #f9f3e7, 0 1rem 1.7rem rgba(39,44,35,.18); transition: opacity .35s ease, transform .65s ease; }
.opening__hint { position: absolute; left: 50%; bottom: 3.1rem; min-height: 44px; transform: translateX(-50%); display: grid; align-items: center; white-space: nowrap; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 1px 8px #314534; }
.opening.is-open { pointer-events: none; background: transparent; transition: visibility 0s linear 1.2s; visibility: hidden; }
.opening.is-open .opening__panel--left { transform: translateX(-101%); }
.opening.is-open .opening__panel--right { transform: translateX(101%); }
.opening.is-open .opening__bow { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
.opening[hidden] { display: none; }

.hero { min-height: 100svh; display: grid; place-items: center; padding: 4.5rem 1.25rem; overflow: hidden; color: var(--paper); text-align: center; background: radial-gradient(circle at 25% 18%, rgba(225,199,95,.28), transparent 18rem), linear-gradient(160deg, #6f898f 0%, var(--sage-deep) 72%); }
.hero::before, .hero::after { display: none; }
.hero__frame { z-index: 1; width: min(100%, 42rem); padding: 4.3rem 1.1rem; border: 1px solid rgba(243,236,223,.65); border-radius: 50% / 42%; box-shadow: inset 0 0 0 10px rgba(243,236,223,.06); }
.hero__date { margin-bottom: 2rem; font-family: var(--display); font-size: 1.45rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .8rem 1.2rem; border: 1px solid var(--sage); border-radius: 999px; color: var(--paper); background: var(--sage); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--light { color: var(--sage-deep); border-color: var(--paper); background: var(--paper); }
.button--outline { color: var(--sage-deep); background: transparent; }
.button-row { display: grid; gap: .75rem; margin-top: 2rem; }
.monogram { width: 6.5rem; height: 6.5rem; margin: 2.5rem auto 0; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--sage); font-family: var(--display); font-size: 1.45rem; }
.countdown__grid { max-width: 38rem; margin: 2.3rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.countdown__grid span { min-width: 0; padding: .9rem .15rem; border-block: 1px solid rgba(255,255,255,.28); }
.countdown__grid strong, .countdown__grid small { display: block; }
.countdown__grid strong { font-family: var(--display); font-size: clamp(2rem, 10vw, 4rem); font-weight: 400; }
.countdown__grid small { font-size: clamp(.55rem, 2.7vw, .8rem); }
.embroidered-card { max-width: 46rem; margin: 0 auto; padding: 3.2rem 1.3rem; border: 1px solid rgba(69,99,72,.36); border-radius: 48% 52% 46% 54% / 9% 8% 12% 10%; background: radial-gradient(circle at 5% 12%, var(--rose) 0 .35rem, transparent .4rem), radial-gradient(circle at 95% 88%, var(--sage) 0 .3rem, transparent .35rem), var(--paper); box-shadow: 0 18px 60px rgba(44,61,47,.12), inset 0 0 0 8px var(--ivory); }
.venue__time { font-weight: 600; }
.timeline { max-width: 40rem; margin: 2.5rem auto 0; padding: 0; list-style: none; text-align: left; }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(38,51,41,.2); }
.timeline time { font-family: var(--display); font-size: 1.65rem; }
.timeline strong, .timeline small { display: block; }
.timeline small { margin-top: .2rem; color: rgba(38,51,41,.72); }
.palette { display: flex; justify-content: center; gap: .65rem; margin-top: 2rem; }
.palette span { width: 44px; height: 44px; border: 1px solid rgba(38,51,41,.22); border-radius: 50%; background: var(--swatch); }
.embroidered-card--form { border-radius: 2rem; }
form { max-width: 34rem; margin: 2rem auto 0; display: grid; gap: 1.25rem; text-align: left; }
form > label { display: grid; gap: .45rem; }
input, textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid rgba(38,51,41,.38); border-radius: .55rem; color: var(--ink); background: rgba(255,255,255,.68); }
textarea { resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: .55rem; }
.choice { min-height: 48px; display: flex; align-items: center; gap: .75rem; }
.choice input { width: 22px; min-height: 22px; accent-color: var(--sage); }
.honeypot { display: none; }
.button--submit { width: 100%; border: 0; cursor: pointer; }
.form-status { min-height: 1.6rem; margin-bottom: 0; text-align: center; }
footer { padding: 3rem 1.25rem; color: var(--paper); background: #1e3425; text-align: center; }
footer a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
.demo-notice { position: relative; z-index: 2; min-height: 44px; display: grid; place-items: center; padding: .55rem 1rem; color: var(--paper); background: #17281d; font-size: .78rem; text-align: center; }

@media (min-width: 720px) {
  .section { padding-top: 7.5rem; padding-bottom: 7.5rem; }
  .button-row { grid-template-columns: repeat(2, max-content); justify-content: center; }
  .embroidered-card { padding: 5rem 4rem; }
}

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