/* Warm paper, red ink, and room for the little things. */
:root {
  --paper: #f8f4ec;
  --paper-deep: #efe8dd;
  --ink: #3c302e;
  --muted: #766b64;
  --red: #853c42;
  --red-dark: #632d33;
  --pink: #ecd6d2;
  --line: #ddd3c8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --hand: 'Caveat', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .045; 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='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.75' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, input { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
img { display: block; width: 100%; object-fit: cover; }
svg { display: inline-block; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h2 { font-size: clamp(42px, 4.5vw, 66px); letter-spacing: -2px; }
h2 em { color: var(--red); font-weight: 400; }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.section-shell { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.section-pad { padding-block: 112px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: 2px; font-weight: 600; color: var(--red); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 54px; padding: 14px 24px; border-radius: 3px; font-size: 12px; font-weight: 500; transition: background .25s, transform .25s, box-shadow .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--paper); background: var(--red); border: 1px solid var(--red); }
.button-primary:hover { background: var(--red-dark); box-shadow: 0 7px 20px #853c421c; }
.button-outline { border: 1px solid #b49a90; background: transparent; color: var(--red); }
.button-outline:hover { background: #853c4208; }
.text-button { display: inline-flex; align-items: center; gap: 12px; background: transparent; padding: 12px 0; font-size: 12px; color: var(--red); }
.text-button::after { content: ''; }
.text-button:hover { text-decoration: underline; text-underline-offset: 6px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--red); padding: 10px 20px; color: white; }
.skip-link:focus { top: 15px; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: var(--red); transform: scaleX(0); transform-origin: left; }
#petal-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; }

/* The opening page. */
.site-header { height: 96px; display: flex; align-items: center; justify-content: space-between; width: min(1320px, calc(100% - 80px)); margin: auto; border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 40px; display: inline-flex; align-items: center; gap: 3px; line-height: 1; color: var(--red); letter-spacing: -2px; }
.wordmark > span { font-size: 26px; font-style: italic; padding: 0 3px; }
.wordmark .icon { width: 12px; height: 12px; margin: 0 0 15px 5px; }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.site-header nav a { font-size: 11px; color: #65564f; position: relative; }
.site-header nav a::after { content: ''; position: absolute; height: 1px; bottom: -8px; left: 0; width: 100%; background: var(--red); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.site-header nav a:hover::after, .site-header nav a.active::after { transform: scaleX(1); }
.site-header nav a.active { color: var(--red); }
.site-header nav a span { margin-left: 6px; color: var(--red); }
.header-actions { display: flex; gap: 22px; align-items: center; }
.sound-toggle { background: transparent; display: flex; gap: 10px; align-items: center; font-size: 10px; padding: 10px 0; color: var(--muted); }
.sound-bars { height: 16px; display: flex; gap: 3px; align-items: center; }
.sound-bars i { width: 2px; height: 4px; background: var(--red); border-radius: 1px; }
.sound-bars i:nth-child(2) { height: 11px; }
.sound-bars i:nth-child(3) { height: 7px; }
.sound-bars i:nth-child(4) { height: 14px; }
.sound-toggle[aria-pressed='true'] .sound-bars i { animation: sound-wave 1s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: -.5s !important; }
.sound-bars i:nth-child(3) { animation-delay: -.2s !important; }
.sound-bars i:nth-child(4) { animation-delay: -.7s !important; }
.menu-toggle { display: none; background: transparent; padding: 10px; width: 40px; height: 40px; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: var(--red); transition: transform .25s; }
.hero { min-height: 750px; height: min(800px, calc(100svh - 96px)); display: grid; grid-template-columns: 53% 47%; align-items: center; position: relative; padding-block: 55px 110px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 10px; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: 2.1px; margin-bottom: 24px; }
.little-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #853c4210; }
.hero h1 { font-size: clamp(88px, 8.25vw, 119px); letter-spacing: -5px; line-height: .89; position: relative; }
.hero h1 em { display: inline-block; font-weight: 400; color: var(--red); padding-right: 8px; }
.hero-heart { width: 80px; height: 80px; margin-left: 6px; overflow: visible; fill: none; stroke: var(--red); stroke-width: 1.8; transform: rotate(12deg); }
.hero-heart path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw-line 2s 1s ease forwards; }
.hero-description { color: var(--muted); font-size: 13px; margin-top: 29px; line-height: 1.9; }
.hero-buttons { display: flex; align-items: center; gap: 30px; margin-top: 28px; }
.hero-buttons .button { font-size: 11px; }
.hero-buttons .text-button { font-size: 11px; }
.hero-signature { margin-top: 37px; display: flex; align-items: center; }
.initial-avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #dec8be; border: 3px solid var(--paper); border-radius: 50%; font-family: var(--serif); font-size: 19px; color: var(--red); }
.initial-avatar.second { margin-left: -8px; background: #eddcd1; }
.hero-signature > span:last-child { font-size: 9px; margin-left: 10px; line-height: 1.7; color: var(--muted); }
.hero-signature strong { font-weight: 500; color: var(--ink); }
.hero-art { position: relative; height: 590px; width: 100%; margin-top: 25px; animation: art-arrive 1.4s cubic-bezier(.2,.7,.3,1) both; }
.hero-photo { --rotation: -7deg; position: absolute; width: 333px; padding: 12px 12px 0; background: #fffaf3; left: 10px; top: 55px; z-index: 2; box-shadow: 6px 18px 40px #49342b1c; }
.hero-photo img { height: 388px; object-position: 50% 44%; filter: saturate(.78) sepia(.05); }
.hero-photo figcaption { font-family: var(--hand); font-size: 24px; text-align: center; padding: 10px 0 15px; color: #6b4a40; }
.tilt-card { transform: perspective(900px) rotate(var(--rotation, 0deg)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px)); transition: transform .4s ease, box-shadow .4s; }
.photo-tape { position: absolute; width: 112px; height: 31px; background: #d9c6a488; top: -16px; left: 108px; transform: rotate(3deg); z-index: 3; clip-path: polygon(2% 0, 98% 3%, 100% 93%, 0 100%); }
.mini-photo { --rotation: 9deg; width: 215px; padding: 9px 9px 0; position: absolute; top: 331px; right: -1px; z-index: 3; background: #fffaf3; box-shadow: 4px 15px 35px #49342b22; }
.mini-photo img { height: 155px; filter: saturate(.7) sepia(.1); }
.mini-photo figcaption { font: 20px var(--hand); text-align: center; padding: 8px 0 12px; }
.orbit-stamp { width: 123px; height: 123px; position: absolute; right: 41px; top: 1px; z-index: 3; color: var(--red); }
.orbit-stamp > svg:first-child { width: 100%; height: 100%; animation: stamp-spin 35s linear infinite; }
.orbit-stamp text { fill: currentColor; font: 8px var(--sans); letter-spacing: 2.3px; }
.orbit-stamp .stamp-heart { position: absolute; top: 44px; left: 44px; width: 35px; height: 35px; stroke-width: 1; }
.art-spark { position: absolute; color: var(--red); font-family: var(--serif); }
.spark-one { right: 5px; top: 175px; font-size: 50px; animation: spark-turn 7s ease-in-out infinite; }
.spark-two { left: -44px; top: 296px; font-size: 40px; }
.art-flower { position: absolute; width: 93px; height: 93px; bottom: 26px; left: 148px; color: var(--red); transform: rotate(-12deg); animation: flower-sway 9s ease-in-out infinite; }
.hero-note { font-family: var(--hand); font-size: 28px; line-height: 1.1; position: absolute; bottom: 11px; left: -5px; transform: rotate(-7deg); color: var(--red); }
.hero-note svg { position: absolute; left: -56px; top: -45px; width: 100px; height: 60px; fill: none; stroke: currentColor; stroke-width: 1.4; transform: rotate(-20deg); }
.photo-coordinate { position: absolute; right: 0; bottom: 14px; font-size: 8px; letter-spacing: 1.4px; color: #847063; }
.scroll-cue { position: absolute; bottom: 28px; left: 0; display: flex; align-items: center; gap: 14px; font-size: 8px; letter-spacing: 1.7px; color: var(--muted); }
.scroll-line { width: 1px; height: 40px; background: #c0afa2; position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; background: var(--red); top: -20px; width: 100%; height: 20px; animation: scroll-down 2s ease-in-out infinite; }
.hero-side-note { position: absolute; right: -29px; top: 55%; font-size: 7px; letter-spacing: 2px; writing-mode: vertical-rl; color: #8b7a70; }
.hero-enter { animation: text-arrive .9s cubic-bezier(.2,.7,.3,1) both; }
.hero-enter:nth-child(2) { animation-delay: .12s; }
.hero-enter:nth-child(3) { animation-delay: .22s; }
.hero-enter:nth-child(4) { animation-delay: .32s; }
.hero-enter:nth-child(5) { animation-delay: .42s; }
.love-ribbon { background: #efe7dc; border-block: 1px solid #e5dace; height: 75px; overflow: hidden; display: flex; align-items: center; position: relative; }
.ribbon-track { display: flex; align-items: center; gap: 55px; width: max-content; animation: ribbon-scroll 40s linear infinite; color: #7f5f54; }
.ribbon-track span { font: italic 27px var(--serif); white-space: nowrap; }
.ribbon-track svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.2; flex-shrink: 0; }

/* Chapters and keepsakes. */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; margin-bottom: 50px; }
.section-heading .eyebrow { margin-bottom: 23px; }
.section-heading > p { color: var(--muted); font-size: 12px; padding-bottom: 8px; }
.story-layout { display: grid; grid-template-columns: 35% 65%; border: 1px solid var(--line); }
.chapter-tabs { border-right: 1px solid var(--line); padding: 20px 28px; }
.chapter-tabs button { width: 100%; display: flex; gap: 20px; align-items: center; text-align: left; background: transparent; padding: 27px 0; border-bottom: 1px solid var(--line); }
.chapter-tabs button:last-child { border-bottom: 0; }
.chapter-number { font: italic 29px var(--serif); color: #bba79c; transition: color .3s; }
.chapter-tabs button small { display: block; font-size: 8px; letter-spacing: 1.4px; margin-bottom: 7px; color: var(--muted); }
.chapter-tabs button strong { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.chapter-tabs .icon { width: 17px; margin-left: auto; opacity: 0; transform: translateX(-7px); transition: opacity .25s, transform .25s; }
.chapter-tabs button[aria-selected='true'] { color: var(--red); }
.chapter-tabs button[aria-selected='true'] .chapter-number { color: var(--red); }
.chapter-tabs button[aria-selected='true'] .icon { opacity: 1; transform: translateX(0); }
.chapter-tabs button:hover strong { color: var(--red); }
.chapter-panel { display: grid; grid-template-columns: 42% 58%; gap: 0; min-height: 416px; }
.chapter-image { position: relative; overflow: hidden; }
.chapter-image img { height: 100%; object-position: 33% center; filter: saturate(.72); }
.chapter-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, #2e221b77); }
.chapter-image-note { position: absolute; bottom: 24px; left: 20px; right: 20px; color: #fff8eb; font: 25px var(--hand); z-index: 1; line-height: 1.1; transform: rotate(-5deg); }
.chapter-copy { padding: 46px 33px; align-self: center; }
.chapter-copy .eyebrow { font-size: 8px; margin-bottom: 20px; }
.chapter-copy h3 { font-size: 36px; letter-spacing: -.8px; margin-bottom: 18px; }
.chapter-copy p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.chapter-footnote { display: block; font: italic 20px var(--serif); color: var(--red); margin-top: 25px; line-height: 1.3; }
.chapter-panel.changing .chapter-copy, .chapter-panel.changing .chapter-image { animation: chapter-change .5s ease both; }
.story-quote { text-align: center; margin-top: 76px; }
.story-quote .icon { color: var(--red); width: 22px; height: 22px; margin-bottom: 20px; }
.story-quote p { font: 32px/1.3 var(--serif); color: #6c5147; }
.story-quote > span { display: block; font: 20px var(--hand); color: #9a7462; margin-top: 12px; }
.moments-section { background: #f0e9df; border-block: 1px solid #e6dcd0; overflow: hidden; }
.heading-note { font: 28px/1.1 var(--hand); color: var(--red); transform: rotate(5deg); position: relative; padding-right: 58px; margin-right: 12px; margin-bottom: 25px; }
.heading-note svg { position: absolute; width: 75px; height: 45px; right: -15px; bottom: -37px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 74px 10px 32px; }
.memory-card { background: #fdfaf3; padding: 13px 13px 22px; position: relative; color: var(--ink); box-shadow: 0 8px 18px #4432250d; text-align: left; }
.memory-card:nth-child(1) { --rotation: -4deg; }
.memory-card:nth-child(2) { --rotation: 3deg; margin-top: 24px; }
.memory-card:nth-child(3) { --rotation: -3deg; }
.memory-card:hover { --lift: -9px; box-shadow: 0 15px 30px #4432251c; }
.memory-image { display: block; aspect-ratio: 1.15; position: relative; overflow: hidden; }
.memory-image img { height: 100%; filter: saturate(.75); transition: transform .65s, filter .65s; }
.memory-card:hover img { transform: scale(1.04); filter: saturate(.95); }
.memory-open { position: absolute; bottom: 10px; right: 10px; padding: 5px 10px; color: var(--paper); font-size: 9px; background: #3c302e9c; border-radius: 2px; opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .3s; }
.memory-card:hover .memory-open, .memory-card:focus-visible .memory-open { opacity: 1; transform: translateY(0); }
.memory-caption { display: block; font: 29px var(--hand); margin: 17px 9px 4px; }
.memory-meta { display: block; font-size: 7px; letter-spacing: 1.3px; margin-left: 10px; color: var(--muted); }
.memory-tape { position: absolute; top: -16px; left: 31%; width: 100px; height: 30px; background: #c8b49966; transform: rotate(-6deg); clip-path: polygon(2% 0,98% 5%,100% 95%,0 100%); }
.memory-heart { position: absolute; bottom: 2px; right: 14px; color: var(--red); font: 65px var(--hand); transform: rotate(12deg); }
.memory-bottom { margin-top: 58px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.memory-bottom .icon { width: 14px; height: 14px; color: var(--red); }

/* Reasons, the sealed letter, and a sky full of promises. */
.reasons-intro { text-align: center; }
.reasons-intro .eyebrow { margin-bottom: 25px; }
.reasons-intro p { font-size: 12px; color: var(--muted); margin-top: 24px; }
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
.reason-card { padding: 30px 34px 35px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; min-height: 230px; transition: background .3s; }
.reason-card:nth-child(3n) { border-right: 0; }
.reason-card:nth-child(n+4) { border-bottom: 0; }
.reason-card:hover { background: #eee2d54d; }
.reason-number { font: italic 24px var(--serif); color: #ad9588; }
.reason-icon { position: absolute; width: 38px; height: 38px; right: 34px; top: 27px; color: var(--red); fill: none; stroke: currentColor; stroke-width: 1; transition: transform .6s; }
.reason-card:hover .reason-icon { transform: rotate(15deg) scale(1.08); }
.reason-doodle { position: absolute; top: 19px; right: 35px; font: 45px var(--serif); color: var(--red); }
.reason-card h3 { font-size: 29px; margin-top: 30px; letter-spacing: -.4px; }
.reason-card p { font-size: 11px; color: var(--muted); line-height: 1.85; margin-top: 13px; max-width: 285px; }
.reason-jar { display: flex; align-items: center; gap: 25px; background: #f0e7dc; margin-top: 46px; padding: 23px 34px; border: 1px solid #e2d5c7; }
.jar-drawing svg { height: 67px; width: 58px; fill: none; stroke: var(--red); stroke-width: 1.1; transform: rotate(-7deg); }
.reason-jar h3 { font-size: 30px; }
.reason-jar p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.reason-jar .button { margin-left: auto; }
.letter-section { background: #ede1d6; border-block: 1px solid #e0d2c4; overflow: hidden; }
.letter-inner { display: grid; grid-template-columns: 54% 46%; align-items: center; gap: 0; }
.letter-copy .eyebrow { margin-bottom: 25px; }
.letter-copy h2 { font-size: clamp(42px, 4.1vw, 59px); }
.letter-copy p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 26px; }
.letter-copy .button { margin-top: 27px; }
.letter-small-note { display: block; font-size: 8px; letter-spacing: .7px; color: var(--muted); margin-top: 17px; }
.envelope { position: relative; height: 300px; width: 430px; max-width: 100%; transform: rotate(-7deg); background: transparent; margin-top: 28px; isolation: isolate; }
.envelope-back { position: absolute; inset: 0; background: #cbb497; border-radius: 3px; box-shadow: 8px 22px 40px #6a49352b; z-index: 0; }
.letter-peek { position: absolute; inset: 15px 25px 20px; background: #fbf6e9; transform: translateY(-38px); text-align: left; padding: 22px 30px; z-index: 1; transition: transform .6s; box-shadow: 0 -4px 12px #7f5e4510; }
.letter-peek > span:first-child { display: block; font: 32px var(--hand); color: var(--red); }
.letter-peek > span:last-child { display: block; font: 17px var(--hand); color: #92725b; margin-top: 9px; }
.envelope-front { position: absolute; inset: 0; z-index: 3; background: #d9c2a4; clip-path: polygon(0 0,50% 47%,100% 0,100% 100%,0 100%); }
.envelope-front::after { content: ''; position: absolute; inset: 0; background: #e0ccb2; clip-path: polygon(0 100%,50% 45%,100% 100%); }
.envelope-flap { position: absolute; inset: 0 0 auto; height: 165px; background: #e5d3b9; clip-path: polygon(0 0,100% 0,50% 100%); z-index: 4; transform-origin: top; transition: transform .65s, filter .65s; }
.wax-seal { position: absolute; z-index: 5; top: 136px; left: calc(50% - 30px); width: 60px; height: 60px; display: grid; place-content: center; font: 26px var(--serif); color: #edc4bd; background: #8b4143; border-radius: 47% 53% 50% 45%; border: 3px solid #a14e4d; box-shadow: 1px 4px 6px #64332c38, inset 0 0 0 1px #733132; transform: rotate(9deg); transition: transform .5s; }
.wax-seal > span { font-size: 13px; position: absolute; left: 24px; top: 24px; }
.envelope-label { position: absolute; bottom: 28px; left: 0; right: 0; z-index: 5; font: 24px var(--hand); color: #7f5d49; }
.envelope-note { position: absolute; left: 10px; bottom: -54px; font: 24px var(--hand); color: var(--red); transform: rotate(3deg); }
.envelope:hover .letter-peek, .envelope:focus-visible .letter-peek { transform: translateY(-68px); }
.envelope:hover .wax-seal { transform: rotate(-7deg) scale(1.05); }
.envelope:hover .envelope-flap { filter: brightness(1.03); }
.universe-section { background: #302b35; color: #eee5dd; position: relative; overflow: hidden; }
.universe-stars { position: absolute; inset: 0; background-image: radial-gradient(circle at 11% 23%, #e4c7a699 1px, transparent 1.5px), radial-gradient(circle at 66% 75%, #e4c7a688 1px, transparent 1.5px), radial-gradient(circle at 45% 45%, #e4c7a644 1px, transparent 1.5px), radial-gradient(circle at 82% 15%, #e4c7a677 1px, transparent 1.5px); background-size: 173px 157px, 259px 227px, 331px 271px, 211px 313px; opacity: .6; animation: sky-shimmer 6s ease-in-out infinite alternate; }
.universe-inner { position: relative; z-index: 1; }
.universe-heading { text-align: center; }
.universe-heading .eyebrow { color: #ccaa98; margin-bottom: 25px; }
.universe-heading h2 { font-size: clamp(44px, 4.5vw, 64px); }
.universe-heading h2 em { color: #dab7a9; }
.universe-heading p { font-size: 11px; color: #baadb7; margin-top: 24px; }
.constellation { position: relative; height: 290px; width: min(800px, 100%); margin: 26px auto 0; }
.constellation-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation-lines path { fill: none; stroke: #b8948a; stroke-width: .8; opacity: .2; stroke-dasharray: 700; stroke-dashoffset: 0; transition: opacity .7s; }
.constellation-lines path.connected { opacity: .85; animation: connect-star 1.1s ease both; }
.constellation-star { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); background: transparent; color: #dcbba8; padding: 14px; }
.constellation-star > svg { width: 27px; height: 27px; fill: #dcbba84d; stroke: currentColor; stroke-width: .8; overflow: visible; transition: transform .4s, filter .4s; animation: star-pulse 4s ease-in-out infinite; }
.constellation-star:nth-of-type(2) > svg { animation-delay: -1s; }
.constellation-star:nth-of-type(3) > svg { animation-delay: -2s; }
.constellation-star:nth-of-type(4) > svg { animation-delay: -3s; }
.constellation-star > span { position: absolute; left: 50%; top: 55px; transform: translateX(-50%); white-space: nowrap; font: 18px var(--hand); color: #d0b3a6; opacity: .65; transition: opacity .3s; }
.constellation-star:hover > svg, .constellation-star[aria-pressed='true'] > svg { filter: drop-shadow(0 0 12px #e7bba4); fill: #e7c3ae; }
.constellation-star[aria-pressed='true'] > span { opacity: 1; }
.constellation-star:focus-visible { outline-color: #dab7a9; border-radius: 50%; }
.star-message { text-align: center; min-height: 80px; }
.star-message p { font: italic 27px var(--serif); color: #e8d4c8; }
.star-message > span { font-size: 8px; color: #bd9f96; letter-spacing: 2px; display: block; margin-top: 18px; }
.finale-section { position: relative; overflow: hidden; text-align: center; padding-block: 107px 114px; }
.finale-content { position: relative; z-index: 1; }
.finale-content .eyebrow { margin-bottom: 32px; }
.finale-initials { font: 31px var(--serif); color: var(--red); display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 27px; }
.finale-initials .icon { width: 18px; height: 18px; }
.finale-content h2 { font-size: clamp(44px, 5.1vw, 72px); }
.finale-content p { font-size: 12px; line-height: 2; color: var(--muted); margin-top: 30px; }
.finale-content .button { margin-top: 32px; }
.finale-note { font: 21px var(--hand); color: #9c7464; display: block; margin-top: 19px; }
.finale-flower { position: absolute; width: 200px; height: 200px; color: #b3867244; top: 43%; }
.finale-flower svg { width: 100%; height: 100%; }
.flower-left { left: -65px; transform: rotate(-20deg); }
.flower-right { right: -65px; transform: rotate(20deg); }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding-block: 35px; gap: 28px; }
.site-footer .wordmark { font-size: 36px; }
.site-footer > p { font-size: 10px; text-align: center; color: #6e5b51; }
.site-footer > p span { display: block; color: #928076; font-size: 8px; margin-top: 3px; }
.footer-controls { display: flex; flex-direction: column; text-align: right; gap: 6px; font-size: 9px; color: #867369; }
.footer-controls button { background: transparent; padding: 0; text-align: right; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }

/* Little things you can open and keep. Native dialogs retain focus. */
.romance-dialog { padding: 0; border: 1px solid #d9c7b8; background: var(--paper); color: var(--ink); border-radius: 4px; width: min(640px, calc(100% - 40px)); max-height: 88svh; overflow: auto; box-shadow: 0 25px 100px #26171844; }
.romance-dialog[open] { animation: dialog-arrive .45s cubic-bezier(.2,.7,.3,1) both; }
.romance-dialog::backdrop { background: #30262680; backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 13px; right: 13px; background: var(--paper); z-index: 2; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #ddcfc2; border-radius: 50%; color: var(--red); transition: transform .3s; }
.dialog-close:hover { transform: rotate(90deg); }
.dialog-close .icon { width: 16px; height: 16px; }
.letter-paper { padding: 58px 62px 40px; background-image: repeating-linear-gradient(transparent, transparent 31px, #ccb89d17 31px, #ccb89d17 32px); position: relative; }
.letter-paper .eyebrow { font-size: 8px; margin-bottom: 25px; }
.letter-paper h2 { font: 43px var(--hand); color: var(--red); letter-spacing: 0; margin-bottom: 23px; }
.letter-paragraphs p { font: 22px/1.48 var(--hand); color: #6d5346; margin-bottom: 18px; }
.letter-paragraphs p:nth-child(2) { animation-delay: .13s; }
.letter-paragraphs p:nth-child(3) { animation-delay: .23s; }
.letter-paragraphs p:nth-child(4) { animation-delay: .33s; }
.letter-paragraphs p:nth-child(5) { animation-delay: .43s; }
.letter-paragraphs p:nth-child(6) { animation-delay: .53s; }
.letter-dialog[open] .letter-paragraphs p { animation-name: text-arrive; animation-duration: .7s; animation-fill-mode: both; }
.letter-closing span { color: var(--red); font-size: 32px; }
.letter-paper-heart { position: absolute; right: 62px; bottom: 102px; width: 39px; height: 39px; color: var(--red); transform: rotate(15deg); stroke-width: 1; }
.letter-paper .text-button { margin-top: 8px; font-size: 10px; }
.memory-dialog { width: min(880px, calc(100% - 40px)); }
.memory-dialog > img { height: 340px; filter: saturate(.85); }
.memory-dialog-copy { padding: 30px 44px 28px; text-align: center; }
.memory-dialog-copy .eyebrow { font-size: 8px; margin-bottom: 13px; }
.memory-dialog-copy h2 { font-size: 48px; letter-spacing: -1px; }
.memory-dialog-copy p { font-size: 12px; line-height: 1.9; color: var(--muted); max-width: 570px; margin: 17px auto 0; }
.memory-dialog-nav { display: flex; justify-content: center; align-items: center; gap: 25px; margin-top: 24px; }
.memory-dialog-nav > span { font-size: 9px; color: var(--muted); letter-spacing: 1px; }
.round-button { background: transparent; border: 1px solid #cdb8a8; border-radius: 50%; width: 34px; height: 34px; color: var(--red); transition: background .2s; }
.round-button:hover { background: var(--pink); }
.note-dialog { text-align: center; padding: 48px 48px 42px; width: min(510px, calc(100% - 40px)); background: #f4e8d8; }
.note-flower { width: 51px; height: 51px; color: var(--red); margin-bottom: 18px; }
.note-dialog .eyebrow { font-size: 8px; margin-bottom: 21px; }
.note-dialog h2 { font-size: 35px; letter-spacing: -.5px; }
.note-dialog > p { font: 34px/1.2 var(--hand); color: var(--red); min-height: 115px; display: grid; place-content: center; margin: 25px 0 0; }
.note-signature { font: 25px var(--hand); color: #99735e; display: block; margin-top: 14px; }
.note-dialog .button { margin-top: 26px; font-size: 10px; min-height: 45px; }
.confession-dialog { text-align: center; padding: 50px 50px 46px; width: min(590px, calc(100% - 40px)); }
.confession-heart { width: 48px; height: 48px; color: var(--red); stroke-width: .8; margin-bottom: 20px; }
.confession-dialog .eyebrow { font-size: 8px; margin-bottom: 25px; }
.confession-dialog h2 { font-size: 51px; letter-spacing: -1px; }
.confession-dialog > p { font-size: 12px; color: var(--muted); margin: 24px auto 0; max-width: 390px; line-height: 1.9; }
.confession-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; }
.confession-actions .text-button { font-size: 10px; }
#confession-done { margin-top: 25px; }
.confession-dialog.celebrating .confession-heart { fill: #853c4220; animation: heartbeat 1.2s ease-in-out 3; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 100; background: var(--red-dark); color: var(--paper); padding: 12px 24px; border-radius: 3px; max-width: calc(100% - 40px); width: max-content; font-size: 11px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.no-script-note { padding: 20px; background: var(--pink); text-align: center; }

/* Motion is progressive enhancement: all content exists without it. */
.js-enabled .reveal { opacity: 0; translate: 0 24px; transition: opacity .9s ease, translate .9s cubic-bezier(.2,.7,.3,1); }
.js-enabled .reveal.visible { opacity: 1; translate: 0 0; }
.memory-card:nth-child(2), .reason-card:nth-child(3n+2) { transition-delay: .1s; }
.memory-card:nth-child(3), .reason-card:nth-child(3n) { transition-delay: .2s; }
@keyframes text-arrive { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes art-arrive { from { opacity: 0; transform: translateY(20px) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes dialog-arrive { from { opacity: 0; translate: 0 24px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes stamp-spin { to { transform: rotate(360deg); } }
@keyframes spark-turn { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(25deg) scale(.88); } }
@keyframes flower-sway { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(8deg); } }
@keyframes scroll-down { to { transform: translateY(60px); } }
@keyframes ribbon-scroll { to { transform: translateX(-50%); } }
@keyframes sound-wave { from { transform: scaleY(.4); } to { transform: scaleY(1.2); } }
@keyframes chapter-change { from { opacity: .25; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@keyframes sky-shimmer { from { opacity: .4; } to { opacity: .85; } }
@keyframes star-pulse { 0%,100% { opacity: .65; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes connect-star { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

/* Responsive pages of the same scrapbook, not a smaller desktop. */
@media (min-width: 1600px) { .hero { height: 800px; } }
@media (max-width: 1150px) {
  .section-shell { width: calc(100% - 80px); }
  .site-header nav { gap: 25px; }
  .hero { min-height: 710px; grid-template-columns: 51% 49%; }
  .hero h1 { font-size: 100px; }
  .hero-heart { width: 64px; height: 64px; }
  .hero-buttons { gap: 19px; }
  .hero-art { height: 550px; }
  .hero-photo { width: 285px; left: 0; top: 68px; }
  .hero-photo img { height: 335px; }
  .mini-photo { width: 190px; top: 319px; right: -3px; }
  .mini-photo img { height: 130px; }
  .orbit-stamp { right: 0; }
  .hero-note { font-size: 24px; left: 0; bottom: 0; }
  .art-flower { left: 135px; bottom: 10px; width: 70px; height: 70px; }
  .spark-one { top: 190px; right: 0; font-size: 38px; }
  .photo-coordinate { bottom: 0; font-size: 6px; }
  .chapter-tabs { padding-inline: 21px; }
  .chapter-tabs button { gap: 12px; }
  .chapter-tabs button strong { font-size: 21px; }
  .chapter-copy { padding: 35px 24px; }
  .chapter-copy h3 { font-size: 32px; }
  .memory-grid { gap: 23px; }
  .memory-caption { font-size: 26px; }
  .memory-meta { font-size: 6px; letter-spacing: .9px; }
  .reason-card { padding-inline: 25px; }
  .reason-card h3 { font-size: 27px; }
  .envelope { width: 360px; height: 250px; }
  .envelope-flap { height: 137px; }
  .wax-seal { top: 108px; }
}
@media (max-width: 900px) {
  .section-shell { width: calc(100% - 56px); }
  .site-header { width: calc(100% - 56px); height: 80px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 10px; }
  .sound-label { display: none; }
  .hero { min-height: 650px; height: auto; grid-template-columns: 51% 49%; padding-block: 50px 90px; }
  .hero h1 { font-size: 82px; letter-spacing: -3px; }
  .hero-heart { width: 48px; height: 48px; }
  .hero .eyebrow { font-size: 8px; }
  .hero-description { font-size: 11px; }
  .hero-buttons { flex-wrap: wrap; gap: 3px 15px; }
  .hero-buttons .button { padding: 12px 17px; min-height: 48px; }
  .hero-signature { margin-top: 22px; }
  .hero-signature > span:last-child { font-size: 8px; }
  .hero-art { height: 470px; }
  .hero-photo { width: 238px; top: 50px; left: 5px; padding: 9px 9px 0; }
  .hero-photo img { height: 290px; }
  .hero-photo figcaption { font-size: 20px; }
  .photo-tape { left: 65px; }
  .mini-photo { width: 155px; top: 274px; right: -5px; }
  .mini-photo img { height: 105px; }
  .mini-photo figcaption { font-size: 17px; }
  .orbit-stamp { width: 100px; height: 100px; top: -4px; right: 1px; }
  .orbit-stamp .stamp-heart { top: 35px; left: 35px; width: 30px; height: 30px; }
  .hero-note { font-size: 22px; bottom: 0; left: 10px; }
  .hero-note svg { width: 65px; left: -42px; }
  .art-flower { left: 124px; bottom: 14px; width: 50px; height: 50px; }
  .spark-one { right: 0; top: 145px; font-size: 30px; }
  .spark-two { left: -12px; font-size: 25px; }
  .photo-coordinate { display: none; }
  .hero-side-note { right: -17px; }
  .section-pad { padding-block: 82px; }
  h2 { font-size: 48px; }
  .section-heading { gap: 25px; }
  .section-heading > p { font-size: 10px; }
  .story-layout { grid-template-columns: 37% 63%; }
  .chapter-tabs { padding: 15px 18px; }
  .chapter-tabs button { padding-block: 26px; }
  .chapter-tabs button strong { font-size: 20px; }
  .chapter-tabs button small { font-size: 7px; }
  .chapter-number { font-size: 25px; }
  .chapter-tabs .icon { display: none; }
  .chapter-panel { grid-template-columns: 1fr; }
  .chapter-image { height: 155px; }
  .chapter-image-note { font-size: 23px; bottom: 13px; }
  .chapter-copy { padding: 25px; }
  .chapter-copy .eyebrow { margin-bottom: 10px; }
  .chapter-copy h3 { font-size: 30px; margin-bottom: 12px; }
  .chapter-copy p { font-size: 11px; }
  .chapter-footnote { font-size: 18px; margin-top: 15px; }
  .story-quote p { font-size: 28px; }
  .heading-note { font-size: 24px; padding-right: 20px; }
  .memory-grid { gap: 17px; margin-inline: 5px; }
  .memory-card { padding: 9px 9px 16px; }
  .memory-caption { font-size: 24px; margin-left: 2px; }
  .memory-meta { font-size: 5px; margin-left: 2px; }
  .memory-heart { font-size: 48px; right: 5px; bottom: 0; }
  .reason-card { padding: 25px 20px; }
  .reason-card h3 { font-size: 25px; }
  .reason-card p { font-size: 10px; }
  .reason-icon { right: 22px; width: 30px; height: 30px; }
  .reason-doodle { right: 22px; font-size: 40px; }
  .reason-jar { gap: 18px; padding: 20px 23px; }
  .reason-jar h3 { font-size: 25px; }
  .reason-jar .button { font-size: 10px; padding-inline: 14px; gap: 10px; }
  .letter-inner { grid-template-columns: 53% 47%; }
  .letter-copy h2 { font-size: 42px; }
  .envelope { width: 290px; height: 213px; }
  .envelope-flap { height: 113px; }
  .wax-seal { top: 89px; width: 50px; height: 50px; left: calc(50% - 25px); font-size: 22px; }
  .wax-seal > span { left: 19px; top: 19px; }
  .letter-peek { padding: 18px; }
  .letter-peek > span:first-child { font-size: 27px; }
  .letter-peek > span:last-child { font-size: 13px; }
  .envelope-label { font-size: 20px; bottom: 22px; }
  .envelope-note { font-size: 20px; bottom: -48px; }
  .constellation-star > span { font-size: 16px; }
  .site-footer > p { font-size: 9px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 24px; }
  .section-shell { width: calc(100% - 44px); }
  .site-header { width: calc(100% - 40px); height: 75px; }
  .wordmark { font-size: 36px; }
  .menu-toggle { display: block; }
  .header-actions { gap: 14px; }
  .sound-label { display: inline; font-size: 9px; }
  .site-header nav { display: none; position: absolute; left: -20px; right: -20px; top: 75px; background: var(--paper); padding: 24px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 25px #3c302e0c; }
  .site-header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header nav a { font-size: 13px; padding: 13px 3px; }
  .site-header nav a::after { display: none; }
  .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 46px 0 87px; min-height: 0; }
  .hero .eyebrow { font-size: 8px; margin-bottom: 25px; }
  .hero h1 { font-size: clamp(82px, 20vw, 114px); letter-spacing: -3.7px; }
  .hero-heart { width: 61px; height: 61px; margin-left: 14px; }
  .hero-description { font-size: 12px; margin-top: 26px; }
  .hero-buttons { margin-top: 26px; gap: 20px; }
  .hero-buttons .button { font-size: 10px; padding: 13px 17px; }
  .hero-buttons .text-button { font-size: 10px; gap: 6px; }
  .hero-signature { margin-top: 26px; }
  .hero-art { width: 340px; max-width: 100%; height: 448px; align-self: center; margin-top: 30px; }
  .hero-photo { width: 240px; top: 45px; left: 15px; }
  .hero-photo img { height: 286px; }
  .mini-photo { width: 162px; right: -3px; top: 255px; }
  .mini-photo img { height: 112px; }
  .orbit-stamp { width: 92px; height: 92px; right: 0; top: -1px; }
  .orbit-stamp .stamp-heart { top: 33px; left: 33px; width: 26px; height: 26px; }
  .hero-note { bottom: 0; left: 13px; font-size: 25px; }
  .art-flower { width: 55px; height: 55px; left: 139px; bottom: 9px; }
  .spark-one { right: -5px; top: 131px; font-size: 38px; }
  .spark-two { left: -8px; top: 278px; }
  .hero-side-note { display: none; }
  .scroll-cue { font-size: 7px; bottom: 21px; }
  .scroll-line { height: 30px; }
  .love-ribbon { height: 59px; }
  .ribbon-track { gap: 35px; }
  .ribbon-track span { font-size: 23px; }
  .ribbon-track svg { width: 22px; height: 22px; }
  .section-pad { padding-block: 66px; }
  h2 { font-size: clamp(38px, 10vw, 49px); letter-spacing: -1.3px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
  .section-heading { display: block; margin-bottom: 31px; }
  .section-heading .eyebrow { margin-bottom: 19px; }
  .section-heading > p { margin-top: 20px; font-size: 11px; }
  .story-layout { display: flex; flex-direction: column; }
  .chapter-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter-tabs button { padding: 17px 5px; gap: 10px; align-items: flex-start; }
  .chapter-tabs button:nth-child(3) { border-bottom: 0; }
  .chapter-tabs button strong { font-size: 18px; max-width: 116px; display: block; }
  .chapter-tabs button small { font-size: 6px; letter-spacing: .7px; margin-bottom: 5px; }
  .chapter-number { font-size: 22px; line-height: 1; margin-top: 1px; }
  .chapter-panel { display: block; min-height: 440px; }
  .chapter-image { height: 200px; }
  .chapter-image-note { font-size: 25px; bottom: 20px; left: 25px; }
  .chapter-copy { padding: 26px; }
  .chapter-copy h3 { font-size: 33px; }
  .chapter-copy p { font-size: 12px; }
  .chapter-footnote { font-size: 21px; margin-top: 18px; }
  .story-quote { margin-top: 43px; }
  .story-quote p { font-size: 26px; }
  .story-quote p br { display: none; }
  .story-quote > span { font-size: 20px; }
  .heading-note { display: none; }
  .memory-grid { display: flex; flex-direction: column; gap: 35px; margin: 48px 13px 0; }
  .memory-card { width: 100%; max-width: 340px; align-self: center; padding: 12px 12px 22px; }
  .memory-card:nth-child(2) { margin-top: 0; }
  .memory-image { aspect-ratio: 1.25; }
  .memory-caption { font-size: 31px; margin: 15px 5px 5px; }
  .memory-meta { font-size: 7px; margin-left: 6px; letter-spacing: 1px; }
  .memory-open { opacity: 1; transform: none; }
  .memory-heart { font-size: 65px; bottom: 0; right: 12px; }
  .memory-bottom { font-size: 9px; margin-top: 47px; gap: 7px; }
  .reasons-intro .eyebrow { margin-bottom: 20px; }
  .reasons-intro p { font-size: 11px; }
  .reasons-grid { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .reason-card { padding: 22px 15px 24px; min-height: 230px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .reason-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .reason-card:nth-child(2n) { border-right: 0; }
  .reason-card:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .reason-card:nth-child(n+5) { border-bottom: 0; }
  .reason-number { font-size: 22px; }
  .reason-icon { width: 26px; height: 26px; right: 15px; top: 21px; }
  .reason-doodle { font-size: 32px; right: 15px; top: 14px; }
  .reason-card h3 { font-size: 24px; margin-top: 25px; line-height: 1.1; }
  .reason-card p { font-size: 10px; line-height: 1.8; margin-top: 12px; }
  .reason-jar { flex-wrap: wrap; padding: 24px 22px; gap: 14px; margin-top: 30px; }
  .jar-drawing svg { width: 47px; height: 57px; }
  .reason-jar h3 { font-size: 27px; }
  .reason-jar p { font-size: 10px; }
  .reason-jar .button { margin: 4px 0 0; width: 100%; font-size: 11px; }
  .letter-inner { display: flex; flex-direction: column; gap: 58px; align-items: stretch; }
  .letter-copy h2 { font-size: 42px; }
  .letter-copy p { font-size: 12px; margin-top: 22px; }
  .envelope { align-self: center; width: 310px; height: 223px; margin: 0 0 38px; }
  .envelope-flap { height: 120px; }
  .wax-seal { top: 97px; }
  .envelope-note { font-size: 22px; bottom: -51px; left: 0; }
  .universe-heading h2 { font-size: 40px; }
  .universe-heading p { font-size: 10px; max-width: 270px; margin-inline: auto; }
  .constellation { height: 244px; margin-top: 18px; }
  .constellation-star { padding: 11px; }
  .constellation-star > svg { width: 23px; height: 23px; }
  .constellation-star > span { font-size: 13px; top: 43px; white-space: normal; width: 66px; line-height: 1.1; }
  .star-message p { font-size: 24px; line-height: 1.2; }
  .star-message > span { font-size: 7px; margin-top: 18px; }
  .finale-content .eyebrow { font-size: 7px; margin-bottom: 25px; }
  .finale-content { padding-inline: 22px; }
  .finale-content h2 { font-size: 43px; }
  .finale-content p { font-size: 11px; margin-top: 24px; }
  .finale-content h2 br { display: none; }
  .finale-content .button { margin-top: 28px; }
  .finale-note { font-size: 18px; }
  .finale-flower { width: 100px; height: 100px; opacity: .6; top: 50%; }
  .flower-left { left: -48px; }
  .flower-right { right: -48px; }
  .site-footer { flex-wrap: wrap; padding-block: 27px; gap: 20px; }
  .site-footer > p { order: 3; width: 100%; text-align: left; font-size: 9px; }
  .footer-controls { font-size: 8px; }
  .footer-controls button { font-size: 8px; }
  .romance-dialog { max-height: 90svh; }
  .letter-paper { padding: 52px 26px 30px; }
  .letter-paper h2 { font-size: 38px; }
  .letter-paragraphs p { font-size: 21px; }
  .letter-paper-heart { right: 30px; bottom: 100px; width: 32px; height: 32px; }
  .memory-dialog > img { height: 240px; }
  .memory-dialog-copy { padding: 26px 24px; }
  .memory-dialog-copy h2 { font-size: 39px; }
  .memory-dialog-copy p { font-size: 11px; }
  .note-dialog { padding: 43px 25px 30px; }
  .note-dialog > p { font-size: 30px; }
  .confession-dialog { padding: 47px 25px 32px; }
  .confession-dialog h2 { font-size: 43px; }
  .toast { font-size: 10px; bottom: 18px; padding: 10px 16px; }
}
@media (max-width: 360px) {
  .section-shell { width: calc(100% - 36px); }
  .hero h1 { font-size: 80px; }
  .hero-heart { width: 48px; height: 48px; margin-left: 5px; }
  .hero-buttons { gap: 12px; }
  .hero-buttons .button { padding-inline: 12px; gap: 12px; }
  .hero-art { height: 420px; }
  .hero-photo { width: 215px; left: 10px; }
  .hero-photo img { height: 260px; }
  .mini-photo { width: 143px; right: 0; top: 243px; }
  .mini-photo img { height: 94px; }
  .hero-note { font-size: 23px; }
  .reason-jar h3 { font-size: 24px; }
  .letter-copy h2 { font-size: 38px; }
  .envelope { width: 267px; height: 198px; }
  .envelope-flap { height: 108px; }
  .wax-seal { top: 82px; }
  .constellation-star > span { font-size: 12px; width: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-enabled .reveal { opacity: 1; translate: none; }
  .hero-heart path { stroke-dashoffset: 0; }
  #petal-canvas { display: none; }
  .tilt-card { transform: rotate(var(--rotation, 0deg)); }
}
body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { animation-play-state: paused !important; transition: none !important; }
body.motion-paused { scroll-behavior: auto; }
body.motion-paused .reveal { opacity: 1; translate: none; }
body.motion-paused .hero-enter, body.motion-paused .hero-art, body.motion-paused .letter-paragraphs p { animation: none; opacity: 1; transform: none; }
body.motion-paused .hero-heart path { stroke-dashoffset: 0; }
body.motion-paused .tilt-card { transform: rotate(var(--rotation, 0deg)); }
@media print {
  body { background: white; }
  .site-header, #petal-canvas, .reading-progress, .hero-art, .love-ribbon, .universe-section, .footer-controls, button, .scroll-cue, .hero-side-note { display: none !important; }
  .reveal { opacity: 1 !important; translate: none !important; }
  .section-pad { padding-block: 35px; }
  .hero { min-height: auto; display: block; padding-block: 30px; }
  .hero h1 { font-size: 68px; }
  .memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .memory-card { display: block !important; }
  .romance-dialog[open] { position: absolute; width: 100%; max-height: none; border: 0; box-shadow: none; }
}
