@font-face {
  font-family: "The Seasons";
  src: url("./assets/the-seasons-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("./assets/the-seasons-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Seasons";
  src: url("./assets/the-seasons-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Glacial";
  src: url("./assets/glacial-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5eee1;
  --paper-light: #fbf7ed;
  --paper-deep: #eee3d2;
  --ink: #4a2719;
  --muted: #735f52;
  --green: #4b7c26;
  --green-soft: #9bb37b;
  --line: rgba(74, 39, 25, 0.16);
  --shadow: 0 24px 80px rgba(74, 39, 25, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.75), transparent 22%),
    radial-gradient(circle at 80% 38%, rgba(255, 255, 255, 0.42), transparent 25%),
    linear-gradient(180deg, #faf4e9 0%, var(--paper) 56%, #f1e7d8 100%);
  font-family: "Glacial", "Trebuchet MS", sans-serif;
  line-height: 1.45;
  -webkit-tap-highlight-color: rgba(75, 124, 38, 0.18);
  touch-action: manipulation;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(rgba(74, 39, 25, 0.07) 0.65px, transparent 0.8px),
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 32%, rgba(74, 39, 25, 0.04));
  background-size: 11px 11px, auto;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 60;
  transform: translateY(-150%);
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-light);
}

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

.language-switch {
  position: absolute;
  top: 16px;
  right: max(18px, calc((100vw - 960px) / 2 + 18px));
  z-index: 20;
  padding: 7px 9px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-family: "Glacial", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.invite {
  width: min(100%, 960px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(251, 247, 237, 0.18);
}

.cover {
  min-height: 420px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 26px 32px 0;
  text-align: center;
}

.monogram {
  width: 52px;
  height: auto;
  display: block;
  margin-bottom: 28px;
  object-fit: contain;
}

h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "The Seasons", Georgia, serif; font-weight: 400; }
h1, h2 { text-wrap: balance; }

h1 {
  display: grid;
  justify-items: center;
  gap: 0;
  margin: 0 0 30px;
  font-size: 78px;
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 700;
}

h1 em {
  color: var(--green-soft);
  font-family: "The Seasons", Georgia, serif;
  font-size: 63px;
  font-style: normal;
  line-height: 0.92;
}

.intro {
  max-width: 465px;
  margin: 0;
  font-size: 18px;
  line-height: 1.32;
}

.flower-break {
  position: relative;
  line-height: 0;
}

.flower-break img {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
}

.flower-break .flower-copy { display: none; }

.countdown-section {
  position: relative;
  background: var(--green);
  color: var(--paper-light);
}

.countdown {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 16px 24px 14px;
  text-align: center;
  border-top: 1px solid rgba(251, 247, 237, 0.36);
  border-bottom: 1px solid rgba(251, 247, 237, 0.36);
}

.countdown strong,
.countdown i {
  font-family: "Glacial", monospace;
  font-size: 48px;
  font-weight: 400;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.countdown i {
  transform: translateY(-7px);
  font-style: normal;
}

.countdown span {
  display: block;
  margin-top: 10px;
  font-family: "Glacial", monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-details {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 24px 34px 28px;
}

.date-block, .place-block {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  font-family: "The Seasons", Georgia, serif;
  line-height: 0.95;
  text-align: center;
}

.date-block, .place-block { justify-self: stretch; }
.date-block { grid-column: 1; }
.place-block { grid-column: 3; }

.event-photo {
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: 0 18px;
  border-inline: 1px solid var(--line);
}

.event-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
}

.detail-value { font-size: 56px; line-height: 0.92; font-variant-numeric: lining-nums tabular-nums; }
.date-year-inline { display: none; }
.date-block strong, .place-block strong { font-size: 32px; font-weight: 400; line-height: 1; }
.place-block strong { font-size: 28px; }
.date-block small, .place-block small { margin-top: 3px; color: var(--muted); font-family: "Glacial", sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.place-block strong { max-width: 240px; white-space: nowrap; }

.dress-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 34px 28px 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.dress-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  color: var(--green);
}

.dress-icon svg { width: 100%; height: 100%; }
.dress-code .kicker { margin-bottom: 5px; }
.dress-code h2 { margin: 0 0 4px; font-size: 42px; line-height: 1; }
.dress-code p:last-child { margin: 0; color: var(--muted); font-size: 14px; }

html.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.actions {
  display: grid;
  justify-items: center;
  padding: 22px 30px 34px;
  text-align: center;
}

.hint {
  display: none;
  color: var(--muted);
  font-size: 14px;
}

.action-grid {
  width: min(100%, 600px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0;
}

.action-link {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  padding: 0 18px;
}

.action-link + .action-link { border-left: 1px solid var(--line); }

.action-link strong {
  max-width: 110px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.08;
}

.action-deadline {
  margin-top: -4px;
  color: var(--green);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
}

.icon svg { width: 47px; height: 47px; }
.icon svg.brand-icon { width: 41px; height: 41px; }
.action-link:hover .icon, .action-link:focus-visible .icon { transform: translateY(-3px); }
.action-link:focus-visible, .button:focus-visible, .cart-button:focus-visible, .close-cart:focus-visible, .dialog-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

.note {
  max-width: 210px;
  display: none;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.panel {
  padding: 40px 34px 88px;
  border-top: 1px solid var(--line);
}

.gifts-panel {
  padding-inline: max(34px, calc((100% - 1180px) / 2));
}

.gifts-panel .kicker,
.gifts-panel h2,
.gifts-panel .panel-lede {
  text-align: center;
}

.kicker {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel h2, .rsvp-card h2, .cart-header h2 {
  margin: 0 0 20px;
  font-size: 54px;
  line-height: 0.96;
}

.panel-lede {
  max-width: 460px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 16px;
}

.gift-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.gift-toolbar select {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  outline: none;
}

.gift-grid {
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gift-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 237, 0.46);
}

.gift-card.is-sold { background: rgba(238, 227, 210, 0.42); }
.gift-card.is-sold .gift-visual { filter: grayscale(0.75); opacity: 0.58; }
.gift-card.is-sold h3, .gift-card.is-sold > strong { color: var(--muted); }
.gift-card.is-selected { border-color: rgba(75, 124, 38, 0.72); }

.gift-visual {
  height: 124px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 39, 25, 0.08);
  color: var(--green);
}

.gift-visual iconify-icon,
.gift-icon-fallback,
.gift-icon-fallback svg {
  width: 50px;
  height: 50px;
}

.gift-visual iconify-icon,
.gift-icon-fallback {
  display: grid;
  place-items: center;
}

.gift-visual iconify-icon { font-size: 50px; }

.gift-visual iconify-icon[icon^="ph:"],
.gift-visual iconify-icon[icon^="solar:"] { width: 48px; height: 48px; font-size: 48px; opacity: 0.9; }
.gift-visual iconify-icon[icon^="hugeicons:"],
.gift-visual iconify-icon[icon^="streamline-ultimate:"] { width: 46px; height: 46px; font-size: 46px; opacity: 0.9; }
.gift-visual iconify-icon[icon^="griddy-icons:"],
.gift-visual iconify-icon[icon^="lucide:"],
.gift-visual iconify-icon[icon^="iconoir:"] { width: 45px; height: 45px; font-size: 45px; opacity: 0.88; }
.gift-visual iconify-icon[icon^="pinhead:"] { width: 42px; height: 42px; font-size: 42px; opacity: 0.82; }
.gift-visual.tone-one { background: #dce6cc; }
.gift-visual.tone-two { background: #ead8d1; }
.gift-visual.tone-three { background: #dce2ed; }
.gift-visual.tone-four { background: #f0dfad; }

.gift-card h3 {
  min-height: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.18;
}

.gift-card strong {
  display: block;
  font-family: "The Seasons", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 17px;
  background: transparent;
  cursor: pointer;
}

.button.primary { border-color: var(--green); background: var(--green); color: var(--paper-light); }
.button.ghost { color: var(--ink); }
.gift-card .button { width: 100%; border-color: var(--green); color: var(--green); }
.gift-card .button:hover, .button.primary:hover { filter: brightness(1.08); }
.gift-card .button:disabled { border-color: var(--line); background: rgba(74, 39, 25, 0.05); color: var(--muted); cursor: default; filter: none; }

.cart-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--green);
  color: var(--paper-light);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-button.has-items { opacity: 1; pointer-events: auto; transform: translateY(0); }

.cart-button svg { width: 24px; height: 24px; }
.cart-button strong { position: absolute; top: -6px; right: -5px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-light); color: var(--green); font-size: 12px; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 430px);
  z-index: 32;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper-light);
  border-left: 1px solid var(--line);
  box-shadow: -22px 0 60px rgba(74, 39, 25, 0.18);
  transform: translateX(105%);
  transition: transform 230ms ease;
}

.cart-panel.is-open { transform: translateX(0); }

.cart-header { display: flex; justify-content: space-between; gap: 18px; padding: 28px 24px; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin-bottom: 0; font-size: 46px; }

.close-cart, .dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.close-cart::before, .close-cart::after, .dialog-close::before, .dialog-close::after { content: ""; position: absolute; left: 12px; right: 12px; top: 20px; height: 1px; background: var(--ink); }
.close-cart::before, .dialog-close::before { transform: rotate(45deg); }
.close-cart::after, .dialog-close::after { transform: rotate(-45deg); }

.cart-items { overflow: auto; padding: 12px 24px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 0; border-bottom: 1px solid rgba(74, 39, 25, 0.1); }
.cart-line p { margin-bottom: 4px; }
.cart-line small, .cart-summary p, .cart-empty { color: var(--muted); }
.cart-line button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.cart-summary { display: grid; gap: 12px; padding: 24px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-summary > div strong { font-family: "The Seasons", Georgia, serif; font-size: 30px; font-weight: 400; }
.cart-summary p { margin: 0; font-size: 14px; }
.copy-status { min-height: 20px; color: var(--green) !important; }

.rsvp-dialog { width: min(100% - 28px, 470px); padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--ink); }
.rsvp-dialog, .cart-panel { overscroll-behavior: contain; }
.rsvp-dialog::backdrop { background: rgba(40, 19, 8, 0.48); backdrop-filter: blur(3px); }
.rsvp-card { position: relative; display: grid; gap: 16px; padding: 34px 28px 30px; background: var(--paper-light); box-shadow: var(--shadow); }
.rsvp-card .dialog-close { position: absolute; right: 18px; top: 18px; }
.rsvp-card h2 { padding-right: 42px; font-size: 45px; }
.rsvp-step { display: grid; gap: 16px; }
.rsvp-step[hidden] { display: none; }
.rsvp-step > p:not(.rsvp-deadline) { max-width: 360px; margin-bottom: 0; color: var(--muted); }
.rsvp-card .rsvp-deadline { margin: -2px 0 4px; color: var(--green); }
.rsvp-confirmation .button.ghost { justify-self: start; min-height: 36px; padding-block: 7px; }
.rsvp-card label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
.rsvp-card input:not([type="checkbox"]), .rsvp-card textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); padding: 10px 0; outline: none; resize: vertical; }
.rsvp-card input:not([type="checkbox"]):focus, .rsvp-card textarea:focus { border-color: var(--ink); }
.optional { color: var(--muted); font-size: 12px; }

.gift-dialog .rsvp-card { max-height: min(88vh, 760px); overflow-y: auto; }
.gift-confirm-form, .gift-success { display: grid; gap: 16px; }
.gift-confirm-form[hidden], .gift-success[hidden] { display: none; }
.gift-confirm-form > p:not(.kicker), .gift-success > p:not(.kicker) { max-width: 380px; margin: 0; color: var(--muted); }
.gift-confirm-form h2, .gift-success h2 { margin: 0; padding-right: 42px; font-size: 45px; line-height: 0.96; }
.pix-qr { width: min(100%, 250px); display: block; justify-self: center; padding: 12px; border: 1px solid var(--line); background: #fff; }
.pix-qr img { width: 100%; height: auto; display: block; }
.gift-confirm-items { display: grid; gap: 8px; padding: 13px 0; border-block: 1px solid var(--line); }
.gift-confirm-item { display: grid; gap: 10px; font-size: 14px; }
.gift-confirm-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.gift-confirm-item span { color: var(--muted); }
.gift-confirm-item strong { flex: 0 0 auto; font-family: "The Seasons", Georgia, serif; font-size: 20px; font-weight: 400; }
.gift-confirm-item.is-flexible { padding: 8px 0; }
.confirm-choice { grid-template-columns: 20px 1fr !important; align-items: start; gap: 10px !important; cursor: pointer; line-height: 1.35; }
.confirm-choice input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }
.form-status { min-height: 20px; margin: -4px 0 0; color: #9a2929; font-size: 13px; }

.map-dialog { width: min(100% - 28px, 620px); padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--ink); }
.map-dialog::backdrop { background: rgba(40, 19, 8, 0.48); backdrop-filter: blur(3px); }
.map-card { position: relative; display: grid; gap: 16px; padding: 34px 28px 30px; background: var(--paper-light); box-shadow: var(--shadow); }
.map-card .dialog-close { position: absolute; right: 18px; top: 18px; }
.map-card h2 { padding-right: 42px; font-size: 45px; }
.map-address { margin: -5px 0 0; color: var(--muted); line-height: 1.4; }
.map-frame { position: relative; min-height: 280px; overflow: hidden; background: #e8eadf; }
.map-card iframe { width: 100%; min-height: 280px; display: block; border: 0; opacity: 0; filter: saturate(0.7) sepia(0.12); transition: opacity 240ms ease; }
.map-loader { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--green); font-size: 13px; transition: opacity 180ms ease, visibility 180ms ease; }
.map-loader-spinner { width: 34px; height: 34px; border: 2px solid rgba(75, 124, 38, 0.2); border-top-color: var(--green); border-radius: 50%; animation: map-spin 800ms linear infinite; }
.map-frame.is-ready iframe { opacity: 1; }
.map-frame.is-ready .map-loader { visibility: hidden; opacity: 0; }

@keyframes map-spin { to { transform: rotate(360deg); } }

.manual-dialog { width: min(100% - 28px, 560px); padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--ink); }
.manual-dialog::backdrop { background: rgba(40, 19, 8, 0.48); backdrop-filter: blur(3px); }
.manual-card { position: relative; max-height: min(88vh, 720px); overflow-y: auto; padding: 38px 30px 32px; background: var(--paper-light); box-shadow: var(--shadow); }
.manual-card .dialog-close { position: absolute; right: 18px; top: 18px; }
.manual-card h2 { margin: 0 0 24px; padding-right: 42px; font-size: 48px; line-height: 0.96; }
.manual-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.manual-list li { display: grid; grid-template-columns: 42px 1fr; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.manual-list span { color: var(--green); font-size: 11px; letter-spacing: 0.08em; }
.manual-list strong { font-size: 16px; font-weight: 400; line-height: 1.3; }

.backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(40, 19, 8, 0.26); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 560px) {
  .cover { min-height: 255px; padding: 18px 18px 0; }
  .monogram { width: 36px; margin-bottom: 12px; }
  h1 { margin-bottom: 13px; font-size: 46px; line-height: 0.82; }
  h1 em { font-size: 39px; }
  .intro { max-width: 260px; font-size: 14px; }
  .language-switch { top: 10px; right: 12px; }
  .countdown { min-height: 98px; gap: 3px; padding: 12px 10px 10px; }
  .countdown strong, .countdown i { font-size: 27px; }
  .countdown span { margin-top: 7px; font-size: 11px; letter-spacing: 0.04em; }
  .event-details { min-height: 410px; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 12px 0; padding: 22px 18px 26px; }
  .event-photo { grid-column: 1 / -1; grid-row: 1; width: 80%; max-width: 300px; justify-self: center; padding: 0; border: 0; }
  .date-block { grid-column: 1; grid-row: 2; }
  .place-block { grid-column: 2; grid-row: 2; border-left: 1px solid var(--line); }
  .date-block, .place-block { gap: 4px; }
  .detail-value { font-size: 42px; }
  .date-block strong, .place-block strong { font-size: 26px; }
  .place-block strong { font-size: 22px; }
  .date-block small, .place-block small { font-size: 9px; }
  .place-block strong { max-width: none; }
  .dress-code { gap: 14px; padding: 28px 22px 30px; }
  .dress-icon { width: 40px; height: 40px; }
  .dress-code h2 { font-size: 32px; }
  .dress-code p:last-child { max-width: 220px; font-size: 12px; }
  .actions { padding: 18px 20px 28px; }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .action-link { min-height: 78px; padding: 0 14px; }
  .action-link + .action-link { border-left: 0; }
  .action-link:nth-child(even) { border-left: 1px solid var(--line); }
  .action-link strong { font-size: 13px; }
  .icon, .icon svg { width: 40px; height: 40px; }
  .icon svg.brand-icon { width: 35px; height: 35px; }
  .panel { padding: 30px 14px 70px; }
  .gifts-panel { padding-inline: 14px; }
  .panel .kicker, .panel h2, .panel-lede { text-align: center; }
  .panel h2 { font-size: 40px; }
  .panel-lede { font-size: 13px; }
  .gift-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .gift-card { padding: 8px 8px 10px; gap: 7px; }
  .gift-visual { height: 92px; }
  .gift-visual iconify-icon,
  .gift-icon-fallback,
  .gift-icon-fallback svg { width: 40px; height: 40px; }
  .gift-visual iconify-icon { font-size: 40px; }
  .gift-visual iconify-icon[icon^="ph:"],
  .gift-visual iconify-icon[icon^="solar:"] { width: 39px; height: 39px; font-size: 39px; }
  .gift-visual iconify-icon[icon^="hugeicons:"],
  .gift-visual iconify-icon[icon^="streamline-ultimate:"] { width: 37px; height: 37px; font-size: 37px; }
  .gift-visual iconify-icon[icon^="griddy-icons:"],
  .gift-visual iconify-icon[icon^="lucide:"],
  .gift-visual iconify-icon[icon^="iconoir:"] { width: 36px; height: 36px; font-size: 36px; }
  .gift-visual iconify-icon[icon^="pinhead:"] { width: 34px; height: 34px; font-size: 34px; }
  .gift-card h3 { min-height: 0; font-size: 13px; }
  .gift-card strong { font-size: 21px; }
  .gift-card .button { padding-inline: 8px; font-size: 13px; }
  .rsvp-card { padding-inline: 22px; }
  .map-card { padding-inline: 22px; }
  .map-frame, .map-card iframe { min-height: 230px; }
  .manual-card { padding: 34px 22px 26px; }
  .manual-card h2 { font-size: 40px; }
  .manual-list li { grid-template-columns: 34px 1fr; gap: 10px; padding: 13px 0; }
  .manual-list strong { font-size: 14px; }
}

@media (min-width: 760px) {
  body {
    overflow-x: clip;
    background: var(--paper-light);
  }

  .invite {
    overflow: visible;
    border-inline: 0;
    background: transparent;
    box-shadow: none;
  }

  .cover {
    min-height: 404px;
    padding-top: 42px;
  }

  .monogram { margin-bottom: 24px; }
  h1 { margin-bottom: 26px; }

  .flower-break,
  .countdown-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .flower-break {
    height: auto;
    display: flex;
    margin-top: -38px;
    overflow: hidden;
  }

  .flower-break img {
    width: 50%;
    height: auto;
    flex: 0 0 50%;
    object-fit: contain;
  }

  .flower-break .flower-copy { display: block; }

  .countdown {
    width: min(100%, 960px);
    margin-inline: auto;
  }

  .event-details {
    min-height: 430px;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0 72px;
    padding: 40px 72px 44px;
  }

  .event-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    max-width: 370px;
    align-self: center;
    justify-self: center;
    padding: 0;
    border: 0;
  }

  .date-block,
  .place-block {
    grid-column: 2;
    justify-items: start;
    gap: 9px;
    text-align: left;
  }

  .date-block { grid-row: 1; align-content: end; padding-bottom: 28px; }
  .place-block { grid-row: 2; align-content: start; padding-top: 28px; border-top: 1px solid var(--line); }
  .date-year-inline { display: inline; }
  .date-year-stacked { display: none; }
  .date-block small,
  .place-block small { margin-top: 0; }
  .actions { padding: 30px 40px 40px; }
  .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  html.motion-ready .reveal { opacity: 1; transform: none; }
  .map-loader-spinner { animation: none; }
}
