:root {
  color-scheme: dark;
  --bg: #151118;
  --surface: #221922;
  --line: #483240;
  --pink: #ff75ae;
  --light: #fff1f7;
  --muted: #e3c5d4;
  font: 16px/1.6 system-ui, sans-serif;
  background: var(--bg);
  color: var(--light);
}
* { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: var(--pink); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #ffc9df; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 0; padding: .7rem; background: var(--bg); transform: translateY(-120%); z-index: 1; }
.skip:focus { transform: none; }
.top, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.top { border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; color: var(--light); text-decoration: none; letter-spacing: -.03em; }
.brand span { color: var(--pink); padding-left: .4em; }
.top nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); }
.top nav a { color: var(--muted); text-decoration: none; }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(1rem, 5vw, 4rem); padding-block: clamp(2rem, 6vw, 5rem) 2.5rem; }
h1,h2 { font-family: Georgia, serif; letter-spacing: -.052em; line-height: 1; margin: 0 0 .25em; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
.hero h1 { font-size: clamp(4rem, 10vw, 8rem); }
.hero h1 em { color: var(--pink); display: block; font-weight: 400; }
.hero p, .gift-section > p, .rsvp p { color: var(--muted); max-width: 39ch; }
.hero p { font-size: 1.1rem; margin-block: 1.5rem; }
.hero img { display: block; width: 100%; height: auto; border-radius: 1.5rem; }
.hero figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .45rem; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .62rem 1.2rem; border: 1px solid transparent; border-radius: 999px; background: var(--pink); color: #22101d; text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; white-space: normal; }
.button:hover,button:hover { background: #ff9fc7; }
.secondary { background: transparent; color: var(--light); border-color: var(--line); }
.secondary:hover { background: var(--surface); }
.details { display: grid; grid-template-columns: 1fr 1.35fr 1.15fr; border-block: 1px solid var(--line); margin-bottom: 3.5rem; }
.details > div { padding: 1.35rem .9rem; }
.details > div:first-child { padding-inline-start: 0; }
.details > div + div { border-left: 1px solid var(--line); padding-inline-start: 1.3rem; }
.details span, .status { display: block; color: var(--pink); font-size: .78rem; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; }
.details strong { font-size: 1.05rem; }
.details p { color: var(--muted); margin: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.rsvp { display: grid; grid-template-columns: 1fr .9fr; gap: 2rem; padding-block: 3.5rem; }
.rsvp h2 { max-width: 13ch; }
form { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend, label { font-weight: 650; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .55rem; }
.choices label { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: .75rem; cursor: pointer; }
input[type=radio] { accent-color: var(--pink); width: 1rem; height: 1rem; }
.choices label:has(:checked) { border-color: var(--pink); background: #3c2134; }
.gift-section, .standalone { padding-block: 3.5rem; }
.gifts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr)); gap: 1rem; margin-top: 1.5rem; }
.gifts figure { border-radius: 1rem; overflow: hidden; background: var(--surface); }
.gifts img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gifts figcaption { padding: .65rem .8rem; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer a { color: inherit; }
.standalone { min-height: 60vh; }
.narrow { max-width: 32rem; }
.standalone h1 { margin-bottom: 1.2rem; }
.standalone h2 { font-size: 2.25rem; margin: 2rem 0 1rem; }
.standalone label { display: grid; gap: .35rem; }
.standalone form:not(.inline) label { margin-bottom: 1rem; }
input:not([type=radio]), select { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: .55rem; background: #1b141e; color: var(--light); font: inherit; }
.section-title, .inline, .counts, .gift-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.section-title { justify-content: space-between; }
.inline { align-items: end; }
.inline label { flex: 1 1 15rem; min-width: 0; }
.counts a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; text-decoration: none; }
.entries { list-style: none; margin: 1rem 0 0; padding: 0; }
.entries li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid var(--line); padding: .75rem 0; }
.invite-link { flex: 0 1 28rem; font-size: .85rem; }
.gift-row img { width: 3.5rem; height: 3.5rem; border-radius: .45rem; object-fit: cover; }
.notice { padding: .75rem 1rem; background: #48233d; border-left: 3px solid var(--pink); border-radius: .35rem; color: var(--light); }
.empty { color: var(--muted); }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .rsvp, .details { grid-template-columns: 1fr; }
  .hero { padding-top: 2.3rem; gap: 1.35rem; }
  .hero h1 { font-size: clamp(3.65rem, 15vw, 6rem); }
  .hero figure { max-width: 31rem; }
  .details > div, .details > div + div { padding: .8rem 0; border-left: 0; }
  .details > div + div { border-top: 1px solid var(--line); }
  .rsvp { padding-block: 2.35rem; gap: .75rem; }
}
