:root {
  --green: #52604d;
  --green-2: #66745f;
  --sage: #9eaf97;
  --cream: #f1f1f1;
  --paper: #fffdf9;
  --gold: #ffbd82;
  --peach: #f0b48d;
  --pink: #e2a4a7;
  --pale-green: #d8e4d2;
  --ink: #3f493d;
  --muted: #70786d;
  --line: rgba(102, 116, 95, .20);
  --shadow: 0 30px 80px rgba(76, 83, 70, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.welcome { min-height: 100svh; position: relative; display: grid; place-items: center; padding: 32px 20px; overflow: hidden; }
.welcome-image { position: absolute; inset: -12px; background: url('/assets/jardin-mariage.webp') center/cover no-repeat; filter: blur(6px); transform: scale(1.04); }
.welcome-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(111, 98, 83, .08), rgba(78, 86, 70, .48)); }
.welcome-card { position: relative; width: min(680px, 100%); padding: clamp(34px, 6vw, 68px); text-align: center; color: white; border: 1px solid rgba(255,255,255,.48); background: rgba(88, 101, 81, .76); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.welcome-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.eyebrow { margin: 0 0 18px; color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 750; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.intro { margin: 0 0 30px; font: 400 clamp(1.45rem, 4vw, 2rem)/1.35 Georgia, "Times New Roman", serif; }
.lookup-form { position: relative; max-width: 480px; margin: 0 auto; text-align: left; }
.lookup-form label { display: block; margin-bottom: 8px; font-size: .84rem; font-weight: 700; }
.field-row { display: flex; gap: 8px; }
input[type="text"] { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.48); border-radius: 2px; background: rgba(255,255,255,.96); color: var(--ink); outline: none; }
input[type="text"]:focus { box-shadow: 0 0 0 3px rgba(255,189,130,.45); }
button { min-height: 50px; padding: 0 22px; border: 0; border-radius: 2px; background: var(--gold); color: #44503f; font-weight: 800; transition: transform .18s ease, opacity .18s ease, background .18s ease; }
button:hover { transform: translateY(-1px); background: #ffd2aa; }
button:disabled { cursor: wait; opacity: .62; transform: none; }
.form-status { min-height: 24px; margin: 9px 0 0; color: #fff2ce; font-size: .85rem; }

.invite-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 70svh; display: grid; place-content: center; justify-items: center; padding: 80px 22px; text-align: center; color: white; background: var(--green); }
.invite-hero::before { content: ""; position: absolute; inset: -16px; z-index: -2; background: url('/assets/jardin-mariage.webp') center/cover no-repeat; filter: blur(6px); transform: scale(1.04); }
.invite-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(86,99,79,.48), rgba(86,99,79,.68)); }
.invite-hero h2 { margin: 0; font: 400 clamp(2.8rem, 7vw, 6.5rem)/.94 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.text-button { margin-top: 30px; min-height: auto; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.5); color: white; background: none; font-weight: 650; }
.text-button:hover { background: none; }
.announcement { width: min(1080px, calc(100% - 40px)); margin: -58px auto 90px; position: relative; display: grid; grid-template-columns: 240px 1fr; background: var(--paper); box-shadow: var(--shadow); }
.date-block { display: grid; place-items: center; align-content: center; padding: 44px 24px; color: white; background: var(--green); text-transform: uppercase; letter-spacing: .14em; }
.date-block strong { margin: 8px 0 5px; font: 400 5rem/1 Georgia, serif; color: var(--gold); }
.date-block span { font-size: .78rem; font-weight: 750; }
.announcement-copy { padding: clamp(36px, 6vw, 72px); }
.announcement-copy > p:first-child { max-width: 700px; margin: 0; font: 400 clamp(1.3rem, 2.5vw, 2rem)/1.5 Georgia, serif; }
.venue-address { display: inline-block; margin-top: 18px; color: var(--green); font-size: .84rem; font-weight: 700; text-underline-offset: 4px; }
.signature { margin: 30px 0 0; color: var(--green-2); font: italic 1.55rem Georgia, serif; }

.schedule { width: min(960px, calc(100% - 40px)); margin: 0 auto 100px; }
.schedule-heading { margin-bottom: 34px; text-align: center; }
.schedule-heading h2 { margin: 0; font: 400 clamp(2.2rem, 5vw, 4.2rem)/1 Georgia, serif; letter-spacing: -.04em; }
.timeline { position: relative; display: grid; gap: 0; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(76,83,70,.08); }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; min-height: 92px; padding: 22px 32px; border-bottom: 1px solid var(--line); }
.timeline li:nth-child(even) { background: rgba(240, 180, 141, .09); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 137px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px #f7e8e8; }
.timeline time { color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.timeline li > div { padding-left: 16px; border-left: 1px solid var(--sage); }
.timeline strong { display: block; font: 400 1.2rem/1.35 Georgia, serif; }
.timeline span { display: block; margin-top: 6px; color: var(--muted); font-size: .85rem; }
.pool-note { max-width: 760px; margin: 16px auto 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.rsvp { width: min(1120px, calc(100% - 40px)); margin: 0 auto 80px; }
.rsvp-heading { display: grid; grid-template-columns: 1.1fr .8fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.rsvp-heading h2 { margin: 0; font: 400 clamp(2.2rem, 5vw, 4.2rem)/1 Georgia, serif; letter-spacing: -.04em; }
.rsvp-heading > p { margin: 0; color: var(--muted); line-height: 1.65; }
.guest-list { display: grid; gap: 14px; }
.guest-card { padding: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 35px rgba(76,83,70,.06); }
.guest-topline { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.guest-kicker { margin: 0 0 5px; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; }
.guest-name { margin: 0; font: 400 1.65rem Georgia, serif; }
fieldset { border: 0; padding: 0; margin: 0; }
.attendance { display: flex; gap: 8px; }
.choice input, .check input { position: absolute; opacity: 0; pointer-events: none; }
.choice span, .check span { display: block; padding: 11px 15px; border: 1px solid var(--line); background: white; font-size: .88rem; font-weight: 700; transition: .18s ease; }
.choice input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid rgba(158,175,151,.45); outline-offset: 2px; }
.choice.yes input:checked + span { color: white; border-color: var(--green-2); background: var(--green-2); }
.choice.no input:checked + span { color: white; border-color: #a66f70; background: #a66f70; }
.preferences { display: grid; grid-template-columns: max-content max-content minmax(230px, 1fr); gap: 10px 12px; align-items: end; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.check input:checked + span { color: white; border-color: var(--green); background: var(--green); }
.allergy-field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.allergy-field input { min-height: 43px; border-color: var(--line); background: #fff; }
.save-bar { position: sticky; bottom: 14px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding: 15px 16px 15px 22px; color: white; background: rgba(102,116,95,.96); box-shadow: 0 14px 45px rgba(76,83,70,.25); backdrop-filter: blur(8px); }
.save-status { margin: 0; font-size: .88rem; }
.save-bar button { flex: 0 0 auto; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px max(20px, calc((100vw - 1080px)/2)); color: rgba(255,255,255,.78); background: #56634f; font-size: .84rem; }

.video-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 0; border: 0; overflow: hidden; background: #070a08; }
.video-dialog::backdrop { background: #070a08; }
.video-dialog video { width: 100%; height: 100%; object-fit: contain; display: block; }
.close-video { position: fixed; z-index: 2; top: 18px; right: 18px; width: 48px; min-height: 48px; padding: 0 0 4px; border-radius: 50%; background: rgba(255,255,255,.9); color: #111; font-size: 2rem; line-height: 1; }
.play-fallback { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.play-fallback:hover { transform: translate(-50%, calc(-50% - 1px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .welcome { padding: 14px; }
  .welcome-card { padding: 42px 24px 32px; }
  .field-row { flex-direction: column; }
  .field-row button { width: 100%; }
  .invite-hero { min-height: 62svh; }
  .announcement { grid-template-columns: 1fr; margin-top: -34px; }
  .date-block { grid-template-columns: auto auto auto; gap: 12px; padding: 24px; }
  .date-block strong { margin: 0; font-size: 2.6rem; }
  .schedule { margin-bottom: 72px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding: 22px 24px 22px 42px; }
  .timeline li::before { left: 20px; top: 28px; }
  .timeline li > div { padding-left: 0; border-left: 0; }
  .rsvp-heading { grid-template-columns: 1fr; gap: 18px; }
  .guest-topline { align-items: stretch; flex-direction: column; }
  .attendance { display: grid; grid-template-columns: 1fr; }
  .choice span { text-align: center; }
  .preferences { grid-template-columns: 1fr 1fr; }
  .allergy-field { grid-column: 1 / -1; }
  .check span { text-align: center; }
  .save-bar { align-items: stretch; flex-direction: column; padding: 14px; }
  .save-status { text-align: center; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
