:root {
  --dark: #173127;
  --ink: #24332b;
  --muted: #476654;
  --line: rgba(71, 102, 84, 0.24);
  --paper: #f6f7f2;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.78);
  --sage: #7b957f;
  --sage-soft: #dfe8dc;
  --moss: #284638;
  --leaf: #8ea68b;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.16);
  --serif: "Lora", serif;
  --display: "Italiana", serif;
  --sans: "Raleway", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
}

body.is-locked {
  overflow: hidden;
}

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

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-bg,
.bg-slide {
  position: fixed;
  inset: 0;
}

.site-bg {
  z-index: -2;
  background: #3a4c42;
}

.bg-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: bgFade 4.5s ease-in-out infinite;
  will-change: opacity;
}

.bg-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 18, 0.52);
}

.bg-slide-1 {
  background-image: var(--bg-image-1, url("assets/images/3.webp"));
}

.bg-slide-2 {
  background-image: var(--bg-image-2, url("assets/images/11.webp"));
  animation-delay: 1.5s;
}

.bg-slide-3 {
  background-image: var(--bg-image-3, url("assets/images/19.webp"));
  animation-delay: 3s;
}

@keyframes bgFade {
  0%, 100% { opacity: 0; }
  18%, 42% { opacity: 1; }
  60% { opacity: 0; }
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 25px;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 24, 16, 0.66), rgba(8, 24, 16, 0.58)),
    url("assets/images/3.webp") center / cover no-repeat;
  color: #fff;
  transition: opacity 900ms ease, transform 900ms ease, visibility 900ms;
}

.opening.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8%);
  pointer-events: none;
}

.opening-inner {
  width: min(430px, 100%);
  text-align: center;
}

.opening-photo {
  width: 120px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin: 0 auto 22px;
  border-radius: 80px 80px 28px 28px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(13px, 3.2vw, 18px);
  letter-spacing: 0;
}

.eyebrow.light {
  color: #fff;
}

.opening h1,
.hero h2,
.section-heading h2,
.countdown-card h2,
.venue-copy h2,
.phone-showcase h2,
.gift-card h2,
.closing h2,
.prayer-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}

.opening h1 {
  margin-top: 10px;
  font-size: clamp(46px, 14vw, 74px);
  line-height: 0.95;
}

.guest-box {
  margin: 24px auto 18px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.3;
}

.guest-box strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 22px;
  line-height: 1.16;
}

.guest-box strong span {
  display: block;
}

button,
a {
  transition: opacity 180ms ease, transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  transform: none;
}

.btn-light {
  background: #fff;
  color: var(--dark);
}

.btn-frost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(8px);
}

.btn-muted {
  background: var(--muted);
  color: #fff;
  border-color: var(--muted);
}

.btn-ghost {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.btn-solid {
  background: var(--moss);
  color: #fff;
  border-color: var(--moss);
  box-shadow: 0 12px 18px -12px rgba(0, 0, 0, 0.45);
}

.btn-light:hover,
.btn-frost:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-light:active,
.btn-frost:active,
.btn-ghost:active {
  background: rgba(255, 255, 255, 0.12);
}

.btn-muted:hover,
.btn-solid:hover,
.gift-toggle:hover {
  background: rgba(71, 102, 84, 0.18);
}

.btn-muted:active,
.btn-solid:active,
.gift-toggle:active {
  background: rgba(71, 102, 84, 0.12);
}

.section-dark {
  color: #fff;
  background: rgba(15, 36, 27, 0.56);
}

.hero {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 60px 25px 120px;
  text-align: center;
}

.hero-content h2 {
  margin-top: 12px;
  font-size: clamp(56px, 15vw, 92px);
  line-height: 0.9;
}

.date-mark {
  margin: 18px 0 0;
  font-size: clamp(16px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: 0;
}

.swipe-hint {
  position: absolute;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-weight: 700;
}

.swipe-hint svg {
  width: 28px;
  height: 28px;
  animation: swipe 1.4s infinite;
}

@keyframes swipe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.paper-section {
  position: relative;
  padding: 100px 25px;
  background-image:
    linear-gradient(rgba(218, 230, 218, 0.82), rgba(246, 248, 243, 0.9)),
    url("assets/images/880-kul-11.jpg");
  background-repeat: repeat, repeat;
  background-size: auto, 880px auto;
  background-position: top left, top left;
  overflow: hidden;
}

.paper-card,
.gift-card {
  width: min(720px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.prayer-card {
  padding: clamp(44px, 8vw, 76px) clamp(26px, 8vw, 58px);
  text-align: center;
}

.prayer-card h2,
.section-heading h2 {
  color: var(--muted);
  font-size: clamp(42px, 11vw, 72px);
}

.quote {
  margin: 26px 0 22px;
  font-size: clamp(15px, 3.5vw, 17px);
  font-style: italic;
  line-height: 1.7;
  text-align: justify;
}

.ornament,
.divider-ornament,
.top-ornament {
  margin: 32px auto 0;
  width: 96px;
  height: 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.ornament::before,
.divider-ornament::before,
.top-ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--muted);
  border-width: 0 1px 1px 0;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.45;
}

.prayer-card .ornament {
  width: 190px;
  height: 78px;
  border-bottom: 0;
  background: url("assets/images/flower.png") center / 72px auto no-repeat;
  opacity: 0.62;
}

.prayer-card .ornament::before,
.prayer-card .ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: auto;
  width: 48px;
  height: 1px;
  border: 0;
  background: var(--line);
  opacity: 1;
  transform: translateY(-50%);
}

.prayer-card .ornament::before {
  left: 0;
}

.prayer-card .ornament::after {
  right: 0;
}

.section-heading {
  width: min(780px, 100%);
  margin: 100px auto 36px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 16px auto 0;
  max-width: 720px;
  line-height: 1.7;
  text-align: center;
}

.couple-grid {
  --couple-gap: clamp(52px, 9vw, 86px);
  --amp-left: 50%;
  --amp-top: 50%;
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--couple-gap);
  position: relative;
}

.couple-card {
  text-align: center;
}

.couple-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 5px solid var(--sage-soft);
  border-radius: 500px 500px 200px 200px;
}

.couple-card span {
  display: block;
  margin-top: -76px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(30px, 6.2vw, 44px);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.couple-card h3 {
  margin: 42px 0 4px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: clamp(17px, 4vw, 22px);
  line-height: 1.35;
}

.couple-card p {
  display: grid;
  align-content: start;
  margin: 0 0 4px;
  color: rgba(36, 51, 43, 0.72);
  line-height: 1.55;
}

.ampersand {
  grid-column: 1 / -1;
  grid-row: 1;
  position: absolute;
  top: var(--amp-top);
  left: var(--amp-left);
  z-index: 2;
  padding-top: 0;
  transform: translate(-50%, -50%);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  color: var(--muted);
}

.mini-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(12%) saturate(972%) hue-rotate(95deg) brightness(91%) contrast(89%);
}

.event-section {
  padding: 180px 25px 90px;
  background: transparent;
}

.countdown-card,
.venue-card,
.schedule-card {
  width: min(720px, 100%);
  margin: 0 auto;
}

.countdown-card {
  min-height: 620px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 90px 36px;
  text-align: center;
  border: 1px solid rgba(217, 217, 217, 0.5);
  border-radius: 500px 500px 90px 90px;
  box-shadow: var(--shadow);
  background: rgba(239, 244, 239, 0.12);
  backdrop-filter: blur(2px);
}

.countdown-card h2,
.venue-copy h2 {
  margin-top: 12px;
  font-size: clamp(38px, 8vw, 58px);
}

.event-date {
  margin: 14px 0 24px;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
}

.schedule-date-card {
  width: min(320px, 100%);
  margin: 18px auto 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
}

.schedule-date-card span {
  min-height: 24px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.schedule-date-card span:first-child {
  border-right: 2px solid var(--muted);
}

.schedule-date-card span:nth-child(3) {
  border-left: 2px solid var(--muted);
}

.schedule-date-card strong {
  font-family: var(--serif);
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1;
  font-weight: 400;
}

.schedule-date-card em,
.schedule-date-card small {
  grid-column: 1 / -1;
  font-style: normal;
}

.schedule-date-card em {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}

.schedule-date-card small {
  margin-top: 8px;
  font-size: 13px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(430px, 100%);
  gap: 10px;
  margin: 0 auto 24px;
}

.countdown div {
  display: grid;
}

.countdown strong {
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1;
}

.countdown span {
  font-family: var(--sans);
  font-size: 13px;
}

.venue-card {
  position: relative;
  margin-top: 90px;
  overflow: hidden;
  border-radius: 24px;
}

.venue-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(0.58);
}

.venue-copy {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 42px;
  text-align: center;
}

.schedule-card {
  margin-top: -28px;
  padding: 80px 30px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.schedule-card article {
  max-width: 520px;
  margin: 0 auto;
}

.schedule-card article + article {
  margin-top: 72px;
}

.schedule-art {
  display: block;
  margin: 0 auto 18px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(12%) saturate(972%) hue-rotate(95deg) brightness(91%) contrast(89%);
}

.schedule-art-ring {
  width: min(118px, 30vw);
}

.schedule-art-gate {
  width: min(140px, 36vw);
}

.schedule-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 11vw, 68px);
  font-weight: 400;
}

.schedule-map-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 26px auto 10px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(12%) saturate(972%) hue-rotate(95deg) brightness(91%) contrast(89%);
}

.schedule-card svg {
  width: 34px;
  height: 34px;
  margin: 26px auto 10px;
}

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

.media-section {
  padding-bottom: 0;
}

.video-frame {
  width: min(880px, 100%);
  margin: 0 auto 90px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 10px;
  background: #d9d9d9;
}

.phone-showcase {
  margin: 0 -25px;
  padding: 70px 25px 100px;
  color: #fff;
  text-align: center;
  background: rgba(71, 102, 84, 0.98);
}

.phone-frame {
  width: min(280px, 76vw);
  aspect-ratio: 1622 / 3328;
  margin: 0 auto 44px;
  position: relative;
}

.phone-shell {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
  object-fit: contain;
  pointer-events: none;
}

.phone-screen-layer {
  position: absolute;
  inset: 1.9% 4.9%;
  width: calc(100% - 9.8%);
  height: calc(100% - 3.8%);
  border-radius: 30px;
  overflow: hidden;
  z-index: 1;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) brightness(1.08);
}

.phone-frame-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}

.phone-frame-overlay::before,
.phone-frame-overlay::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1px;
  background: rgba(255, 255, 255, 0.58);
}

.phone-frame-overlay::before {
  top: 9px;
}

.phone-frame-overlay::after {
  bottom: 9px;
}

.phone-flower {
  position: absolute;
  width: 72%;
  max-width: none;
  display: block;
  opacity: 0.22;
}

.phone-flower-top {
  top: 0;
  left: -24%;
  transform: rotate(180deg);
}

.phone-flower-bottom {
  right: -18%;
  bottom: -5%;
}

.phone-monogram {
  position: absolute;
  top: 34px;
  right: 17px;
  width: 48px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  font-family: var(--display);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.phone-monogram span {
  font-size: 26px;
}

.phone-monogram small {
  margin: 1px 0;
  font-family: var(--sans);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.phone-frame-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  display: grid;
  justify-items: start;
  padding: 0 14px;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.phone-frame-copy small {
  font-size: 10px;
}

.phone-frame-copy strong {
  margin-top: -2px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.phone-frame-copy span {
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.8px;
}

.phone-showcase h2 {
  color: #d6d6d6;
  font-size: clamp(40px, 12vw, 62px);
}

.phone-showcase p {
  max-width: 660px;
  margin: 16px auto 24px;
  line-height: 1.7;
}

.story-section {
  padding: 100px 25px;
  background: rgba(71, 102, 84, 0.98);
}

.light-heading h2,
.light-heading p {
  color: #fff;
}

.timeline {
  width: min(720px, 100%);
  margin: 46px auto;
  display: grid;
  gap: 20px;
}

.timeline-card {
  padding: 28px;
  color: var(--muted);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.timeline-card.dim {
  opacity: 0.55;
}

.timeline-card span {
  font-weight: 700;
  letter-spacing: 0;
}

.timeline-card h3 {
  margin: 6px 0 14px;
  color: var(--ink);
  font-size: 22px;
}

.story-quote,
.gallery-quote {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(17px, 4vw, 24px);
  font-style: italic;
  line-height: 1.7;
  text-align: center;
}

.gallery-section {
  padding: 100px 0;
  background: rgba(71, 102, 84, 0.98);
  overflow: hidden;
}

.gallery-section .section-heading {
  padding: 0 25px;
  margin-top: 0;
}

.gallery-grid {
  width: min(760px, calc(100% - 50px));
  margin: 0 auto 70px;
  display: grid;
  gap: 18px;
}

.gallery-row {
  display: grid;
  gap: 18px;
  align-items: start;
}

.gallery-row.layout-three-portrait {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-row.layout-two-portrait,
.gallery-row.layout-two-landscape {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-row.layout-portrait-landscape {
  grid-template-columns: minmax(0, 4fr) minmax(0, 9fr);
}

.gallery-row.layout-landscape-portrait {
  grid-template-columns: minmax(0, 9fr) minmax(0, 4fr);
}

.gallery-row.layout-full-landscape {
  grid-template-columns: 1fr;
}

.gallery-item {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(18, 35, 26, 0.18);
  cursor: zoom-in;
}

.gallery-item.is-portrait {
  aspect-ratio: 2 / 3;
}

.gallery-item.is-landscape {
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.9);
  transition: transform 300ms ease, filter 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.wishes-section {
  padding-bottom: 120px;
}

.wish-layout {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.wish-form {
  display: grid;
  gap: 18px;
}

.wish-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.wish-form input,
.wish-form select,
.wish-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  outline: none;
  font-weight: 400;
}

.wish-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

.wish-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  text-align: center;
}

.wish-stats span {
  display: grid;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 12px;
}

.wish-stats strong {
  font-family: var(--serif);
  font-size: 24px;
}

.wish-list {
  max-height: 50vh;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.wish-list li {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(110, 110, 110, 0.18);
}

.wish-list .name {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.wish-list .message {
  margin: 6px 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

.wish-list .time {
  color: #9a9a9a;
  font-family: var(--sans);
  font-size: 12px;
}

.gift-section {
  padding: 100px 25px;
  background: var(--muted);
}

.gift-card {
  padding: clamp(38px, 8vw, 70px) clamp(24px, 7vw, 52px);
  text-align: center;
}

.gift-card > svg {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  color: rgba(71, 102, 84, 0.78);
}

.gift-card h2 {
  color: var(--muted);
  font-size: clamp(40px, 10vw, 62px);
}

.gift-card p {
  line-height: 1.7;
}

.gift-actions {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px auto 0;
}

.gift-toggle {
  min-width: 0;
  color: #fff;
  background: var(--muted);
  border-color: var(--muted);
  box-shadow: 0 12px 22px rgba(24, 41, 32, 0.18);
}

.gift-toggle.is-active {
  background: var(--moss);
  border-color: var(--moss);
}

.gift-toggle.is-active:hover {
  background: rgba(40, 70, 56, 0.18);
}

.gift-toggle.is-active:active {
  background: rgba(40, 70, 56, 0.12);
}

.gift-panel {
  margin-top: 28px;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0 0 22px;
}

.bank-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(223, 232, 220, 0.48), rgba(255, 255, 255, 0.96));
}

.bank-grid span,
.bank-grid strong,
.bank-grid p {
  display: block;
}

.bank-grid strong {
  margin: 8px 0;
  font-size: 20px;
}

.registry-grid {
  display: grid;
  gap: 16px;
  text-align: left;
}

.registry-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(223, 232, 220, 0.48), rgba(255, 255, 255, 0.96));
}

.registry-item svg {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  color: var(--muted);
}

.registry-item h3 {
  margin: 0 0 4px;
  color: var(--moss);
  font-family: var(--sans);
  font-size: 15px;
}

.registry-item p {
  margin: 0;
  color: rgba(36, 51, 43, 0.72);
  font-family: var(--sans);
  font-size: 13px;
}

.registry-link {
  white-space: nowrap;
}

.closing {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 80px 25px 120px;
  text-align: center;
  background:
    linear-gradient(rgba(8, 24, 16, 0.62), rgba(8, 24, 16, 0.62)),
    url("assets/images/3.webp") center / cover no-repeat;
}

.closing-copy {
  display: grid;
  gap: 8px;
}

.closing h2 {
  font-size: clamp(48px, 13vw, 80px);
}

.closing span,
.closing strong {
  font-family: var(--sans);
  font-size: 12px;
}

.float-actions {
  position: fixed;
  left: 12px;
  bottom: 105px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.float-actions button,
.bottom-nav a,
.lightbox button {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.float-actions button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.float-actions button:hover,
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.float-actions button:active,
.lightbox button:active {
  background: rgba(255, 255, 255, 0.12);
}

.float-actions button.is-muted {
  opacity: 0.45;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 55;
  width: min(420px, 90vw);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 18px 18px max(12px, env(safe-area-inset-bottom));
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  min-height: 34px;
  color: var(--ink);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox {
  width: min(900px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  max-height: 86vh;
  margin: auto;
  border-radius: 14px;
  object-fit: contain;
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms ease;
}

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

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .paper-section,
  .story-section,
  .gallery-section,
  .gift-section {
    padding-top: 80px;
  }

  .paper-section {
    background-size: auto, calc(100vw / 3) auto;
    background-position: top left, top left;
  }

  .paper-card,
  .gift-card {
    border-radius: 28px;
  }

  .couple-grid {
    --couple-gap: clamp(42px, 12vw, 58px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--couple-gap);
  }

  .ampersand {
    font-size: 23px;
  }

  .couple-card h3 {
    margin-top: 36px;
    margin-bottom: 3px;
  }

  .couple-card p {
    font-size: 12px;
  }

  .event-section {
    padding-top: 110px;
  }

  .countdown-card {
    min-height: 520px;
    padding: 70px 24px;
    border-radius: 260px 260px 72px 72px;
  }

  .venue-card img {
    height: 360px;
  }

  .schedule-card {
    padding: 60px 24px;
  }

  .wish-layout,
  .bank-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 16px;
  }

  .gallery-row {
    gap: 16px;
  }

  .wish-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wish-stats span {
    font-size: 10px;
    padding: 11px 5px;
  }
}

@media (max-width: 430px) {
  .gallery-grid {
    width: calc(100% - 32px);
    gap: 14px;
  }

  .gallery-row {
    gap: 14px;
  }

  .registry-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .registry-item svg {
    margin: 0;
  }

  .opening h1,
  .hero-content h2,
  .closing h2 {
    font-size: 52px;
  }

  .date-mark {
    letter-spacing: 0;
  }
}
