:root {
  color-scheme: dark;
  --ink: #fff8ff;
  --muted: #e0d2f3;
  --yellow: #ffdf71;
  --mint: #78f7ee;
  --pink: #ff5ba7;
  font: 100%/1.5 system-ui, sans-serif;
  background: #10091e;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 12rem, #281145, transparent 56rem); }
main {
  width: min(100%, 38rem);
  margin: auto;
  text-align: center;
  background: #1b102d;
  border-inline: 1px solid #dcb4ff20;
  box-shadow: 0 0 5rem #08040fa0;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 3.2rem) 1rem 2.8rem;
  background: radial-gradient(ellipse at 50% 32%, #63238e 0%, #361550 45%, #1b102d 76%);
}
.strap { margin: 0; font-size: .875rem; font-weight: 850; letter-spacing: .19em; color: var(--mint); }
.strap span { color: var(--yellow); padding-inline: .35rem; }
.art { width: min(100%, 25rem); height: clamp(13.6rem, 57vw, 19rem); margin: .55rem auto 0; position: relative; isolation: isolate; }
.beam {
  position: absolute;
  inset: 18% 0 0;
  background: conic-gradient(from 89deg at 50% 5%, transparent 7deg, #f652ba37 8deg 25deg, transparent 26deg 44deg,
    #6ab8ff52 45deg 56deg, transparent 57deg 79deg, #f395ff39 80deg 94deg, transparent 95deg 112deg,
    #a577ff57 113deg 128deg, transparent 129deg 146deg, #ffce6b31 147deg 160deg, transparent 161deg);
  mask-image: radial-gradient(ellipse at 50% 8%, #000 26%, transparent 72%);
}
.wire { position: absolute; left: 50%; width: 1px; height: 13%; top: 0; background: linear-gradient(transparent, #e1cff9); }
.ball {
  position: absolute;
  left: 50%; top: 8%;
  transform: translateX(-50%);
  width: 43%; max-width: 10.1rem; height: auto;
  filter: drop-shadow(0 0 1.15rem #eb9cff99);
  animation: glow 5s ease-in-out infinite alternate;
}
@keyframes glow { to { filter: drop-shadow(0 0 1.8rem #bcb4ffd9) brightness(1.12); } }
.age {
  position: absolute; left: 50%; bottom: 1%; transform: translateX(-50%) rotate(-7deg);
  font-family: system-ui, sans-serif; font-size: clamp(9.2rem, 43vw, 15rem);
  font-weight: 1000; line-height: .78; letter-spacing: -.105em; padding: 0 .11em .13em 0;
  color: transparent;
  background: linear-gradient(#fff9a8 7%, #ffce57 37%, #ff805e 68%, #ff57b8 91%);
  background-clip: text;
}
.age::after {
  content: attr(data-age); position: absolute; inset: 0; z-index: -1;
  color: transparent; -webkit-text-stroke: 2px #ffcddb;
  filter: drop-shadow(6px 7px 0 #17cacc) drop-shadow(2px 3px 0 #9c2fe2);
}
.spark { position: absolute; font-size: 2.15rem; line-height: 1; text-shadow: 0 0 .85rem currentColor; }
.one { left: 13%; top: 27%; color: var(--mint); }
.two { right: 12%; top: 22%; color: var(--yellow); }
.three { right: 9%; bottom: 22%; color: var(--pink); font-size: 1.7rem; }
.four { left: 9%; bottom: 16%; color: var(--pink); font-size: 1.6rem; }
h1 { margin: .08em 0 0; font-size: clamp(2.15rem, 8.8vw, 3.5rem); letter-spacing: -.05em; line-height: 1.07; }
h2 { margin: 0 0 .65rem; font-size: clamp(1.35rem, 5vw, 1.8rem); line-height: 1.2; }
p { margin: .45rem 0; }
.lead, .place, address, .reply p { color: var(--muted); }
.lead { margin: .7rem 0 1.2rem; }
.date { font-size: clamp(1.15rem, 5vw, 1.45rem); font-weight: 850; color: var(--yellow); }
.place { margin: .25rem auto 1.5rem; }
.button {
  display: inline-flex; min-height: 3rem; padding: .65rem 1rem; align-items: center; justify-content: center;
  border-radius: .65rem; font-weight: 800; text-decoration: none; line-height: 1.25;
}
.primary { background: var(--yellow); color: #271039; box-shadow: 4px 4px 0 var(--pink); padding-inline: 1.5rem; }
.primary:hover { background: #fff0a8; }
.outline { color: var(--mint); border: 1px solid #78f7ee70; background: #78f7ee0c; }
.outline:hover { background: #78f7ee24; }
:focus-visible { outline: 2px solid white; outline-offset: 5px; }
section { margin: 0 clamp(.9rem, 5vw, 3rem); padding: 2rem .55rem; border-top: 1px solid #ebcaff35; }
.countdown h2 { color: var(--yellow); }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.2rem 0 .1rem; }
.clock div + div { border-left: 1px solid #ebcaff35; }
.clock strong, .clock span { display: block; }
.clock strong { font-size: clamp(1.65rem, 7vw, 2.55rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.clock span { font-size: .875rem; color: var(--muted); margin-top: .35rem; }
.details h2 { margin-top: .55rem; font-size: clamp(1.8rem, 8vw, 2.6rem); }
address { font-style: normal; margin-bottom: 1.2rem; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
.reply p { max-width: 25rem; margin: auto; }
footer { padding: .5rem 1rem 2rem; color: var(--yellow); font-weight: 800; }
footer span { color: var(--pink); padding-inline: .4rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .ball { animation: none; } }

[hidden] { display: none !important; }

#potvrda { scroll-margin-top: 1rem; }
#reply-title, .thanks h3 { color: var(--yellow); }
#rsvp-form { margin: 1.4rem auto 0; max-width: 29rem; text-align: left; }
#rsvp-form > label { display: block; margin-bottom: .45rem; }
#guest-name {
  width: 100%; padding: .8rem 1rem; border: 1px solid #ffdf7190;
  border-radius: .65rem; background: #dcb4ff17; color: var(--ink); font: inherit;
}
#guest-name::placeholder { color: #d1bedd; }
#rsvp-form fieldset { border: 0; padding: 0; margin: 1.2rem 0; }
#rsvp-form legend { padding: 0; margin-bottom: .55rem; }
.rsvp-options { display: flex; flex-wrap: wrap; gap: .55rem; }
.rsvp-options label {
  display: flex; align-items: center; gap: .55rem; padding: .7rem;
  min-height: 3rem; border: 1px solid #ffdf7175; border-radius: .65rem;
  font-size: .875rem; font-weight: 750; cursor: pointer;
}
.rsvp-options label:has(input:checked) { background: #ffdf7124; border-color: var(--yellow); }
.rsvp-options input { margin: 0; accent-color: var(--yellow); }
#rsvp-form .rsvp-note { font-size: .875rem; margin-bottom: 1.1rem; }
#rsvp-form button { width: 100%; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
#rsvp-form button:disabled { opacity: .7; cursor: wait; }
#rsvp-form #rsvp-status { margin-top: 1rem; }
.thanks { border: 1px solid #ffdf7175; border-radius: .9rem; padding: 1.5rem .85rem; margin: 1rem auto 0; }
.thanks h3 { font-size: 1.65rem; margin: 0 0 .45rem; }

.admin { width: min(100%, 56rem); min-height: 100vh; padding: 2rem clamp(1rem, 5vw, 2.5rem); }
.admin h1 { font-size: clamp(2rem, 7vw, 3rem); margin-block: .5rem 1rem; }
.admin .actions { margin: 1.4rem 0; }
.admin button { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.admin .table-wrap { overflow-x: auto; margin: 1.6rem 0; }
.admin table { border-collapse: collapse; width: 100%; text-align: left; }
.admin td, .admin th { padding: .65rem; border-bottom: 1px solid #ebcaff35; }
.admin th { color: var(--yellow); }
.admin p a { color: var(--mint); }
.admin-notice { color: var(--yellow); }
