/* Classic wedding · Mobile-only editorial composition */
:root {
  --ivory: #f7f3eb;
  --paper: #fffdf8;
  --ink: #34352f;
  --gold: #806333;
  --line: #d8c9ac;
  --soft: #eee8dd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ded8cd;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.sealed { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .gallery:focus-visible {
  outline: 3px solid #ad853d;
  outline-offset: 5px;
}
button { touch-action: manipulation; }
[hidden] { display: none !important; }
main, footer { width: 100%; }
main { max-width: 480px; margin: 0 auto; background: var(--ivory); overflow: clip; }
main[inert] { visibility: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.35rem, 9vw, 3.05rem); line-height: 1.18; letter-spacing: -.04em; }
h2 em { font-weight: 400; color: var(--gold); }
h3 { font-size: 1.5rem; line-height: 1.4; }
p + p { margin-top: 1.1rem; }
.full-screen { min-height: 100svh; height: 100svh; position: relative; isolation: isolate; }
.eyebrow, .small-label { font-size: .75rem; line-height: 1.8; letter-spacing: .2em; font-weight: 600; }
.eyebrow { color: var(--gold); margin-bottom: 1.5rem; }
.small-label { color: var(--gold); margin-bottom: .8rem; letter-spacing: .15em; }
.section { padding: 84px 30px; text-align: center; }
.section > h2 { margin-bottom: 28px; }
.section > p:not(.eyebrow):not(.signature) { max-width: 350px; margin-left: auto; margin-right: auto; }
.section-mark { display: block; color: var(--gold); font-family: var(--serif); font-size: 2rem; margin: 20px 0; }
.signature { font-family: var(--serif); color: var(--gold); font-style: italic; font-size: 1.9rem; margin-top: 32px; }
.muted { font-size: .875rem; color: #646258; }
.fine-rule { display: block; width: 48px; height: 1px; background: currentColor; margin: 23px auto; opacity: .65; }
/* Opening stationery */
.envelope {
  position: fixed;
  inset: 0;
  width: min(100%, 480px);
  height: 100dvh;
  margin: auto;
  padding: 0;
  z-index: 100;
  border: 0;
  border-radius: 0;
  background: var(--ivory);
  color: #62471e;
  overflow: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.envelope-art { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(100%, 50dvh); aspect-ratio: 1 / 2; }
.envelope-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity 1.1s ease; }
.envelope-open { opacity: 0; }
.envelope.opening .envelope-closed { opacity: 0; }
.envelope.opening .envelope-open { opacity: 1; }
.envelope.departing { opacity: 0; visibility: hidden; }
.envelope-heading { position: absolute; top: 13%; left: 10%; width: 80%; font-size: .75rem; letter-spacing: .23em; }
.envelope-monogram { position: absolute; left: 0; width: 100%; top: 27%; font-family: var(--serif); font-size: 2.4rem; letter-spacing: .12em; }
.envelope-monogram i { font-size: 1.7rem; }
.envelope-instruction { position: absolute; bottom: 12%; left: 10%; width: 80%; font-family: var(--serif); font-style: italic; font-size: 1.4rem; }
.envelope-instruction span { display: block; margin-top: 8px; font-family: var(--sans); font-style: normal; font-size: .75rem; letter-spacing: .04em; }
.envelope.opening .envelope-heading, .envelope.opening .envelope-monogram, .envelope.opening .envelope-instruction { opacity: 0; transition: opacity .5s; }
/* Portrait chapters */
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; border-radius: 18px; }
.hero::after, .photo-chapter::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(12,20,12,.12) 43%, rgba(12,20,12,.82) 100%); z-index: -1; }
.hero-ornament { position: absolute; top: 0; left: 0; width: 100%; height: 17%; object-fit: contain; object-position: top; pointer-events: none; }
.hero-copy { position: absolute; bottom: 30px; padding: 0 20px; width: 100%; color: #fffdf7; text-align: center; }
.hero-copy .eyebrow, .chapter-copy .eyebrow { color: #f5e8cc; margin-bottom: 14px; }
h1 { font-size: clamp(3.4rem, 14vw, 4.5rem); line-height: .98; letter-spacing: -.05em; }
#couple-names:focus { outline: none; }
h1 em { display: block; font-size: 2rem; font-weight: 400; line-height: 1.4; }
.hero-date { letter-spacing: .22em; font-size: .9rem; margin-top: 25px; }
.hero-copy > p:not(.eyebrow):not(.hero-date):not(.scroll-cue) { font-size: .875rem; }
.hero-copy .fine-rule { margin: 18px auto; }
.hero-copy .scroll-cue { font-size: .75rem; margin-top: 32px; }
.scroll-cue span { display: block; font-size: 1.5rem; margin-top: 7px; }
.chapter-copy { position: absolute; bottom: 65px; width: 100%; padding: 0 30px; color: white; text-align: center; }
.chapter-copy h2 { font-size: 4rem; }
.chapter-copy h2 em { color: white; }
/* Story and family */
.announcement { background: var(--paper); }
.story { background: var(--soft); }
.story-item { margin-top: 36px; }
.story-item h3 { margin: 7px 0 12px; }
.year { font-family: var(--serif); color: var(--gold); font-size: 1.25rem; font-style: italic; }
.family-group { margin: 30px 0; }
.families > p:last-child { margin-top: 35px; }
/* Countdown and timeline */
.countdown-section { background: #343c33; color: #fffdf5; padding-left: 20px; padding-right: 20px; }
.countdown-section h2 em, .countdown-section .eyebrow { color: #e8d4ad; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 38px 0 25px; }
.countdown strong { font-family: var(--serif); display: block; font-weight: 400; font-size: clamp(2.15rem, 8vw, 3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .75rem; display: block; margin-top: 10px; }
.countdown-section > p:last-child { font-size: .875rem; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; text-align: left; }
.timeline li { display: grid; grid-template-columns: 61px 1fr; gap: 20px; padding-bottom: 30px; position: relative; }
.timeline li::after { content: ''; position: absolute; left: 67px; top: 8px; bottom: -8px; border-left: 1px solid var(--line); }
.timeline li:last-child::after { bottom: 30px; }
.timeline time { color: var(--gold); font-size: .875rem; padding-top: 5px; }
.timeline h3 { font-size: 1.35rem; }
.timeline p { font-size: .875rem; line-height: 1.6; margin-top: 6px; }
/* Cards and event information */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; margin-top: 24px; background: var(--paper); }
.card h3 { font-size: 2rem; margin-bottom: 18px; }
.card p { font-size: .95rem; }
.card .muted { font-size: .875rem; }
.button { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 52px; background: var(--gold); color: white; border: 1px solid var(--gold); border-radius: 10px; padding: 13px 17px; text-decoration: none; font-size: .875rem; font-weight: 500; line-height: 1.5; transition: background .2s; }
.button:hover { background: #665027; }
.card .button { margin-top: 24px; }
.button-outline { background: transparent; color: var(--gold); }
.button-outline:hover { background: var(--soft); }
.accommodation { background: var(--soft); }
dl { margin: 25px 0; text-align: left; font-size: .875rem; }
dl div { border-top: 1px solid var(--line); padding: 12px 0; }
dt { color: #676457; }
dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.hotel-card .muted { margin-top: 20px; font-size: .75rem; }
.detail-row { text-align: left; border-top: 1px solid var(--line); padding: 23px 0; }
.detail-row p { margin-top: 9px; }
.dress-code { background: var(--soft); }
.swatches { display: flex; justify-content: center; gap: 15px; margin: 32px 0; }
.swatches span { width: 33px; height: 33px; background: var(--swatch); border-radius: 50%; outline: 1px solid var(--line); outline-offset: 4px; }
.party-person { margin-top: 30px; }
.party-person .small-label { margin-bottom: 6px; }
/* Gallery */
.gallery-section { background: var(--paper); }
.gallery { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; touch-action: pan-y; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery-arrow { position: absolute; top: calc(50% - 23px); width: 46px; height: 46px; border: 1px solid #ffffff88; border-radius: 50%; background: #ffffffed; color: var(--ink); font-size: 1.35rem; }
.previous { left: 12px; }
.next { right: 12px; }
.gallery-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; font-size: .875rem; color: var(--gold); }
.text-button { border: 0; background: transparent; color: var(--gold); min-height: 44px; padding: 5px; font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; }
/* Forms: wrappers deliberately remain transparent */
.wishes, .playlist { background: var(--soft); }
.playlist { padding-top: 25px; }
.transparent-form { background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 32px; text-align: left; }
.transparent-form label { display: block; font-size: .875rem; margin: 18px 0 8px; }
input, select, textarea { width: 100%; min-width: 0; background: #fff; border: 1px solid #c7bca7; border-radius: 10px; color: var(--ink); padding: 13px 14px; font-size: 1rem; }
textarea { resize: vertical; min-height: 132px; }
.transparent-form .button { margin-top: 24px; }
.form-status { font-size: .875rem; color: #40513c; }
.form-status:empty { display: none; }
.form-status:not(:empty) { margin-top: 16px; }
.demo-note { font-size: .75rem; color: #746e61; margin-top: 20px; line-height: 1.6; }
.gifts > .button { margin-top: 22px; }
.gift-note { margin-top: 32px; }
.gift-note p { margin-top: 12px; }
.rsvp { background: #e9e0d0; }
.rsvp > .muted { margin-top: 25px; }
.thank-you { padding-top: 100px; padding-bottom: 100px; background: var(--paper); }
footer { text-align: center; padding: 50px 25px 100px; background: var(--ivory); }
.footer-monogram { color: var(--gold); font-family: var(--serif); font-size: 2.4rem; letter-spacing: .12em; }
footer > p:nth-child(2) { letter-spacing: .18em; font-size: .75rem; }
.music-credit { font-size: .75rem; color: #686356; }
/* Persistent controls and accessible feedback */
.music-toggle { position: fixed; z-index: 50; bottom: max(18px, env(safe-area-inset-bottom)); right: max(16px, calc((100vw - 480px) / 2 + 16px)); border: 1px solid var(--line); background: #fffdf8f5; color: var(--gold); border-radius: 30px; min-height: 48px; padding: 9px 15px; box-shadow: 0 4px 20px #00000012; display: flex; gap: 9px; align-items: center; font-size: .875rem; }
#music-icon { font-size: 1.2rem; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 30px; max-width: min(390px, calc(100% - 32px)); color: var(--ink); background: var(--ivory); }
dialog::backdrop { background: #17201699; }
dialog h2 { font-size: 2rem; margin-bottom: 18px; }
dialog .button { margin-top: 24px; }
.noscript-note { padding: 20px; background: white; }
@media (max-width: 360px) {
  .section { padding-left: 22px; padding-right: 22px; }
  .card { padding: 28px 18px; }
  .eyebrow { letter-spacing: .13em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Official Material SVG icons: fixed geometry, independent of device fonts. */
.material-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: currentColor;
}
.gallery-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
#music-icon {
  display: inline-flex;
  align-items: center;
}
.scroll-cue .material-icon {
  width: 24px;
  height: 24px;
}

