:root {
  --pearl: #f3efe8;
  --pearl-deep: #e9e0d4;
  --paper: #fcfaf5;
  --paper-translucent: rgba(252, 250, 245, .82);
  --wine: #681b29;
  --wine-deep: #46101a;
  --wine-soft: #8f4451;
  --gold: #b58d4b;
  --gold-light: #dcc58e;
  --ink: #39232a;
  --muted: #76656a;
  --line: #d9cbbd;
  --line-strong: #c8ad81;
  --soft: #eee6dc;
  --max-width: 1120px;
  color: var(--ink);
  background: var(--pearl);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--pearl);
  background-image: radial-gradient(circle at 17% 3%, rgba(255,255,255,.9) 0 1px, transparent 1.6px), radial-gradient(circle at 83% 12%, rgba(112,69,47,.045) 0 .8px, transparent 1.4px);
  background-size: 15px 15px, 17px 17px;
  color: var(--ink);
  line-height: 1.58;
}
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3, .brand, .hero-meta, .date-line strong, .closing strong, .contact-card h3 {
  font-family: Iowan Old Style, Baskerville, "Baskerville Old Face", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--wine-deep);
  color: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(181, 141, 75, .36);
  background: rgba(243, 239, 232, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(100%, var(--max-width));
  min-height: 72px;
  margin: auto;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: var(--wine);
  font-size: 18px;
  letter-spacing: .18em;
  text-decoration: none;
  white-space: nowrap;
}
.brand i, .closing-monogram i { color: var(--gold); font-style: normal; }
.desktop-nav { display: none; align-items: center; gap: 18px; }
.desktop-nav a {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible, .back-link:hover, .back-link:focus-visible { color: var(--wine); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.language-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(181, 141, 75, .62);
  border-radius: 999px;
  background: rgba(255,255,255,.28);
}
.language-switch button {
  min-width: 36px;
  min-height: 32px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
}
.language-switch button[aria-pressed="true"] { background: var(--wine); color: var(--paper); }
.menu-toggle {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(181, 141, 75, .68);
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ''; display: block; width: 18px; height: 1px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle span { margin: 4px 0; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 25;
  display: none;
  padding: 21px 20px 34px;
  overflow-y: auto;
  background: var(--pearl);
  background-image: linear-gradient(145deg, rgba(181,141,75,.07), transparent 48%);
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: grid; width: min(100%, var(--max-width)); margin: auto; }
.mobile-menu a {
  padding: 16px 4px;
  border-bottom: 1px solid rgba(181, 141, 75, .45);
  color: var(--wine);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: 23px;
  text-decoration: none;
}
.back-link { color: var(--wine); font-size: 12px; text-decoration: none; white-space: nowrap; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(89svh - 72px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 55px 20px 38px;
  border-bottom: 1px solid rgba(181, 141, 75, .45);
  background-color: var(--pearl);
  background-image: radial-gradient(circle at 50% 24%, rgba(255,255,255,.78), transparent 29rem), linear-gradient(165deg, rgba(255,255,255,.14), transparent 54%);
  text-align: center;
}
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border: 1px solid rgba(181, 141, 75, .14); border-radius: 50%; }
.hero::before { width: 42rem; height: 42rem; top: -30rem; left: 50%; transform: translateX(-50%); }
.hero::after { width: 33rem; height: 33rem; bottom: -28rem; right: -20rem; }
.hero-inner { width: min(100%, 930px); }
.hero-comet { display: block; width: clamp(105px, 24vw, 176px); height: auto; margin: 0 auto 16px; }
.site-label {
  margin: 0 0 18px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--wine);
  font-size: clamp(49px, 13vw, 102px);
  letter-spacing: -.048em;
  line-height: .94;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 25px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 4.8vw, 26px);
  letter-spacing: .015em;
}
.hero-meta span + span::before { content: '·'; margin-right: 14px; color: var(--gold); }
.hero-skyline { width: min(100%, 760px); margin: clamp(32px, 6vw, 58px) auto 0; }
.hero-skyline img { display: block; width: 100%; height: auto; }
.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-transform: uppercase;
}
.scroll-link span { color: var(--gold); font-size: 16px; line-height: 1; }

.section { position: relative; padding: 75px 20px; border-bottom: 1px solid rgba(181, 141, 75, .35); }
.section-inner { width: min(100%, var(--max-width)); margin: auto; }
.section-head { max-width: 720px; margin-bottom: 31px; }
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h2 { margin: 0 0 14px; color: var(--wine); font-size: clamp(39px, 8vw, 64px); letter-spacing: -.04em; line-height: .98; }
h3 { margin: 0 0 9px; color: var(--wine); font-size: 27px; letter-spacing: -.02em; line-height: 1.1; }
p { margin-top: 0; }
.intro { color: var(--muted); font-size: clamp(16px, 2.5vw, 19px); }
.status { display: inline-flex; width: fit-content; padding: 6px 9px; border: 1px solid rgba(181,141,75,.58); color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.location-layout { display: grid; gap: 16px; }
.venue-visual {
  min-height: 288px;
  margin: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border: 1px solid rgba(216, 191, 129, .58);
}
.venue-visual img { display: block; width: min(100%, 730px); max-height: 430px; object-fit: contain; }
.ceremony-section {
  overflow: hidden;
  border-bottom-color: rgba(220, 197, 142, .38);
  background-color: var(--wine);
  background-image: radial-gradient(circle at 9% 5%, rgba(255,255,255,.08), transparent 24rem), linear-gradient(145deg, rgba(0,0,0,.14), transparent 48%);
  color: var(--paper);
}
.ceremony-section::after {
  content: '';
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(216, 191, 129, .2);
}
.ceremony-section .section-inner { position: relative; z-index: 1; }
.ceremony-section .eyebrow { color: var(--gold-light); }
.ceremony-section h2 { color: var(--paper); }
.ceremony-visual { background: rgba(65, 13, 24, .26); }
.location-card {
  padding: clamp(25px, 5vw, 44px);
  border: 1px solid rgba(181, 141, 75, .54);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(54, 16, 23, .11);
}
.date-line { margin-bottom: 27px; }
.date-line strong, .date-line span { display: block; }
.date-line strong { color: var(--wine); font-size: 26px; }
.date-line span { margin-top: 4px; color: var(--muted); font-size: 16px; }
.location-card > p, .location-card address { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--wine);
  border-radius: 2px;
  background: var(--wine);
  color: var(--paper);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { border-color: var(--wine-deep); background: var(--wine-deep); transform: translateY(-1px); }
.button.secondary { border-color: rgba(104, 27, 41, .75); background: transparent; color: var(--wine); }
.button.secondary:hover { border-color: var(--wine); background: rgba(104, 27, 41, .07); }
.button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #9f762e; outline-offset: 3px; }
.detail-block { margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-block p { margin: 5px 0 0; color: var(--muted); }

.reception-section { background: var(--pearl); }
.reception-section .section-head { max-width: 760px; }
.reception-visual { background-color: #e5d7c8; background-image: radial-gradient(circle at 18% 18%, rgba(255,255,255,.65), transparent 35%), linear-gradient(135deg, rgba(104,27,41,.07), transparent 55%); }
.reception-section .location-card { box-shadow: none; }

.story-section { background: var(--paper); background-image: linear-gradient(150deg, rgba(181,141,75,.05), transparent 44%); }
.story-layout { display: grid; gap: 36px; }
.story-copy { max-width: 650px; }
.timeline { margin: 26px 0; padding: 0; list-style: none; border-left: 1px solid rgba(181, 141, 75, .62); }
.timeline li { position: relative; padding: 3px 0 20px 22px; }
.timeline li::before { content: ''; position: absolute; top: 10px; left: -5px; width: 9px; height: 9px; border: 1px solid var(--gold); border-radius: 50%; background: var(--paper); }
.story-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 14px; }
.photo-placeholder {
  min-height: 146px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(181, 141, 75, .56);
  background-color: #dfd0c1;
  background-image: linear-gradient(125deg, rgba(104,27,41,.20), transparent 45%), radial-gradient(circle at 74% 23%, rgba(255,255,255,.5), transparent 21%);
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.photo-placeholder::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(252,250,245,.54); pointer-events: none; }
.story-preview .main-photo { grid-column: 1 / -1; min-height: 280px; background-image: linear-gradient(122deg, rgba(104,27,41,.26), transparent 48%), radial-gradient(circle at 71% 24%, rgba(255,255,255,.62), transparent 19%); }

.gift-section { background: var(--pearl); }
.gift-teaser {
  max-width: 890px;
  padding: clamp(31px, 6vw, 58px);
  border: 1px solid rgba(181, 141, 75, .66);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(104, 27, 41, .055);
}
.gift-teaser .button { margin-top: 8px; }
.contacts-section { background: var(--paper); }
.contacts-grid { display: grid; gap: 13px; }
.contact-card {
  padding: 27px;
  border: 1px solid rgba(181, 141, 75, .56);
  background: rgba(243, 239, 232, .52);
}
.contact-value { display: block; width: fit-content; margin: 8px 0; color: var(--wine); overflow-wrap: anywhere; text-decoration-color: rgba(181,141,75,.78); text-underline-offset: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 21px; padding-top: 16px; border-top: 1px solid rgba(181, 141, 75, .44); }
.contact-actions a { color: var(--wine); font-size: 12px; font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 5px; }

.closing {
  position: relative;
  overflow: visible;
  padding: 92px 20px 82px;
  background: var(--wine-deep);
  background-image: radial-gradient(circle at 18% 15%, rgba(216,191,129,.1), transparent 19rem), linear-gradient(147deg, rgba(255,255,255,.035), transparent 47%);
  color: var(--paper);
  text-align: center;
}
.closing::before { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(216,191,129,.22); pointer-events: none; }
.closing .section-inner { position: relative; z-index: 1; max-width: 880px; }
.closing-comet { width: clamp(126px, 15vw, 160px); margin: 0 auto 23px; filter: brightness(1.18); }
.closing p { max-width: 800px; margin: 0 auto 12px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: clamp(25px, 5vw, 39px); line-height: 1.12; }
.closing p + p { color: var(--gold-light); font-size: clamp(19px, 4vw, 27px); }
.closing strong { display: block; margin-top: 35px; color: var(--paper); font-size: 23px; }
.closing > .section-inner > span:not(.closing-monogram) { display: block; margin-top: 6px; color: var(--gold-light); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.closing-monogram { display: inline-block !important; margin-top: 30px !important; color: var(--gold-light) !important; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 19px !important; letter-spacing: .25em !important; text-transform: none !important; }
.site-footer { padding: 16px 20px 26px; background: var(--wine-deep); color: var(--gold-light); text-align: center; font-size: 11px; }
.site-footer a { text-decoration-color: rgba(216,191,129,.7); text-underline-offset: 5px; }

dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100svh - 28px); padding: 0; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(43, 7, 14, .28); }
dialog::backdrop { background: rgba(50, 12, 20, .64); }
.dialog-inner { padding: 25px; }
.dialog-head { display: flex; align-items: start; gap: 16px; margin-bottom: 22px; }
.dialog-head > div, .dialog-head h2 { margin-right: auto; }
.dialog-head h2 { font-size: 35px; }
.dialog-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid rgba(181,141,75,.68); background: transparent; color: var(--wine); cursor: pointer; font-size: 24px; }
.dialog-block { padding: 17px 0; border-top: 1px solid var(--line); }
.dialog-block strong { display: block; margin-bottom: 5px; color: var(--wine); }
.dialog-links { display: grid; gap: 8px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.dialog-links strong { color: var(--wine); }
.gallery-dialog { width: min(900px, calc(100% - 28px)); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.detail-page { min-height: calc(100svh - 72px); padding: 46px 20px; background: var(--pearl); }
.detail-page-card { width: min(100%, 820px); margin: auto; padding: clamp(29px, 6vw, 58px); border: 1px solid rgba(181, 141, 75, .66); background: var(--paper); box-shadow: 0 12px 34px rgba(104,27,41,.06); }
.detail-page-card h1 { margin: 0 0 23px; color: var(--wine); font-size: clamp(42px, 9vw, 68px); letter-spacing: -.043em; line-height: .98; }
.detail-intro { color: var(--muted); font-size: 18px; }
.detail-intro p { margin: 0 0 1em; }
.detail-intro p:last-child { margin-bottom: 0; }
.gift-illustration { width: min(100%, 760px); margin: 34px auto 0; }
.gift-illustration img { display: block; width: 100%; height: auto; }
.gift-action { display: flex; justify-content: center; margin: 18px 0 54px; }
.gift-action-button { width: min(100%, 360px); min-height: 52px; padding: 14px 22px; border: 1px solid var(--wine); background: var(--wine); color: var(--paper); cursor: pointer; font: 750 12px/1.25 Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; transition: background-color .2s ease, transform .2s ease; }
.gift-action-button:hover, .gift-action-button:focus-visible { background: #7b2937; transform: translateY(-1px); }
.registry-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.registry-copy { margin-top: 8px; }
.registry-action { margin-bottom: 0; }
.gift-final-message { margin: 42px 0 0; color: var(--muted); font-size: 18px; }
.transfer-dialog { width: min(620px, calc(100% - 28px)); }
.transfer-dialog .bank-details { margin-top: 12px; }
.registry-dialog { width: min(460px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 1px solid rgba(181,141,75,.72); background: var(--paper); box-shadow: 0 24px 74px rgba(43,7,14,.34); }
.registry-progress-panel { position: relative; display: grid; place-items: center; min-height: 240px; padding: 58px 34px 42px; background: radial-gradient(circle at 50% 42%, rgba(216,191,129,.17), transparent 55%), var(--paper); }
.registry-progress-panel::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(181,141,75,.38); pointer-events: none; }
.registry-progress-panel h2 { margin: 0; color: var(--wine); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: clamp(38px, 8vw, 56px); font-weight: 400; letter-spacing: -.025em; line-height: .96; text-align: center; }
.registry-dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; background: rgba(252,250,245,.84); }
.bank-details { margin: 36px 0 24px; border-top: 1px solid var(--line); }
.bank-details div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.bank-details dt { margin-bottom: 5px; color: var(--wine); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.bank-details dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.bank-details code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .93em; }
.copy-status { min-height: 24px; margin: 10px 0 0; color: var(--wine); font-weight: 700; }
.detail-closing { margin: 22px 0 0; color: var(--wine); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 21px; }

@media (max-width: 480px) {
  .header-inner { padding: 0 13px; gap: 8px; }
  .brand { gap: 5px; font-size: 16px; }
  .language-switch button { min-width: 32px; }
  .hero { padding-right: 16px; padding-left: 16px; }
  .section { padding-right: 16px; padding-left: 16px; }
  .actions { display: grid; }
  .actions .button { width: 100%; }
  .button { width: 100%; }
  .gift-action { margin-bottom: 44px; }
  .gift-action-button { width: 100%; }
  .registry-action { margin-bottom: 0; }
  .registry-dialog { width: calc(100% - 18px); }
  .registry-progress-panel { min-height: 210px; }
  .registry-progress-panel h2 { max-width: 68%; font-size: clamp(31px, 10vw, 45px); }
}

@media (min-width: 720px) {
  .header-inner { padding: 0 33px; }
  .hero { min-height: calc(92svh - 72px); padding: 69px 34px 45px; }
  .section { padding: 109px 34px; }
  .location-layout { grid-template-columns: 1.08fr .92fr; align-items: stretch; }
  .venue-visual { min-height: 100%; }
  .story-layout { grid-template-columns: .91fr 1.09fr; align-items: center; gap: 58px; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-page { padding: 80px 32px; }
}

/* Wedding registry cards */
.registry-copy-title {
  margin: 0 0 16px;
  color: var(--wine);
  font-size: clamp(28px, 5vw, 39px);
  line-height: 1.08;
}
.registry-section {
  margin-top: 46px;
  padding-top: 36px;
  border-top: 1px solid rgba(181, 141, 75, .46);
}
.registry-heading { text-align: center; }
.registry-heading .eyebrow { display: block; }
.registry-heading h2 {
  margin: 9px 0 9px;
  color: var(--wine);
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1;
}
.registry-heading p {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}
.registry-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 22px;
}
.registry-filter {
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid rgba(181, 141, 75, .55);
  border-radius: 999px;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.registry-filter:hover, .registry-filter:focus-visible, .registry-filter.is-active { background: var(--wine); color: var(--paper); }
.registry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.registry-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(181, 141, 75, .48);
  background: rgba(255, 255, 255, .32);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.registry-card:hover { border-color: var(--gold); box-shadow: 0 10px 25px rgba(104, 27, 41, .08); transform: translateY(-2px); }
.registry-card[hidden] { display: none; }
.registry-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 15px;
  background: radial-gradient(circle at 82% 16%, rgba(181, 141, 75, .17), transparent 44%), rgba(104, 27, 41, .06);
}
.registry-card-index { color: var(--gold); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 27px; }
.registry-card-category { color: var(--wine-soft); font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.registry-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px 16px 16px; }
.registry-card h3 { margin: 0 0 6px; color: var(--wine); font-size: 21px; line-height: 1.12; }
.registry-card p { min-height: 39px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.registry-card-target { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 17px 0 14px; padding-top: 12px; border-top: 1px solid rgba(181, 141, 75, .3); }
.registry-card-target span { color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.registry-card-target strong { color: var(--wine); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 21px; font-weight: 400; white-space: nowrap; }
.registry-progress { margin: -2px 0 15px; padding: 9px 0 0; border-top: 1px solid rgba(181, 141, 75, .18); }
.registry-progress-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.registry-progress-meta strong { color: var(--wine); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 16px; font-weight: 400; white-space: nowrap; }
.registry-progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(181, 141, 75, .18); }
.registry-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .35s ease; }
.registry-progress.is-complete .registry-progress-meta strong { color: var(--gold); font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.registry-progress.is-complete .registry-progress-fill { background: var(--wine); }
.registry-card-actions { display: grid; gap: 10px; margin-top: auto; }
.registry-example-link { color: var(--wine-soft); font-size: 11px; text-align: center; text-underline-offset: 4px; }
.registry-example-links, .product-link-list { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.registry-example-links a, .product-link-list a { color: var(--wine-soft); font-size: 11px; text-align: center; text-underline-offset: 4px; }
.registry-gift-button { width: 100%; min-height: 44px; padding: 10px 13px; font-size: 10px; }
.selected-product-title { margin: 0 0 6px; color: var(--wine); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 30px; font-weight: 400; line-height: 1.05; }
.selected-product-description { margin: 0 0 7px; color: var(--muted); }
.product-link { display: inline-block; margin-bottom: 15px; color: var(--wine); font-size: 12px; text-underline-offset: 4px; }
.gift-field { display: block; margin: 16px 0 7px; color: var(--wine); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.gift-input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .55); color: var(--ink); }
.gift-input:focus { outline: 3px solid rgba(181, 141, 75, .25); border-color: var(--gold); }
.gift-note { margin: 10px 0 20px; color: var(--muted); font-size: 12px; }
#giftRegisterStatus { min-height: 24px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 13px; }
.dialog-actions .button { width: 100%; min-height: 46px; }

@media (max-width: 840px) {
  .registry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .registry-grid { grid-template-columns: 1fr; gap: 11px; }
  .registry-card-body { padding: 15px 14px 14px; }
  .registry-card p { min-height: 0; }
  .registry-filters { justify-content: flex-start; }
  .registry-filter { flex: 1 1 auto; }
  .dialog-actions { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Continuous ribbon composition */
main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--paper);
}

.site-header {
  border-bottom-color: rgba(181, 141, 75, .25);
  background: rgba(252, 250, 245, .78);
}
.language-switch button { min-width: 44px; min-height: 44px; }
.menu-toggle { width: 44px; height: 44px; border-radius: 50%; }

.hero {
  min-height: calc(100svh - 72px);
  padding: clamp(58px, 9vh, 96px) 20px clamp(112px, 16vw, 178px);
  border: 0;
  background: var(--paper);
  color: var(--paper);
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: -3px -9% clamp(48px, 7vw, 92px);
  width: auto;
  height: auto;
  border-radius: 0 0 48% 43% / 0 0 13% 10%;
  background-color: var(--wine);
  background-image: radial-gradient(circle at 18% 15%, rgba(255,255,255,.08), transparent 23rem), radial-gradient(circle at 92% 74%, rgba(216,191,129,.08), transparent 25rem), linear-gradient(145deg, rgba(0,0,0,.11), transparent 56%);
  transform: rotate(.7deg) scaleX(1.025);
  transform-origin: top center;
  border: 0;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -31%;
  bottom: -22%;
  width: 84%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(181,141,75,.34);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .site-label { color: var(--gold-light); }
.hero h1 { color: var(--paper); text-shadow: 0 1px 18px rgba(35,7,13,.12); }
.hero-meta { color: var(--gold-light); }
.hero-skyline { position: relative; left: 50%; width: min(110%, 870px); margin: clamp(30px, 6vw, 58px) auto 0; transform: translateX(-50%); }
.hero-skyline img { filter: drop-shadow(0 7px 16px rgba(30,5,11,.12)); }
.hero .scroll-link { color: var(--paper); }

.section {
  position: relative;
  isolation: isolate;
  padding: clamp(98px, 12vw, 170px) 20px;
  border: 0;
  overflow: visible;
  background: transparent;
}
.section-inner { position: relative; z-index: 2; }
.section-head { margin-bottom: clamp(37px, 6vw, 70px); }
.eyebrow { font-size: 11px; letter-spacing: .22em; }

.text-link {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  gap: 17px;
  padding: 7px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link span { color: var(--gold); font-size: 21px; font-weight: 400; transition: transform .2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translateX(5px); }

.location-layout { gap: clamp(42px, 8vw, 116px); align-items: center; }
.venue-visual { min-height: 0; border: 0; background: transparent; }
.venue-visual img { max-height: none; }

/* Ceremony: the venue is deliberately small, frontal and surrounded by air. */
.ceremony-section {
  min-height: min(950px, 100svh);
  display: grid;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
}
.ceremony-section::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: -56%;
  top: auto;
  right: auto;
  bottom: -33%;
  width: 120%;
  height: 58%;
  border: 1px solid rgba(181,141,75,.32);
  border-radius: 50%;
  transform: rotate(7deg);
  pointer-events: none;
}
body[data-access="full"] .ceremony-section::before {
  content: '';
  position: absolute;
  z-index: 0;
  right: -29%;
  bottom: -25%;
  width: 58%;
  height: 46%;
  border-radius: 55% 0 0 48% / 48% 0 0 52%;
  background: var(--wine);
  transform: rotate(-5deg);
  pointer-events: none;
}
.location-copy { min-width: 0; }
.ceremony-section .section-head { width: 100%; margin: 0 0 clamp(29px, 5vw, 50px); text-align: left; }
.ceremony-section .eyebrow,
.ceremony-section h2 { color: var(--wine); }
.ceremony-visual { overflow: visible; }
.ceremony-visual img {
  width: min(76%, 430px);
  margin: auto;
  opacity: .96;
}
.ceremony-section .location-card {
  max-width: 510px;
  padding: 8px 0 8px clamp(20px, 4vw, 48px);
  border: 0;
  border-left: 1px solid rgba(181,141,75,.68);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.ceremony-section .date-line strong { color: var(--wine); }
.ceremony-section .date-line span { color: var(--muted); }
.ceremony-section .location-card h3 { color: var(--wine); font-size: clamp(31px, 5vw, 48px); }
.ceremony-section .location-card > p, .ceremony-section .location-card address { color: var(--muted); }
.ceremony-section .actions { gap: 20px; }
.ceremony-section .button,
.ceremony-section .button.secondary,
.reception-section .button {
  width: fit-content;
  min-height: 44px;
  padding: 8px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--wine);
  font-size: 11px;
}
.ceremony-section .button:hover,
.ceremony-section .button.secondary:hover,
.reception-section .button:hover { border-color: var(--wine); background: transparent; color: var(--wine-soft); }

/* Reception: the ribbon widens behind the illustration, while copy stays open. */
.reception-section {
  min-height: min(980px, 105svh);
  display: grid;
  align-items: center;
  background: var(--paper);
}
.reception-section::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 46%;
  right: auto;
  left: -28%;
  width: 142%;
  height: 61%;
  border-radius: 0 52% 46% 0 / 0 18% 82% 0;
  background-color: var(--wine);
  background-image: radial-gradient(circle at 77% 46%, rgba(216,191,129,.10), transparent 23rem), linear-gradient(155deg, rgba(0,0,0,.08), transparent 52%);
  transform: rotate(-3deg);
  pointer-events: none;
}
.reception-section::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: -54%;
  bottom: -25%;
  width: 132%;
  height: 70%;
  border: 1px solid rgba(181,141,75,.46);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}
.reception-section .section-head { max-width: 560px; margin-bottom: clamp(29px, 5vw, 50px); }
.reception-section .location-layout { position: relative; }
.reception-visual { order: 2; overflow: visible; }
.reception-visual img {
  width: min(110%, 690px);
  margin: auto;
  filter: drop-shadow(0 12px 20px rgba(35,7,13,.13));
}
.reception-section .location-card {
  order: 1;
  max-width: 470px;
  padding: 10px 0 10px clamp(20px, 4vw, 48px);
  border: 0;
  border-left: 1px solid rgba(181,141,75,.72);
  background: transparent;
  box-shadow: none;
}
.reception-section .location-card h3 { font-size: clamp(31px, 5vw, 48px); }

/* Story teaser: an editorial pause with deliberately imperfect photo alignment. */
.story-section {
  min-height: min(900px, 100svh);
  display: grid;
  align-items: center;
  background: var(--paper);
}
.story-section::before {
  display: none;
}
.story-section::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: -28%;
  bottom: -34%;
  width: 72%;
  height: 65%;
  border: 1px solid rgba(181,141,75,.32);
  border-radius: 50%;
  transform: rotate(-9deg);
  pointer-events: none;
}
.story-teaser { display: grid; gap: 29px; }
.story-teaser-copy { max-width: 620px; }
.story-hook {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--ink);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(28px, 6vw, 49px);
  line-height: 1.12;
}
.childhood-collage { position: relative; isolation: isolate; min-height: 365px; margin-inline: auto; width: min(100%, 520px); }
.childhood-collage::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 12%;
  right: -35%;
  width: 124%;
  height: 78%;
  border-radius: 51% 0 0 47% / 24% 0 0 76%;
  background-color: var(--wine);
  background-image: radial-gradient(circle at 74% 38%, rgba(216,191,129,.09), transparent 17rem);
  transform: rotate(4deg);
  pointer-events: none;
}
.childhood-photo {
  position: absolute;
  z-index: 1;
  width: min(66%, 310px);
  aspect-ratio: 4 / 5;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 8px solid var(--paper);
  background-color: #d8c8b8;
  background-image: radial-gradient(circle at 66% 26%, rgba(255,255,255,.56), transparent 24%), linear-gradient(135deg, rgba(104,27,41,.16), transparent 52%);
  box-shadow: 0 18px 36px rgba(66, 33, 42, .12);
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.childhood-photo::after { content: ''; position: absolute; inset: 11px; border: 1px solid rgba(252,250,245,.58); }
.childhood-photo span { position: relative; z-index: 1; }
.childhood-photo.has-image { padding: 0; overflow: hidden; }
.childhood-photo.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.childhood-photo.primary-photo { width: min(48%, 255px); }
.childhood-photo.primary-photo.childhood-photo-one { top: 22%; left: 5%; transform: rotate(-4.5deg); }
.childhood-photo.primary-photo.childhood-photo-two { right: 5%; bottom: 22%; transform: rotate(4deg); }
.childhood-photo.extra-photo { width: min(18%, 100px); padding: 0; border-width: 5px; }
.childhood-photo-three { top: 1%; left: 2%; transform: rotate(-7deg); }
.childhood-photo-four { top: 1%; left: 41%; transform: rotate(5deg); }
.childhood-photo-five { top: 1%; right: 2%; transform: rotate(7deg); }
.childhood-photo-six { right: 23%; bottom: 1%; transform: rotate(-6deg); }
.childhood-photo-seven { bottom: 1%; left: 23%; transform: rotate(5deg); }
.childhood-photo-one { top: 0; left: 2%; transform: rotate(-4.5deg); }
.childhood-photo-two { right: 1%; bottom: 0; transform: rotate(4deg); }
.story-cta { align-self: start; }

/* Gift and contacts share one burgundy field instead of behaving as separate slides. */
.gift-section,
.contacts-section { color: var(--paper); }
.gift-section { overflow: visible; padding-top: clamp(150px, 16vw, 220px); }
.gift-section::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: clamp(48px, 7vw, 92px) -8% -2px;
  border-radius: 50% 44% 0 0 / 12% 9% 0 0;
  background-color: var(--wine);
  background-image: radial-gradient(circle at 12% 21%, rgba(255,255,255,.065), transparent 21rem), linear-gradient(145deg, rgba(0,0,0,.10), transparent 55%);
  transform: rotate(.8deg) scaleX(1.02);
  pointer-events: none;
}
.gift-section::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: -37%;
  bottom: -32%;
  width: 108%;
  height: 67%;
  border: 1px solid rgba(216,191,129,.34);
  border-radius: 50%;
  transform: rotate(8deg);
  pointer-events: none;
}
.gift-teaser {
  max-width: 900px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.gift-teaser::before { content: ''; display: block; width: 74px; margin-bottom: 37px; border-top: 1px solid var(--gold-light); }
.gift-teaser .eyebrow { color: var(--gold-light); }
.gift-teaser h2 { max-width: 820px; color: var(--paper); }
.gift-teaser .intro { max-width: 690px; margin-bottom: 25px; color: rgba(252,250,245,.78); }
.gift-teaser .text-link { border-bottom-color: var(--gold-light); color: var(--paper); }
.gift-teaser .text-link span { color: var(--gold-light); }

.contacts-section { overflow: visible; padding-top: clamp(68px, 8vw, 112px); padding-bottom: clamp(150px, 16vw, 220px); }
.contacts-section::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -2px -8% -92px;
  border-radius: 0 0 47% 53% / 0 0 9% 12%;
  background-color: var(--wine);
  background-image: linear-gradient(158deg, rgba(0,0,0,.04), rgba(255,255,255,.025) 60%, transparent);
  transform: rotate(-.65deg) scaleX(1.02);
  pointer-events: none;
}
.contacts-section::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: -37%;
  bottom: -20%;
  width: 92%;
  height: 55%;
  border: 1px solid rgba(216,191,129,.32);
  border-radius: 50%;
  transform: rotate(-7deg);
  pointer-events: none;
}
.contacts-section .section-head { max-width: 760px; margin-left: clamp(0px, 7vw, 100px); }
.contacts-section .eyebrow { color: var(--gold-light); }
.contacts-section h2, .contacts-section h3 { color: var(--paper); }
.contacts-section .intro { color: rgba(252,250,245,.76); }
.contacts-grid { gap: clamp(32px, 7vw, 96px); }
.contact-card {
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid rgba(216,191,129,.48);
  background: transparent;
}
.contact-value, .contact-actions a { color: var(--paper); }
.contact-actions { border-color: rgba(216,191,129,.28); }

.closing {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: clamp(190px, 20vw, 270px) 20px clamp(90px, 11vw, 150px);
  background: var(--paper);
  color: var(--ink);
}
.closing::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: -26%;
  top: auto;
  right: auto;
  bottom: -48%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(181,141,75,.3);
  border-radius: 50%;
  pointer-events: none;
}
.closing::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -96px;
  left: -8%;
  width: 116%;
  height: clamp(142px, 16vw, 210px);
  border-radius: 0 0 48% 52% / 0 0 25% 31%;
  background-color: var(--wine);
  background-image: linear-gradient(150deg, rgba(255,255,255,.025), rgba(0,0,0,.055));
  transform: rotate(.65deg);
  pointer-events: none;
}
.closing .section-inner { position: relative; z-index: 2; }
.closing-comet { filter: none; }
.closing p { color: var(--ink); }
.closing p + p { color: var(--wine); }
.closing strong { color: var(--wine); }
.closing > .section-inner > span:not(.closing-monogram) { color: var(--wine-soft) !important; }
.closing-monogram { color: var(--gold) !important; }
.site-footer { background: var(--paper); color: var(--wine); }

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .72s ease var(--reveal-delay, 0ms), transform .78s cubic-bezier(.2,.72,.28,1) var(--reveal-delay, 0ms);
}
.reveal-item.reveal-visible { opacity: 1; transform: none; }

/* Dedicated story page */
.story-detail-page { background: var(--pearl); }
.story-article-intro {
  position: relative;
  min-height: calc(78svh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 11vw, 140px) 20px;
  background: var(--pearl);
  text-align: center;
}
.story-article-intro::after { content: ''; position: absolute; right: -28vw; bottom: -46vw; width: 75vw; height: 75vw; border: 1px solid rgba(181,141,75,.25); border-radius: 50%; }
.story-detail-inner { position: relative; z-index: 1; width: min(100%, 1050px); margin-inline: auto; }
.story-page-comet { width: clamp(100px, 17vw, 158px); margin: 0 auto 22px; }
.story-article-intro h1 { margin: 0; color: var(--wine); font-size: clamp(51px, 11vw, 104px); letter-spacing: -.05em; line-height: .94; }
.story-opening {
  max-width: 720px;
  margin: clamp(32px, 6vw, 60px) auto 0;
  color: var(--ink);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(23px, 4vw, 35px);
  line-height: 1.28;
}
.story-young-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 34px); width: min(100%, 760px); margin: clamp(30px, 5vw, 48px) auto 0; align-items: start; }
.story-young-photo { margin: 0; padding: 8px; border: 1px solid rgba(181,141,75,.42); background: var(--paper); box-shadow: 0 14px 30px rgba(66,33,42,.11); }
.story-young-photo-one { transform: rotate(-2.5deg); }
.story-young-photo-two { transform: rotate(2.5deg); }
.story-young-photo img { display: block; width: 100%; height: auto; }
.story-young-photo img { cursor: zoom-in; }
.young-photo-dialog { width: min(920px, calc(100% - 28px)); }
.young-photo-dialog .dialog-inner { padding: 18px; }
.young-photo-dialog .dialog-head { align-items: center; margin-bottom: 14px; }
.young-photo-dialog .dialog-head h2 { margin-right: auto; font-size: clamp(18px, 4vw, 27px); }
.young-photo-dialog #youngPhotoLarge { display: block; width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
@media (max-width: 599px) {
  .story-young-photos { grid-template-columns: 1fr; width: min(100%, 420px); gap: 22px; }
}
.story-prose-section { padding: clamp(58px, 9vw, 112px) 20px; background: var(--pearl); }
.story-prose { width: min(100%, 720px); margin-inline: auto; color: #4a343a; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: clamp(19px, 2.5vw, 23px); line-height: 1.78; }
.story-prose p + p { margin-top: 1.75em; }
.story-content-placeholder { padding-left: clamp(20px, 4vw, 40px); border-left: 1px solid var(--gold); color: var(--muted); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 15px; }
.story-gallery-section { position: relative; overflow: clip; padding: clamp(68px, 10vw, 128px) 20px; background: var(--pearl); }
.story-gallery-section::after { content: ''; position: absolute; left: -27vw; bottom: -42vw; width: 70vw; height: 70vw; border: 1px solid rgba(181,141,75,.24); border-radius: 50%; }
.story-gallery-layout { display: grid; gap: clamp(45px, 8vw, 100px); align-items: center; }
.story-gallery-copy { max-width: 520px; }
.story-gallery-preview { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); }
.story-gallery-preview .story-gallery-photo { width: 100%; aspect-ratio: 4/5; min-height: 0; border: 7px solid var(--paper); box-shadow: 0 15px 32px rgba(66,33,42,.1); }
.story-gallery-preview .story-gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-preview-photo { cursor: zoom-in; }
.gallery-dialog .dialog-head h2 { margin-right: auto; }
.gallery-viewer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(10px, 3vw, 28px); }
.gallery-current { min-width: 0; }
.gallery-large { display: grid; place-items: center; min-height: min(58vh, 520px); padding: 28px; background: var(--pearl-deep); color: var(--wine); text-align: center; }
.gallery-counter { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.gallery-nav { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); background: transparent; color: var(--wine); cursor: pointer; font-size: 22px; }
.gallery-nav:hover, .gallery-nav:focus-visible { background: var(--soft); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.gallery-thumb { min-height: 70px; padding: 10px; border: 1px solid var(--line); background: var(--pearl-deep); color: var(--wine); cursor: pointer; font: inherit; font-size: 11px; }
.gallery-thumb[aria-current="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.gallery-index { margin-top: 4px; }
.gallery-lightbox { margin-top: 4px; }
#galleryGrid[hidden], #galleryLightbox[hidden] { display: none !important; }
.gallery-back { margin: 0 0 16px; padding: 0; border: 0; background: transparent; color: var(--wine); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.gallery-thumb { min-height: 0; aspect-ratio: 4 / 3; padding: 0; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-large { display: block; width: 100%; height: auto; max-height: min(68vh, 620px); min-height: 0; padding: 0; background: var(--pearl-deep); object-fit: contain; }
.gallery-dialog.is-lightbox { width: min(1000px, calc(100% - 20px)); border-color: transparent; background: transparent; box-shadow: none; }
.gallery-dialog.is-lightbox .dialog-inner { padding: 0; }
.gallery-dialog.is-lightbox .dialog-head { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.gallery-dialog.is-lightbox .dialog-head h2 { display: none; }
.gallery-dialog.is-lightbox .dialog-close { width: 38px; height: 38px; border-color: rgba(252,250,245,.76); background: rgba(70,16,26,.52); color: var(--paper); font-size: 20px; }
.gallery-dialog.is-lightbox .gallery-back,
.gallery-dialog.is-lightbox .gallery-counter { display: none; }
.gallery-dialog.is-lightbox .gallery-lightbox { margin: 0; }
.gallery-dialog.is-lightbox .gallery-large { max-height: calc(100svh - 24px); background: transparent; }
.story-page-footer { padding: 34px 20px; background: var(--wine-deep); color: var(--gold-light); text-align: center; font-size: 12px; }
.story-page-footer a { text-decoration-color: var(--gold); text-underline-offset: 5px; }

/* Childhood photos: keep the images clean, without inset white frames. */
.childhood-photo { border: 0; }
.childhood-photo::after { display: none; }
.story-young-photo { padding: 0; border: 0; background: transparent; }

@media (max-width: 479px) {
  .hero { padding-right: 16px; padding-left: 16px; }
  .hero::before { right: -16%; bottom: 54px; left: -16%; border-radius: 0 0 49% 42% / 0 0 8% 7%; }
  .hero h1 { font-size: clamp(48px, 15vw, 66px); }
  .hero-skyline { width: 112%; margin-left: 0; }
  .section { padding: clamp(82px, 22vw, 96px) 16px; }
  .ceremony-section { padding-top: 78px; }
  .ceremony-copy { width: 91%; margin-left: auto; }
  .ceremony-section .actions { display: flex; }
  .ceremony-section .actions .button { width: fit-content; }
  .ceremony-visual img { width: min(82%, 340px); }
  .reception-section { padding-bottom: 130px; }
  .reception-copy { width: 91%; }
  .reception-visual { margin-top: 20px; }
  .reception-visual img { width: 112%; margin-left: -6%; }
  .childhood-collage { min-height: 340px; }
  .childhood-photo { width: 64%; }
  .gift-section { padding-top: 148px; padding-bottom: 104px; }
  .gift-section::before { top: 66px; }
  .contacts-section { padding-top: 68px; padding-bottom: 155px; }
  .contacts-section .section-head { margin-left: 0; }
  .closing { padding-top: 190px; }
  .story-gallery-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .story-gallery-preview .story-gallery-photo:nth-child(3) { grid-column: 1 / -1; width: 52%; justify-self: center; }
  .gallery-dialog.is-lightbox { width: calc(100% - 12px); }
  .gallery-dialog.is-lightbox .gallery-viewer { gap: 5px; }
  .gallery-dialog.is-lightbox .gallery-nav { width: 36px; height: 36px; }
}

@media (max-width: 719px) {
  .reception-section::before { display: none; }
  .reception-visual {
    position: relative;
    isolation: isolate;
    padding: 54px 0 18px;
  }
  .reception-visual::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 9px -38% -7% -31%;
    border-radius: 0 51% 47% 0 / 0 22% 78% 0;
    background-color: var(--wine);
    background-image: radial-gradient(circle at 58% 44%, rgba(216,191,129,.1), transparent 18rem);
    transform: rotate(-3deg);
    pointer-events: none;
  }
  .reception-visual img { position: relative; z-index: 1; }
}

@media (min-width: 720px) {
  .hero { min-height: calc(100svh - 72px); padding-inline: 34px; }
  .section { padding-inline: 34px; }
  .ceremony-section .location-layout { grid-template-columns: .91fr 1.09fr; grid-template-areas: "copy visual"; }
  .ceremony-copy { grid-area: copy; transform: translateY(-4%); }
  .ceremony-visual { grid-area: visual; }
  .reception-section::before { top: -8%; right: auto; left: -38%; width: 96%; height: 120%; border-radius: 0 53% 47% 0 / 0 22% 78% 0; }
  .reception-section .location-layout { grid-template-columns: 1.16fr .84fr; grid-template-areas: "visual copy"; }
  .reception-copy { grid-area: copy; position: relative; z-index: 2; }
  .reception-visual { grid-area: visual; }
  .story-teaser { grid-template-columns: .92fr 1.08fr; grid-template-areas: "copy visual" "action visual"; column-gap: clamp(55px, 9vw, 125px); align-items: center; }
  .story-teaser-copy { grid-area: copy; position: relative; top: -35px; }
  .childhood-collage { grid-area: visual; min-height: 490px; }
  .story-cta { grid-area: action; align-self: start; margin-left: clamp(35px, 6vw, 80px); }
  body[data-access="ceremony"] .story-teaser { grid-template-columns: 1.08fr .92fr; grid-template-areas: "visual copy" "visual action"; }
  .contacts-grid { width: 91%; margin-left: auto; }
  .contacts-grid .contact-card + .contact-card { border-top: 0; border-left: 1px solid rgba(216,191,129,.4); padding-left: clamp(32px, 7vw, 85px); }
  .story-gallery-layout { grid-template-columns: .82fr 1.18fr; }
}

@media (min-width: 1100px) and (max-width: 1199px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
}

@media (min-width: 1200px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item { opacity: 1; transform: none; }
}
