:root {
  --ink: #211f1a; --paper: #f4f0e8; --gold: #d0b07a; --muted: #b8b2a5; --line: #d4cdc0;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'DM Sans', Arial, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color: var(--ink); background: var(--paper); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-180%); background: var(--paper); padding: 1rem; z-index: 100; }
.skip-link:focus { transform: none; }

.film-loader {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px;
  background: linear-gradient(180deg, #14110ecc 0%, #211f1af2 45%, #211f1af7 100%);
  color: var(--paper); transition: opacity 420ms var(--ease), visibility 420ms var(--ease);
}
.film-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.film-loader-label { font: 500 11px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #f2d6a5; }
.film-loader-track {
  width: min(280px, 70vw); height: 2px; background: #403a30; overflow: hidden;
}
.film-loader-track span {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
}
.film-loader-pct { font: 400 12px/1 var(--serif); color: #cbc6bb; letter-spacing: .04em; }

/* Dedicated film and copy cells: no type covers any part of the source frame. */
.journey { height: 950svh; background: var(--ink); color: var(--paper); }
.journey-stage {
  position: sticky; top: 0; height: 100svh; min-height: 560px; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: 54px minmax(0, 1fr) 218px 44px;
  padding-bottom: env(safe-area-inset-bottom, 0px); overflow: clip;
}
.journey-stage { touch-action: none; }
.site-header { grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 22px; }
.monogram { display: inline-flex; align-items: center; min-height: 44px; font: 500 26px var(--serif); letter-spacing: -.08em; }
.monogram span { font-style: italic; font-weight: 400; color: var(--gold); font-size: .65em; margin: 0 .14em; }
.header-place { display: none; }
.header-link { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.header-link span { font-size: 16px; color: var(--gold); }
.film-region { grid-row: 2; position: relative; display: flex; justify-content: center; min-height: 0; padding: 0 18px; }
.film-border { height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border: 1px solid #75654b; padding: 4px; }
#journey-video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.film-side-note { position: absolute; bottom: 0; right: 11px; writing-mode: vertical-rl; font-size: 8px; letter-spacing: .17em; text-transform: uppercase; color: #aaa28f; }
.copy-region { grid-row: 3; position: relative; min-width: 0; padding: 0 20px; }
.copy-ornament { display: none; }
.chapter-copy { position: absolute; inset: 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; text-align: center; pointer-events: none; }
.chapter-copy.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.eyebrow, .small-label { font: 500 9px/1.6 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.chapter-copy .eyebrow { color: var(--gold); font-size: 8px; letter-spacing: .13em; margin-bottom: 8px; }
.chapter-copy h1 { font: 400 clamp(2.5rem, 11.5vw, 3.6rem)/1 var(--serif); letter-spacing: -.055em; }
.chapter-copy h1 em { font-size: .65em; color: var(--gold); margin: 0 2px; }
.chapter-copy h2 { font: 400 clamp(1.8rem, 8vw, 2.5rem)/.94 var(--serif); letter-spacing: -.035em; }
.chapter-copy h2 em { font-weight: 400; color: #dbbd8c; }
.copy-note { margin-top: 11px; color: #cbc6bb; font: 400 12px/1.6 var(--sans); max-width: 36em; text-wrap: pretty; }
.hero-date { margin-top: 13px; font: 500 8px/1.6 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.hero-date span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .09em; }
.chapter-copy .text-link { font-size: 9px; margin-top: 12px; padding: 6px 0; }
.chapter-nav { display: none; }
.journey-footer { grid-row: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 22px; border-top: 1px solid #4d473c; }
.chapter-caption { display: flex; gap: 9px; align-items: center; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.chapter-caption b { font-weight: 400; color: var(--gold); }
.scroll-cue { border: 0; background: none; padding: 0; min-height: 44px; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.scroll-cue span { color: var(--gold); display: inline-block; margin-left: 8px; font-size: 15px; }
.media-status { position: absolute; top: 56px; left: 20px; padding: 6px 10px; background: var(--ink); color: var(--gold); font-size: 10px; z-index: 2; max-width: calc(100% - 40px); }
.media-status:empty { display: none; }
.progress { position: absolute; bottom: 0; height: 2px; width: 100%; background: #403a30; }
.progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--gold); }

.section-shell { padding: 64px 24px; }
.section-kicker { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 8px; line-height: 1.7; letter-spacing: .13em; text-transform: uppercase; color: #686153; }
.section-kicker > span:last-child { flex-shrink: 0; }
.small-label { color: #76603c; }
.section-shell h2 { font: 400 clamp(2.5rem, 8vw, 4rem)/.98 var(--serif); letter-spacing: -.035em; }
.section-shell h2 em { font-weight: 400; }
.letter-grid { display: grid; gap: 30px; padding-top: 48px; }
.letter-grid .small-label { margin-bottom: 17px; }
.body-column { color: #665f53; font-size: 13px; line-height: 1.9; }
.body-column p + p { margin-top: 18px; }
.signature { display: block; margin-top: 28px; font: italic 30px var(--serif); color: var(--ink); }
.family-note { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); }
.family-note > span { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: #766b58; }
.family-note p { font: 400 21px/1.4 var(--serif); margin-top: 12px; }
.family-note i { font-size: 17px; color: #a37c42; padding: 0 3px; }
.celebrations { background: #e7dfd1; scroll-margin-top: 16px; }
.section-heading { display: flex; flex-direction: column; gap: 28px; padding: 48px 0 38px; }
.text-link { display: inline-flex; gap: 22px; align-items: center; width: fit-content; min-height: 44px; border-bottom: 1px solid currentColor; padding: 10px 0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.text-link span { font-size: 18px; }
.event { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 28px 0; border-top: 1px solid #c9beac; }
.event-number { font-size: 9px; color: #856b45; padding-top: 5px; }
.event h3 { font: 400 29px/1.1 var(--serif); margin: 8px 0; letter-spacing: -.02em; }
.event > div > p:not(.small-label) { font-size: 11px; color: #676050; line-height: 1.7; }
.event-details { grid-column: 2; }
.event-details > span { display: block; margin-top: 4px; font-size: 10px; color: #716959; line-height: 1.7; }
.venue-note { border-top: 1px solid #c9beac; padding-top: 20px; font-size: 9px; line-height: 1.8; color: #72644e; letter-spacing: .04em; }
.keepsake-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 36px; padding-top: 44px; }
.keepsake-grid figure img { width: 100%; height: auto; }
.keepsake-grid figcaption { font-size: 8px; color: #786e5e; line-height: 1.6; margin-top: 10px; }
.keepsake-copy { grid-column: 1 / -1; grid-row: 1; }
.keepsake-copy h2 { margin: 18px 0 22px; }
.keepsake-copy p { font-size: 12px; line-height: 1.9; color: #665f53; max-width: 26em; }
.ornament { display: block; color: #a4814f; font-size: 28px; margin-top: 24px; }
.sea-photo { margin-top: 42px; }
.guest-notes { background: #ede7dc; display: grid; gap: 36px; }
.notes-heading h2 { margin-top: 17px; }
.notes-list details { border-top: 1px solid #cdc3b3; }
.notes-list details:last-child { border-bottom: 1px solid #cdc3b3; }
summary { display: flex; justify-content: space-between; gap: 20px; padding: 21px 0; cursor: pointer; font-size: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { color: #856b45; font-size: 18px; line-height: 1; }
details[open] summary span { transform: rotate(45deg); }
details p { padding: 0 22px 24px 0; font-size: 12px; color: #686153; line-height: 1.9; }
.closing { background: var(--ink); color: var(--paper); text-align: center; padding-top: 80px; padding-bottom: 24px; }
.closing-mark { font: 44px var(--serif); color: var(--gold); display: block; margin-bottom: 35px; }
.closing .eyebrow { color: var(--gold); max-width: 27em; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(2.7rem, 9vw, 6.5rem); }
.closing h2 em { color: #d8ba89; }
.closing-copy { font-size: 12px; line-height: 1.9; margin-top: 28px; color: #c3bbac; }
.reply-by { color: #b5ac9d; font-size: 9px; margin-top: 17px; }
.closing-footer { display: flex; align-items: center; flex-direction: column; gap: 17px; margin-top: 80px; border-top: 1px solid #494338; padding-top: 24px; }
.closing-footer p, .closing-footer > a:last-child { color: #b7ae9e; font-size: 9px; letter-spacing: .06em; }
.closing-footer > a:last-child { min-height: 44px; display: flex; align-items: center; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid #b4a080; padding: 36px 24px 28px; width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 36px); overscroll-behavior: contain; }
dialog::backdrop { background: #17140ecc; }
dialog h2 { font: 400 44px/1 var(--serif); letter-spacing: -.03em; margin: 14px 0; }
.dialog-close { position: absolute; top: 5px; right: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; }
.demo-note { color: #746447; font-size: 11px; line-height: 1.7; margin-bottom: 22px; }
.noscript-note { padding: 20px; background: var(--paper); color: var(--ink); }

@media (min-width: 700px) {
  .journey-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; grid-template-rows: 80px minmax(0, 1fr) 70px; padding: 0 32px; gap: 0 22px; }
  .site-header { grid-column: 1 / -1; padding: 0; }
  .header-place { display: block; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
  .monogram { font-size: 33px; }
  .copy-region { grid-column: 1; grid-row: 2; padding: 0; }
  .chapter-copy { inset: 0; align-items: flex-start; text-align: left; }
  .chapter-copy h1 { font-size: clamp(4.3rem, 8vw, 7rem); line-height: .83; }
  .chapter-copy h1 span { display: block; }
  .chapter-copy h1 em { display: block; font-size: .46em; margin: 12px 0 8px 8px; }
  .chapter-copy h2 { font-size: clamp(2.6rem, 4.8vw, 5rem); line-height: .98; }
  .chapter-copy .eyebrow { margin-bottom: 23px; font-size: 8px; }
  .copy-note { font-size: 12px; margin-top: 25px; line-height: 1.9; }
  .hero-date { margin-top: 30px; font-size: 9px; }
  .hero-date span { margin-top: 5px; }
  .copy-ornament { display: block; position: absolute; bottom: 4px; left: 0; color: var(--gold); font-size: 28px; }
  .film-region { grid-column: 2; grid-row: 2; padding: 0; align-items: center; }
  .film-border { width: 100%; height: auto; max-height: 100%; aspect-ratio: 9 / 16; }
  .film-side-note { right: -16px; bottom: 12px; font-size: 7px; }
  .chapter-nav { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; justify-content: center; }
  .chapter-nav button { border: 0; background: none; min-height: 48px; width: 44px; display: flex; justify-content: center; align-items: center; gap: 8px; }
  .chapter-nav span { font-size: 8px; color: #9c9485; }
  .chapter-nav i { height: 1px; width: 8px; background: #776b55; }
  .chapter-nav [aria-current] span { color: var(--gold); }
  .chapter-nav [aria-current] i { background: var(--gold); width: 16px; }
  .journey-footer { grid-column: 1 / -1; grid-row: 3; margin: 15px 0 0; }
  .chapter-caption, .scroll-cue { font-size: 9px; }
  .media-status { position: static; padding: 0; font-size: 9px; }
  .section-shell { padding: 90px 48px; }
  .section-kicker { font-size: 9px; }
  .letter-grid { grid-template-columns: 1.1fr 1fr; gap: 50px; padding-top: 65px; }
  .section-shell h2 { font-size: clamp(2.8rem, 5.2vw, 5rem); }
  .body-column { max-width: 36em; }
  .family-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .family-note p { margin: 0; }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 65px; padding-bottom: 45px; }
  .event { grid-template-columns: 38px 1.2fr 1fr; align-items: center; padding: 34px 0; gap: 24px; }
  .event-details { grid-column: auto; }
  .event h3 { font-size: 32px; }
  .keepsake-grid { grid-template-columns: 1fr 1.65fr 1fr; align-items: center; gap: 28px; padding-top: 65px; }
  .keepsake-copy { grid-row: auto; grid-column: auto; }
  .keepsake-copy h2 { font-size: 36px; }
  .keepsake-copy .small-label { font-size: 8px; }
  .sea-photo { margin-top: 100px; }
  .guest-notes { grid-template-columns: 1fr 1.2fr; gap: 60px; }
  .closing { padding-top: 100px; padding-bottom: 28px; }
  .closing h2 { font-size: clamp(4rem, 7vw, 7rem); }
  .closing-footer { flex-direction: row; justify-content: space-between; margin-top: 95px; }
}
@media (min-width: 1100px) {
  .journey-stage { padding: 0 clamp(48px, 6vw, 110px); grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) 44px; column-gap: 60px; grid-template-rows: 100px minmax(0, 1fr) 85px; }
  .chapter-copy h1 { font-size: clamp(6rem, 8.5vw, 10rem); }
  .chapter-copy .eyebrow { font-size: 9px; }
  .chapter-copy h2 { font-size: clamp(3rem, 4.6vw, 5.5rem); }
  .film-border { width: auto; height: 100%; max-width: 100%; }
  .film-side-note { right: -27px; bottom: 0; font-size: 8px; }
  .copy-note { font-size: 13px; }
  .hero-date { margin-top: 40px; font-size: 10px; }
  .hero-date span { font-size: 9px; }
  .section-shell { padding: 110px max(6vw, calc((100vw - 1300px) / 2)); }
  .letter-grid { gap: 13%; }
  .section-shell h2 { font-size: clamp(3rem, 4.8vw, 5.5rem); }
  .family-note { margin-top: 70px; }
  .keepsake-grid { grid-template-columns: 1fr 1.6fr 1fr; gap: 65px; }
  .keepsake-copy h2 { font-size: clamp(2.5rem, 3.2vw, 4rem); }
  .event h3 { font-size: 38px; }
  .closing h2 { font-size: clamp(4rem, 7vw, 8rem); }
  .closing { padding-bottom: 28px; }
}
@media (max-width: 699px) and (max-height: 740px) {
  .journey-stage { grid-template-rows: 50px minmax(0, 1fr) 190px 44px; }
  .copy-note { font-size: 10px; margin-top: 8px; line-height: 1.7; }
  .chapter-copy h2 { font-size: 28px; }
  .chapter-copy h1 { font-size: 39px; }
  .hero-date { margin-top: 9px; }
  .chapter-copy .eyebrow { font-size: 7px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .journey-stage { min-height: 320px; grid-template-rows: 50px minmax(0, 1fr) 48px; grid-template-columns: 1fr .8fr; gap: 0 32px; padding: 0 24px; }
  .site-header, .journey-footer { grid-column: 1 / -1; }
  .site-header { padding: 0; }
  .film-region { grid-column: 2; grid-row: 2; padding: 0; }
  .film-border { height: 100%; width: auto; }
  .copy-region { grid-column: 1; grid-row: 2; }
  .chapter-copy { inset: 0; text-align: left; align-items: flex-start; }
  .chapter-copy h1 { font-size: 40px; line-height: 1; }
  .chapter-copy h1 span, .chapter-copy h1 em { display: inline; }
  .chapter-copy h1 em { margin: 0 3px; font-size: .65em; }
  .chapter-copy h2 { font-size: 30px; }
  .chapter-copy .eyebrow { margin-bottom: 10px; font-size: 7px; }
  .copy-note { font-size: 10px; margin-top: 10px; }
  .hero-date { margin-top: 15px; font-size: 8px; }
  .copy-ornament, .chapter-nav, .header-place { display: none; }
  .journey-footer { grid-row: 3; margin: 6px 0 0; }
}
@media (hover: hover) {
  .text-link:hover, .header-link:hover { color: #a5824c; }
  .chapter-nav button:hover span { color: var(--gold); }
}
html.static-journey .journey { height: auto; }
html.static-journey .journey-stage { position: relative; }
html.static-journey .chapter-nav { visibility: hidden; }

/* Continuous full-screen cinema, in the spirit of the Kedarnath invitation. */
.journey-stage {
  display: block;
  padding: 0;
  min-height: 460px;
  isolation: isolate;
}
.film-region {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  z-index: -2;
}
.film-border {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  padding: 0;
}
#journey-video { object-fit: cover; object-position: 50% 50%; }
.film-region::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #080b0c55 0%, transparent 32%, transparent 53%, #0c0b086b 100%);
}
.film-side-note, .copy-ornament { display: none; }
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px clamp(22px, 4vw, 60px);
  z-index: 5;
  text-shadow: 0 1px 10px #0009;
}
.header-place { color: #f0e8d8; }
.copy-region { position: absolute; inset: 0; padding: 0; pointer-events: none; }
.chapter-copy {
  inset: 0;
  padding: 90px 28px 100px;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}
.chapter-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 37% at 50% 58%, #100b0866, transparent 100%);
}
.chapter-copy h1 { font-size: clamp(4.2rem, 12vw, 9rem); line-height: .92; letter-spacing: -.045em; }
.chapter-copy h1 span { display: inline; }
.chapter-copy h1 em { display: inline; font-size: .65em; margin: 0 .06em; color: #eed7ac; }
.chapter-copy h2 { font-size: clamp(2.8rem, 6vw, 6rem); line-height: .98; }
.chapter-copy h2 em { color: #f7e7c9; }
.chapter-copy h1, .chapter-copy h2 { text-shadow: 0 2px 24px #100b0870; }
.chapter-copy .eyebrow { color: #f6e4bd; margin-bottom: 15px; font-size: 9px; text-shadow: 0 1px 8px #000; }
.copy-note { color: #fff8ed; font: 400 clamp(1rem, 1.6vw, 1.3rem)/1.5 var(--serif); margin-top: 20px; text-shadow: 0 1px 12px #000c; }
.hero-date { margin-top: 24px; font-size: 10px; text-shadow: 0 1px 8px #000; }
.hero-date span { color: #fff1da; font-size: 9px; }
.chapter-copy[data-start='0'] { justify-content: flex-start; padding-top: 15svh; }
.chapter-copy[data-start='0']::before { background: linear-gradient(180deg, #0d121447, transparent 55%); }
.chapter-copy[data-start='7'], .chapter-copy[data-start='15.5'] { justify-content: flex-end; padding-bottom: 13svh; }
.chapter-copy[data-start='7']::before, .chapter-copy[data-start='15.5']::before { background: linear-gradient(0deg, #100c0aab, transparent 65%); }
.chapter-copy[data-start='26.5'] { justify-content: flex-end; padding-bottom: 12svh; }
.chapter-copy[data-start='26.5']::before { background: linear-gradient(0deg, #100c0ac7, transparent 90%); }
.chapter-copy[data-start='37'] { justify-content: flex-start; padding-top: 17svh; }
.chapter-copy[data-start='37']::before { background: linear-gradient(180deg, #1419168c, transparent 85%); }
.chapter-copy[data-start='44'] { justify-content: flex-end; padding-bottom: 13svh; }
.chapter-copy[data-start='44']::before { background: linear-gradient(0deg, #0b1115bb, transparent 95%); }
.film-events { margin-top: 20px; display: grid; gap: 12px; text-align: left; }
.film-events p { font: 18px var(--serif); color: #fff7e8; text-shadow: 0 1px 10px #000; }
.film-events span { display: inline-block; width: 150px; color: #e7cfaa; font: 9px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.chapter-copy .text-link { color: #f5e6cf; }
.chapter-nav { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 4; }
.chapter-nav span { color: #fff9ec; text-shadow: 0 1px 8px #000; }
.chapter-nav i { background: #fff8d77a; }
.journey-footer {
  position: absolute;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: clamp(22px, 4vw, 60px);
  right: clamp(22px, 4vw, 60px);
  margin: 0;
  border: 0;
  text-shadow: 0 1px 8px #000;
}
.media-status { position: static; padding: 5px; background: #211f1a99; color: #f2d6a5; }
.progress { z-index: 6; }
@media (max-width: 699px) {
  .chapter-copy h1 { font-size: clamp(3.7rem, 16vw, 5rem); }
  .chapter-copy h1 span { display: block; }
  .chapter-copy h1 em { display: block; margin: 4px 0; font-size: .45em; }
  .chapter-copy h2 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .chapter-copy[data-start='0'] { padding-top: 11svh; }
  .chapter-copy[data-start='0'] .copy-note { margin-top: 13px; }
  .hero-date { margin-top: 14px; }
  .chapter-copy .eyebrow { font-size: 8px; max-width: 30em; }
  .film-events p { font-size: 16px; }
  .film-events span { width: 126px; font-size: 8px; }
  .media-status { position: absolute; bottom: 44px; top: auto; left: 0; font-size: 9px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .journey-stage { min-height: 320px; }
  .chapter-copy { padding: 60px 70px; }
  .chapter-copy[data-start] { justify-content: center; padding-top: 60px; padding-bottom: 60px; }
  .chapter-copy h1 { font-size: 55px; }
  .chapter-copy h1 span, .chapter-copy h1 em { display: inline; }
  .chapter-copy h2 { font-size: 38px; }
  .copy-note { font-size: 15px; margin-top: 12px; }
  .hero-date { margin-top: 12px; }
  .film-events { gap: 5px; margin-top: 12px; }
}
/* The film's last frame is the document's end. Details live in dialogs. */
body { background: var(--ink); }
.journey-stage { height: 100dvh; }
.site-header { justify-content: flex-end; }
.header-place { margin-right: auto; }
.hero-content { display: flex; flex-direction: column; align-items: center; width: 100%; transform-origin: 50% 0; }
.hero-depth { will-change: clip-path; }
.hero-depth h1 { color: #402822; font-weight: 500; text-shadow: 0 1px 1px #fff6; }
.hero-depth h1 em { color: #70502f; }
.hero-depth .eyebrow { color: #413326; font-weight: 600; text-shadow: none; }
.hero-depth .copy-note { color: #45312b; font-weight: 500; text-shadow: none; }
.hero-depth .hero-date, .hero-depth .hero-date span { color: #493a2a; font-weight: 600; text-shadow: none; }
.chapter-copy.hero-depth::before { background: none; }
#wedding-details { width: min(640px, calc(100% - 28px)); }
.details-intro { font-size: 12px; line-height: 1.8; color: #675e50; margin: 18px 0 24px; }
#wedding-details .event { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 22px 0; }
#wedding-details .event-details { grid-column: 2; }
#wedding-details .text-link { margin: 16px 24px 16px 0; }
#wedding-details h3 { font-size: 28px; }
@media (min-width: 700px) and (min-height: 601px) {
  .chapter-copy.hero-depth { padding-top: 10svh; }
}
@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; }
  .journey-stage { position: relative; }
  .chapter-nav { visibility: hidden; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

body:has(dialog[open]) { overflow: hidden; }
dialog { margin: auto; width: min(680px, calc(100% - 24px)); max-height: 90dvh; padding: 0; border: 1px solid #d7b563; border-radius: 18px; background: #11161c; color: #fff1d3; overscroll-behavior: contain; }
dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.dialog-close { display: block; margin-left: auto; color: inherit; padding: .7rem; font: 500 .9rem var(--sans); }
.event-subtitle { text-align: center; font-style: italic; }
dialog h2 { font: 400 clamp(1.5rem, 5vw, 2.1rem)/1.4 var(--serif); text-align: center; margin: .75rem 0 1.5rem; overflow-wrap: anywhere; }
dialog h3 { font-size: 1.7rem; margin-top: 1.5rem; }
dialog p { font-size: 1.2rem; line-height: 1.6; }
.event-details { display: grid; gap: 1rem; }
.event-details small, .field-help { font: .85rem/1.6 var(--sans); }
.directions { font: 500 .9rem/1.6 var(--sans); text-decoration: underline; text-underline-offset: 4px; padding: .5rem 0; }
.dress-code { padding: 1rem; border: 1px solid currentColor; border-radius: 8px; }
[hidden] { display: none !important; }
dialog[data-theme="haldi"] { color: #49280b; background: radial-gradient(circle at top left, #eaa82c55, transparent 45%), #fff2b9; border: 3px double #9e5c12; }
dialog[data-theme="wedding"] { background: #591d2c; color: #fff1ce; border: 5px double #e8cb85; }

/* Keep the reference's temple film, with a protected reading surface for copy. */
.chapter-copy.hero-depth { clip-path: none !important; will-change: auto; padding-top: max(70px, 10svh); }
.hero-content { width: fit-content; max-width: min(100%, 850px); padding: 20px clamp(16px, 4vw, 36px); border-radius: 16px; background: #f4eee3f5; box-shadow: 0 8px 36px #30291c18; }
.hero-date { padding: 12px 18px; border: 1px solid #84653d; border-radius: 6px; background: #fff9ed; font-size: 15px; line-height: 1.6; letter-spacing: .06em; }
.hero-date span { font-size: 13px; margin-top: 4px; letter-spacing: .03em; }
.chapter-copy .eyebrow { font-size: 12px; line-height: 1.6; max-width: 36em; }
.chapter-copy .copy-note { font-size: clamp(19px, 2vw, 24px); line-height: 1.55; max-width: 30em; }
.chapter-copy:not(.hero-depth)::before { background: linear-gradient(0deg, #16110fe8, #16110f99 65%, #16110f44); }
.chapter-copy h2 { font-size: clamp(2.3rem, 5.5vw, 5rem); line-height: 1.06; color: #fff9ed; }
.chapter-copy .text-link { font-size: 14px; }
.film-events { max-width: 100%; gap: 14px; }
.film-events p { font-size: 20px; line-height: 1.4; }
.film-events span { display: block; width: auto; font-size: 12px; line-height: 1.6; color: #fff0ce; }
.site-header { background: #211f1ae6; }
.header-place, .header-link { font-size: 12px; color: #fff5df; }
.chapter-nav { right: 4px; }
.chapter-nav button { min-height: 44px; }
.journey-footer .scroll-cue, .chapter-caption { font-size: 11px; }
#wedding-details { background: #f5efe3; color: #33271c; }
#wedding-details .details-intro, #wedding-details .venue-note { font-size: 16px; line-height: 1.7; color: #51412f; }
#wedding-details .event { display: flex; flex-direction: column; padding: 24px; margin: 18px 0; border-radius: 12px; gap: 12px; }
#wedding-details .event p { color: inherit; margin: 0; }
#wedding-details .event .small-label { font-size: 13px; }
#wedding-details .event[data-theme="cocktail"] { background: #15171a; color: #f6e4b5; border: 1px solid #b9974b; }
#wedding-details .event[data-theme="haldi"] { background: radial-gradient(circle at 0 0, #efc247, transparent 65%), #fff2b9; color: #49280b; border: 3px double #aa6415; }
#wedding-details .event[data-theme="haldi"]::before { content: '❁ ❁ ❁'; text-align: center; letter-spacing: .6rem; color: #96500c; font-size: 28px; }
#wedding-details .event[data-theme="wedding"] { background: #591d2c; color: #fff1ce; border: 5px double #d8b769; }
#wedding-details .event[data-theme="wedding"]::before { content: '❖'; text-align: center; color: #e8cb85; border-bottom: 4px double; padding-bottom: 8px; }
#wedding-details .event h3 { color: inherit; line-height: 1.15; }
:focus-visible { outline: 3px solid #b87716; outline-offset: 4px; }
html.static-journey .journey-stage { height: auto; min-height: 0; overflow: visible; touch-action: auto; }
html.static-journey .copy-region { position: relative; }
html.static-journey .chapter-copy { position: relative; min-height: 100svh; padding: 90px 24px; opacity: 1 !important; visibility: visible; pointer-events: auto; }
html.static-journey .film-region { position: absolute; inset: 0; background: #302c25 url('https://cdn.riwaaz.in/wedding-websites/themes/rameswaram/poster.jpg') center top / auto 100svh repeat-y; }
html.static-journey .film-border { display: none; }
html.static-journey .journey-footer, html.static-journey .chapter-nav { display: none; }
@media (max-width: 699px) {
  .header-place { display: none; }
  .chapter-copy { padding-left: 24px; padding-right: 36px; }
  .chapter-copy h1 { font-size: clamp(3.2rem, 14vw, 4.6rem); }
  .hero-content .eyebrow { font-size: 11px; }
  .hero-content .copy-note { font-size: 19px; }
  .chapter-copy[data-start='44'] { padding-bottom: 80px; }
  .chapter-copy[data-start='44'] h2 { font-size: 2.4rem; }
  .chapter-caption { display: none; }
}

/* Abhiram reference: open typography over the film, without a header or hero card. */
.site-header { background: transparent; box-shadow: none; border: 0; padding: 24px 28px; }
.header-link { color: #49382b; text-shadow: 0 1px 8px #fff9; font-size: 11px; letter-spacing: .16em; }
.hero-content { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; max-width: min(92vw, 850px); }
.chapter-copy.hero-depth { padding-top: clamp(78px, 11svh, 104px); padding-bottom: 0; }
.hero-depth .eyebrow { margin-bottom: 12px; }
.hero-depth h1 { font-size: clamp(4rem, 7vw, 7rem); line-height: .86; letter-spacing: -.05em; }
.hero-depth h1 span, .hero-depth h1 em { display: block; }
.hero-depth h1 em { font-size: .4em; margin: 5px 0; }
.hero-depth .copy-note { margin-top: 18px; max-width: 24rem; line-height: 1.4; }
.hero-depth .hero-date { position: absolute; bottom: 85px; left: 20px; right: 20px; border: 0; border-radius: 0; background: none; padding: 0; margin: 0; color: #fff8e9; text-shadow: 0 1px 4px #000, 0 2px 14px #000; font-size: 15px; }
.hero-depth .hero-date span { color: #fff8e9; text-shadow: inherit; font-size: 12px; }
.film-region::after { background: linear-gradient(180deg, transparent 35%, #15120d22 72%, #15120dc4); }
.chapter-caption { display: none; }
.invitation-locked, .invitation-locked body { overflow: hidden; }
.film-open-button { margin-top: 22px; padding: 15px 28px; border: 1px solid #bc9c65; color: #f6e8cd; background: transparent; font: 500 14px var(--sans); cursor: pointer; }
.playback-controls { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 20px; display: flex; gap: 8px; z-index: 20; }
.playback-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 15px; border: 1px solid #f4e8cc66; border-radius: 30px; background: #28241ddd; color: #fff4df; cursor: pointer; font: 14px var(--sans); }
.playback-toggle > span:first-child { font-size: 18px; }
.control-label { font-size: 11px; letter-spacing: .04em; }
#wedding-details { width: min(1050px, calc(100% - 24px)); padding: clamp(24px, 5vw, 64px); border: 0; border-radius: 2px; background: #f7f3eb; }
#wedding-details > .small-label { color: #796044; margin-top: 16px; font-size: 11px; }
#wedding-details > h2 { font-size: clamp(38px, 6vw, 60px); text-align: left; margin-bottom: 18px; }
#wedding-details .details-intro { max-width: 36rem; margin-bottom: 36px; }
#wedding-details .event { display: grid; grid-template-columns: 1fr 1.1fr; padding: 0; margin: 0 0 36px; gap: 0; border: 0; border-radius: 0; background: #eee7da; color: #3d3023; overflow: hidden; }
#wedding-details .event::before { display: none; }
.event-art { min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; color: #fff4df; background: linear-gradient(0deg,#15100ee6, #15100e08 75%), var(--event-image) center/cover; }
[data-theme="cocktail"] { --event-image: url('public/assets/cocktail-background.png'); }
[data-theme="haldi"] { --event-image: url('public/assets/haldi-background.png'); }
[data-theme="wedding"] { --event-image: url('public/assets/wedding-background.png'); }
.event-index { font: 10px var(--sans); letter-spacing: .18em; color: #fff4df; text-shadow: 0 1px 8px #000; }
#wedding-details .event-art p { color: #f7e3bb; font: italic 18px/1.4 var(--serif); }
#wedding-details .event-art h3 { color: #fff8ed; font: 400 clamp(32px, 4vw, 46px)/1.04 var(--serif); margin-top: 10px; }
.event-body { display: flex; flex-direction: column; gap: 16px; padding: 30px; align-items: flex-start; }
#wedding-details .event-date { font: 500 14px/1.6 var(--sans); }
.event-date span { display: block; font-weight: 400; margin-top: 4px; }
#wedding-details .event-address { font: 400 16px/1.6 var(--serif); }
#wedding-details .ceremony-name { font: 400 22px/1.2 var(--serif); }
#wedding-details .dress-code { display: grid; gap: 6px; border: 0; border-top: 1px solid #b09b7b66; border-radius: 0; padding: 18px 0 0; margin: 0; font-size: 16px; line-height: 1.5; }
#wedding-details .dress-code strong { font: 500 10px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #7b5b32; }
#wedding-details .directions { font-size: 12px; }
@media (max-width: 699px) {
  .chapter-copy.hero-depth { padding: clamp(78px, 11svh, 104px) 22px 0; }
  .hero-content { max-width: min(92vw, 420px); }
  .hero-depth .eyebrow { font-size: clamp(.68rem, 2.55vw, .78rem); letter-spacing: .14em; margin-bottom: 10px; }
  .hero-depth h1 { font-size: clamp(3.05rem, 13.2vw, 4.1rem); }
  .hero-depth h1 em { margin: 1px 0 2px; }
  .hero-depth .copy-note { max-width: 19.25rem; font-size: clamp(1.12rem, 4.35vw, 1.28rem); line-height: 1.4; margin-top: 12px; }
  #wedding-details .event { grid-template-columns: 1fr; }
  .event-art { min-height: 285px; padding: 24px; }
  .event-body { padding: 24px; }
  .playback-controls { left: 14px; bottom: 14px; }
  .hero-depth .hero-date { bottom: 84px; font-size: 13px; }
  .journey-footer { left: auto; right: 20px; bottom: 28px; }
}
@media (max-width: 430px) and (max-height: 780px) {
  .chapter-copy.hero-depth { padding-top: clamp(70px, 9.5svh, 86px); }
  .hero-depth h1 { font-size: clamp(2.75rem, 12vw, 3.55rem); }
  .hero-depth .copy-note { max-width: 18rem; font-size: clamp(1.02rem, 4vw, 1.14rem); line-height: 1.34; }
}
/* Neutral information panels let each celebration photograph set its theme. */
#wedding-details .event[data-theme] { border: 0; border-radius: 0; background: #eee7da; color: #3d3023; }
#wedding-details .event[data-theme] .dress-code strong { color: #72522e; }
#close-details { font-size: 28px; padding: 0; color: #49382b; }
.journey-footer { left: auto; right: 24px; bottom: 26px; }

/* Mask only the moving hero copy; the date remains above the film. */
.hero-visual { position: absolute; inset: 0; padding: inherit; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; will-change: clip-path; }
.hero-content { transform-origin: 50% 0; will-change: transform; }
html.static-journey .hero-visual { position: relative; inset: auto; padding: 0; width: 100%; clip-path: none !important; will-change: auto; }
html.static-journey .hero-content { transform: none !important; will-change: auto; }


#wedding-details .event-description { font: 400 15px/1.65 var(--serif); }
.no-script-note { position: relative; z-index: 30; padding: 24px; background: #f7f3eb; color: #33271c; }
