/* One palette sampled from the generated envelope's unembellished paper.
   Keep physical highlights/shadows in the artwork; all UI uses these tokens. */
:root{
  color-scheme:light;
  --burgundy:#6c2e31;
  --burgundy-rgb:108 46 49;
  --burgundy-dark:#4e181a;
  --ink:var(--burgundy);
  --names:'Mussica Swash','Cormorant Garamond',Georgia,serif;
  --rose:#9a5d58;
  --muted:#775052;
  --gold:#a47b41;
  --paper:#fcf5ec;
  --letter-paper:#fff9ef;
}
html{background:var(--burgundy)}
html[data-invitation-state="open"]{background:var(--paper)}
body{background:var(--burgundy);color:var(--ink)}
body.invitation-closed{background:var(--burgundy);overscroll-behavior:none}
main,.date-section,.celebration-section,.closing-section{background-color:var(--paper)}
.letter-section{background:var(--paper)}
.section-intro,.text-button,.countdown>p,.countdown-values small,.date-unit,.family-parents,.schedule-event p,.closing-tagline{color:var(--muted)}
.eyebrow,.script-heading,.date-value,.family-name,.closing-love>span,.venue-arch h3,.schedule-time,.schedule-event h3{color:var(--burgundy)}
.invitation-letter{background:var(--letter-paper)}
.invitation-letter>p,.invitation-letter h3,.invitation-letter em{color:var(--burgundy)}
.invitation-letter>p{color:var(--muted)}
.letter-back{background:var(--burgundy) url('/assets/wedding-v2/embossed-envelope.webp') center top/cover no-repeat}
.letter-front{background:var(--burgundy) url('/assets/wedding-v2/embossed-envelope.webp') center bottom/100% auto no-repeat}
.letter-front>span,.letter-front>small{color:#f8e3be}
.music-toggle{background:var(--burgundy);border-color:#c4a46c;box-shadow:0 2px 15px rgb(var(--burgundy-rgb)/15%)}
.outline-button{color:var(--burgundy)}
.outline-button:hover{background:var(--burgundy);color:var(--paper)}
/* Fill Safari's changing visual viewport instead of leaving an svh strip. */
.opening{height:100dvh;background:var(--burgundy)}
.envelope-scene{width:max(100cqw,56.25dvh);height:max(100dvh,177.778cqw)}
.cover-hint{bottom:calc(38px + env(safe-area-inset-bottom,0px))}
/* No circular outline on touch or programmatic focus. Keyboard navigation
   retains an image highlight and an underlined instruction, without a ring. */
.opening:focus,.seal-button:focus,.seal-button:focus-visible{outline:none;box-shadow:none}
.seal-button{-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.seal-button:focus-visible img{filter:brightness(1.2) drop-shadow(0 0 6px #e3c18b80)}
.opening:has(.seal-button:focus-visible) .cover-hint p{text-decoration:underline;text-underline-offset:5px}
@media(max-width:760px){body,body.invitation-open{background:var(--paper)}body.invitation-closed{background:var(--burgundy)}}

/* One typeface for both partners and the text monograms. */
.family-name,.letter-signoff>span,.closing-love>span,.letter-front>span,.letter-front>span i,.seal-monogram{
  font-family:var(--names);font-weight:400;font-style:normal;
}
.family-name{font-size:42px;line-height:1.2}
.closing-love>span{font-size:42px}
.letter-front>span{letter-spacing:2px}
.letter-front>span i{font-style:italic}
.seal-face{position:relative;display:block;width:100%;height:100%}
/* Glyphs are placed by their measured ink boxes, centred on the seal's gold ring. */
.seal-monogram{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:#e6c17c;font-family:var(--names);font-weight:400;filter:drop-shadow(0 .6px .4px #4e181a) drop-shadow(0 -.4px 0 #fff0c7aa)}
@media(max-width:370px){.family-name,.closing-love>span{font-size:38px}}
.footer-monogram{width:clamp(180px,54vw,240px);margin:46px auto 12px;line-height:0;letter-spacing:0}
.footer-monogram img{display:block;width:100%;height:auto}

/* Names in the couple's swash display face; ampersands in the script face. */
#home h1{font-family:var(--names);font-size:clamp(54px,14cqw,80px);line-height:1.04}
#home .hero-subtitle{margin-top:16px}
#home h1 em{font-family:var(--script);font-style:normal;font-size:.62em;line-height:1;margin:2px 0 -2px}
.family-ampersand{font-family:var(--script);font-size:38px}
.closing-love>span{line-height:1.25}

/* Hero: the swash V rises well above its line box, so give the names clear
   space below the prelude. The subtitle was removed. */
#home h1{margin-top:.8em}
#home .hero-forever{margin-top:2px}
