/* Local visual experiment. Typography and layout remain in styles.css. */
:root {
  --paper:#f3f9fa;
  --blue:oklch(43% .07 275);
  --green:#408b20;
  --surface:rgba(251,254,255,.84);
  --field:rgba(250,254,255,.76);
  --muted:oklch(57% .025 275);
  --line:oklch(55% .045 275 / .32);
  --accent-soft:#e7efdc;
  --focus:oklch(57% .1 275);
  --button-fill:oklch(97% .012 275);
  --button-fill-hover:oklch(94% .025 275);
  --action:oklch(49% .085 275);
  --action-hover:oklch(43% .085 275);
  --button-spectrum:linear-gradient(110deg,oklch(80% .115 155),oklch(81% .095 215) 48%,oklch(74% .115 255));
}
body { background:var(--paper); isolation:isolate; }
/* One viewport-sized artwork continues behind every chapter without seams. */
.world::after, .invitation-backdrop::after {
  content:"";
  display:block;
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:var(--paper) url('assets/pastel-final.png') center / cover no-repeat;
  filter:blur(2px);
  transform:scale(-1.02,1.02);
}
.world { display:block; z-index:-1; }
.world, .invitation-backdrop { background:none; }
.invitation-fallback, .party-details, .rsvp-section { background:transparent; }
.floating-crystal, .orbit { opacity:0; }
.invitation-backdrop::before, .party-details::before,
.party-details::after, .rsvp-section::before, .rsvp-section::after {
  background:none;
  box-shadow:none;
}
/* Haze sits above the artwork, inside background-only stacking layers. */
.world::before, .invitation-backdrop::before {
  content:"";
  display:block;
  position:fixed;
  inset:0;
  width:auto;
  height:auto;
  z-index:1;
  pointer-events:none;
  background:radial-gradient(ellipse closest-side at center,oklch(99% .005 230 / .25) 0%,oklch(99% .005 230 / .25) 50%,oklch(99% .005 230 / 0) 100%);
  filter:none;
  rotate:none;
  transform:none;
  animation:none;
}
.portrait, .loading { background:#e8f2f1; }
.portrait { box-shadow:0 24px 65px -25px oklch(43% .05 275 / .2); }
.portrait-border { border-color:oklch(75% .045 275 / .4); }
.title-name, .title-spark { color:var(--green); }
.invitation .signature { position:relative; }
.signature .signature-heart { width:16px; height:16px; color:var(--green); }
.signature .signature-heart-right { transform:translateY(-2px); vertical-align:middle; }
.rsvp-form, .rsvp-success {
  background:var(--surface);
  border-color:rgba(255,255,255,.9);
  box-shadow:0 18px 48px -28px oklch(43% .05 275 / .2);
}
.button, .map-open, .rsvp-submit {
  background:oklch(99% .006 275);
  color:var(--blue);
  border-color:oklch(65% .035 275 / .35);
  box-shadow:0 2px 7px oklch(43% .04 275 / .1), inset 0 1px 0 oklch(99% .005 275 / .9);
  transition:background .2s, box-shadow .2s, border-color .2s;
}
.button:not(.music-toggle), .rsvp-submit { position:relative; }
/* Overlay the thicker gradient edge so labels and hit areas never move. */
.button:not(#replay)::after, .map-open::after {
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  padding:1.5px;
  background:var(--button-spectrum);
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}
.button:not(#replay):hover::after, .map-open:hover::after,
.button:not(#replay):focus-visible::after, .map-open:focus-visible::after { opacity:1; }
.button:hover, .map-open:hover, .button:focus-visible, .map-open:focus-visible {
  background:oklch(99% .006 275);
  box-shadow:0 3px 10px oklch(43% .04 275 / .12), inset 0 1px 0 oklch(99% .005 275 / .9);
}
.rsvp-submit, .rsvp-submit:hover, .rsvp-submit:focus-visible {
  border-radius:var(--button-radius);
  color:oklch(32% .07 275);
  border-color:transparent;
  background:radial-gradient(ellipse at 50% 105%,oklch(99% .005 220 / .98) 0%,oklch(99% .005 220 / .65) 27%,transparent 72%),radial-gradient(circle at 8% 15%,oklch(99% .005 220 / .3),transparent 48%),var(--button-spectrum);
  box-shadow:inset 0 3px 8px oklch(99% .005 220 / .35),inset 0 -2px 8px oklch(99% .005 220 / .5),0 3px 10px oklch(43% .04 275 / .12);
}
.calendar-add, .calendar-add:hover, .calendar-add:active { transform:none; }
.button:hover, .button:active, .rsvp-submit:hover, .rsvp-submit:active { transform:none; }
.map-open:hover, .map-open:active { transform:translateX(-50%); }
.map-pin:hover svg { transform:none; }
.button:active, .map-open:active, .rsvp-submit:active {
  box-shadow:inset 0 1px 3px oklch(43% .04 275 / .12);
}
.music-toggle[aria-pressed=true] { border-color:oklch(65% .035 275 / .35); }
.rsvp-form input::placeholder, .rsvp-form textarea::placeholder { color:var(--muted); }
.rsvp-form input[type=text]:focus, .rsvp-form textarea:focus {
  outline-width:1.5px;
  outline-offset:-1.5px;
}
.field-label small, .rsvp-form legend small { color:oklch(55% .012 275); }
.party-map { border-color:oklch(55% .045 275 / .3); background:#ecf0e6; }
.party-date > .ui-icon, .party-venue > .ui-icon {
  width:16px;
  height:16px;
  margin-right:8px;
  vertical-align:-2px;
}
.party-copy { min-width:0; }
.party-address { display:flex; align-items:center; gap:4px; max-width:none; }
#venue-address { white-space:normal; min-width:0; }
.address-copy {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  flex:none;
  min-height:32px;
  padding:0;
  vertical-align:middle;
  border:0;
  background:transparent;
  color:var(--blue);
  cursor:pointer;
}
.address-copy .ui-icon { width:16px; height:16px; opacity:.4; }
.address-copy:focus-visible { outline:1.5px solid var(--focus); outline-offset:0; border-radius:6px; }
.address-copy[data-copied=true] { color:var(--green); }
.copy-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.map-credit { color:var(--muted); }
.button:focus-visible, .scroll-cue:focus-visible,
.party-details a:focus-visible { outline-color:var(--focus); }
/* White links keep their original invisible hit areas over the intro video. */
#replay, #scroll-cue, #replay:hover, #scroll-cue:hover {
  background:transparent;
  border-color:transparent;
  color:#f9fdff;
}
@media (max-width:600px), (max-width:950px) and (max-height:500px) {
  .scene::after {
    background:linear-gradient(to top,oklch(27% .04 260 / .88),oklch(27% .04 260 / .4) 28%,transparent 65%);
  }
  .greeting { color:#f9fdff; }
  .title-name, .title-spark { color:#cdeea7; }
}
