/* Reference-aligned editorial layout: one continuous illustrated canvas. */

html { scroll-padding-top: 78px; }
body { background: var(--paper); }

main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 3%, rgba(255,255,255,.86) 0 1px, transparent 1.6px),
    radial-gradient(circle at 82% 13%, rgba(112,69,47,.042) 0 .8px, transparent 1.4px);
  background-size: 15px 15px, 17px 17px;
}

.flow-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.flow-fill-reception { opacity: .99; }
.flow-gold-line {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.05;
  stroke-linecap: round;
  opacity: .56;
}

/* Remove the previous section-by-section shapes: the SVG now draws one canvas. */
.hero::before,
.hero::after,
.ceremony-section::before,
.ceremony-section::after,
.reception-section::before,
.reception-section::after,
.story-section::before,
.story-section::after,
.rsvp-section::before,
.rsvp-section::after,
.gift-section::before,
.gift-section::after,
.closing::before,
.closing::after,
.reception-visual::before,
.childhood-collage::before {
  content: none !important;
  display: none !important;
}

main > section {
  position: relative;
  z-index: 2;
  isolation: auto;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
}

/* Floating navigation: no horizontal bar cutting through the opening scene. */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}
.header-inner {
  min-height: 70px;
  padding: 10px 12px;
  pointer-events: none;
}
.header-inner > * { pointer-events: auto; }
.brand {
  max-width: 104px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(181,141,75,.52);
  border-radius: 999px;
  background: rgba(252,250,245,.88);
  box-shadow: 0 7px 24px rgba(43,12,19,.08);
  color: var(--wine);
  font-size: 15px;
  overflow: hidden;
  transition: max-width .24s ease, min-height .24s ease, padding .24s ease, border-color .2s ease, opacity .18s ease;
}
.desktop-nav {
  padding: 11px 16px;
  border: 1px solid rgba(181,141,75,.38);
  border-radius: 999px;
  background: rgba(252,250,245,.86);
  box-shadow: 0 7px 24px rgba(43,12,19,.06);
}
.language-switch {
  border-color: rgba(181,141,75,.55);
  background: rgba(252,250,245,.9);
  box-shadow: 0 7px 24px rgba(43,12,19,.07);
}
.menu-toggle {
  border-color: rgba(181,141,75,.58);
  border-radius: 50%;
  background: rgba(252,250,245,.9);
  box-shadow: 0 7px 24px rgba(43,12,19,.07);
}
.mobile-menu {
  inset: 72px 12px 12px;
  border: 1px solid rgba(181,141,75,.35);
  border-radius: 24px;
  background: rgba(252,250,245,.97);
  box-shadow: 0 22px 55px rgba(43,12,19,.18);
}

@media (max-width: 1199px) {
  .site-header.is-condensed .brand {
    max-width: 0;
    min-height: 0;
    padding-right: 0;
    padding-left: 0;
    border-color: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .site-header.is-condensed .header-inner { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .site-header.is-condensed .language-switch button { min-width: 38px; min-height: 38px; }
  .site-header.is-condensed .menu-toggle { width: 40px; height: 40px; }
}

/* Opening */
.hero {
  min-height: clamp(500px, 66svh, 680px);
  display: grid;
  place-items: start center;
  padding: clamp(110px, 15vh, 145px) 18px 195px;
  color: var(--paper);
  text-align: center;
}
.hero-inner {
  position: static;
  width: min(100%, 980px);
}
.hero-comet {
  position: relative;
  top: auto;
  right: auto;
  display: block;
  width: clamp(110px, 20vw, 176px);
  height: auto;
  margin: 0 auto clamp(24px, 4vw, 34px);
}
.hero .site-label {
  margin-bottom: 21px;
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: .34em;
}
.hero h1 {
  max-width: 970px;
  color: var(--paper);
  font-size: clamp(24px, 6.2vw, 68px);
  letter-spacing: .095em;
  line-height: 1.06;
  text-transform: uppercase;
  text-shadow: none;
  white-space: nowrap;
}
.hero-amp {
  color: var(--gold-light);
  font-size: 1.14em;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}
.hero-meta {
  gap: 7px 13px;
  margin-top: 28px;
  color: var(--gold-light);
  font-size: clamp(13px, 2.1vw, 17px);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-skyline {
  position: relative;
  z-index: 3;
  left: auto;
  bottom: auto;
  width: min(100%, 760px);
  margin: clamp(30px, 5vw, 46px) auto 0;
  transform: none;
}
.hero-skyline img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(200px, 30vw, 330px);
  margin-inline: auto;
  filter: none;
}
.hero .scroll-link {
  position: absolute;
  z-index: 4;
  bottom: 6px;
  left: 50%;
  margin: 0;
  color: var(--paper);
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Reserved quote section: its height grows naturally with the final text. */
.quote-section {
  padding-block: clamp(54px, 8vw, 92px);
  color: var(--ink);
  text-align: center;
}
.quote-inner {
  width: min(100%, 760px);
  margin-inline: auto;
}
.quote-text {
  margin: 0;
  color: var(--muted);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(17px, 2.4vw, 25px);
  font-style: italic;
  line-height: 1.5;
}
.quote-text p { margin: 0; }
.quote-text p + p { margin-top: clamp(22px, 4vw, 32px); }
.quote-credit {
  display: block;
  margin-top: clamp(28px, 4vw, 40px);
  color: var(--wine-soft);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .08em;
}

/* Shared editorial rhythm */
.section {
  min-height: 0;
  display: block;
  padding: clamp(62px, 8vw, 92px) 18px;
  border: 0 !important;
}
.section-inner { width: min(100%, 1040px); }
.section-head { margin-bottom: 25px; }
.eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: .25em;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4.2vw, 45px);
  letter-spacing: .105em;
  line-height: 1.08;
  text-transform: uppercase;
}
h3 { font-size: clamp(20px, 2.7vw, 29px); }
.intro { font-size: clamp(15px, 2vw, 18px); }
.location-layout { display: grid; gap: clamp(24px, 5vw, 70px); align-items: center; }
.location-copy { min-width: 0; }
.location-card,
.ceremony-section .location-card,
.reception-section .location-card {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.date-line { margin-bottom: 18px; }
.date-line strong { font-size: clamp(19px, 2.7vw, 26px); }
.date-line span { font-size: 14px; }
.actions { gap: 11px 18px; margin-top: 20px; }
.ceremony-section .actions { display: flex; flex-wrap: wrap; }
.ceremony-section .button,
.ceremony-section .button.secondary,
.reception-section .button {
  min-height: 44px;
  padding: 7px 0 5px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--wine);
  font-size: 10px;
}

/* Ceremony */
.ceremony-section { padding-top: 60px; padding-bottom: 50px; color: var(--ink); }
.ceremony-section .section-head { margin: 0 0 24px; }
.ceremony-section .eyebrow,
.ceremony-section h2,
.ceremony-section .date-line strong,
.ceremony-section .location-card h3 { color: var(--wine); }
.ceremony-section .date-line span,
.ceremony-section .location-card > p,
.ceremony-section .location-card address { color: var(--muted); }
.ceremony-visual { overflow: visible; }
.ceremony-visual img {
  width: min(108%, 465px);
  margin: auto;
  opacity: .88;
}

/* Reception */
.reception-section { padding-top: 52px; padding-bottom: 62px; color: var(--ink); }
.reception-section .section-head { max-width: none; margin-bottom: 24px; }
.reception-section .eyebrow,
.reception-section h2,
.reception-section .location-card h3 { color: var(--wine); }
.reception-copy { position: relative; z-index: 4; }
.reception-visual { position: relative; z-index: 3; overflow: visible; padding: 22px 0; }
.reception-visual img {
  position: relative;
  z-index: 1;
  width: min(118%, 610px);
  margin-left: -9%;
  filter: none;
}
.reception-section .detail-block { margin-block: 17px; padding-top: 14px; }

/* Story */
.story-section { padding-top: 62px; padding-bottom: 68px; color: var(--ink); }
.story-teaser {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "copy" "visual" "action";
  gap: clamp(27px, 6vw, 54px);
  align-items: center;
}
.story-teaser-copy {
  grid-area: copy;
  width: min(92%, 620px);
  max-width: 620px;
  margin-left: auto;
}
.story-hook {
  margin-top: 17px;
  color: var(--muted);
  font-size: clamp(20px, 3.35vw, 31px);
  line-height: 1.18;
}
.childhood-collage {
  grid-area: visual;
  position: relative;
  isolation: auto;
  width: min(92%, 500px);
  min-height: 0;
  height: clamp(245px, 62vw, 430px);
  margin-right: auto;
}
.childhood-photo {
  width: min(65%, 255px);
  border-width: 6px;
  box-shadow: 0 13px 27px rgba(66,33,42,.11);
}
.childhood-photo-one { left: 0; transform: rotate(-5deg); }
.childhood-photo-two { right: 1%; transform: rotate(4deg); }
.story-cta {
  grid-area: action;
  width: min(92%, 620px);
  margin: -7px 0 0 auto;
}

/* RSVP */
.rsvp-section { padding-top: 60px; padding-bottom: 42px; color: var(--ink); }
.rsvp-section .section-head {
  width: min(100%, 650px);
  margin: 0 auto 30px;
  text-align: center;
}
.rsvp-section .section-head h2 { color: var(--wine); }
.rsvp-section .deadline { margin: 0 auto 36px; }
.response-form { width: min(100%, 790px); margin-inline: auto; }
.response-form > .field:nth-of-type(2) { margin-top: 0; }
.response-form > div { text-align: center; }
.response-form .button {
  width: fit-content;
  min-height: 46px;
  padding: 7px 0 5px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--wine);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  box-shadow: none;
}
.response-form .button::after { content: '  →'; color: var(--gold); font-size: 17px; }
.response-form .button:hover,
.response-form .button:focus-visible {
  border-color: var(--wine);
  background: transparent;
  color: var(--wine-soft);
  transform: none;
}
.rsvp-section .section-inner::before {
  content: '';
  position: absolute;
  top: 4%;
  left: clamp(-64px, -7vw, -24px);
  width: clamp(74px, 11vw, 118px);
  aspect-ratio: 96 / 52.5;
  background: url('comet-vg-emphasis.svg') center / contain no-repeat;
  opacity: .58;
  transform: rotate(-10deg);
  pointer-events: none;
}

/* The gift section sits inside the final burgundy field. */
.gift-section { color: var(--paper); }
.gift-section { padding-top: clamp(112px, 14vw, 158px); padding-bottom: 78px; }
.gift-teaser {
  max-width: 780px;
  margin-left: auto;
  color: var(--paper);
}
.gift-teaser::before { border-color: var(--gold-light); }
.section-symbol {
  display: block;
  width: 39px;
  margin-bottom: 18px;
  color: var(--gold-light);
}
.section-symbol svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gift-teaser .eyebrow { color: var(--gold-light); }
.gift-teaser h2 { color: var(--paper); }
.gift-teaser .intro { color: rgba(252,250,245,.81); }
.gift-teaser .text-link { border-color: var(--gold-light); color: var(--paper); }
.gift-teaser .text-link span { color: var(--gold-light); }

/* Closing returns to pearl inside the same wave. */
.closing {
  min-height: 0;
  padding: clamp(136px, 17vw, 196px) 18px clamp(72px, 9vw, 106px);
  color: var(--ink);
  background: transparent !important;
}
.closing p { color: var(--ink); font-size: clamp(22px, 3.6vw, 34px); }
.closing p + p { color: var(--wine); font-size: clamp(18px, 2.7vw, 25px); }
.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); }

@media (min-width: 720px) {
  .ceremony-section .location-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "art copy";
  }
  .ceremony-copy { grid-area: copy; transform: none; }
  .ceremony-visual { grid-area: art; }
  .reception-section .location-layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    grid-template-areas: "copy art";
  }
  .reception-copy { grid-area: copy; }
  .reception-visual { grid-area: art; }
  body[data-access="ceremony"] .story-teaser,
  body[data-access="full"] .story-teaser {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "action";
  }
  .story-teaser-copy { position: static; }
  .story-cta { align-self: start; }
}

@media (max-width: 599px) {
  .hero { padding-bottom: clamp(96px, 20vw, 130px); }
  .hero h1 { font-size: clamp(21px, 7vw, 31px); letter-spacing: .075em; }
  .hero-skyline {
    bottom: auto;
    width: min(100%, 760px);
    margin-top: clamp(28px, 8vw, 42px);
  }
  .location-layout { grid-template-columns: 1fr; }
  .ceremony-copy,
  .reception-copy { width: 91%; }
  .ceremony-copy { margin-left: auto; }
  .ceremony-visual { margin-top: 15px; }
  .reception-visual { margin-top: 18px; }
  .story-teaser-copy { order: 1; }
  .childhood-collage { order: 2; }
  .story-cta { order: 3; }
}

@media (min-width: 720px) {
  .header-inner { padding-inline: 24px; }
  .hero { padding-bottom: clamp(110px, 12vw, 150px); }
  .hero-skyline { bottom: auto; }
  .section { padding: clamp(80px, 8vw, 108px) 32px; }
  .ceremony-section .location-layout { grid-template-columns: .88fr 1.12fr; }
  .ceremony-visual img { width: min(100%, 475px); }
  .reception-section .location-layout { grid-template-columns: .86fr 1.14fr; }
  .reception-visual img { width: min(116%, 650px); }
  body[data-access="ceremony"] .story-teaser,
  body[data-access="full"] .story-teaser { grid-template-columns: 1fr; }
  .childhood-collage { height: 430px; }
  .rsvp-section { padding-bottom: 58px; }
  .gift-section { padding-top: 148px; padding-bottom: 96px; }
}

@media (min-width: 1200px) {
  .header-inner { padding-inline: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-art { transition: none; }
}
