/* The original envelope styling is retained in style.css. */
.invitation { display: block; padding: 0; }
.wedding-hero { width: min(1160px, calc(100% - 96px)); margin: 0 auto; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 6vw, 88px); padding: 54px 0; }
.hero-copy, .hero-photo, .story-copy, .geranium-photo, .event-where { min-width: 0; }
.hero-copy { text-align: center; }
.hero-copy > .eyebrow { margin: 0 0 34px; }
.hero-names { font-size: clamp(3.3rem, 6.2vw, 5.6rem); line-height: 1.06; font-weight: 400; letter-spacing: -.065em; overflow-wrap: anywhere; }
.hero-names em { font-size: .52em; margin: .12em 0 .18em; }
.hero-date { font: .875rem/1.9 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; margin: 34px 0 28px; }
.story-link, .map-link { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.story-link { font-style: italic; font-size: 1.05rem; display: inline-block; padding: 8px 0; }
.hero-photo { position: relative; margin: 0; padding: 12px; background: #fffaf4; box-shadow: 0 22px 55px #6a343320; transform: rotate(1.2deg); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 941 / 1672; object-fit: contain; }
.story-section { padding: 104px 48px 112px; background: #fff9f3; border-block: 1px solid #e4cfc5; scroll-margin-top: 32px; }
.story-layout { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: clamp(50px, 7vw, 110px); align-items: center; }
.section-title { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.12; margin: 0 0 30px; }
.story-copy > p { font-size: 1.0625rem; line-height: 1.95; margin: 0 0 25px; color: #65484b; text-wrap: pretty; }
.story-copy > p:last-child { margin-bottom: 0; }
.geranium-photo { margin: 0; padding: 16px 16px 24px; background: #f5e8e1; border: 1px solid #dec6bd; transform: rotate(-2deg); }
.geranium-photo img { display: block; width: 100%; height: auto; aspect-ratio: 612 / 405; object-fit: cover; }
.geranium-photo figcaption { font-style: italic; font-size: 1.15rem; line-height: 1.6; text-align: center; margin: 24px auto 0; padding: 0 8px; max-width: 290px; }
.celebration-section { padding: 104px 32px 48px; }
.celebration-card { max-width: 840px; margin: 0 auto; background: #fffaf4; padding: 18px; box-shadow: 0 20px 65px #63393c0c; border: 1px solid #dfc8bf; }
.celebration-inner { border: 1px solid var(--line); text-align: center; padding: 42px 60px 44px; }
.event-seal { margin: 0 auto 27px; width: 78px; height: 78px; }
.celebration-title { font-size: clamp(2.15rem, 3.6vw, 3.05rem); line-height: 1.16; margin-bottom: 42px; }
.celebration-details { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.event-when { padding: 8px 28px 8px 0; border-right: 1px solid #cbb0a4; }
.detail-label { margin: 0; font: .875rem/1.7 Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.event-day { font-size: 5rem; line-height: 1; letter-spacing: -.07em; margin: 9px 0; padding-right: 5px; }
.event-time { font-size: 1.2rem; margin: 14px 0 0; }
.event-where h3 { font-size: 2.2rem; letter-spacing: -.035em; font-weight: 400; margin: 15px 0 12px; }
.event-where address { font-style: normal; font-size: 1rem; line-height: 1.8; }
.map-link { display: inline-block; font-size: 1rem; margin-top: 18px; }
.arrival-note { font-size: 1rem; line-height: 1.6; margin: 34px 0 0; }
.arrival-note strong { font-weight: 700; }
.wedding-footer { text-align: center; padding: 8px 24px 100px; }
.wedding-footer > p { font-size: 1.05rem; line-height: 1.8; margin: 0; }
.wedding-footer em { white-space: nowrap; }
.wedding-footer .replay { margin-top: 18px; }
.music-toggle { position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); right: max(22px, env(safe-area-inset-right)); z-index: 20; min-height: 44px; border: 1px solid #b99294; border-radius: 999px; padding: 10px 18px; background: #fff9f2; color: var(--wine); box-shadow: 0 3px 15px #59273312; font: .875rem/1.5 Arial, sans-serif; cursor: pointer; }
.music-toggle:hover { background: #f3e0d9; }
.music-toggle:disabled { cursor: default; }
@media (max-width: 850px) and (min-width: 651px) {
  .wedding-hero { width: calc(100% - 56px); gap: 28px; }
  .hero-names { font-size: 3.35rem; }
  .hero-copy > .eyebrow { letter-spacing: .09em; }
  .story-section { padding: 80px 36px; }
  .story-layout { gap: 38px; }
  .celebration-inner { padding: 34px; }
}
@media (max-width: 650px) {
  .wedding-hero { width: calc(100% - 32px); display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 auto; padding: 16px 0 24px; min-height: auto; }
  .hero-photo, .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-photo { padding: 0; transform: none; overflow: hidden; }
  .hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #101f3a68, #14223b06 42%, transparent 65%); pointer-events: none; }
  .hero-photo img { aspect-ratio: 941 / 1672; object-fit: contain; }
  .hero-copy { z-index: 1; align-self: start; padding: 28px 18px 0; color: #fffaf4; text-shadow: 0 1px 10px #15243933; }
  .hero-copy > .eyebrow { font-size: .875rem; margin: 0 0 15px; letter-spacing: .11em; }
  .hero-names { font-size: clamp(2.35rem, 10.5vw, 4rem); line-height: .97; letter-spacing: -.055em; }
  .hero-names em { color: #fffaf4; font-size: .46em; line-height: 1; margin: .09em 0 .14em; }
  .hero-date { margin: 17px 0 0; font-size: .875rem; letter-spacing: .045em; line-height: 1.65; }
  .story-link { display: none; }
  .story-section { padding: 65px 26px; scroll-margin-top: 16px; }
  .story-layout { display: block; }
  .section-title { font-size: 2.7rem; margin-bottom: 23px; }
  .story-copy > p { font-size: 1.0625rem; line-height: 1.85; }
  .geranium-photo { margin: 43px 2px 0; padding: 12px 12px 20px; }
  .geranium-photo figcaption { font-size: 1.1rem; margin-top: 20px; }
  .celebration-section { padding: 60px 16px 34px; }
  .celebration-card { padding: 10px; }
  .celebration-inner { padding: 28px 18px 30px; }
  .event-seal { width: 70px; height: 70px; margin-bottom: 20px; }
  .celebration-title { font-size: clamp(1.9rem, 7.4vw, 2.65rem); line-height: 1.2; margin-bottom: 32px; }
  .celebration-details { gap: 16px; grid-template-columns: 1fr 1.1fr; }
  .event-when { padding-right: 16px; }
  .detail-label { font-size: .875rem; letter-spacing: .035em; }
  .event-day { font-size: 4rem; }
  .event-where h3 { font-size: 1.85rem; margin-top: 12px; }
  .event-where address { font-size: 1rem; line-height: 1.65; }
  .map-link { margin-top: 15px; }
  .arrival-note { margin: 30px 0 0; }
  .music-toggle { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 10px 15px; }
}
@media (max-width: 360px) {
  .hero-copy { padding: 23px 12px 0; }
  .hero-copy > .eyebrow { letter-spacing: .025em; }
  .hero-date { font-size: .875rem; letter-spacing: 0; }
  .story-section { padding-left: 23px; padding-right: 23px; }
  .celebration-details { display: block; }
  .event-when { border-right: 0; border-bottom: 1px solid #cbb0a4; padding: 0 0 24px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .invitation.is-revealing { animation: none; } }
