@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/cormorant-normal-400.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/cormorant-normal-500.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/cormorant-italic-400.ttf') format('truetype'); }
:root { --ink: #344b58; --paper: #f8f5ec; --olive: #72816b; --blue: #a0b8c8; --line: #cdd5cf; --display: 'Cormorant', Georgia, serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html.invitation-locked { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.9 Arial, Helvetica, sans-serif; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #9b8158; outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
i { font-weight: 400; }
/* The same framing on all three media surfaces preserves the video transition. */
.opening-stage { height: 100svh; position: relative; overflow: hidden; isolation: isolate; background: var(--paper); }
.opening-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.garden-frame { z-index: 0; }
.opening-video { z-index: 1; opacity: 0; pointer-events: none; }
.closed-frame { z-index: 2; pointer-events: none; }
.open-invitation { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); }
.open-invitation:focus-visible { outline-offset: -8px; }
.opening-hint { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); width: 75%; font: 18px/1.5 var(--display); letter-spacing: .025em; text-shadow: 0 1px 6px var(--paper); }
.open-invitation:disabled .opening-hint { visibility: hidden; }
.skip-opening { position: absolute; z-index: 5; top: max(20px, env(safe-area-inset-top)); right: 20px; border: 1px solid #263f5340; background: #f7f3e9dd; color: var(--ink); padding: 10px 15px; font: 11px Arial, sans-serif; border-radius: 2px; }
.opening-status { position: absolute; z-index: 4; bottom: 7%; width: 100%; margin: 0; text-align: center; font: 12px Arial, sans-serif; }
.opening-stage[data-phase="playing"] .opening-video { opacity: 1; }
.opening-stage[data-phase="playing"] .closed-frame, .opening-stage[data-phase="open"] .closed-frame { visibility: hidden; }
.opening-stage[data-phase="open"].keep-video .opening-video { opacity: 1; }
.hero-copy { position: absolute; z-index: 3; top: 17%; left: 50%; transform: translateX(-50%); width: 82%; text-align: center; animation: reveal-names 1.2s ease both; }
.eyebrow { font: 9px/1.7 Arial, sans-serif; letter-spacing: .25em; margin: 0 0 22px; }
.hero-copy .eyebrow { font-size: 9px; letter-spacing: .28em; margin-bottom: 15px; }
h1 { font: 400 clamp(45px, 12vw, 85px)/.95 var(--display); margin: 0 0 25px; letter-spacing: -.025em; }
h1 span { display: block; }
h1 i { display: block; font-size: .68em; line-height: 1.2; color: #8394a0; margin: 5px 0; }
h1:focus { outline: none; }
.date { font: 11px/1.5 Arial, sans-serif; letter-spacing: .24em; margin: 0; }
.discover { position: absolute; z-index: 3; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); text-align: center; text-decoration: none; background: #f7f3e9d9; padding: 9px 22px 2px; font: 9px/1.5 Arial, sans-serif; letter-spacing: .13em; animation: reveal-names 1.2s ease both; }
.discover span { display: block; }
.discover span:last-child { font-size: 26px; line-height: 1; margin-top: 3px; }
/* A continuous, lightly textured sheet, with illustration-led chapters. */
#invitation { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23000' opacity='.035' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
.details-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 27px; row-gap: 15px; max-width: 920px; padding: 35px 24px 10px; margin: auto; font: 10px/1.6 Arial, sans-serif; }
.details-nav a { text-decoration: none; padding: 7px 0; }
.details-nav a:first-child { font: italic 25px/1 var(--display); margin-right: 12px; }
.details-nav a:hover, .text-link:hover { color: #718c9c; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
section { position: relative; isolation: isolate; padding: 105px 24px; margin: auto; text-align: center; overflow: hidden; scroll-margin-top: 25px; }
h2 { font: 400 clamp(42px, 5.4vw, 62px)/.98 var(--display); margin: 0 0 27px; letter-spacing: -.025em; }
h2 i { display: inline-block; color: #778b80; }
h3 { font: 400 34px/1.05 var(--display); margin: 0 0 18px; }
.section-copy { position: relative; z-index: 1; width: 100%; max-width: 455px; margin-inline: auto; }
.section-copy > p:not(.eyebrow):not(.section-note) { max-width: 420px; margin: 0 auto 25px; }
.section-note { font: 10px/1.85 Arial, sans-serif; color: #737c70; max-width: 390px; margin: 28px auto 0; }
.illustration { display: block; width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 48px; padding: 12px 32px; border: 1px solid #91a4a5; background: #536e7e; color: #fff; font: 10px/1.6 Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; border-radius: 30px; transition: background .2s, color .2s; }
.button:hover { background: #455d68; }
.button.outline { background: transparent; color: var(--ink); }
.button.outline:hover { background: #e7eeea; }
.text-link { display: inline-block; font: 10px/1.8 Arial, sans-serif; letter-spacing: .08em; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 8px 3px; border-bottom: 1px solid #a7b6b0; }
.section-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 35px; }
/* Welcome is a full floral paper arch, not a small icon over a text block. */
.welcome-section { padding: 25px 0 80px; }
.welcome-scene { position: relative; width: min(100%, 640px); aspect-ratio: 2/3; margin: auto; }
.floral-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; object-fit: contain; }
.welcome-copy { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); width: 63%; }
.welcome-copy h2 { font-size: clamp(34px, 7.2vw, 58px); margin-bottom: 25px; }
.welcome-copy > p:not(.eyebrow):not(.signature) { font-size: 14px; line-height: 1.9; }
.welcome-copy .eyebrow { font-size: 8px; letter-spacing: .2em; }
.signature { font: italic 34px/1.2 var(--display); margin: 30px 0 0; color: #7a8e99; }
/* Four little arched windows in the paper. */
.countdown-section { padding-top: 50px; padding-bottom: 115px; }
.countdown-section h2 { font-size: clamp(38px, 5vw, 56px); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 42px auto 24px; width: 100%; max-width: 420px; }
.countdown > div { border: 1px solid #bfcac3; border-radius: 60px 60px 0 0; padding: 24px 0 19px; position: relative; }
.countdown > div::before { content: ''; position: absolute; inset: 5px; border: 1px solid #d9ded3; border-radius: inherit; pointer-events: none; }
.countdown b { display: block; font: 400 46px/1 var(--display); margin-bottom: 12px; }
.countdown small { font: 7px/1 Arial, sans-serif; letter-spacing: .15em; }
.little-date { font: italic 23px/1 var(--display); color: #718780; }
/* The venue and banquet open the page back into the illustrated world. */
.venue-section { padding-top: 90px; }
.location-line { font: 9px/1.7 Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.venue-art { max-width: 850px; margin-top: 25px; margin-bottom: 45px; }
.program-section { padding-top: 90px; padding-bottom: 50px; }
.program-heading { max-width: 500px; margin: auto; }
.event-list { position: relative; list-style: none; margin: 55px auto 65px; padding: 0; max-width: 590px; text-align: left; }
.event-list::before { content: ''; position: absolute; top: 27px; bottom: 40px; left: 158px; width: 1px; background: #b9c9c4; }
.event-list li { display: grid; grid-template-columns: 78px 64px 1fr; gap: 16px; position: relative; align-items: start; padding: 20px 0; min-height: 140px; }
.event-list li::before { content: ''; position: absolute; left: 156px; top: 35px; width: 4px; height: 4px; border-radius: 50%; background: #849c8c; }
.event-list time { grid-column: 2; grid-row: 1; font: 25px/1.3 var(--display); padding-top: 7px; }
.event-list svg { grid-column: 1; grid-row: 1; width: 68px; height: 72px; fill: #edf0e7; fill-opacity: .6; stroke: #859b96; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.event-list li > div { grid-column: 3; grid-row: 1; padding-left: 18px; }
.event-list h3 { font-size: 29px; margin-bottom: 10px; }
.event-list p { font-size: 12px; line-height: 1.85; margin: 0; max-width: 330px; }
.banquet-art { max-width: 900px; margin-bottom: 0; }
/* Dress code: a finely outlined arched sheet with paper fashion illustration. */
.dress-section { padding-top: 80px; padding-bottom: 100px; }
.dress-sheet { position: relative; max-width: 650px; padding: 75px 55px 55px; border: 1px solid #bfcac5; border-radius: 260px 260px 0 0; margin: auto; background: #eaf0eb40; }
.dress-sheet::before { content: ''; position: absolute; inset: 8px; border: 1px solid #d4dcd1; border-radius: inherit; pointer-events: none; }
.attire-art { width: min(60%, 260px); margin: 35px auto; }
.palette { display: flex; justify-content: center; gap: 14px; margin: 30px 0; }
.palette span { width: 31px; height: 31px; background: var(--c); border-radius: 50%; outline: 1px solid #a1aaa33d; outline-offset: 4px; }
/* Journey, room key, two letterpress room notes, and a gift with paper ribbon. */
.travel-section { padding-top: 75px; }
.bus-art { max-width: 475px; margin: 20px auto 40px; }
.transfer-times { display: flex; justify-content: center; gap: 25px; max-width: 360px; margin: 35px auto; position: relative; }
.transfer-times::before { content: '↔'; position: absolute; left: 50%; top: 3px; transform: translateX(-50%); color: #a0b3ad; }
.transfer-times div { flex: 1; }
.transfer-times dt { font: 35px/1.2 var(--display); margin-bottom: 12px; }
.transfer-times dd { font: 10px/1.8 Arial, sans-serif; margin: 0; }
.stay-section { padding-top: 60px; }
.key-art { width: 105px; margin: 0 auto 35px; }
.stay-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 800px; margin: 60px auto 30px; }
.stay-list article { position: relative; border: 1px solid #bac8c5; background: #eaf0ec38; padding: 48px 32px 32px; }
.stay-list article::before { content: ''; position: absolute; inset: 6px; border: 1px solid #d1d9d0; pointer-events: none; }
.roman { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); background: var(--paper); padding: 0 22px; font: italic 30px/1 var(--display); color: #829a9b; }
.stay-caption { font: 8px/1.8 Arial, sans-serif; letter-spacing: .2em; color: #7a8b7d; margin-bottom: 22px; }
.stay-list h3 { font-size: 38px; margin-bottom: 25px; }
.stay-list h3 i { color: #7f9487; }
.stay-list article > p:not(.stay-caption) { font-size: 12px; line-height: 1.9; margin-bottom: 25px; }
.stay-list .text-link { font-size: 9px; }
.gifts-section { padding-top: 65px; padding-bottom: 95px; background: linear-gradient(transparent, #e6ece16b, transparent); }
.gift-composition { display: flex; align-items: center; justify-content: center; gap: 55px; max-width: 850px; margin: auto; }
.gift-art { width: 270px; margin: 0; flex-shrink: 0; }
.gift-composition h2 { font-size: clamp(38px, 4.6vw, 54px); }
.gift-composition .section-copy { max-width: 440px; }
.small-flourish { display: block; color: #9aaea1; font: 35px/1 var(--display); margin-top: 25px; }
/* Reply as a final, carefully bordered piece of stationery. */
.rsvp-section { padding-top: 65px; }
.reply-sheet { position: relative; width: min(100%, 650px); border: 1px solid #c4cec5; padding: 65px 65px 40px; margin: auto; background: #fcfaf345; }
.reply-sheet::before, .reply-sheet::after { content: ''; position: absolute; width: 34px; height: 34px; border-color: #97afb2; border-style: solid; pointer-events: none; }
.reply-sheet::before { left: 8px; top: 8px; border-width: 1px 0 0 1px; }
.reply-sheet::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.reply-sheet h2 { font-size: clamp(44px, 5vw, 58px); }
.reply-sheet .section-copy > p:not(.eyebrow) { font-size: 12px; }
form { max-width: 400px; text-align: left; margin: 45px auto 0; }
label { display: block; font: 11px/1.7 Arial, sans-serif; margin-bottom: 25px; }
input, select, textarea { display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid #b8c6bc; border-radius: 0; padding: 12px 0; font: 19px/1.4 var(--display); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #89978e; opacity: 1; }
textarea { resize: vertical; min-height: 80px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 11px/1.7 Arial, sans-serif; padding: 0; margin-bottom: 12px; }
.attendance-options { margin-bottom: 26px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 11px; line-height: 1.6; margin-bottom: 0; cursor: pointer; }
.choice input { display: inline-block; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #769292; flex-shrink: 0; }
.plus-one-choice { margin-bottom: 24px; }
form .button { width: 100%; margin-top: 5px; }
.form-note { font: 9px/1.8 Arial, sans-serif; color: #7a8379; text-align: center; margin: 20px 0 0; }
#result { font: 12px/1.8 Arial, sans-serif; margin: 18px 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.closing-section { text-align: center; padding: 25px 24px 60px; }
.closing-monogram { display: inline-block; font: 40px/1 var(--display); color: #90a6a5; margin-bottom: 45px; }
.closing-monogram i { font-size: 23px; }
.closing-section > p:not(.demo-note) { font: 37px/1.1 var(--display); margin: 0 0 30px; }
.closing-section > p i { color: #829383; }
.closing-signature { display: block; font: italic 30px/1.2 var(--display); margin-bottom: 20px; }
.closing-section small { display: block; font: 8px/1.8 Arial, sans-serif; letter-spacing: .15em; }
.demo-note { max-width: 360px; margin: 35px auto 0; font: 9px/1.8 Arial, sans-serif; color: #7e897e; }
/* Content remains visible without IntersectionObserver or with reduced motion. */
.reveal-ready .reveal { opacity: 0; translate: 0 24px; transition: opacity .85s ease, translate 1s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; translate: 0 0; }
@keyframes reveal-names { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  section { padding: 75px 24px; }
  .details-nav { column-gap: 22px; row-gap: 7px; padding: 23px 20px 12px; font-size: 9px; }
  .details-nav a:first-child { margin-right: 0; }
  .welcome-section { padding: 10px 0 65px; }
  .welcome-copy { top: 29%; width: 62%; }
  .welcome-copy h2 { font-size: clamp(30px, 8vw, 44px); margin-bottom: 18px; }
  .welcome-copy .eyebrow { font-size: 6px; letter-spacing: .15em; margin-bottom: 18px; }
  .welcome-copy > p:not(.eyebrow):not(.signature) { font-size: 12px; line-height: 1.85; }
  .signature { font-size: 26px; margin-top: 20px; }
  .countdown-section { padding-top: 25px; padding-bottom: 75px; }
  .countdown { gap: 8px; }
  .countdown > div { padding-top: 21px; }
  .countdown b { font-size: 36px; }
  .countdown small { font-size: 6px; letter-spacing: .08em; }
  .venue-section { padding-top: 60px; padding-inline: 0; }
  .venue-section .section-copy { padding-inline: 26px; }
  .venue-art { width: 116%; max-width: none; margin: 25px -8% 30px; }
  .program-section { padding-top: 55px; padding-bottom: 25px; }
  .event-list { margin-top: 38px; margin-bottom: 35px; }
  .event-list li { grid-template-columns: 45px 43px 1fr; gap: 10px; min-height: 136px; padding-block: 18px; }
  .event-list::before { left: 102px; }
  .event-list li::before { left: 100px; }
  .event-list svg { width: 43px; height: 53px; }
  .event-list time { font-size: 22px; }
  .event-list li > div { padding-left: 15px; }
  .event-list h3 { font-size: 25px; }
  .event-list p { font-size: 12px; line-height: 1.85; }
  .banquet-art { width: 120%; margin-inline: -10%; }
  .dress-section { padding-top: 55px; }
  .dress-sheet { padding: 55px 26px 40px; border-radius: 190px 190px 0 0; }
  .dress-sheet h2 { font-size: 42px; }
  .attire-art { width: 70%; margin-top: 25px; margin-bottom: 30px; }
  .dress-sheet .section-copy > p:not(.eyebrow):not(.section-note) { font-size: 12px; }
  .bus-art { width: 110%; max-width: none; margin: 20px -5% 30px; }
  .key-art { width: 90px; }
  .stay-list { grid-template-columns: 1fr; gap: 40px; max-width: 360px; margin-top: 48px; }
  .stay-list article { padding: 40px 30px 30px; }
  .stay-list h3 { font-size: 36px; }
  .gift-composition { flex-direction: column; gap: 28px; }
  .gift-art { width: 185px; margin-inline: auto; }
  .gifts-section { padding-top: 45px; padding-bottom: 60px; }
  .rsvp-section { padding-top: 45px; padding-inline: 16px; }
  .reply-sheet { padding: 48px 27px 28px; }
  .reply-sheet h2 { font-size: 44px; }
  .closing-section > p:not(.demo-note) { font-size: 32px; }
}
@media (max-width: 359px) {
  .welcome-copy { top: 27%; width: 61%; }
  .welcome-copy > p:not(.eyebrow):not(.signature) { font-size: 11px; }
  .welcome-copy h2 { font-size: 28px; }
  .signature { font-size: 22px; margin-top: 15px; }
  .event-list li { grid-template-columns: 34px 39px 1fr; }
  .event-list svg { width: 32px; }
  .event-list::before { left: 87px; }
  .event-list li::before { left: 85px; }
  .event-list h3 { font-size: 23px; }
}
@media (min-aspect-ratio: 1/1) {
  .hero-copy { top: 5%; }
  h1 { font-size: clamp(50px, 8vh, 76px); }
  .opening-hint { bottom: 8%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready .reveal { opacity: 1; translate: none; }
}
@media print { .reveal-ready .reveal { opacity: 1; translate: none; } }
