@font-face { font-family: "Cormorant Garamond Local"; src: url("font-cormorant-cyrillic.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 400 700; }
@font-face { font-family: "Cormorant Garamond Local"; src: url("font-cormorant-latin.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 400 700; unicode-range: U+0000-024F; }

:root {
  color-scheme: light;
  --ivory: #e8edf1;
  --paper: #fcf8f2;
  --sage: #7997ad;
  --sage-deep: #394f62;
  --rose: #a76579;
  --gold: #b99762;
  --ink: #4b3d46;
  --display: "Cormorant Garamond Local", 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 #9f6076; 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.35rem, 17vw, 7.2rem); letter-spacing: -.045em; }
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(126,84,101,.035) 0 1px, transparent 1px 5px), #eee4e4; }

.opening { position: fixed; inset: 0; z-index: 20; width: 100%; min-height: 100svh; padding: 0; overflow: hidden; border: 0; color: var(--ink); background: #dfe8ee; cursor: pointer; }
.opening__panel { position: absolute; inset: 0; width: 100%; background-color: #dfe8ee; background-image: radial-gradient(ellipse at 25% 24%, transparent 0 1.25rem, rgba(91,119,139,.13) 1.3rem 1.45rem, transparent 1.5rem), radial-gradient(ellipse at 74% 20%, transparent 0 1rem, rgba(91,119,139,.12) 1.05rem 1.18rem, transparent 1.23rem), repeating-linear-gradient(105deg, rgba(73,95,111,.035) 0 1px, transparent 1px 5px); background-size: 8rem 7rem, 7rem 6rem, auto; box-shadow: inset 0 0 0 1px rgba(65,82,95,.16); transition: transform 1.15s cubic-bezier(.65,0,.25,1); }
.opening__panel::after { content: ""; position: absolute; inset: 1.2rem; border: .35rem double rgba(255,255,255,.28); }
.opening__panel--left { left: 0; clip-path: polygon(0 0, 100% 0, 50% 58%, 0 32%); transform-origin: top center; }
.opening__panel--right { right: 0; clip-path: polygon(0 100%, 100% 100%, 100% 32%, 50% 58%, 0 32%); transform-origin: bottom center; background-color: #e9eff2; }
.opening__bow { position: absolute; left: 50%; top: 58%; width: 6.4rem; height: 6.4rem; transform: translate(-50%, -50%) rotate(-5deg); border: .55rem double rgba(255,255,255,.75); border-radius: 46% 54% 48% 52%; background: #e8d7c0; box-shadow: 0 .9rem 1.7rem rgba(56,69,79,.2), inset 0 0 0 1px #ad9678; transition: opacity .35s ease, transform .65s ease; }
.opening__bow::after { content: "E · R"; position: absolute; inset: 0; display: grid; place-items: center; color: #826e5c; font-family: var(--display); font-size: 1.2rem; }
.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: .2em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(255,255,255,.88); }
.opening.is-open { pointer-events: none; background: transparent; transition: visibility 0s linear 1.2s; visibility: hidden; }
.opening.is-open .opening__panel--left { transform: translateY(-101%); }
.opening.is-open .opening__panel--right { transform: translateY(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(--ink); text-align: center; background: linear-gradient(180deg, rgba(252,248,242,.08), rgba(55,68,80,.1)), url("hero-placeholder.svg") center/cover no-repeat, #dce7ed; }
.hero__ornament { position: absolute; inset: 0; pointer-events: none; }
.hero__ornament::before, .hero__ornament::after { content: ""; position: absolute; top: 0; width: 33%; height: 72%; background: linear-gradient(90deg, rgba(105,131,151,.72), rgba(224,232,237,.9) 45%, rgba(117,144,163,.58)); box-shadow: 0 0 2rem rgba(57,79,98,.2); }
.hero__ornament::before { left: 0; clip-path: polygon(0 0,100% 0,72% 52%,38% 100%,0 100%); }
.hero__ornament::after { right: 0; transform: scaleX(-1); clip-path: polygon(0 0,100% 0,72% 52%,38% 100%,0 100%); }
.hero::before, .hero::after { display: none; }
.hero__frame { z-index: 1; width: min(100%, 39rem); padding: 5.2rem 1.1rem 3.2rem; border: 1px solid rgba(185,151,98,.68); border-radius: 50% 50% 1.3rem 1.3rem / 28% 28% 1.3rem 1.3rem; background: rgba(252,248,242,.82); box-shadow: 0 1.3rem 4rem rgba(53,57,64,.14), inset 0 0 0 .45rem rgba(255,255,255,.25); }
.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(--paper); border-color: #7f3f58; background: #7f3f58; }
.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: .35rem double var(--gold); border-radius: 50%; color: #7f3f58; background: var(--paper); 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: .42rem double rgba(168,125,143,.6); border-radius: 48% 52% 1.2rem 1.2rem / 12% 12% 1.2rem 1.2rem; background: radial-gradient(circle at 7% 10%, #d5aeb7 0 .42rem, transparent .46rem), radial-gradient(circle at 93% 88%, #91aabe 0 .36rem, transparent .4rem), repeating-linear-gradient(90deg, rgba(126,84,101,.025) 0 1px, transparent 1px 5px), var(--paper); box-shadow: 0 18px 60px rgba(53,61,71,.12), inset 0 0 0 7px 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: #34495a; 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: #34495a; 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; }
}
