:root {
  color-scheme: light;
  --ink: #171514;
  --paper: #f7f3eb;
  --paper-deep: #eee7da;
  --red: #a42d35;
  --muted: #77716a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #d44e55; outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 30; inset: 1rem auto auto 1rem; padding: .8rem 1rem; background: white; }
.cover { position: relative; min-height: min(850px, 100svh); min-height: min(850px, 100vh); overflow: hidden; display: flex; flex-direction: column; color: #f8f5ef; background: radial-gradient(ellipse at 50% 52%, #302426 0, #181516 46%, #11100f 76%); }
.cover-grain { position: absolute; inset: 0; pointer-events: none; opacity: .12; 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='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E"); }
.stage-light { position: absolute; top: -34%; width: 44%; height: 90%; opacity: .15; filter: blur(24px); transform-origin: top; pointer-events: none; }
.stage-light--one { left: 8%; transform: rotate(-28deg); background: linear-gradient(180deg, #e2bcb5, transparent 82%); clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%); }
.stage-light--two { right: 8%; transform: rotate(28deg); background: linear-gradient(180deg, #9d2e3b, transparent 80%); clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%); }
.topbar, .cover-footer { z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.topbar { padding: 1.65rem clamp(1.25rem, 5vw, 4.5rem); }
.wordmark { text-decoration: none; font-size: .63rem; font-weight: 700; letter-spacing: .15em; }
.wordmark span { color: #d9a9a6; }
.topbar-date, .cover-footer { font-size: .58rem; letter-spacing: .16em; color: #d5c7c1; }
.cover-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.2rem 5rem; }
.eyebrow { margin: 0; font-size: .62rem; line-height: 1.6; letter-spacing: .2em; font-weight: 700; }
.cover .eyebrow { display: flex; align-items: center; gap: .8rem; color: #e2c9c2; }
.eyebrow-line { height: 1px; width: 1.7rem; background: #9b6261; }
.cover-number { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%); margin: 0; font-family: var(--serif); font-size: clamp(15rem, 40vw, 29rem); line-height: 1; color: #fff; opacity: .025; font-weight: 500; }
.cover h1 { margin: 2rem 0 1.35rem; position: relative; font-family: var(--serif); font-size: clamp(3.2rem, 11vw, 7.8rem); font-weight: 500; letter-spacing: -.055em; line-height: .99; }
.cover h1 span { color: #dfa9a5; font-style: italic; }
.dedication { max-width: 26rem; margin: 0 auto 2rem; color: #d5cec9; font-size: .9rem; line-height: 1.8; }
.button { min-height: 3.2rem; display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; padding: .8rem 1.35rem; border-radius: 2px; text-decoration: none; font-size: .75rem; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--light { background: var(--paper); color: var(--ink); }
.button--light:hover { background: #fff; }
.cover-footer { padding: 1.4rem clamp(1.25rem, 5vw, 4.5rem); border-top: 1px solid #ffffff20; }
.cover-star, .time-card-sparkle, .ticket-star { display: inline-grid; place-items: center; flex: 0 0 auto; }
.cover-star::before, .time-card-sparkle::before, .ticket-star::before, .chapter-dot::before, .reminder-icon--star::before { content: ""; display: block; width: 1em; aspect-ratio: 1; background: currentColor; clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%); }
.cover-star { color: #d48b86; font-size: .9rem; }
.cover-side-note { position: absolute; right: 1.5rem; top: 50%; writing-mode: vertical-rl; color: #d5c7c180; font-size: .52rem; letter-spacing: .2em; }
.section-wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.intro { padding-block: 6.8rem 5.3rem; text-align: center; }
.eyebrow--red { color: var(--red); }
h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
.intro h2, .section-heading h2, .letter-section h2 { margin: 1rem 0 .75rem; font-size: clamp(2.35rem, 7vw, 4.2rem); line-height: 1.13; }
h2 em { color: var(--red); font-weight: 500; }
.intro-copy { max-width: 28rem; margin: auto; color: #706861; line-height: 1.8; font-size: .91rem; }
.time-card { width: min(100%, 24rem); margin: 2.4rem auto 0; padding: 1rem 1.2rem; display: flex; align-items: center; gap: .9rem; text-align: left; border: 1px solid #ddd4c8; background: #fbf9f4; }
.time-card-icon { color: var(--red); font-size: 1.4rem; }
.time-card-sparkle { margin-left: auto; color: #a88666; font-size: 1.15rem; }
.time-label { margin: 0 0 .15rem; font-size: .57rem; letter-spacing: .16em; font-weight: 700; color: #81786f; }
.time-value { margin: 0; font-family: var(--serif); font-size: 1.05rem; }
.chapters { padding-bottom: 7rem; }
.section-heading { margin-bottom: 3.2rem; text-align: center; }
.section-heading > p:last-child { max-width: 28rem; margin: 0 auto; color: #766e67; font-size: .88rem; line-height: 1.75; }
.chapter-list { display: grid; gap: 4.8rem; }
.chapter-card { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.chapter-card--reverse .chapter-photos { order: 2; }
.chapter-card--reverse .chapter-story { order: 1; padding-left: 7%; }
.chapter-photos { position: relative; min-width: 0; padding: .9rem 1.3rem .5rem .2rem; }
.photo-frame { position: relative; margin: 0; padding: .65rem .65rem 2.6rem; background: #fffdfa; box-shadow: 0 14px 40px #382a201c; transform: rotate(-2deg); }
.chapter-card:nth-child(2n) .photo-frame { transform: rotate(2deg); }
.photo-frame img { display: block; width: 100%; aspect-ratio: 1.19; object-fit: cover; background: #ece3d8; }
.photo-frame figcaption { position: absolute; bottom: .76rem; left: .9rem; right: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #777069; font-family: var(--serif); font-size: .75rem; font-style: italic; text-align: center; }
.photo-frame--secondary { position: absolute; z-index: -1; width: 38%; right: 0; bottom: -1rem; padding: .4rem .4rem 1.6rem; transform: rotate(8deg) !important; }
.photo-frame--secondary img { aspect-ratio: .92; }
.photo-frame--secondary figcaption { bottom: .38rem; font-size: .53rem; }
.chapter-story { padding: 1rem 4% 1rem 0; }
.chapter-label { display: flex; align-items: center; gap: .65rem; color: #85786f; font-size: .57rem; font-weight: 700; letter-spacing: .15em; }
.chapter-dot { width: .7rem; height: .7rem; color: var(--red); }
.chapter-story h3 { margin: 1.1rem 0 .7rem; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.16; font-weight: 500; letter-spacing: -.03em; }
.chapter-memory { margin: 0 0 1.4rem; color: #716a63; font-size: .88rem; line-height: 1.8; }
.love-toggle { min-height: 2.9rem; width: 100%; padding: .6rem 0; display: flex; align-items: center; gap: .65rem; border: 0; border-top: 1px solid #d9d0c5; border-bottom: 1px solid #d9d0c5; background: transparent; text-align: left; cursor: pointer; font-size: .75rem; font-weight: 600; }
.love-toggle-heart { color: var(--red); font-size: 1.15rem; }
.love-toggle-arrow { margin-left: auto; color: var(--red); font-size: 1.1rem; }
.love-note { margin: .8rem 0 0; color: var(--red); font-family: var(--serif); font-size: 1.05rem; font-style: italic; line-height: 1.6; animation: reveal .3s ease both; }
.photo-frame--missing { display: grid; place-items: center; min-height: 13rem; background: linear-gradient(135deg, #e9ded1, #f2e9dd 50%, #d9c9bf); }
.photo-frame--missing::before { content: "♡"; color: #a42d35; font: 3rem var(--serif); }
.reminders { overflow: hidden; position: relative; padding: 5.2rem max(1.25rem, calc((100% - 68rem) / 2)) 5.5rem; background: #201b1a; color: var(--paper); }
.reminders::before { content: ""; position: absolute; top: -5.8rem; right: 4%; width: 24rem; aspect-ratio: 1; background: #fff; opacity: .035; clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%); pointer-events: none; }
.reminders-inner { position: relative; z-index: 1; }
.reminders .eyebrow { color: #d89c98; }
.reminders h2 { margin: .8rem 0 2.5rem; font-size: clamp(2.3rem, 6vw, 3.6rem); }
.reminders h2 em { color: #e2aba5; }
.reminder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.reminder-card { padding: 1.5rem; border: 1px solid #ffffff24; background: #ffffff05; }
.reminder-icon { color: #e1aaa4; font-size: 1.35rem; }
.reminder-icon--star { width: 1.35rem; height: 1.35rem; display: grid; place-items: center; }
.reminder-card h3 { margin: 1.2rem 0 .55rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.reminder-card p { margin: 0; color: #c7bdb6; font-size: .78rem; line-height: 1.75; }
.soundtrack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .65rem; margin-top: 1.5rem; }
.stream-link { min-width: 0; padding: .8rem 1rem; display: flex; align-items: center; gap: .8rem; border: 1px solid #ffffff38; color: var(--paper); text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.stream-link:hover { background: #ffffff12; border-color: #e2aaa5; }
.stream-link-icon, .stream-link-arrow { color: #e1aaa4; font-size: 1.15rem; }
.stream-link-label, .stream-link-title { display: block; }
.stream-link-label { margin-bottom: .2rem; color: #d89c98; font-size: .52rem; font-weight: 700; letter-spacing: .15em; }
.stream-link-title { font-family: var(--serif); font-size: .95rem; }
.stream-link-arrow { margin-left: .5rem; }
.letter-section { padding-block: 6.7rem 7rem; text-align: center; }
.letter-section h2 { max-width: 42rem; margin: .9rem auto 2.5rem; }
.envelope-button { display: inline-flex; flex-direction: column; align-items: center; gap: 1rem; min-height: 9rem; border: 0; background: none; cursor: pointer; }
.envelope { position: relative; width: 8rem; height: 5.2rem; display: grid; place-items: center; overflow: hidden; border: 1px solid #d3c4b5; background: #eadbd0; box-shadow: 0 10px 20px #21171017; transition: transform .3s; }
.envelope-button:hover .envelope { transform: translateY(-4px); }
.envelope-heart { position: relative; z-index: 1; color: var(--red); font-size: 1.8rem; }
.envelope-flap { position: absolute; top: -2.6rem; left: 1.25rem; width: 5.4rem; height: 5.4rem; transform: rotate(45deg); border-right: 1px solid #d3c4b5; border-bottom: 1px solid #d3c4b5; background: #f1e6dc; }
.envelope-label { color: #655b54; font-size: .77rem; font-weight: 600; }
.letter-paper { max-width: 38rem; margin: 1.7rem auto 0; padding: clamp(1.5rem, 6vw, 3.2rem); background: #fffdfa; box-shadow: 0 16px 48px #30241714; text-align: left; animation: reveal .45s ease both; }
.letter-paper p { color: #62594f; font-family: var(--serif); font-size: .99rem; line-height: 1.9; }
.letter-paper .letter-salutation { margin-top: 0; color: var(--ink); font-size: 1.25rem; }
.letter-paper .letter-signoff { margin-bottom: 0; text-align: right; font-style: italic; color: var(--red); }
.next-chapter { position: relative; overflow: hidden; padding: 5.5rem 1.25rem 6rem; background: radial-gradient(ellipse at 50% 10%, #482329, #201719 55%, #171414); color: var(--paper); }
.next-chapter::before, .next-chapter::after { content: ""; position: absolute; width: 24rem; aspect-ratio: 1; border: 1px solid #ffffff0d; border-radius: 50%; pointer-events: none; }
.next-chapter::before { top: -11rem; left: -10rem; }
.next-chapter::after { right: -12rem; bottom: -16rem; width: 32rem; }
.next-inner { position: relative; z-index: 1; max-width: 42rem; margin-inline: auto; text-align: center; }
.next-chapter .eyebrow { color: #d6a09b; }
.next-chapter h2 { margin: .9rem 0 .9rem; font-size: clamp(2.7rem, 8vw, 4.9rem); line-height: 1.04; }
.next-chapter h2 em { color: #dfa9a5; }
.next-copy { max-width: 26rem; margin: 0 auto 2.3rem; color: #d2c5c0; font-size: .84rem; line-height: 1.75; }
.ticket { display: grid; grid-template-columns: 1fr 7.7rem; overflow: hidden; max-width: 39rem; min-height: 16rem; margin-inline: auto; background: var(--paper); color: var(--ink); box-shadow: 0 22px 55px #0005; text-align: left; }
.ticket-main { padding: 1.25rem 1.5rem; }
.ticket-topline { display: flex; justify-content: space-between; align-items: center; color: var(--red); font-size: .57rem; letter-spacing: .18em; font-weight: 700; }
.ticket-star { font-size: 1.15rem; }
.ticket-label { margin: 1.1rem 0 .35rem; color: #8a8178; font-size: .55rem; letter-spacing: .17em; font-weight: 700; }
.ticket-activity { margin: 0 0 1.2rem; font-family: var(--serif); font-size: clamp(1.35rem, 4vw, 1.85rem); }
.ticket-details { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ticket-details > span { display: grid; gap: .2rem; }
.ticket-details span span { color: #8a8178; font-size: .51rem; font-weight: 700; letter-spacing: .14em; }
.ticket-details b { font-size: .72rem; font-weight: 500; }
.ticket-foot { margin: 1.3rem 0 0; color: #867970; font-size: .48rem; letter-spacing: .09em; }
.ticket-stub { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 1.15rem .5rem; border-left: 1px dashed #c5b9ac; color: var(--red); text-align: center; }
.ticket-stub > span:first-child { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .48rem; font-weight: 700; letter-spacing: .16em; }
.ticket-stub b { font-family: var(--serif); font-size: 3rem; font-weight: 500; }
.ticket-stub > span:last-child { color: #7a7168; font-size: .48rem; line-height: 1.6; letter-spacing: .1em; }
.footer { position: relative; min-height: 10.5rem; padding: 2.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); text-align: center; }
.footer > p:first-child { margin: 0 0 .75rem; font-family: var(--serif); font-size: 1.1rem; }
.footer > p:first-child span { color: var(--red); }
.heart-button { width: 2.8rem; height: 2.8rem; border: 1px solid #d7c7bc; border-radius: 50%; background: #fffdfa; color: var(--red); cursor: pointer; font-size: 1.35rem; transition: transform .2s, background .2s; }
.heart-button:hover { transform: scale(1.08); background: #f2e4dd; }
.footer-small { margin: 1rem 0 0; color: #8b8278; font-size: .5rem; letter-spacing: .16em; }
.celebration { position: fixed; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }
.celebration-piece { position: absolute; bottom: 4rem; left: calc(50% + (var(--piece) - 4) * 8px); color: var(--red); font-size: 1.5rem; opacity: 0; }
.celebration.celebrate .celebration-piece { animation: float-heart 1.3s ease-out both; animation-delay: calc(var(--piece) * 25ms); }
.music-button { position: fixed; z-index: 10; right: 1rem; bottom: 1rem; min-height: 2.85rem; display: flex; gap: .55rem; align-items: center; padding: .7rem 1rem; border: 1px solid #d7c8ba; border-radius: 99px; background: #fffdfa; box-shadow: 0 4px 18px #1d120d1c; color: #382d28; cursor: pointer; font-size: .72rem; font-weight: 600; }
.music-button[hidden] { display: none; }
.music-button span:first-child { color: var(--red); font-size: 1rem; }
.photo-frame--missing { position: relative; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-heart { 0% { opacity: 0; transform: translateY(0) scale(.7) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-190px) scale(1.1) rotate(20deg); } }
@media (min-width: 1100px) {
  .cover { min-height: 100vh; }
}
@media (max-width: 680px) {
  .cover { min-height: 92svh; }
  .topbar { padding: 1.2rem 1.15rem; }
  .wordmark { font-size: .55rem; }
  .topbar-date { font-size: .5rem; letter-spacing: .1em; }
  .cover-content { padding-block: 3rem 4rem; }
  .cover h1 { font-size: clamp(3.2rem, 13vw, 5rem); }
  .cover-side-note { right: .55rem; font-size: .45rem; }
  .cover-footer { padding: 1.1rem 1rem; font-size: .48rem; }
  .section-wrap { width: min(100% - 2.4rem, 34rem); }
  .intro { padding-block: 5.2rem 4rem; }
  .chapter-list { gap: 3.6rem; }
  .chapter-card, .chapter-card--reverse { grid-template-columns: 1fr; gap: 1.35rem; }
  .chapter-card--reverse .chapter-photos, .chapter-card--reverse .chapter-story { order: initial; }
  .chapter-card--reverse .chapter-story { padding-left: 0; }
  .chapter-photos { padding: .3rem 1.05rem .2rem .15rem; width: 94%; margin-inline: auto; }
  .photo-frame { padding: .5rem .5rem 2.25rem; }
  .photo-frame img { aspect-ratio: 1.3; }
  .chapter-story { padding: .3rem 0; }
  .chapter-story h3 { margin-top: .75rem; }
  .reminders { padding: 4rem 1.2rem; }
  .reminder-grid { grid-template-columns: 1fr; gap: .7rem; }
  .reminder-card { display: grid; grid-template-columns: 2rem 1fr; column-gap: .7rem; padding: 1rem; }
  .reminder-icon { grid-row: span 2; padding-top: .15rem; }
  .reminder-card h3 { margin: 0 0 .25rem; }
  .letter-section { padding-block: 5rem; }
  .ticket { grid-template-columns: 1fr 5.3rem; min-height: 14.8rem; }
  .ticket-main { padding: 1rem; }
  .ticket-stub { padding: .9rem .4rem; }
  .ticket-details { gap: .45rem; }
  .ticket-details b { font-size: .64rem; overflow-wrap: anywhere; }
  .ticket-foot { font-size: .43rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
