/* rilio — Hochzeit Rilana & Lionel · "Sunflower Dream"
   Mobile-first. No inline styles (CSP); all colours via tokens below. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/fonts/jost-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/jost-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/jost-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Allura"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/allura-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --paper: #FFFFFF;  --cream: #FBF7EE;  --cream-deep: #F4ECDC;
  --ink: #3A342B;    --ink-soft: #6B6255;  --line: #E7DECB;
  --gold: #A8834A;   --gold-light: #D9C08C;  --gold-grad: linear-gradient(135deg,#8E6B35 0%,#C9A45E 45%,#E8D29A 55%,#A8834A 100%);
  --sun: #F4B731;    --sun-deep: #E39A1B;  --sun-pale: #FCE7A6;  --seed: #5B3A1C;
  --leaf: #6E8B5B;   --eucalyptus: #9DB39F;  --wild: #8E8FC6;
  --danger: #A4442F; --ok: #4F7A46;
  --radius: 14px; --shadow: 0 10px 30px rgba(91,58,28,.08);

  /* derived (frontend only) */
  --gold-ink: #7E5F2E;              /* gold for small text: 5.9:1 on white, 5.5:1 on cream */
  /* Foil for text. --gold-grad (SPEC) has stops down to 1.5:1 on white, so text uses darker
     foils: names ≥ 3.3:1 everywhere (large display text), thin script ≥ 4.5:1. */
  --gold-foil: linear-gradient(135deg, #7E5F2E 0%, #8E6B35 36%, #A8834A 50%, #8E6B35 64%, #7E5F2E 100%);
  --gold-foil-deep: linear-gradient(135deg, #6F5226 0%, #7E5F2E 40%, #8E6B35 50%, #7E5F2E 60%, #6F5226 100%);
  --field-line: #9F8E72;            /* form field outline: 3.2:1 on white (WCAG 1.4.11) */
  --choice-line: #C9B691;           /* outline of the big choice cards (their text labels them) */
  --placeholder: #7A7062;           /* 4.9:1 on white */
  --gold-btn: linear-gradient(135deg, #6F5226 0%, #8E6B35 46%, #8A6833 54%, #73562A 100%);
  --stub: #FDFAF3;
  --shadow-lg: 0 34px 60px -30px rgba(91,58,28,.30), 0 2px 10px rgba(91,58,28,.05);
  --focus-ring: 0 0 0 3px rgba(168,131,74,.28);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --script: "Allura", "Snell Roundhand", "Apple Chancery", cursive;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --bar-h: 58px;
  --gutter: clamp(16px, 5vw, 20px);
  --col: 680px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--cream);
  scroll-padding-top: calc(var(--bar-h) + 14px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
ol, ul { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
::selection { background: var(--sun-pale); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 12px; top: 10px; z-index: 100;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: .9rem;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ------------------------------------------------------------- typography */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .78rem;
  line-height: 1.5;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: .32em 0 .28em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 15.5vw, 4.9rem);
  line-height: .98;
  letter-spacing: .01em;
}
.names__name { display: inline-block; padding: 0 .08em .08em; }
.names__und {
  font-family: var(--script);
  font-weight: 400;
  font-size: .44em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--gold-ink);
  margin: -.02em 0 .06em;
}

.foil { color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil {
    background-image: var(--gold-foil);
    background-size: 220% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  @media (prefers-reduced-motion: no-preference) {
    .foil { animation: foil-shine 11s ease-in-out infinite; }
  }
}
@keyframes foil-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tagline {
  max-width: 42em;
  margin: 0 auto;
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-wrap: balance;
}
.tagline > span { white-space: nowrap; }

.script-date {
  margin-top: .5rem;
  font-family: var(--script);
  font-size: clamp(2.1rem, 9.5vw, 2.7rem);
  line-height: 1.2;
  color: var(--ink-soft);
}

.section__head { text-align: center; margin-bottom: clamp(1.8rem, 6vw, 2.6rem); }
.section__title {
  margin-top: .3rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 9.5vw, 3.2rem);
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.section__lead {
  margin-top: .35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
}

.prose { max-width: 34em; margin-inline: auto; }
.prose p + p { margin-top: 1em; }
.prose--center { text-align: center; text-wrap: pretty; }

/* ------------------------------------------------------------------- art */
.art-box { position: relative; }
.art-box > .art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.art-box--bouquet { aspect-ratio: 3 / 2; }
.art-box.has-missing-art {
  aspect-ratio: 3 / 1;
  background: radial-gradient(ellipse 60% 70% at 50% 65%, rgba(252,231,166,.7), rgba(252,231,166,0) 70%);
}
.art--missing { visibility: hidden; }

.sway { transform-origin: 50% 90%; }
@media (prefers-reduced-motion: no-preference) {
  .sway { animation: sway 9s ease-in-out infinite; }
}
@keyframes sway {
  0%, 100% { transform: rotate(-.6deg) translateY(0); }
  50% { transform: rotate(.6deg) translateY(-3px); }
}

.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto clamp(2.2rem, 7vw, 3rem);
  min-height: 1px;
}
.divider .art { width: min(240px, 66%); aspect-ratio: 8 / 1; height: auto; object-fit: contain; }
.divider .art--missing { display: none; }
.divider.has-missing-art::before {
  content: "";
  width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ------------------------------------------------------------------ icons */
.icon {
  --icon: url("/art/icons/rings.svg");
  display: inline-block;
  width: 24px; height: 24px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon--arrival  { --icon: url("/art/icons/arrival.svg"); }
.icon--rings    { --icon: url("/art/icons/rings.svg"); }
.icon--glasses  { --icon: url("/art/icons/glasses.svg"); }
.icon--calendar { --icon: url("/art/icons/calendar.svg"); }
.icon--map      { --icon: url("/art/icons/map.svg"); }
.icon--gift     { --icon: url("/art/icons/gift.svg"); }
.icon--copy     { --icon: url("/art/icons/copy.svg"); }
.icon--plane    { --icon: url("/art/icons/plane.svg"); }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 50px;
  padding: .7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: .8rem;
  line-height: 1.25;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .15s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s, filter .2s, opacity .2s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .6; }
.btn .icon { width: 20px; height: 20px; }

.btn--gold {
  overflow: hidden;
  background: var(--gold-btn);
  color: #fff;
  text-shadow: 0 1px 0 rgba(60,40,10,.18);
  box-shadow: 0 10px 22px -10px rgba(110,82,38,.6), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--gold::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.26) 50%, transparent 65%);
  background-size: 260% 100%;
  background-position: 120% 0;
  transition: background-position .9s var(--ease);
  pointer-events: none;
}
.btn--gold:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 14px 26px -12px rgba(110,82,38,.7), inset 0 1px 0 rgba(255,255,255,.22); }
.btn--gold:hover:not(:disabled)::after { background-position: -40% 0; }

.btn--outline { background: var(--paper); border-color: var(--gold-light); color: var(--gold-ink); }
.btn--outline:hover:not(:disabled) { border-color: var(--gold); background: #FFFCF5; }

.btn--soft { background: var(--cream); border-color: var(--line); color: var(--gold-ink); }
.btn--soft:hover:not(:disabled) { background: var(--cream-deep); border-color: var(--gold-light); }

.btn--ghost { color: var(--gold-ink); }
.btn--ghost:hover:not(:disabled) { background: rgba(217,192,140,.18); }

.btn--block { width: 100%; }

.btn.is-busy::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-busy:disabled { opacity: .85; cursor: progress; }

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .3rem;
  border: 0;
  background: none;
  color: var(--gold-ink);
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  cursor: pointer;
}
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn:disabled { opacity: .6; cursor: progress; }

.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 50px;
  padding: .55rem 1.25rem .55rem 1rem;
  border: 1px solid #A6A6A6;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.wallet-btn:hover { box-shadow: 0 10px 22px -12px rgba(0,0,0,.6); }
.wallet-btn:active { transform: translateY(1px); }
.wallet-btn__glyph { width: 30px; height: 24px; flex: none; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: none;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  background: var(--paper);
  color: var(--gold-ink);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.copy-btn .icon { width: 18px; height: 18px; }
.copy-btn:hover { border-color: var(--gold); }
.copy-btn.is-done { background: #EEF4EC; border-color: #B9CFB3; color: #3E6536; /* 6:1 */ }

.spinner {
  width: 22px; height: 22px;
  flex: none;
  border: 2px solid var(--gold-light);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ boot / nojs */
.boot {
  position: fixed; inset: 0; z-index: 50;
  display: grid;
  place-items: center;
  background: var(--cream);
  animation: fade-in .4s .35s both;
}
.boot__dots { display: flex; gap: 9px; }
.boot__dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: dot 1.2s ease-in-out infinite;
}
.boot__dots span:nth-child(2) { animation-delay: .15s; }
.boot__dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot {
  0%, 80%, 100% { transform: scale(.6); opacity: .45; }
  40% { transform: scale(1); opacity: 1; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.noscript {
  position: fixed; inset: 0; z-index: 60;
  display: grid;
  place-content: center;
  gap: .8rem;
  padding: 2rem var(--gutter);
  background: var(--cream);
  text-align: center;
}

/* ------------------------------------------------------------------ paper */
.paper {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}

/* ------------------------------------------------------------------- gate */
.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(110% 60% at 50% 0%, #FFFDF7 0%, rgba(255,253,247,0) 70%),
    var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
}
.gate__card {
  --card-pad: clamp(20px, 7vw, 44px);
  width: 100%;
  max-width: 460px;
  padding: 0 var(--card-pad) clamp(28px, 8vw, 44px);
  text-align: center;
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
.gate__bouquet { margin: -14px calc(-1 * var(--card-pad)) 0; }
.gate__text { margin-top: -4%; }
.gate.is-leaving .gate__card { opacity: 0; transform: translateY(-14px) scale(.985); }

.gate__form { margin-top: clamp(1.6rem, 6vw, 2.2rem); }
.gate__label {
  display: block;
  margin-bottom: .65rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gate__row { display: flex; flex-wrap: wrap; gap: 10px; }
.gate__input { flex: 1 1 180px; text-align: center; letter-spacing: .06em; }
.gate__btn { flex: 1 1 auto; }
.gate__help { margin-top: .75rem; font-size: .9rem; color: var(--ink-soft); }
.gate__error { justify-content: center; margin-top: .65rem; text-align: left; }

/* ---------------------------------------------------------------- inputs */
.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem; /* ≥ 16px: no iOS zoom on focus */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: var(--gold); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--danger); background: #FFFBFA; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(164,68,47,.18); }
.input--area { min-height: 128px; resize: vertical; }

.field { display: grid; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font-size: .92rem; font-weight: 500; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field__hint { font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }
.field__count { font-size: .8rem; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  color: var(--danger);
  font-size: .9rem;
  line-height: 1.4;
}
.field-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15rem; height: 1.15rem;
  margin-top: .08rem;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
}

.notice { padding: .95rem 1.15rem; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.notice--error { background: #FBEDE8; border: 1px solid #F0CFC4; color: #7E3323; }
.notice--info { background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); text-align: center; }
.notice .btn { margin-top: .8rem; }

/* -------------------------------------------------------------------- bar */
.site { overflow-x: hidden; overflow-x: clip; }
.site.is-entering { animation: fade-in .7s var(--ease); }

.bar {
  position: sticky; top: 0; z-index: 40;
  height: var(--bar-h);
  background: rgba(251,247,238,.88);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(231,222,203,.85);
}
.bar__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 960px;
  height: 100%;
  margin: 0 auto;
  padding-left: max(calc(var(--gutter) - 6px), env(safe-area-inset-left));
  padding-right: env(safe-area-inset-right);
}
.bar__brand {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--gold-ink);
  text-decoration: none;
}
.bar__mono { width: 40px; height: 40px; }
.bar__mono.art--missing { display: none; }
.bar__mono-text {
  display: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}
.has-missing-art > .bar__mono-text { display: inline; }
.bar__nav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 30px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 30px), transparent);
}
.bar__nav::-webkit-scrollbar { display: none; }
.bar__list {
  display: flex;
  width: max-content;
  margin: 0 auto;
  padding: 0 calc(var(--gutter) + 18px) 0 10px;
  list-style: none;
}
.bar__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 .72rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.bar__link::after {
  content: "";
  position: absolute;
  left: .72rem; right: calc(.72rem + .18em);
  bottom: 9px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.bar__link:hover { color: var(--ink); }
.bar__link[aria-current] { color: var(--gold-ink); }
.bar__link[aria-current]::after { transform: scaleX(1); }
.bar__link:focus-visible { outline-offset: -2px; }

#main:focus { outline: none; }

/* --------------------------------------------------------------- sections */
.section {
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2.6rem, 9vw, 4.2rem) var(--gutter);
}
.section--welcome { padding-top: clamp(1.2rem, 5vw, 2.6rem); }

/* Willkommen */
.hero {
  --hero-pad: clamp(18px, 6.5vw, 48px);
  padding: 0 var(--hero-pad) clamp(2rem, 7vw, 3rem);
  text-align: center;
}
.hero__bouquet { margin: -10px calc(-1 * var(--hero-pad)) 0; }
.hero__text { margin-top: -3%; }

.countdown { margin-top: clamp(1.5rem, 5vw, 2.1rem); }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 360px;
  margin: 0 auto;
  padding: .85rem 0 .75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.countdown__unit { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.countdown__unit + .countdown__unit::before {
  content: "";
  position: absolute; left: 0; top: 16%; bottom: 16%;
  width: 1px;
  background: var(--line);
}
.countdown__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.countdown__label {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.countdown__note { font-family: var(--script); font-size: 2.1rem; line-height: 1.2; color: var(--gold-ink); }

.welcome { display: grid; gap: clamp(2rem, 7vw, 2.8rem); }
.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 4.5vw, 26px);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 8px 30px;
}
.photos--1 { grid-template-columns: minmax(0, 300px); justify-content: center; padding-bottom: 8px; }
.arch {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 50% 50% 16px 16px / 33.4% 33.4% 16px 16px;
  background: var(--cream-deep);
}
.arch::before {
  content: "";
  position: absolute; inset: -7px;
  border: 1px solid var(--gold-light);
  border-radius: inherit;
  pointer-events: none;
}
.arch__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photos--2 .arch:nth-child(2) { transform: translateY(30px); }
.arch.is-broken { background: radial-gradient(circle at 50% 42%, var(--sun-pale), var(--cream-deep) 68%); }
.arch.is-broken .arch__img { visibility: hidden; }

.invite-chip {
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  max-width: 100%;
  padding: .9rem 1.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.65);
  text-align: center;
}
.invite-chip__label { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.invite-chip__value { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.25; color: var(--ink); text-wrap: balance; }

/* Ablauf */
.timeline { position: relative; max-width: 520px; margin: 0 auto; list-style: none; }
.timeline::before {
  content: "";
  position: absolute; left: 27px; top: 30px; bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-light), var(--line) 80%, rgba(231,222,203,0));
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: clamp(14px, 4.5vw, 24px);
  padding-bottom: clamp(1.7rem, 5.5vw, 2.3rem);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__icon {
  position: relative; z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: var(--paper);
  color: var(--gold);
  box-shadow: 0 8px 18px -10px rgba(91,58,28,.35);
}
.timeline__icon .icon { width: 26px; height: 26px; }
.timeline__item:nth-child(even) .timeline__icon { color: var(--leaf); }
.timeline__body { padding-top: .3rem; }
.timeline__time {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--gold-ink);
  font-variant-numeric: lining-nums;
}
.timeline__uhr { font-weight: 500; font-size: .68em; letter-spacing: .02em; }
.timeline__word { font-style: italic; font-weight: 400; }
.timeline__title { margin-top: .15rem; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.timeline__text { margin-top: .35rem; color: var(--ink-soft); }

/* Cards */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 6vw, 36px);
  border: 1px solid rgba(231,222,203,.75);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card > :not(.card__sprig) { position: relative; z-index: 1; }
.card__sprig { position: absolute; z-index: 0; width: clamp(82px, 24vw, 118px); height: auto; pointer-events: none; }
.card__sprig--left { top: -4px; left: -4px; }
.card__sprig--right { top: -4px; right: -4px; }
.card__sprig.art--missing { display: none; }

/* Ort */
.venue { max-width: 560px; margin: 0 auto; padding-top: clamp(66px, 19vw, 92px); text-align: center; }
.venue__label { font-size: .7rem; }
.venue__address {
  display: flex;
  flex-direction: column;
  margin-top: .45rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: normal;
  line-height: 1.35;
}
.venue__name { font-weight: 600; }
.venue__note { max-width: 30em; margin: 1rem auto 0; font-size: .98rem; color: var(--ink-soft); }
.venue__actions { display: grid; gap: 10px; margin-top: 1.6rem; }
.venue__actions .btn { padding-inline: 1rem; letter-spacing: .14em; }
@media (min-width: 480px) {
  .venue__actions { grid-template-columns: 1fr 1fr; }
  .venue__cal { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------- RSVP */
.section__intro { max-width: 34em; margin: 0 auto clamp(1.8rem, 6vw, 2.4rem); text-align: center; text-wrap: pretty; }
.section__intro p + p { margin-top: .9em; }
/* After the RSVP the "please let us know" intro is redundant: the ticket takes its place. */
.section--rsvp:has(.rsvp[data-state="done"]) .section__intro { display: none; }
.section__intro .deadline { font-weight: 500; color: var(--ink); white-space: nowrap; }
/* Once answered, the "Feiert mit uns" eyebrow would just repeat the ticket's own heading. */
.section--rsvp:has(.rsvp[data-state="done"]) .section__head .eyebrow { display: none; }

.rsvp-form { position: relative; display: grid; gap: clamp(1.8rem, 6vw, 2.3rem); }
.rsvp-form__legend {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.rsvp-form__group { display: grid; gap: 14px; }
.rsvp-form__sub { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; text-align: center; }
.rsvp-form__submit { display: grid; gap: .5rem; justify-items: center; }
.rsvp-form.is-sending .choices,
.rsvp-form.is-sending .rsvp-form__group { opacity: .65; pointer-events: none; transition: opacity .2s; }
.rsvp-edit { display: grid; gap: 1.4rem; }

.choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.choices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 359px) { .choices__grid { grid-template-columns: 1fr; } }
.choices > .field-error { justify-content: center; margin-top: .7rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.choice__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  height: 100%;
  padding: 1.35rem .75rem 1.15rem;
  border: 1px solid var(--choice-line);
  border-radius: 18px;
  background: var(--paper);
  text-align: center;
  transition: border-color .2s, box-shadow .25s, background-color .2s, transform .2s var(--ease);
}
.choice:hover .choice__box { border-color: var(--gold); }
.choice__input:focus-visible + .choice__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice__input:checked + .choice__box {
  border-color: var(--gold);
  background: #FFFCF4;
  box-shadow: inset 0 0 0 1px var(--gold), 0 14px 28px -16px rgba(126,95,46,.5);
}
.choices.is-invalid .choice__box { border-color: var(--danger); }
.choice__mark {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  border: 1px solid var(--field-line);
  border-radius: 50%;
  background: var(--paper);
  transition: background-color .2s, border-color .2s;
}
.choice__mark::after {
  content: "";
  position: absolute; left: 7.5px; top: 4px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease);
}
.choice__input:checked + .choice__box .choice__mark { border-color: transparent; background: var(--gold-btn); }
.choice__input:checked + .choice__box .choice__mark::after { transform: rotate(45deg) scale(1); }
.choice__icon { width: 44px; height: 44px; margin-bottom: .15rem; color: var(--wild); }
.choice__icon.art--missing { display: none; }
svg.choice__icon { width: 34px; height: 34px; margin: 5px 0 .3rem; }
@media (prefers-reduced-motion: no-preference) {
  .choice__input:checked + .choice__box .choice__icon { animation: pop .5s var(--ease); }
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-8deg); }
  100% { transform: scale(1); }
}
.choice__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; color: var(--ink); }
.choice__sub { font-size: .85rem; line-height: 1.35; color: var(--ink-soft); }

.guests { display: grid; gap: 14px; }
.guest {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 1.1rem clamp(14px, 4.5vw, 22px) 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.guest.is-new { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.guest__legend {
  float: left;
  width: 100%;
  margin: 0 0 .85rem;
  padding: 0 6.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}
.guest__remove {
  position: absolute; top: 6px; right: 6px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  padding: 0 .8rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font-size: .82rem;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.guest__remove:hover { color: var(--danger); background: rgba(164,68,47,.07); }
.guest__names { clear: both; display: grid; gap: 12px; }
@media (min-width: 540px) { .guest__names { grid-template-columns: 1fr 1fr; } }
.guest__extra { display: grid; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }

.segmented-field > legend { float: left; width: 100%; margin-bottom: .45rem; }
.segmented-field > .segmented, .segmented-field > .field-error { clear: both; }
.segmented-field > .field-error { padding-top: .4rem; }
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--cream);
  transition: border-color .2s;
}
.segmented-field.is-invalid .segmented { border-color: var(--danger); }
.segmented__opt { position: relative; display: block; cursor: pointer; }
.segmented__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: 0 .75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented__opt:hover .segmented__label { color: var(--ink); }
.segmented__input:checked + .segmented__label {
  background: var(--paper);
  color: var(--gold-ink);
  box-shadow: 0 0 0 1px var(--gold-light), 0 6px 14px -6px rgba(91,58,28,.28);
}
.segmented__input:checked + .segmented__label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.segmented__input:focus-visible + .segmented__label { outline: 2px solid var(--gold); outline-offset: 2px; }
/* A ring around one unchecked option reads like "selected": ring the whole control instead. */
@supports selector(:has(*)) {
  .segmented__input:focus-visible + .segmented__label { outline: none; }
  .segmented:has(.segmented__input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
}

.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 56px;
  border: 1.5px dashed var(--gold-light);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  color: var(--gold-ink);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.btn-add:hover:not(:disabled) { border-color: var(--gold); background: var(--paper); }
.btn-add:disabled { opacity: .5; cursor: not-allowed; }
.btn-add__plus {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
}
.guests__max { text-align: center; }

.hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.rsvp-done { display: grid; gap: clamp(1.6rem, 5vw, 2.2rem); }
.rsvp-done__head { text-align: center; }
.rsvp-done__title { font-family: var(--serif); font-size: clamp(2rem, 7.5vw, 2.5rem); font-weight: 500; line-height: 1.1; }
.rsvp-done__title:focus { outline: none; }
.rsvp-done__lead { max-width: 30em; margin: .55rem auto 0; color: var(--ink-soft); text-wrap: pretty; }
.rsvp-done__item { display: grid; gap: 1rem; justify-items: center; }
.rsvp-done__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.2rem; }
.rsvp-done__more { text-align: center; }
.rsvp-done__sub { margin-top: .4rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; text-align: center; }
.rsvp-done__note { max-width: 30em; font-size: .9rem; color: var(--danger); text-align: center; text-wrap: pretty; }
.rsvp-done__more .link-btn { color: var(--ink-soft); font-size: .9rem; }

.loading-card { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 2.2rem 1rem; color: var(--ink-soft); }

/* ------------------------------------------------------- boarding pass */
.ticket-block { display: grid; gap: 1.2rem; justify-items: center; width: 100%; }
.pass {
  --notch: 15px;
  --pass-pad: clamp(18px, 5.6vw, 28px);
  container-type: inline-size;
  container-name: pass;
  position: relative;
  width: 100%;
  max-width: 420px;
  color: var(--ink);
  text-align: left;
  filter: drop-shadow(0 18px 26px rgba(91,58,28,.13)) drop-shadow(0 2px 3px rgba(91,58,28,.07));
}
.pass__main {
  position: relative;
  overflow: hidden;
  padding: var(--pass-pad) var(--pass-pad) 1.25rem;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 0 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)) bottom left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)) bottom right / 51% 100% no-repeat;
}
.pass__stub {
  position: relative;
  padding: 1.35rem var(--pass-pad) 1.15rem;
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 0 0, transparent var(--notch), var(--stub) calc(var(--notch) + .5px)) top left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 0, transparent var(--notch), var(--stub) calc(var(--notch) + .5px)) top right / 51% 100% no-repeat;
}
.pass__stub::before {
  content: "";
  position: absolute; top: 0;
  left: calc(var(--notch) + 10px); right: calc(var(--notch) + 10px);
  border-top: 1.5px dashed #D6C8AC;
}
.pass__flower {
  position: absolute; top: -36px; right: -40px;
  width: 140px; height: 140px;
  width: clamp(112px, 37cqi, 152px); height: clamp(112px, 37cqi, 152px);
  transform: rotate(-10deg);
  pointer-events: none;
}
.pass__flower.art--missing { display: none; }
.pass__head { position: relative; padding-right: 78px; padding-right: clamp(60px, 21cqi, 92px); }
.pass__airline { font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); }
.pass__title { margin-top: .05rem; font-family: var(--script); font-size: 2.3rem; font-size: clamp(1.95rem, 10.5cqi, 2.7rem); line-height: 1.15; white-space: nowrap; }
.pass__title .foil { display: inline-block; padding: 0 .15em .12em 0; color: var(--gold-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* thin script: every stop ≥ 4.5:1 */
  .pass__title .foil { background-image: var(--gold-foil-deep); color: transparent; }
}

.pass__route {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
  margin-top: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.pass__port { display: flex; flex-direction: column; }
.pass__port--to { align-items: flex-end; text-align: right; }
.pass__code {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.6rem;
  font-size: clamp(2.3rem, 13.5cqi, 3.2rem);
  line-height: 1;
  letter-spacing: .02em;
}
.pass__city { margin-top: .35rem; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.pass__path { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 36px; margin-top: 1.05rem; color: var(--gold); }
.pass__dash { flex: 1; border-top: 1.5px dotted var(--gold-light); }
.pass__plane { width: 22px; height: 22px; }

.pass dt { font-size: .62rem; font-weight: 500; line-height: 1.45; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.pass dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.2; color: var(--ink); overflow-wrap: break-word; }
.pass__pax { margin-top: 1rem; }
.pass__pax dd { font-weight: 500; font-size: 1.42rem; line-height: 1.28; }
.pass__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem .8rem; margin-top: 1.1rem; }
.pass__grid dd { margin-top: .1rem; font-family: var(--sans); font-weight: 500; font-size: 1.02rem; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
@container pass (min-width: 400px) {
  .pass__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pass__grid dd { font-size: .98rem; }
}
.pass__gate { margin-top: .95rem; }
.pass__addr { display: block; margin-top: .15rem; font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.pass__barcode { width: 100%; height: 58px; fill: var(--ink); }
.pass__stub-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .7rem; font-size: .76rem; line-height: 1.4; color: var(--ink-soft); }
.pass__ticketno { white-space: nowrap; font-weight: 500; letter-spacing: .2em; color: var(--ink); }
.pass__detail { text-align: right; text-wrap: balance; }
.pass__note { margin-top: .45rem; font-family: var(--script); font-size: 1.65rem; line-height: 1.2; text-align: center; color: var(--gold-ink); }

.ticket-actions { display: grid; gap: .5rem; justify-items: center; width: 100%; }
.ticket-actions__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ticket-actions__status { min-height: 1.4em; font-size: .9rem; text-align: center; color: var(--ok); }
.ticket-actions__status:empty { min-height: 0; }
.ticket-actions__status.is-error { color: var(--danger); }

.declined {
  display: grid;
  justify-items: center;
  gap: .7rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem clamp(20px, 6vw, 34px) 2.2rem;
  border: 1px solid rgba(231,222,203,.75);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}
.declined__art { width: 72px; height: 72px; }
.declined__art.art--missing { display: none; }
.declined__title { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.15; text-wrap: balance; }
.declined p:not(.eyebrow) { color: var(--ink-soft); text-wrap: pretty; }
.declined .declined__names { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }

/* -------------------------------------------------------------- Geschenke */
.section--gift .prose { margin-bottom: clamp(1.8rem, 6vw, 2.4rem); }
.pay { max-width: 520px; margin: 0 auto; padding: clamp(20px, 5.5vw, 28px); }
.pay__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}
.pay__title .icon { color: var(--gold); }
.pay__row { display: grid; gap: .25rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.pay__row:first-child { padding-top: 0; border-top: 0; }
.pay__row:last-child { padding-bottom: 0; }
.pay__label { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.pay__value { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin: 0; }
.pay__text { min-width: 0; font-size: 1.06rem; color: var(--ink); }
.pay__text--mono { font-weight: 500; letter-spacing: .05em; font-variant-numeric: tabular-nums lining-nums; }

.gallery-wrap { margin-top: clamp(2.8rem, 10vw, 3.8rem); }
.gallery-title { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.3rem; text-align: center; font-weight: 400; }
.gallery-title__script { font-family: var(--script); font-size: clamp(2.5rem, 11vw, 3.1rem); line-height: 1.05; color: var(--gold-ink); }
.gallery-title__rest { margin-top: .25rem; font-size: .76rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2.6vw, 14px);
  list-style: none;
}
.gallery__item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--cream-deep); }
.gallery--odd .gallery__item:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery--odd .gallery__item:first-child { grid-column: auto; aspect-ratio: 1; }
  .gallery--feature .gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
.gallery__btn {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: zoom-in;
}
.gallery__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.gallery__item.is-loaded .gallery__img { opacity: 1; }
@media (hover: hover) {
  .gallery__btn:hover .gallery__img { transform: scale(1.045); }
}
.gallery__fallback {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  background: linear-gradient(160deg, var(--cream), var(--cream-deep));
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
}
.gallery__fallback-art { width: 44px; height: 44px; opacity: .8; }
.gallery__fallback-art.art--missing { display: none; }
.gallery__item.is-broken .gallery__img { display: none; }
.gallery__item.is-broken .gallery__fallback { display: flex; }
.gallery__item.is-broken .gallery__btn { cursor: default; }

/* --------------------------------------------------------------- lightbox */
.lightbox {
  overscroll-behavior: contain;
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(26,22,16,.97);
  color: #fff;
}
.lightbox::backdrop { background: rgba(26,22,16,.6); }
.lightbox.is-open { animation: fade-in .25s ease-out; }
.lightbox__stage {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 12px max(84px, calc(env(safe-area-inset-bottom) + 76px));
  /* Pinch-zoom stays possible (WCAG 1.4.4); swipes are read from touch events, see lightbox.js. */
  touch-action: manipulation;
  overscroll-behavior: contain;
}
@media (min-width: 700px) { .lightbox__stage { padding: 64px 84px 40px; } }
.lightbox__figure { position: relative; display: flex; flex-direction: column; align-items: center; gap: .85rem; max-width: 100%; max-height: 100%; }
.lightbox__img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  object-fit: contain;
  transition: opacity .3s;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 700px) {
  .lightbox__img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
}
.lightbox__figure.is-loading .lightbox__img { opacity: 0; }
.lightbox__figure.is-broken .lightbox__img { opacity: .15; }
.lightbox__spinner {
  position: absolute; top: 45%; left: 50%;
  display: none;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.lightbox__figure.is-loading .lightbox__spinner { display: block; }
.lightbox__caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .3rem .9rem; text-align: center; }
.lightbox__caption-text { font-family: var(--serif); font-size: 1.3rem; color: #F4ECDC; }
.lightbox__count { font-size: .72rem; letter-spacing: .2em; color: rgba(244,236,220,.72); }
.lightbox__btn {
  position: absolute; z-index: 2;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(0,0,0,.6); }
.lightbox__btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.lightbox__prev { left: max(14px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: max(14px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox__figure.is-slide-left { animation: slide-from-right .35s var(--ease); }
  .lightbox__figure.is-slide-right { animation: slide-from-left .35s var(--ease); }
}
@keyframes slide-from-right { from { opacity: .3; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-from-left { from { opacity: .3; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* iOS "save image" sheet */
.sheet {
  width: min(92vw, 440px);
  max-height: 92vh;
  max-height: 92dvh;
  padding: 1.3rem;
  border: 0;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  overflow: auto;
}
.sheet[open] { display: grid; gap: 1rem; justify-items: center; }
.sheet::backdrop { background: rgba(58,52,43,.55); }
.sheet__hint { text-align: center; color: var(--ink-soft); font-size: .95rem; }
.sheet__img { width: 100%; border-radius: 12px; -webkit-touch-callout: default; }

/* ---------------------------------------------------------------- confetti */
.confetti { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; }
.confetti__petal { position: absolute; top: 0; object-fit: contain; will-change: transform; }
.confetti__petal--css {
  border-radius: 50% 50% 50% 50% / 72% 72% 28% 28%;
  background: linear-gradient(165deg, var(--sun-pale), var(--sun) 50%, var(--sun-deep));
  opacity: .95;
}

/* ------------------------------------------------------------------ footer */
.footer {
  padding: clamp(2.2rem, 8vw, 3.4rem) var(--gutter) max(2.8rem, calc(env(safe-area-inset-bottom) + 1.6rem));
  background: linear-gradient(to bottom, rgba(244,236,220,0), rgba(244,236,220,.8));
  text-align: center;
}
.footer .divider { margin-bottom: 1.8rem; }
.footer__lead { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink-soft); }
.footer__names { margin-top: .2rem; font-family: var(--script); font-size: clamp(2.6rem, 11vw, 3.3rem); line-height: 1.1; color: var(--gold-ink); }
.footer__small { margin-top: 1.1rem; }
.footer .link-btn { font-size: .85rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- ticket page */
.ticket-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(110% 60% at 50% 0%, #FFFDF7 0%, rgba(255,253,247,0) 70%), var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
}
.ticket-page:focus { outline: none; }
.ticket-page__head { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding-top: .4rem; text-align: center; }
.ticket-page__brand { display: grid; place-items: center; min-width: 64px; height: 64px; color: var(--gold-ink); text-decoration: none; }
.ticket-page__brand .bar__mono { width: 56px; height: 56px; }
.ticket-page__head .eyebrow { font-size: .68rem; }
.ticket-page__body { display: grid; gap: 1.6rem; width: 100%; max-width: 460px; }
.ticket-page__intro { text-align: center; }
.ticket-page__title { margin-top: .3rem; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 2.8rem); font-weight: 500; line-height: 1.1; }
.ticket-page__lead { max-width: 26em; margin: .5rem auto 0; color: var(--ink-soft); text-wrap: pretty; }
.ticket-page__back { margin-top: auto; padding-top: .5rem; }

/* ------------------------------------------------------------ scroll reveal */
.motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.motion .reveal.is-visible { opacity: 1; transform: none; }
.motion .timeline__item.reveal:nth-child(2) { transition-delay: .08s; }
.motion .timeline__item.reveal:nth-child(3) { transition-delay: .16s; }
.motion .timeline__item.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------- print */
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; }
  .bar, .footer, .skip-link, .boot, .confetti, .lightbox, .sheet,
  .ticket-actions, .rsvp-done__actions, .rsvp-done__more, .ticket-page__back { display: none !important; }
  .motion .reveal { opacity: 1 !important; transform: none !important; }
  .sway, .foil { animation: none !important; }
  .paper, .card { box-shadow: none; border: 1px solid var(--line); }

  /* Only the boarding pass(es) when there is one on the page. */
  html:has(.pass) :where(body, body *):not(:has(.pass)):not(.pass):not(.pass *) { display: none !important; }
  html:has(.pass) :where(body *):has(.pass) {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  html:has(.pass) .rsvp-done, html:has(.pass) .ticket-page__body { display: block !important; }
  .pass {
    margin: 0 auto 10mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
    filter: drop-shadow(0 0 .6px #A89878) drop-shadow(0 0 .4px #A89878);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
