:root {
  color-scheme: light;
  --paper: #f8efe6;
  --ink: #3a2030;
  --muted: #6e4d57;
  --rose: #913d57;
  --line: #d9bfb9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #b75a78; outline-offset: 5px; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead { min-height: 78px; border-bottom: 1px solid var(--line); }
.monogram { font: 25px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.monogram span { margin: 0 6px; color: var(--rose); font-size: 16px; vertical-align: 2px; }
nav { display: flex; gap: clamp(16px, 4vw, 44px); font-size: 14px; }
nav a, .back { text-decoration: none; }
nav a:hover, .back:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding-block: clamp(44px, 6vw, 90px); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; color: var(--rose); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; line-height: 1.45; font-weight: 700; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(53px, 8.3vw, 117px); letter-spacing: -.069em; line-height: .95; }
h1 i, h2 i { color: var(--rose); font-weight: inherit; }
h1 i { font-size: .7em; }
.intro { margin: 28px 0; font: clamp(20px, 2.1vw, 25px)/1.4 var(--serif); color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; cursor: pointer; font-size: 14px; font-weight: 650; }
.primary { background: #713049; color: #fff4ec; }
.primary:hover { background: #572236; }
.button:disabled { opacity: .82; cursor: default; }
.postcard { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; margin: 0; aspect-ratio: 1.05; overflow: hidden; border-radius: 5px; color: #ffe7d4; background: radial-gradient(ellipse at 60% 40%, #8a3c56, #53243b 60%, #391e32); box-shadow: 0 20px 45px #62334026; }
.postcard::before, .player::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.66' filter='url(%23n)'/%3E%3C/svg%3E"); }
.postcard-border { position: absolute; inset: 14px; border: 1px solid #f3b8ad56; border-radius: 3px; }
.heart-art { width: 90%; max-height: 92%; overflow: visible; position: relative; }
.card-index, figcaption { position: absolute; font: italic 16px/1.3 var(--serif); }
.card-index { top: 26px; right: 29px; }
figcaption { bottom: 23px; left: 29px; }
section[id] { scroll-margin-top: 28px; }
.letter { display: grid; grid-template-columns: 1fr 1.16fr; align-items: start; gap: 40px; padding-block: clamp(56px, 8vw, 105px); border-top: 1px solid var(--line); }
h2 { font-size: clamp(43px, 6.2vw, 80px); line-height: .99; letter-spacing: -.057em; }
.section-copy > p:last-child, .film-copy > p:not(.eyebrow) { max-width: 28ch; margin: 20px 0 0; }
.section-copy > p:last-child { color: var(--muted); }
.envelope { position: relative; overflow: hidden; background: #ebc9c2; border: 1px solid #cc9c99; border-radius: 5px; box-shadow: 0 15px 40px #63334114; }
.envelope > summary { position: relative; display: grid; place-content: center; justify-items: center; min-height: 255px; padding: 25px 15px; list-style: none; cursor: pointer; background: linear-gradient(145deg, transparent 49.7%, #c995946f 50%, transparent 50.4%) left top / 50% 66% no-repeat, linear-gradient(215deg, transparent 49.7%, #c995946f 50%, transparent 50.4%) right top / 50% 66% no-repeat, radial-gradient(ellipse at 50% 70%, #f4d9ce, #e9c2bd); }
.envelope > summary::-webkit-details-marker { display: none; }
.envelope > summary:focus-visible { outline-offset: -6px; }
.stamp { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; border: 4px double #f8c4bb90; color: #ffe5d7; background: radial-gradient(circle at 36% 20%, #a35267, #752b49 75%); box-shadow: 0 6px 14px #6e2b4b45; font: 33px/1 var(--serif); transition: transform .25s; }
.envelope > summary:hover .stamp { transform: rotate(-9deg) scale(1.08); }
.envelope-action { margin-top: 17px; color: #573044; font-size: 14px; font-weight: 650; }
.envelope-arrow { display: inline-block; margin-left: 3px; }
.envelope[open] > summary { min-height: 125px; background: #efcec6; }
.envelope[open] .stamp { width: 47px; height: 47px; font-size: 23px; }
.envelope[open] .envelope-action { margin-top: 8px; }
.envelope[open] .envelope-arrow { transform: rotate(180deg); }
.envelope[open] .closed-label, .envelope:not([open]) .open-label { display: none; }
.letter-paper { position: relative; margin: 0 13px 13px; padding: clamp(22px, 5vw, 48px); background: #fff7ee; border-radius: 3px; color: #4b2a3a; font: 19px/1.55 var(--serif); }
.letter-paper p:first-child { margin-top: 0; }
.letter-paper p:last-child { margin-bottom: 0; }
.salutation, .signature { color: #803550; font-style: italic; }
.signature { margin-bottom: 0; text-align: right; }
.inside-joke { margin-top: 24px; padding-top: 13px; border-top: 1px dashed var(--line); }
.inside-joke > summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 32px; list-style: none; cursor: pointer; color: var(--rose); font: italic 16px/1.4 var(--serif); }
.inside-joke > summary::-webkit-details-marker { display: none; }
.inside-joke > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.secret-toast { display: flex; align-items: center; gap: 10px; padding-top: 7px; color: #803550; font-style: italic; }
.secret-toast svg { flex: none; }
@keyframes toast-bubble {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .inside-joke[open] .toast-bubble { animation: toast-bubble .55s both; }
  .inside-joke[open] .toast-bubble:nth-child(2) { animation-delay: .12s; }
  .inside-joke[open] .toast-bubble:nth-child(3) { animation-delay: .24s; }
}
.film { background: #432337; color: #fff0e6; padding-block: clamp(56px, 8vw, 100px); }
.film-inner { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(30px, 5vw, 65px); align-items: center; }
.film .eyebrow, .film h2 i { color: #f2b7bc; }
.film-copy > p:not(.eyebrow) { color: #ebd0ce; }
.text-link { display: inline-block; margin-top: 20px; font-size: 14px; text-underline-offset: 5px; }
.text-link:hover { color: #ffc8c4; }
.player { display: grid; place-items: center; position: relative; isolation: isolate; aspect-ratio: 16/9; overflow: hidden; border: 1px solid #a96a7b; border-radius: 6px; background: radial-gradient(ellipse at 50% 55%, #8e4b63, #572a45 56%, #2f192e); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #211524; }
.wish { padding-block: clamp(55px, 9vw, 116px); }
.wish-frame { text-align: center; border: 1px solid var(--line); border-radius: 5px; padding: clamp(30px, 6vw, 70px) 18px; background: radial-gradient(ellipse at center, #f9ddd3, transparent 76%); }
.wish-frame .eyebrow { justify-content: center; }
.wish-frame h2 { font-size: clamp(39px, 6vw, 72px); }
.wish-frame > p:not(.eyebrow) { margin: 17px auto 23px; max-width: 45ch; min-height: 3.2em; color: var(--muted); }
.constellation { margin-bottom: 13px; color: #9d5267; font-size: 19px; letter-spacing: .32em; }
.constellation span { display: inline-block; font-size: 36px; vertical-align: middle; transition: color .35s, text-shadow .35s, transform .35s; }
.star-lit .constellation span { color: #8e254a; text-shadow: 0 0 17px #d87d89, 0 0 36px #b65472; transform: scale(1.3) rotate(18deg); }
.footer { min-height: 76px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { min-height: 65px; }
  .hero, .letter, .film-inner { grid-template-columns: 1fr; }
  .hero { gap: 34px; }
  .hero .postcard { width: min(100%, 490px); }
  h1 { font-size: clamp(48px, 12.3vw, 92px); }
  .wide { display: none; }
  .letter { gap: 23px; }
  .envelope > summary { min-height: 205px; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 28px); }
  .masthead, .footer { gap: 9px; }
  nav { gap: 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
