:root {
  color-scheme: light;
  --cream: #f9f3e7;
  --paper: #fffdf7;
  --ink: #202c25;
  --muted: #536056;
  --forest: #102f26;
  --deeper-forest: #0a231d;
  --gold: #f2cc85;
  --line: #e6ded0;
  --red: #a61e35;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #ac5634; outline-offset: 4px; }
.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }

.masthead { position: relative; z-index: 4; background: #fff; border-bottom: 1px solid #f2e9da; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; min-height: 4.85rem; }
.brand { display: inline-block; }
.brand img { width: 8.35rem; height: auto; }
.nav-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 750; font-size: .9rem; color: #8e182e; text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: .28rem; }
.nav-link span { font-size: 1.15rem; line-height: 1; }

.hero { position: relative; color: var(--cream); background: radial-gradient(ellipse at 76% 46%, #234739 0%, var(--forest) 52%, var(--deeper-forest) 100%); }
.hero::before {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(90deg, #0d2b22 0%, #0d2b22d9 42%, #0d2b22aa 100%), url("/assets/evergreen-hills.webp") center 62% / cover;
  opacity: .25;
}
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.25rem, 7vw, 6.7rem); align-items: center; padding-block: clamp(4rem, 7vw, 6rem); }
.eyebrow { display: flex; gap: .64rem; align-items: center; color: var(--gold); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { font-size: .75rem; }
.hero h1 { font: 400 clamp(3.7rem, 7.3vw, 7.1rem)/.94 var(--serif); letter-spacing: -.083em; white-space: nowrap; margin-block: 1rem 1.5rem; }
.hero h1 em { font-weight: 400; color: var(--gold); }
.title-sparkle { display: inline-block; color: var(--gold); font: 400 .37em/1 var(--serif); letter-spacing: 0; margin-left: .55em; vertical-align: 88%; }
.hero-description { max-width: 29rem; color: #e7e4d4; font-size: clamp(1.04rem, 2vw, 1.18rem); }
.hero-description strong { color: var(--cream); font-weight: 750; }
.event-date { margin-top: 1.65rem; display: flex; align-items: center; gap: .85rem; }
.event-icon { display: grid; place-items: center; flex: 0 0 2.8rem; height: 2.8rem; border: 1px solid #f2cc8559; border-radius: 50%; color: var(--gold); font: 1.15rem/1 var(--sans); }
.event-date time { display: block; font-weight: 780; }
.event-date p { color: #d5d9cd; font-size: .92rem; }

.hero-card { min-width: 0; }
.card-trim { padding: .42rem; border: 1px solid #d9b96e8a; border-radius: .4rem; background: #fcf1db; box-shadow: 0 1.2rem 3rem #06181357; overflow: hidden; }
.mural-picture { min-height: clamp(11rem, 19vw, 16rem); background: #e8e3d3 url("/assets/belterra-mural.webp") center / cover; border: 1px solid #d9c8a7; border-bottom: 0; }
.card-caption { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .62rem .85rem; border: 1px solid #e3bd7d; background: #961e35; color: #fff4e0; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; font-size: .78rem; text-align: center; }
.card-caption span[aria-hidden] { color: var(--gold); font-size: 1.05rem; }
.countdown { padding-top: 1.35rem; }
.countdown .eyebrow { margin-bottom: .7rem; }
.countdown-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.countdown-units div { display: grid; gap: .25rem; padding: .65rem .22rem .45rem; text-align: center; border: 1px solid #edd19854; border-radius: .3rem; background: #102c23a8; }
.countdown-units strong { font: 400 clamp(1.7rem, 3.5vw, 2.85rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown-units span { color: #ece3cd; font-size: clamp(.74rem, 1.2vw, .86rem); }
.party-started { font: 400 2.6rem/1.2 var(--serif); color: var(--gold); }
.candy-trim { height: .55rem; background: repeating-linear-gradient(125deg, #f5e7ca 0 12px, #a3263e 12px 22px, #f5e7ca 22px 28px, #244839 28px 32px); }

.schedule { background: #f2e8d5; border-bottom: 1px solid #e6d9bf; }
.schedule-inner { display: grid; grid-template-columns: .84fr 1fr 1.14fr; align-items: center; gap: 1.3rem; padding-block: 1.5rem; }
.schedule h2 { font: 400 1.65rem/1.2 var(--serif); margin-bottom: .15rem; }
.schedule p { font-size: .9rem; color: var(--muted); }
.schedule-item { border-left: 1px solid #d9cbae; padding-left: clamp(.9rem, 2.3vw, 1.75rem); }
.schedule-item span { display: block; color: #8e182e; font-size: .88rem; font-weight: 800; }
.schedule-item strong { display: block; font-size: 1.04rem; color: var(--forest); }

.wish-section { padding-block: clamp(3.2rem, 7vw, 5.75rem); scroll-margin-top: 1rem; }
.wish-layout { display: grid; grid-template-columns: 1fr 1.72fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro-ornament { display: inline-grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: 50%; background: #f1e4ce; color: #97334a; font-size: 1.4rem; }
.wish-intro h2 { font: 400 clamp(2.6rem, 5vw, 5rem)/.97 var(--serif); letter-spacing: -.068em; color: var(--forest); margin-block: .78rem 1rem; }
.wish-intro p { max-width: 19rem; color: var(--muted); }
.wish-form, .saved-card { padding: clamp(1.25rem, 4.4vw, 2.7rem); background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 .65rem 2.4rem #37291b0c; }
.field + .field { margin-top: 1.3rem; }
.field label, .field legend { display: block; font-weight: 760; }
.field legend { padding: 0; }
.field-hint { color: var(--muted); font-size: .88rem; }
.field input[type="text"], .field select, .field textarea { display: block; width: 100%; min-height: 2.85rem; padding: .63rem .78rem; margin-top: .38rem; color: var(--ink); background: #fff; border: 1px solid #cfc8b9; border-radius: .3rem; }
.field textarea { resize: vertical; }
.field ::placeholder { color: #6b706a; }
.optional { color: var(--muted); display: inline-block; font-size: .83rem; margin-left: .35rem; font-weight: 500; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; width: .46rem; height: .46rem; position: absolute; right: 1rem; top: 45%; border-right: 2px solid #4d564c; border-bottom: 2px solid #4d564c; transform: translateY(-40%) rotate(45deg); pointer-events: none; }
.field select { appearance: none; padding-right: 2rem; }
.other-field { margin-top: .85rem; }
.rsvp { margin-top: 1.65rem; padding-top: 1.45rem; border-top: 1px solid var(--line); }
.rsvp h3, .saved-card h3 { color: var(--forest); font: 400 2rem/1.1 var(--serif); margin-bottom: .85rem; }
.rsvp fieldset { border: 0; padding: 0; margin: 0; }
.attendance-options { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .45rem; }
.attendance-options label { display: flex; align-items: center; gap: .45rem; font-weight: 540; }
.attendance-options input { margin: 0; width: 1rem; height: 1rem; accent-color: var(--red); }
.rsvp-details { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1rem; }
.rsvp-details .field { margin: 0; }
.form-actions { margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.85rem; padding: .65rem 1.08rem; border: 1px solid transparent; border-radius: .32rem; font-weight: 780; cursor: pointer; }
.button-red { color: white; background: var(--red); }
.button-red:hover { background: #87172c; }
.button:disabled { opacity: .65; cursor: wait; }
.form-status { margin-top: .7rem; color: #921e36; }
.saved-card > span { display: block; color: var(--red); margin-bottom: .6rem; font-size: 1.5rem; }
.saved-card .button { margin-top: 1rem; }
.footer { background: #efe5d3; border-top: 1px solid #e4d7bc; color: #384439; }
.footer-inner { display: flex; justify-content: space-between; gap: .65rem; padding-block: 1.05rem; font-size: .9rem; }
.footer a { text-underline-offset: .18rem; }

#snow-globe { width: min(100% - 1.5rem, 37rem); max-height: calc(100% - 1.5rem); padding: 0; border: 1px solid #e8c27d99; border-radius: .65rem; background: #08271e; color: var(--cream); text-align: center; box-shadow: 0 2rem 7rem #050d0bd9; }
#snow-globe::backdrop { background: #071914d9; backdrop-filter: blur(6px); }
.reveal { padding: clamp(1rem, 3vw, 2rem); background: radial-gradient(ellipse at 50% 40%, #224b3b, #0a281f 75%); }
.reveal .eyebrow { justify-content: center; }
.reveal h2 { font: 400 clamp(2rem, 6vw, 3.35rem)/1.04 var(--serif); letter-spacing: -.05em; margin-block: .55rem .45rem; }
.reveal > p:not(.eyebrow) { color: #e8e2cf; }
.reveal form { margin-top: 1.1rem; }
.button-ivory { background: #f5e7c9; color: #183326; }
.button-ivory:hover { background: #fff3d9; }
.globe-stage { width: min(70vw, 41vh, 18rem); margin: 0 auto 1.15rem; transform-origin: center 87%; }
#snow-globe[open] .globe-stage { animation: globe-shake .85s ease-in-out both; }
.globe { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 2px solid #f1e5b9dd; box-shadow: 0 0 2.1rem #f4d9a84d; background: #234c3b; }
.globe img { width: 100%; height: 100%; object-fit: cover; }
.globe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 18px 6px #d7f2e33d; background: radial-gradient(ellipse at 30% 18%, #fff8 0 1%, transparent 18%), linear-gradient(125deg, #f9fff536, transparent 37%); pointer-events: none; }
.globe-base { position: relative; z-index: 1; width: 72%; height: 1.7rem; margin: -.6rem auto 0; border: 1px solid #ffe0a8; border-radius: .5rem .5rem .28rem .28rem; background: linear-gradient(#f3ca82, #97602e 50%, #563421 76%, #c38d52); box-shadow: 0 .5rem 1.5rem #040c08a6; }
.globe-snow { position: absolute; inset: 0; }
.globe-snow i { position: absolute; left: var(--flake-x); top: -5%; width: var(--flake-size); height: var(--flake-size); background: #fff7e5; border-radius: 50%; opacity: .7; }
#snow-globe[open] .globe-snow i { animation: globe-flake var(--flake-time) var(--flake-delay) linear infinite; }
@keyframes globe-shake {
  0% { transform: scale(.63) rotate(0); opacity: .25; }
  23% { transform: scale(.94) rotate(-11deg); opacity: 1; }
  43% { transform: scale(1.03) rotate(10deg); }
  62% { transform: scale(1.01) rotate(-7deg); }
  78% { transform: scale(1) rotate(4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes globe-flake { to { transform: translate(var(--flake-drift), 42vh); } }
body.submission-saved main, body.submission-saved .masthead { animation: page-shake .42s ease-out both; }
@keyframes page-shake { 25% { transform: translateX(-4px) rotate(-.18deg); } 54% { transform: translateX(5px) rotate(.18deg); } 77% { transform: translateX(-2px); } }

.organizer-page { padding-block: 4rem; }
.organizer-page h1 { font: 400 clamp(2.5rem, 6vw, 4rem)/1 var(--serif); color: var(--forest); margin-block: 2rem 1rem; }
.organizer-page .button { margin-top: 1rem; text-decoration: none; }

@media (max-width: 840px) {
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(3.2rem, 8.4vw, 5rem); }
  .wish-layout { gap: 2.5rem; }
}
@media (max-width: 660px) {
  .shell { width: min(100% - 2rem, 32rem); }
  .masthead-inner { min-height: 4.1rem; }
  .brand img { width: 6.5rem; }
  .hero-inner, .wish-layout { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 2.8rem 2.4rem; gap: 2.05rem; }
  .hero h1 { font-size: clamp(3.65rem, 12.1vw, 5.05rem); }
  .mural-picture { min-height: 10rem; }
  .countdown { padding-top: 1.12rem; }
  .schedule-inner { grid-template-columns: 1fr 1fr; gap: .75rem .65rem; padding-block: 1.1rem; }
  .schedule-inner > :first-child { grid-column: 1 / -1; }
  .schedule-item { padding-left: .6rem; }
  .wish-layout { gap: 1.3rem; }
  .wish-intro h2 br { display: none; }
  .wish-intro p { max-width: 26rem; }
}
@media (max-width: 380px) {
  .rsvp-details { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.15rem, 13vw, 3.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #snow, .globe-snow { display: none; }
  #snow-globe[open] .globe-stage, body.submission-saved main, body.submission-saved .masthead { animation: none; }
}

.hero-card { position: relative; }
.party-cow { position: absolute; z-index: 1; width: clamp(4rem, 10vw, 7rem); right: .75rem; top: 0; transform: translateY(-63%) rotate(11deg); pointer-events: none; }
.party-cow img { width: 100%; height: auto; filter: drop-shadow(0 2px 2px #07191466); animation: cow-peek 7s ease-in-out infinite; transform-origin: 50% 80%; }
.evergreen { background: var(--forest); color: var(--cream); overflow: hidden; }
.evergreen-inner { display: grid; grid-template-columns: 1.14fr 1fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.preview { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; border-radius: .45rem; border: 1px solid #e2bd7866; overflow: hidden; background: #0a231d; }
.preview img, .preview iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: center 61%; }
.preview::after { content: ""; background: #0a231d35; position: absolute; inset: 0; pointer-events: none; }
.preview:has(iframe)::after { display: none; }
.preview-play { min-height: 3rem; position: relative; z-index: 1; color: white; background: #132e26e8; border: 1px solid #f0d291; border-radius: 2rem; display: flex; padding: .6rem 1.15rem; gap: .6rem; align-items: center; cursor: pointer; font-weight: 730; }
.preview-play:hover { background: #a61e35; }
.evergreen-copy { position: relative; }
.evergreen-copy h2 { font: 400 clamp(2.1rem, 4.6vw, 3.65rem)/.98 var(--serif); letter-spacing: -.065em; margin-block: .55rem .85rem; }
.evergreen-copy > p:not(.eyebrow) { color: #e0dfd0; max-width: 27rem; }
.evergreen-copy .button { position: relative; z-index: 1; margin-top: 1rem; text-decoration: none; }
.mascot-cow { position: absolute; display: none; width: 7.75rem; right: -6.5rem; bottom: -3rem; transform: rotate(-8deg); pointer-events: none; }
.mascot-cow img { animation: cow-peek 7s 1.4s ease-in-out infinite; }
@keyframes cow-peek { 0%, 73%, 100% { transform: translateY(0) rotate(0); } 81% { transform: translateY(-9px) rotate(-9deg); } 89% { transform: translateY(-5px) rotate(7deg); } }
@media (min-width: 1360px) { .mascot-cow { display: block; } }
@media (max-width: 660px) { .evergreen-inner { grid-template-columns: 1fr; } .evergreen-copy { grid-row: 1; } }
@media (prefers-reduced-motion: reduce) { .party-cow img, .mascot-cow img { animation: none; } }
