:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pine: #172e27;
  --deep-pine: #10241e;
  --ink: #24352e;
  --muted: #5d685f;
  --ivory: #fcf9f0;
  --cream: #f5eee1;
  --paper: #fffcf5;
  --red: #8f392b;
  --red-dark: #702b21;
  --gold: #dfb97a;
  --line: #d9d0bf;
  --safe-side: max(env(safe-area-inset-left), env(safe-area-inset-right));
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #be643d; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
p { line-height: 1.6; }

.shell { width: min(1120px, calc(100% - 2 * max(32px, var(--safe-side)))); margin-inline: auto; }
.section-pad { padding-block: clamp(3.4rem, 6.1vw, 6rem); }
.skip-link { position: absolute; top: .5rem; left: .5rem; transform: translateY(-160%); z-index: 5; padding: .75rem 1rem; background: var(--ivory); color: var(--ink); }
.skip-link:focus { transform: none; }

.topbar { padding-top: env(safe-area-inset-top); color: #f7ecda; background: var(--deep-pine); border-bottom: 1px solid #ffffff23; }
.navigation, .footer-inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .63rem; width: fit-content; color: inherit; font-family: var(--serif); font-size: 1.3rem; text-decoration: none; }
.brand-star { color: var(--gold); font: 1.68rem/1 Georgia, serif; }
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 3.4vw, 2.5rem); }
.nav-links a { color: #f4ecd9; font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover, .footer a:hover { color: var(--gold); }
.nav-links .nav-rsvp { padding: .57rem .92rem; border: 1px solid #c8a97780; border-radius: 3px; }
.nav-links .nav-rsvp:hover { border-color: var(--gold); }
.install-button {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  flex: none;
  min-height: 44px;
  padding: .35rem .65rem;
  border: 1px solid #e3bb756e;
  border-radius: 4px;
  background: #dfb97a19;
  color: #fae3b9;
  font-size: .87rem;
  font-weight: 650;
}
.install-button:hover { border-color: var(--gold); background: #dfb97a30; }
.install-button-icon { font-size: 1.22rem; line-height: 1; }
.install-dialog {
  width: min(390px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(1.25rem, 5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 14px 60px #10241e50;
}
.install-dialog::backdrop { background: #10241eb3; }
.install-dialog img { margin-bottom: .85rem; border-radius: 11px; }
.install-dialog h2 { font-size: clamp(1.8rem, 6vw, 2.15rem); }
.install-dialog p { margin-block: .85rem 1.1rem; }
.install-dialog > .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .75rem; }
.mobile-nav { display: none; }

@media (max-width: 780px) {
  .install-button { order: 0; }
  .navigation .nav-links { order: 1; }
}

@media (max-width: 430px) {
  .install-button { font-size: .81rem; padding-inline: .52rem; }
  .install-verb { display: none; }
}

.hero {
  display: flex;
  position: relative;
  min-height: 625px;
  isolation: isolate;
  align-items: center;
  color: var(--ivory);
  background: var(--deep-pine);
}
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url("/images/hero.webp") center 54% / cover no-repeat; }
.hero::after {
  background:
    linear-gradient(90deg, #10241ef7 0%, #10241eee 20%, #10241ea6 47%, #10241e26 77%),
    linear-gradient(0deg, #10241e86 0%, transparent 55%);
}
.hero-content { padding-block: 4rem 4.5rem; }
.hero-label { color: var(--gold); font-size: .89rem; letter-spacing: .13em; font-weight: 650; text-transform: uppercase; }
.hero-label span { display: inline-block; width: 7px; height: 7px; margin: 0 .6rem .12rem .12rem; transform: rotate(45deg); background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 { max-width: 900px; margin-top: .45rem; font-size: clamp(3.25rem, 7.1vw, 6.2rem); line-height: .99; letter-spacing: -.06em; overflow-wrap: anywhere; }
.hero-tagline { max-width: 53ch; margin-top: 1.13rem; color: #fff3df; font-size: clamp(1.03rem, 1.65vw, 1.25rem); }
.hero-tagline, .rsvp-copy p { hyphens: auto; overflow-wrap: break-word; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.58rem; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; padding: .7rem 1.1rem; border: 1px solid transparent; border-radius: 4px; font-weight: 675; font-size: .94rem; line-height: 1.25; text-decoration: none; }
.button-light { background: #f3e7d0; color: var(--deep-pine); }
.button-light:hover { background: #fff6e8; }
.button-transparent { color: var(--ivory); border-color: #f7ead799; background: #0c211a42; }
.button-transparent:hover { border-color: #f7ead7; background: #0c211aa6; }
.button-red { background: var(--red); color: #fff8eb; }
.button-red:hover:not(:disabled) { background: var(--red-dark); }
.button-red:disabled { background: #e6dace; color: #684d45; }

.countdown { width: min(100%, 468px); margin-top: clamp(2.6rem, 4.2vw, 3.9rem); padding-top: 1.05rem; border-top: 1px solid #e4c9955c; }
.countdown > p { color: #f4d6a6; font-size: .93rem; font-weight: 620; }
.countdown-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: .8rem; }
.countdown-values > div { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 12px; text-align: center; border-left: 1px solid #e4c9954f; }
.countdown-values > div:first-child { border-left: 0; padding-left: 0; }
.countdown-values dd { order: -1; font: 400 clamp(2rem, 3.8vw, 3.25rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.countdown-values dt { margin-top: .28rem; color: #f2dfbf; font-size: .89rem; line-height: 1.45; }

h2 { color: var(--pine); font-size: clamp(2.4rem, 5vw, 4.7rem); letter-spacing: -.051em; line-height: .98; }
h3 { color: var(--pine); font-size: clamp(1.6rem, 2.7vw, 2rem); line-height: 1.07; letter-spacing: -.032em; }
.details { background: var(--ivory); }
.section-title { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.section-line { flex: 1; min-width: 16px; border-top: 1px solid var(--line); }
.event-grid { display: grid; grid-template-columns: 1fr 1.25fr .7fr; margin-top: 2.25rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.event-item { padding: 1.4rem 1.65rem 1.65rem; }
.event-item + .event-item { border-left: 1px solid var(--line); }
.event-item dt { display: flex; align-items: center; gap: .68rem; color: var(--red); font-size: .91rem; font-weight: 640; }
.event-item dd { display: grid; justify-items: start; gap: .42rem; margin-top: .84rem; }
.event-item dd strong { max-width: 100%; color: var(--pine); font: 400 clamp(1.13rem, 2vw, 1.62rem)/1.13 var(--serif); overflow-wrap: anywhere; }
.event-secondary { color: var(--muted); line-height: 1.43; }
.event-icon { position: relative; display: inline-block; width: 17px; height: 16px; flex: 0 0 17px; color: var(--red); }
.icon-calendar { border: 1.5px solid; border-radius: 2px; }
.icon-calendar::before { content: ""; position: absolute; top: 4px; inset-inline: 0; border-top: 1.5px solid; }
.icon-calendar::after { content: ""; position: absolute; top: -3px; bottom: 10px; inset-inline: 3px; border-inline: 1.5px solid; }
.icon-location { width: 13px; height: 13px; margin: -3px 2px 0; flex: 0 0 13px; border: 1.5px solid; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.icon-location::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.icon-ticket { height: 12px; border: 1.5px solid; border-radius: 2px; transform: rotate(-12deg); }
.icon-ticket::after { content: ""; position: absolute; inset-block: 0; left: 9px; border-right: 1px dashed; }
.text-link { width: fit-content; padding: 0; color: var(--red-dark); border: 0; background: transparent; font-size: .91rem; font-weight: 650; line-height: 1.5; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2rem; }
.text-link:hover { color: var(--red); text-decoration-thickness: 2px; }
.event-item .text-link { margin-top: .25rem; }
.follow-up { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-top: 1.25rem; padding-left: .85rem; border-left: 2px solid #bd9364; line-height: 1.4; }
.follow-up-label { color: var(--muted); font-weight: 550; }
.follow-up strong { font-weight: 630; }

.rsvp { background: #e9eee5; }
.guest-overview { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.guest-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; }
.guest-heading h3 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.guest-heading p { color: var(--muted); font-size: .9rem; }
.guest-counts { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: .75rem; }
.guest-counts > div { display: flex; flex-direction: column; justify-content: end; min-width: 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid #cbd3c6; border-radius: 6px; background: #f7f8f2; }
.guest-counts dt { color: var(--muted); font-size: 1rem; line-height: 1.35; }
.guest-counts dd { order: -1; margin-bottom: .3rem; color: var(--pine); font: 400 clamp(2.5rem, 5vw, 3.7rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.guest-counts .guest-primary { border-color: var(--pine); background: var(--pine); }
.guest-primary dt { color: #f3e1c3; }
.guest-primary dd { color: #f5d398; font-size: clamp(3.4rem, 6.5vw, 4.9rem); }

@media (max-width: 500px) {
  .guest-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .guest-counts .guest-primary { grid-column: 1 / -1; flex-direction: row; justify-content: start; align-items: baseline; gap: .8rem; }
  .guest-primary dd { margin-bottom: 0; }
}
.rsvp-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; gap: clamp(1.5rem, 4.5vw, 4rem); }
.rsvp-copy h2 { font-size: clamp(1.9rem, 3vw, 2.55rem); line-height: 1.1; text-wrap: balance; }
.rsvp-copy p { max-width: 46ch; margin-top: .85rem; color: var(--muted); }
.rsvp-actions { display: grid; gap: 1.1rem; min-width: 0; }
.rsvp-choices { min-width: 0; margin: 1rem 0 0; padding: 0; border: 0; }
.rsvp-choices legend { font-size: .91rem; font-weight: 650; }
.rsvp-choices > div { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .25rem; }
.rsvp-choices label { display: inline-flex; align-items: center; gap: .42rem; min-height: 38px; }
.rsvp-choices input { inline-size: 1.05rem; block-size: 1.05rem; margin: 0; accent-color: var(--red); }
.payment-panel { padding: 1.15rem 1.45rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.payment-panel h3 { font-size: 1.4rem; }
.payment-panel p { margin-top: .45rem; }
.payment-panel strong { overflow-wrap: anywhere; }
.payment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: .65rem; }

.gallery { background: var(--cream); }
.gallery-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.2rem; }
.gallery-heading h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1; text-wrap: balance; }
#gallery-message { color: var(--muted); }
.gallery-photo { overflow: hidden; min-width: 0; border-radius: 6px; background: var(--deep-pine); color: var(--ivory); box-shadow: 0 13px 30px #50361925; }
.gallery-photo img { width: 100%; height: min(72svh, 740px); object-fit: contain; background: #202920; }
.gallery-photo figcaption { padding: .45rem 1rem; text-align: right; font-size: .9rem; line-height: 1.35; }
#gallery-position { color: #eecb93; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gallery-controls { display: flex; gap: .5rem; }
.slide-button { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid #baa98e; border-radius: 50%; background: transparent; color: var(--pine); }
.slide-button:hover { color: var(--ivory); border-color: var(--pine); background: var(--pine); }
.chevron { width: 8px; height: 8px; margin-right: 4px; transform: rotate(45deg); border-top: 1.5px solid; border-right: 1.5px solid; }
.chevron-left { margin-right: 0; margin-left: 4px; transform: rotate(-135deg); }
[data-gallery-play] { width: 0; height: 0; margin-left: 2px; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
[data-gallery-pause] { width: 8px; height: 10px; border-inline: 2px solid currentColor; }

.music { padding-block: clamp(1.5rem, 4vw, 3rem); background: var(--ivory); }
.music-menu-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.playlist-panel { min-width: 0; }
.playlist-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .7rem; }
.playlist-heading h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.12; overflow-wrap: anywhere; }
.spotify-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .2rem; }
.spotify-link:hover { color: var(--pine); }
#playlist-frame { display: block; width: 100%; border: 0; border-radius: 8px; }
.playlist-tracks { margin-top: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.playlist-tracks h3 { margin-bottom: .6rem; font: 650 .95rem/1.4 system-ui, sans-serif; letter-spacing: normal; }
.playlist-tracks ol { max-height: 25rem; overflow: auto; margin: 0; padding-left: 1.8rem; }
.playlist-tracks li { padding: .45rem .2rem; overflow-wrap: anywhere; }
.playlist-tracks li + li { border-top: 1px solid var(--line); }
.playlist-tracks li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.playlist-tracks a { color: var(--pine); font-weight: 650; text-underline-offset: .2rem; }
.playlist-tracks li span { display: block; color: var(--muted); font-size: .88rem; }

.menu-teaser { display: grid; gap: 1rem; min-width: 0; padding: clamp(.85rem, 2.2vw, 1.4rem); border: 1px solid #c3aa7e; border-radius: 8px; background: #f5eee1; }
.menu-teaser-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.menu-teaser h2 { font-size: clamp(1.7rem, 2.5vw, 2.1rem); line-height: 1.1; }
.menu-teaser p { margin-top: .25rem; color: var(--muted); font-size: .93rem; }
.menu-open { display: flex; align-items: center; width: fit-content; min-height: 44px; }
.menu-preview { display: block; position: relative; width: min(100%, 400px); margin-inline: auto; border-radius: 3px; box-shadow: 0 7px 18px #3d38232b; }
.menu-preview img { width: 100%; height: auto; border-radius: inherit; }
.menu-preview-zoom { display: grid; position: absolute; right: .4rem; bottom: .4rem; place-items: center; width: 30px; height: 30px; border: 1px solid #dfb97a; border-radius: 50%; background: var(--deep-pine); color: #fff5e3; font-size: 1.25rem; }
.menu-dialog { width: min(940px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; border: 1px solid #b99a62; border-radius: 8px; color: var(--ink); background: #fcf6ea; box-shadow: 0 20px 80px #10241e66; }
.menu-dialog[open] { display: flex; flex-direction: column; }
.menu-dialog::backdrop { background: #071f18cf; }
.menu-dialog-toolbar { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: .35rem .85rem; padding: .65rem 1rem; border-bottom: 1px solid #d9c7a4; background: #fcf6ea; }
.menu-dialog-toolbar h2 { flex: 1; font-size: clamp(1.2rem, 4vw, 1.45rem); line-height: 1.12; }
.menu-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; }
.menu-dialog-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.menu-close { min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--pine); border-radius: 4px; background: var(--pine); color: var(--ivory); font-size: .9rem; font-weight: 600; }
.menu-close:hover { background: #304439; }
.menu-dialog-page { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.menu-dialog-page img { width: 100%; max-width: none; height: auto; }
.menu-dialog-page[data-zoomed="true"] img { width: max(100%, 1061px); }
body:has(.menu-dialog[open]) { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .music-menu-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
}

@media (max-width: 640px) {
  .music-menu-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .menu-dialog-toolbar { padding: .5rem .7rem; }
  .menu-dialog-actions { width: 100%; justify-content: space-between; gap: .2rem .6rem; }
}

@media (max-width: 350px) {
  .music-menu-grid { width: calc(100% - 2 * max(12px, var(--safe-side))); }
  .menu-teaser h2 { font-size: 1.55rem; }
}
.wish-form { display: block; min-width: 0; padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 8px 22px #513d2411; }
.form-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; }
.form-help { margin: .6rem 0 1rem; color: var(--muted); }
.wish-form label { font-size: .91rem; font-weight: 650; }
.wish-form input:not([type="radio"]) { display: block; width: 100%; margin-top: .34rem; padding: .7rem .7rem; border: 1px solid #bcb19f; border-radius: 4px; background: #fffdf8; color: var(--ink); font-size: 1rem; font-weight: 400; }
.wish-form input:not([type="radio"])::placeholder { color: #6f7065; opacity: 1; }
.wish-form .button { margin-top: 1rem; }
.form-status { margin-top: .67rem; color: var(--muted); font-size: .9rem; }
.form-status:empty { margin: 0; }
.form-status[data-state="error"] { color: #872e22; }
.form-status[data-state="success"] { color: #21553b; }

.footer { background: var(--deep-pine); color: #f7ecda; }
.footer-inner { min-height: 78px; }
.footer-orga {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #cdb58c;
  font: 1.28rem/1 system-ui, sans-serif;
  text-decoration: none;
}
.footer-orga:hover, .footer-orga:focus-visible { background: #dfb97a19; }

@media (max-width: 780px) {
  :root { --mobile-nav-height: calc(64px + env(safe-area-inset-bottom)); }
  html { scroll-padding-block: .75rem calc(var(--mobile-nav-height) + 12px); }
  .shell { width: calc(100% - 2 * max(22px, var(--safe-side))); }
  .navigation { min-height: 60px; flex-wrap: wrap; gap: .35rem .75rem; padding-block: .4rem; }
  .navigation .brand { min-height: 44px; gap: .45rem; font-size: 1.13rem; }
  .nav-links { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: var(--mobile-nav-height);
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border-top: 1px solid #dfb97a55;
    background: var(--deep-pine);
    box-shadow: 0 -3px 18px #10241e24;
    color: #fff2da;
  }
  .mobile-nav a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-height: 53px;
    padding: .25rem .12rem;
    border-radius: 7px;
    font-size: .81rem;
    line-height: 1.15;
    font-weight: 630;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .mobile-nav a[aria-current="location"] { background: #dfb97a21; color: #ffe1a9; }
  .mobile-nav a:focus-visible { outline-color: var(--gold); outline-offset: -3px; }
  .mobile-nav-icon { display: block; position: relative; width: 20px; height: 19px; }
  .nav-icon-home, .nav-icon-music { text-align: center; font: 1.35rem/19px system-ui, sans-serif; }
  .nav-icon-guests::before { content: ""; position: absolute; inset: 1px 7px auto; height: 6px; border: 1.5px solid; border-radius: 50%; }
  .nav-icon-guests::after { content: ""; position: absolute; inset: 9px 3px 1px; border: 1.5px solid; border-radius: 7px 7px 3px 3px; }
  .nav-icon-date, .nav-icon-photos { width: 17px; height: 15px; margin-block: 2px; border: 1.5px solid; border-radius: 3px; }
  .nav-icon-date::before { content: ""; position: absolute; inset: 3px 0 auto; border-top: 1.5px solid; }
  .nav-icon-photos::before { content: ""; position: absolute; right: 2px; top: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
  .nav-icon-photos::after { content: ""; position: absolute; bottom: 2px; left: 2px; width: 6px; height: 6px; border: solid; border-width: 1.5px 0 0 1.5px; transform: rotate(45deg); }
  .footer-inner { flex-wrap: wrap; padding-top: .8rem; padding-bottom: calc(var(--mobile-nav-height) + .9rem); }
  .event-item .text-link, .payment-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .payment-actions { gap: 0 1rem; }
  .hero { min-height: 560px; }
  .hero::before { background-position: 59% center; }
  .hero::after { background: linear-gradient(90deg, #10241ef3, #10241ed4 28%, #10241e59 100%), linear-gradient(0deg, #10241e97, transparent 58%); }
  .event-item { padding: 1.05rem 1rem 1.15rem; }
  .rsvp-grid { gap: 2rem; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 2 * max(16px, var(--safe-side))); }
  .section-pad { padding-block: 2rem; }
  .hero { min-height: 0; }
  .hero-content { padding-block: 1.95rem 1.65rem; }
  .hero h1 { font-size: clamp(1.85rem, 10.6vw, 3.85rem); line-height: 1.04; }
  .hero-tagline { margin-top: .85rem; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.2rem; }
  .hero-actions .button-light { grid-column: 1 / -1; }
  .hero-actions .button { text-align: center; }
  .hero::before { background-position: 61% center; }
  .hero::after { background: linear-gradient(90deg, #10241ee7, #10241ebd 53%, #10241e76), linear-gradient(0deg, #10241eab, transparent 63%); }
  .countdown { width: min(100%, 420px); margin-top: 1.45rem; padding: .8rem .55rem .9rem; border: 1px solid #e4c9955c; border-radius: 8px; background: #10241e8c; }
  .countdown > p { text-align: center; }
  .countdown-values > div, .countdown-values > div:first-child { padding-inline: 3px; }
  .countdown-values dt { font-size: .82rem; }
  .event-grid { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .event-item + .event-item { border-left: 0; border-top: 1px solid var(--line); }
  .event-item dd { margin-top: .5rem; }
  .event-item dd strong { font-size: 1.3rem; }
  .rsvp-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .guest-overview { margin-bottom: 1.85rem; }
  .guest-counts > div { padding: .85rem 1rem; }
  .gallery-heading { margin-bottom: .85rem; }
  .gallery-photo img { height: auto; max-height: min(66svh, 580px); }
  .gallery-photo figcaption { padding-inline: .75rem; }
  .wish-form input:not([type="radio"]) { min-height: 48px; }
  .rsvp-choices > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .6rem; }
  .rsvp-choices label { min-height: 48px; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 5px; line-height: 1.3; }
  .rsvp-choices label:has(input:checked) { border-color: #47624e; background: #e9eee5; }
  .rsvp-choices input { flex: none; }
  .wish-form .button { width: 100%; }
  .menu-dialog { width: min(calc(100% - 16px), 580px); max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); inset-block: env(safe-area-inset-top) env(safe-area-inset-bottom); }
  .menu-dialog-page[data-zoomed="true"] img { width: max(100%, 620px); }
}

@media (max-width: 380px) {
  .hero-label { font-size: .81rem; }
  .hero-actions .button { padding-inline: .8rem; font-size: .9rem; }
}

@media (max-width: 780px) and (pointer: coarse) {
  body:has(#rsvp-name:focus) .mobile-nav { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
