@import url("https://fonts.googleapis.com/css2?family=Allura&family=Caveat:wght@500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&display=swap");

:root {
  --paper: #f4e8d8;
  --paper-light: #fff9ef;
  --blush: #d99d8b;
  --wine: #982232;
  --wine-dark: #731a25;
  --ink: #39352f;
  --olive: #686d4e;
  --teal: #536e63;
  --ochre: #bd9343;
  --muted: #71685e;
  --line: rgba(115, 26, 37, 0.2);
  --surface: rgba(255, 249, 239, 0.92);
  --shadow: 0 18px 45px rgba(74, 52, 39, 0.11);
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Allura", "Segoe Script", cursive;
  --hand: "Caveat", "Segoe Print", cursive;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(255, 249, 239, 0.62), rgba(255, 249, 239, 0.66)),
    url("../assets/backgrounds/envelope-liner.webp");
  background-position: center top;
  background-repeat: repeat;
  background-size: auto, 900px auto;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(rgba(255, 252, 247, 0.28), rgba(244, 232, 216, 0.12));
}

body.auth-pending {
  visibility: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wine-dark);
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(115, 26, 37, 0.13);
  background: rgba(255, 249, 239, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: var(--content);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--wine-dark);
  font-family: var(--script);
  font-size: clamp(2rem, 5vw, 2.55rem);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.logout-button {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.logout-button:hover {
  color: var(--wine-dark);
  background: rgba(217, 157, 139, 0.24);
}

.site-nav .nav-rsvp {
  padding-inline: 18px;
  color: #fff;
  background: var(--wine);
}

.site-nav .nav-rsvp:hover,
.site-nav .nav-rsvp[aria-current="page"] {
  color: #fff;
  background: var(--wine-dark);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--wine-dark);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.82);
  cursor: pointer;
}

.menu-button svg {
  width: 23px;
  height: 23px;
}

main {
  flex: 1;
}

.container {
  width: var(--content);
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tight {
  padding: clamp(42px, 6vw, 72px) 0;
}

.surface {
  border: 1px solid rgba(115, 26, 37, 0.13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--wine);
  font-family: var(--hand);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 9vw, 6.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
}

p {
  margin-top: 0;
}

.lead {
  max-width: 680px;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.55;
}

.section-heading {
  width: var(--content);
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.decor-divider {
  width: min(420px, 78vw);
  margin: 24px auto 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  padding: 11px 22px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  box-shadow: 0 8px 22px rgba(116, 18, 31, 0.18);
  cursor: pointer;
}

.button:hover {
  border-color: var(--wine-dark);
  background: var(--wine-dark);
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  color: var(--muted);
  border-color: rgba(61, 56, 51, 0.2);
  background: rgba(255, 250, 243, 0.52);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.button-secondary {
  color: var(--wine-dark);
  background: rgba(255, 250, 243, 0.8);
  box-shadow: none;
}

.button-secondary:hover {
  color: #fff;
}

.button-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.8rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(52px, 8vw, 92px) 0 38px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  display: none;
}

.hero-content {
  display: grid;
  width: var(--content);
  margin: 0 auto;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(440px, 1.18fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(4.8rem, 10vw, 8.3rem);
  font-weight: 400;
  line-height: 0.78;
}

.hero-date {
  margin: 28px 0 8px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.hero-kicker {
  margin-bottom: 26px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}

.hero-art {
  position: relative;
}

.hero-art > img:not(.garland) {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 18px 16px rgba(70, 53, 43, 0.1));
}

.garland {
  position: absolute;
  z-index: 1;
  top: -10%;
  left: 5%;
  width: 90%;
  opacity: 0.74;
}

.countdown {
  display: grid;
  max-width: 580px;
  margin: 34px auto 0;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.countdown-item {
  padding: 12px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown strong {
  display: block;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.countdown span {
  font-family: var(--hand);
  font-size: 1rem;
}

.story-grid {
  display: grid;
  align-items: center;
  gap: clamp(34px, 8vw, 90px);
  grid-template-columns: 0.8fr 1.2fr;
}

.photo-stack {
  position: relative;
  min-height: 470px;
}

.photo-card {
  position: absolute;
  width: min(310px, 72%);
  padding: 12px 12px 44px;
  border: 1px solid rgba(75, 55, 43, 0.12);
  background: #fff9ef;
  box-shadow: 0 16px 36px rgba(61, 56, 51, 0.16);
}

.photo-card:first-child {
  top: 0;
  left: 3%;
  transform: rotate(-5deg);
}

.photo-card:last-child {
  right: 2%;
  bottom: 0;
  transform: rotate(6deg);
}

.photo-placeholder {
  display: grid;
  min-height: 330px;
  place-items: center;
  color: rgba(116, 18, 31, 0.78);
  font-family: var(--script);
  font-size: 4.2rem;
  background:
    linear-gradient(145deg, rgba(217, 157, 139, 0.58), rgba(244, 232, 216, 0.22)),
    var(--paper);
}

.photo-caption {
  position: absolute;
  right: 18px;
  bottom: 8px;
  margin: 0;
  color: var(--wine-dark);
  font-family: var(--hand);
  font-size: 1.15rem;
}

.quick-links,
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.quick-card,
.info-card {
  position: relative;
  min-height: 230px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(115, 26, 37, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 249, 239, 0.88);
  box-shadow: var(--shadow);
}

.quick-card::before {
  position: absolute;
  top: -46px;
  right: -46px;
  width: 130px;
  height: 130px;
  content: "";
  opacity: 0.14;
  border-radius: 50%;
  background: var(--card-color, var(--blush));
}

.quick-card:nth-child(2) {
  --card-color: var(--teal);
}

.quick-card:nth-child(3) {
  --card-color: var(--ochre);
}

.quick-card p {
  min-height: 72px;
}

.location-card {
  display: flex;
  padding: 0;
  flex-direction: column;
}

.location-card > img {
  width: auto;
  max-width: calc(100% - 36px);
  height: auto;
  max-height: 220px;
  margin: 14px auto 0;
}

.location-card > div {
  display: flex;
  padding: 12px 30px 30px;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
}

.location-card .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--wine-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.page-hero {
  padding: clamp(68px, 10vw, 120px) 0 30px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
}

.page-art {
  width: min(940px, 96vw);
  height: auto;
  margin: 10px auto 0;
  filter: drop-shadow(0 18px 18px rgba(70, 53, 43, 0.1));
}

.palacio-art {
  width: min(1080px, 96vw);
  margin-top: clamp(10px, 3vw, 24px);
}

.convento-line-art {
  width: min(980px, 92vw);
  margin: clamp(14px, 3vw, 30px) auto 0;
  opacity: 0.7;
  mix-blend-mode: multiply;
}

.scanned-art {
  filter: drop-shadow(0 14px 18px rgba(70, 53, 43, 0.08));
}

.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 105px;
  width: 2px;
  content: "";
  background: repeating-linear-gradient(var(--wine) 0 7px, transparent 7px 14px);
}

.timeline-item {
  display: grid;
  position: relative;
  margin-bottom: 26px;
  align-items: start;
  gap: 38px;
  grid-template-columns: 86px minmax(0, 1fr);
}

.timeline-time {
  padding-top: 18px;
  color: var(--wine);
  font-family: var(--hand);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.timeline-content {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 20px 24px;
  align-items: center;
  gap: 18px;
  grid-template-columns: 72px 1fr;
  border: 1px solid rgba(115, 26, 37, 0.13);
  border-radius: 18px;
  background: rgba(255, 249, 239, 0.92);
  box-shadow: 0 14px 28px rgba(74, 52, 39, 0.07);
}

.timeline-content::before {
  position: absolute;
  top: 25px;
  left: -26px;
  width: 13px;
  height: 13px;
  content: "";
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 1px var(--wine);
}

.timeline-icon {
  width: 68px;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.92;
}

.timeline-content h3 {
  margin-bottom: 8px;
}

.timeline-content p {
  margin-bottom: 0;
}

.place-card {
  display: grid;
  padding: clamp(26px, 5vw, 48px);
  align-items: center;
  gap: 28px;
  grid-template-columns: 1fr auto;
}

.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.travel-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.travel-card {
  padding: 30px;
}

.travel-location-art {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 250px;
  margin: -8px auto 18px;
}

.travel-card .tag,
.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 11px;
  color: var(--wine-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(217, 157, 139, 0.28);
}

.festival-alert {
  position: relative;
  padding: clamp(28px, 5vw, 46px);
  overflow: hidden;
  border-color: rgba(217, 165, 20, 0.5);
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.96), rgba(255, 249, 239, 0.9)),
    rgba(255, 249, 239, 0.9);
}

.festival-alert::after {
  position: absolute;
  top: -24px;
  right: 28px;
  color: rgba(159, 29, 45, 0.12);
  content: "!";
  font-family: var(--serif);
  font-size: 11rem;
  line-height: 1;
  pointer-events: none;
}

.festival-alert > div {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.parking-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.parking-heading-icon {
  width: 76px;
  margin: 0 auto 12px;
  opacity: 0.86;
}

.parking-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
}

.parking-number {
  display: block;
  margin-bottom: 16px;
  color: var(--wine);
  font-family: var(--hand);
  font-size: 2rem;
  font-weight: 700;
}

.parking-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}

.hotel-list {
  display: grid;
  gap: 18px;
}

.hotel-card {
  display: grid;
  padding: 26px;
  align-items: center;
  gap: 20px;
  grid-template-columns: 1fr auto;
}

.hotel-card p {
  margin-bottom: 6px;
}

.form-card {
  padding: clamp(24px, 6vw, 54px);
}

.rsvp-section {
  padding-top: 16px;
}

.rsvp-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.rsvp-tab {
  position: relative;
  min-width: 0;
  min-height: 50px;
  padding: 8px 2px 14px;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rsvp-tab::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--wine);
  transition: right 180ms ease, left 180ms ease;
}

.rsvp-tab:hover::after,
.rsvp-tab.is-active {
  color: var(--wine);
}

.rsvp-tab:hover::after,
.rsvp-tab.is-active::after {
  right: 0;
  left: 0;
}

.rsvp-tab:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

.edit-response-panel h2 {
  margin-bottom: 10px;
  font-size: 2.35rem;
}

.edit-lookup-form {
  display: grid;
  margin-top: 24px;
  align-items: end;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.form-section {
  padding: 0;
  border: 0;
}

.form-section + .form-section {
  margin-top: 50px;
  padding-top: 0;
  border-top: 2px solid rgba(115, 26, 37, 0.24);
}

.form-section + .form-section > legend {
  padding-top: 32px;
}

.form-section legend {
  width: 100%;
  margin-bottom: 8px;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.field-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.form-section > .field-label,
.form-section > [data-dietary-section] > .field-label {
  margin-bottom: 12px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid rgba(61, 56, 51, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.field input[readonly] {
  color: var(--muted);
  background: rgba(234, 228, 218, 0.72);
  cursor: not-allowed;
}

.field-hint {
  min-height: 1.4em;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.field-hint.is-valid {
  color: #2f6b44;
  font-weight: 700;
}

.field-hint.is-unavailable {
  color: var(--muted);
  font-style: italic;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(21, 122, 110, 0.18);
}

.radio-group,
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: inline-flex;
  min-height: 46px;
  padding: 9px 15px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(61, 56, 51, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.choice:has(input:checked) {
  color: var(--wine-dark);
  border-color: var(--wine);
  background: rgba(217, 157, 139, 0.24);
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.form-note {
  margin: 26px 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  border-left: 4px solid var(--ochre);
  background: rgba(217, 165, 20, 0.08);
}

.attendance-details {
  margin-top: 34px;
}

.attendance-selectors {
  margin-bottom: 0;
}

.attendees-intro {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 2px solid rgba(115, 26, 37, 0.24);
}

.attendees-intro h3 {
  margin: 0;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
}

.attendee-block {
  margin-top: 28px;
  padding: 24px 0 34px;
  border-top: 2px solid var(--wine);
}

.attendee-block h3 {
  margin: 0;
  font-size: 1.65rem;
}

.attendee-heading {
  display: flex;
  min-height: 44px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.child-fields {
  align-items: start;
}

.children-actions {
  display: flex;
  margin-top: 22px;
  justify-content: flex-start;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  place-items: center;
  color: var(--wine-dark);
  font-size: 1.7rem;
  line-height: 1;
  border: 1px solid rgba(115, 26, 37, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.icon-button:hover {
  color: #fff;
  background: var(--wine);
}

.dietary-list {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.dietary-row {
  display: grid;
  padding: 16px 0;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  border-bottom: 1px solid var(--line);
}

.dietary-row:last-child {
  border-bottom: 1px solid var(--line);
}

.dietary-row label {
  padding-top: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.dietary-row textarea {
  min-height: 66px;
  padding-block: 10px;
}

.song-field {
  margin-top: 18px;
}

[data-dietary-section]:not([hidden]) + .song-field {
  margin-top: 32px;
}

.general-notes-field {
  margin-top: 28px;
}

.general-notes-field textarea {
  min-height: 108px;
}

.form-consent {
  margin-top: 46px;
  padding-top: 32px;
  border-top: 2px solid rgba(115, 26, 37, 0.24);
}

.privacy-choice {
  margin-top: 0;
  border-radius: 8px;
}

.form-submit-row {
  margin-top: 26px;
}

.rsvp-confirmation {
  padding: clamp(30px, 7vw, 58px);
  text-align: center;
}

.rsvp-confirmation h2 {
  margin-bottom: 10px;
}

.confirmation-mark {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  border-radius: 50%;
  background: #3f684a;
  box-shadow: 0 12px 28px rgba(40, 75, 56, 0.2);
}

.confirmation-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.confirmation-summary {
  max-width: 620px;
  margin: 30px auto;
  text-align: left;
}

.confirmation-summary dl {
  display: grid;
  margin: 0;
  gap: 0;
}

.confirmation-summary dl > div {
  display: grid;
  padding: 10px 0;
  gap: 16px;
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.confirmation-summary dt {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.confirmation-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.confirmation-summary h3 {
  margin: 28px 0 6px;
  font-size: 1.7rem;
}

.confirmation-attendee {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-attendee strong {
  color: var(--wine-dark);
}

.confirmation-attendee p {
  margin: 4px 0 0;
  color: var(--muted);
}

.confirmation-email-status {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.status-message {
  display: none;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
}

.status-message.is-visible {
  display: block;
}

.status-message.success {
  color: #284b38;
  border: 1px solid rgba(40, 75, 56, 0.24);
  background: #edf5ec;
}

.status-message.error {
  color: var(--wine-dark);
  border: 1px solid rgba(159, 29, 45, 0.25);
  background: #fff0f1;
}

.details-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

.detail-card {
  padding: 32px;
}

.detail-card-wide {
  grid-column: 1 / -1;
}

.iban-box {
  display: grid;
  margin-top: 22px;
  padding: 18px;
  align-items: center;
  gap: 14px;
  border: 1px dashed var(--wine);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.44);
  grid-template-columns: 1fr auto;
}

.iban-number {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(0.86rem, 2vw, 1rem);
  letter-spacing: 0.04em;
  word-break: break-all;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 58px;
  padding: 16px 36px 16px 0;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-list details p {
  padding: 0 24px 18px 0;
}

.access-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  overflow: hidden;
}

.access-card {
  position: relative;
  width: min(540px, 100%);
  padding: clamp(32px, 7vw, 62px);
  text-align: center;
}

.access-card h1 {
  margin-bottom: 8px;
  font-family: var(--script);
  font-size: clamp(4.2rem, 13vw, 7rem);
  font-weight: 400;
}

.access-card .floral-corner {
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -105px;
  width: 340px;
  opacity: 0.78;
  transform: rotate(-7deg);
}

.access-card .pomegranate-corner {
  position: absolute;
  z-index: -1;
  top: -85px;
  left: -100px;
  width: 230px;
  opacity: 0.7;
  transform: rotate(12deg);
}

.access-form {
  display: grid;
  max-width: 360px;
  margin: 28px auto 0;
  gap: 14px;
}

.access-form label {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.access-form input {
  min-height: 52px;
  padding: 12px 16px;
  text-align: center;
  border: 1px solid rgba(61, 56, 51, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.access-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  position: relative;
  padding: 70px 0 30px;
  overflow: hidden;
  text-align: center;
}

.site-footer::before {
  display: block;
  width: min(480px, 80vw);
  height: 90px;
  margin: 0 auto 4px;
  content: "";
  background: url("../assets/watercolor/web/botanical-divider.webp") center / contain no-repeat;
}

.footer-names {
  margin: 0;
  color: var(--wine-dark);
  font-family: var(--script);
  font-size: 2.8rem;
}

.footer-small {
  color: var(--muted);
  font-size: 0.8rem;
}

.style-guide-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.guide-block {
  padding: 28px;
}

.swatches {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.swatch {
  min-height: 110px;
  padding: 10px;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 12px;
}

.swatch.light {
  color: var(--ink);
  border: 1px solid var(--line);
}

.asset-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.asset-card {
  padding: 18px;
  text-align: center;
}

.asset-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.asset-card code {
  font-size: 0.75rem;
}

.prototype-note {
  padding: 12px 16px;
  color: var(--wine-dark);
  font-size: 0.82rem;
  text-align: center;
  border-bottom: 1px solid rgba(115, 26, 37, 0.13);
  background: rgba(189, 147, 67, 0.13);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: 20px;
  background: var(--paper-light);
  box-shadow: 0 30px 90px rgba(61, 56, 51, 0.3);
}

dialog::backdrop {
  background: rgba(38, 31, 27, 0.58);
  backdrop-filter: blur(3px);
}

.dialog-content {
  padding: 30px;
}

.dialog-actions {
  display: flex;
  margin-top: 24px;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-actions-stacked {
  align-items: stretch;
  flex-direction: column;
}

.dialog-actions-stacked .button {
  width: 100%;
}

.text-button {
  min-height: 44px;
  padding: 8px 12px;
  color: var(--wine-dark);
  font-weight: 700;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.dialog-step {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px 16px 20px;
    align-items: stretch;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 249, 239, 0.98);
    box-shadow: 0 18px 30px rgba(61, 56, 51, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .logout-button {
    justify-content: flex-start;
    padding-inline: 18px;
  }

  .site-nav .nav-rsvp {
    justify-content: center;
    margin-top: 6px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
  }

  .hero-art > img:not(.garland) {
    width: min(760px, 100%);
    height: auto;
    margin-inline: auto;
  }

  .story-grid,
  .place-card {
    grid-template-columns: 1fr;
  }

  .quick-links,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .parking-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --content: min(100% - 24px, 1120px);
  }

  body {
    background-size: auto, 620px auto;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-title {
    font-size: clamp(4.6rem, 24vw, 6.3rem);
  }

  .section-heading h2 {
    max-width: 330px;
    margin-inline: auto;
  }

  .countdown {
    gap: 4px;
  }

  .countdown-item {
    padding-inline: 2px;
  }

  .story-grid,
  .quick-links,
  .card-grid,
  .travel-grid,
  .parking-grid,
  .field-grid,
  .details-layout,
  .style-guide-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .photo-stack {
    min-height: 390px;
  }

  .photo-placeholder {
    min-height: 260px;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-item {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .timeline-time {
    padding-left: 38px;
    text-align: left;
  }

  .timeline-content {
    margin-left: 38px;
    min-height: 116px;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    padding: 18px;
  }

  .timeline-content::before {
    left: -31px;
  }

  .timeline-icon {
    width: 64px;
  }

  .hotel-card,
  .iban-box {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .hotel-card .button {
    justify-self: start;
  }

  .detail-card-wide,
  .field-full {
    grid-column: auto;
  }

  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-actions-stacked {
    flex-direction: column;
  }

  .edit-lookup-form {
    grid-template-columns: 1fr;
  }

  .rsvp-tabs {
    width: 100%;
    gap: 22px;
  }

  .rsvp-tab {
    font-size: 1.16rem;
  }

  .dietary-row {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .dietary-row label {
    padding-top: 0;
  }

  .confirmation-summary dl > div {
    gap: 2px;
    grid-template-columns: 1fr;
  }

  .confirmation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }
}

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

@media print {
  .site-header,
  .prototype-note,
  .site-footer,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .surface {
    box-shadow: none;
  }
}
