@charset "UTF-8";

:root {
  --paper: #f6f2e9;
  --ink: #343c33;
  --muted: #676b5f;
  --red: #a54134;
  --line: #d9d6c9;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 7px; }
button:disabled { cursor: default; }
::selection { background: #e7c5a8; color: #343c33; }
.paper-grain { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .24; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' opacity='.16' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
.masthead { max-width: 1440px; margin: auto; height: 116px; padding: 0 5.6%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .12em; }
.brand svg { width: 28px; fill: none; stroke: var(--ink); stroke-width: 1.1; }
.brand-en { display: block; font-family: Georgia, serif; font-size: 8px; font-weight: 400; letter-spacing: .14em; margin-top: 5px; }
.masthead-note { font-size: 11px; letter-spacing: .16em; color: var(--muted); display: flex; align-items: center; gap: 17px; }
.masthead-actions { display: flex; align-items: center; gap: 25px; }
.bgm-toggle { min-height: 44px; border: 1px solid var(--line); border-radius: 24px; background: transparent; padding: 0 16px; font-size: 11px; white-space: nowrap; letter-spacing: .04em; }
.bgm-toggle[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tiny-star { font-size: 24px; color: var(--red); }
.drawn-star { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.cover { position: relative; max-width: 1440px; min-height: calc(100svh - 116px); margin: auto; padding: 55px 8% 116px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 5%; }
.eyebrow { font-size: 9px; font-family: var(--sans); font-weight: 500; letter-spacing: .2em; }
.cover .eyebrow { display: flex; align-items: center; gap: 11px; font-size: 9px; letter-spacing: .15em; }
.eyebrow > span { width: 20px; height: 1px; background: var(--red); }
.cover h1 { margin: 33px 0 29px; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 3.8vw, 55px); line-height: 1.55; letter-spacing: .02em; }
.underlined { color: var(--red); position: relative; display: inline-block; }
.underlined::after { content: ""; position: absolute; bottom: 8px; left: -3px; width: 105%; height: 8px; border-top: 1px solid var(--red); border-radius: 60% 40%; transform: rotate(-5deg); }
.cover-description { font-size: 13px; color: var(--muted); line-height: 2.2; letter-spacing: .09em; }
.handwritten { font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--serif); font-weight: 400; }
.cover-handwriting { color: var(--red); margin-top: 29px; font-size: 18px; letter-spacing: .05em; transform: rotate(-3deg); }
.envelope-scene { position: relative; padding: 96px 0 82px; isolation: isolate; }
.envelope-caption { font-size: 11px; letter-spacing: .16em; color: var(--muted); display: flex; align-items: center; gap: 12px; margin: 0 0 22px 10px; transform: rotate(-4deg); }
.caption-line { width: 27px; height: 1px; background: #b7b4a5; }
.envelope { display: block; width: 100%; aspect-ratio: 1.55; padding: 0; position: relative; border: 0; background: none; transform: rotate(-7deg); perspective: 1000px; filter: drop-shadow(0 19px 17px #5e4d2e1c); transition: transform .6s ease, filter .6s ease; }
.envelope:hover { transform: rotate(-3deg) translateY(-6px); filter: drop-shadow(0 26px 20px #5e4d2e24); }
.envelope-back { position: absolute; inset: 0; border-radius: 5px; background: #d6bd96; box-shadow: inset 0 0 0 1px #bfa17a40; }
.envelope-front { position: absolute; inset: 0; z-index: 3; border-radius: 4px; background: linear-gradient(32deg, transparent 49.8%, #b99b7326 50%, transparent 50.5%) 0 0 / 50% 100% no-repeat, linear-gradient(-32deg, transparent 49.8%, #b99b7326 50%, transparent 50.5%) 100% 0 / 50% 100% no-repeat, #e4cfac; clip-path: polygon(0 0, 50% 53%, 100% 0, 100% 100%, 0 100%); }
.envelope-flap { position: absolute; inset: 0 0 38%; background: #ead7b8; clip-path: polygon(0 0, 100% 0, 52% 86%, 48% 86%); transform-origin: top center; z-index: 4; transition: transform .7s ease, filter .7s; filter: drop-shadow(0 2px 1px #80664650); backface-visibility: hidden; }
.envelope-letter { position: absolute; inset: 8% 8% 10%; z-index: 2; background: #fffcf2; border: 1px solid #e5ddcc; padding: 23% 10% 10%; transition: transform .75s .35s; }
.mini-letter-title { display: block; font: italic 26px Georgia, serif; color: var(--red); }
.mini-letter-line { height: 1px; background: #ded8cb; width: 85%; display: block; margin-top: 15px; }
.mini-letter-line:last-child { width: 65%; }
.wax-seal { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(9deg); z-index: 5; width: 70px; height: 70px; display: grid; place-items: center; color: #df9e84; background: #a54134; border-radius: 45% 48% 43% 49%; border: 3px solid #b65442; box-shadow: 2px 4px 7px #70322240, inset 1px 1px 4px #e08e67, inset -2px -2px 5px #702e28; transition: opacity .3s, transform .5s; }
.wax-seal::before { content: ""; position: absolute; inset: 7px; border: 1px solid #cf7c5c; border-radius: 50%; }
.wax-seal span { font: 38px Georgia, serif; line-height: 1; text-shadow: 1px 1px 1px #662c26; }
.envelope-to { position: absolute; left: 9%; right: 20%; bottom: 17%; display: flex; gap: 15px; align-items: baseline; font: 10px Georgia, serif; letter-spacing: .08em; color: #8c7358; }
.envelope-to > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 18px var(--serif); color: #65553f; letter-spacing: .09em; }
.envelope-label { position: absolute; right: 8%; bottom: 12%; writing-mode: vertical-rl; font: 9px var(--serif); letter-spacing: .3em; color: #8a775c; }
.open-hint { font-size: 11px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 9px; margin: 41px 0 0; letter-spacing: .1em; }
.hint-dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; animation: hint-pulse 2.5s infinite; }
.postmark { width: 102px; height: 102px; border: 1px solid #a541346e; border-radius: 50%; position: absolute; right: -2%; top: 5px; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: #a54134a6; transform: rotate(14deg); }
.postmark::before { content: ""; position: absolute; inset: 5px; border: 1px dashed #a5413470; border-radius: 50%; }
.postmark span { font: 6px Georgia, serif; letter-spacing: .1em; }
.postmark b { font: 18px/1.15 var(--serif); letter-spacing: .17em; padding-left: .17em; }
.postmark .postmark-age { font: italic 37px/1 Georgia, serif; letter-spacing: 0; padding: 0; }
.floating-star { position: absolute; color: var(--red); }
.star-one { top: 38px; left: 7%; font-size: 40px; transform: rotate(20deg); }
.star-two { bottom: 39px; right: 8%; color: #9eab92; font-size: 24px; }
.envelope-scribble { font-size: 17px; color: #807c68; position: absolute; bottom: -7px; left: 8%; transform: rotate(-6deg); }
.envelope-scribble svg { position: absolute; width: 64px; top: -18px; right: -73px; fill: none; stroke: #807c68; stroke-width: 1; transform: rotate(-83deg); }
.cover-footer { position: absolute; bottom: 28px; left: 5.6%; right: 5.6%; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 19px; font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.cover-footer > span:last-child { font: 8px Georgia, serif; letter-spacing: .15em; }
.cover-footer > span:last-child > span { font-size: 16px; margin-left: 11px; color: var(--red); }
.cover.is-opening .envelope { transform: rotate(0); }
.cover.is-opening .wax-seal { opacity: 0; transform: translate(-50%, -50%) scale(1.3) rotate(20deg); }
.cover.is-opening .envelope-flap { transform: rotateX(-178deg); }
.cover.is-opening .envelope-letter { transform: translateY(-48%); }
.cover.is-opening .cover-copy { opacity: .45; transition: opacity 1s; }

.letter { max-width: 960px; padding: 27px 48px 0; margin: 0 auto; animation: letter-appear .9s ease both; }
.letter-topline { display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 0; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.letter-topline > span:first-child, .letter-topline > span:last-child { font: 9px Georgia, serif; }
.letter-heading { position: relative; padding: 70px 0 65px; }
.letter-heading .eyebrow { color: var(--red); }
.letter-heading h1 { font: 500 clamp(35px, 5vw, 57px)/1.55 var(--serif); letter-spacing: .06em; margin: 23px 0 0; outline: none; overflow-wrap: anywhere; }
.recipient-heading { font-size: .86em; }
.red-period { color: var(--red); }
.heading-note { display: inline-block; margin-top: 22px; color: #787c68; font-size: 17px; transform: rotate(-3deg); }
.letter-flower { position: absolute; right: 15px; top: 95px; color: var(--red); font-size: 90px; font-weight: 300; transform: rotate(15deg); }
.friendship-note { position: relative; display: flex; align-items: center; gap: 45px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0 30px; margin-bottom: 65px; }
.friendship-number { flex-shrink: 0; }
.friendship-number > span { font: italic 66px/1 Georgia, serif; color: var(--red); letter-spacing: -.05em; }
.friendship-number small { display: block; font-size: 9px; letter-spacing: .1em; margin-top: 12px; color: var(--muted); }
.friendship-note > p { font: 14px/2.1 var(--serif); margin: 0; padding-right: 30px; }
.friendship-flower { font-size: 27px; color: #7a8769; margin-left: auto; }
.memories-section { margin-bottom: 65px; }
.memory-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 10px 5px 0; align-items: start; }
.memory-card { position: relative; margin: 0; padding: 10px 10px 20px; background: #fffdf6; box-shadow: 1px 5px 16px #534c3712; transform: rotate(-1deg); border: 1px solid #e6e0d4; }
.memory-card::before { content: ""; position: absolute; z-index: 1; top: -8px; left: calc(50% - 35px); height: 22px; width: 70px; background: #c3b49573; transform: rotate(4deg); border-left: 1px dashed #f6f2e9; border-right: 1px dashed #f6f2e9; pointer-events: none; }
.memory-card:first-child { grid-column: 1 / -1; transform: rotate(.5deg); }
.memory-card:nth-child(3), .memory-card:nth-child(5) { transform: rotate(1deg); }
.memory-open { display: block; position: relative; border: 0; padding: 0; width: 100%; background: #e8e3d8; overflow: hidden; }
.memory-open img { display: block; width: 100%; height: auto; transition: filter .25s; }
.memory-open:hover img { filter: brightness(1.07); }
.memory-expand { position: absolute; bottom: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: #fffdf6ed; color: var(--ink); font-size: 20px; border-radius: 50%; }
.memory-card figcaption { padding: 19px 10px 0; }
.memory-number { font: 8px Georgia, serif; color: var(--red); letter-spacing: .15em; }
.memory-card h3 { font: 500 21px/1.6 var(--serif); margin: 9px 0 7px; }
.memory-card figcaption p { font: 12px/1.9 var(--serif); color: var(--muted); margin: 0; }
.memory-quote { font: 21px/2 var(--serif); text-align: center; margin: 55px 0 0; padding: 30px 5px; letter-spacing: .04em; }
.memory-quote em { font-style: normal; color: var(--red); }
.memory-dialog { width: min(1100px, 94vw); max-width: 94vw; max-height: 92svh; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 100px #0005; }
.memory-dialog::backdrop { background: #20271fe6; }
.memory-dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 5px 23px; border-bottom: 1px solid var(--line); }
.memory-dialog-toolbar p { font: 17px/1.6 var(--serif); margin: 10px 0; }
.memory-dialog-image { padding: 12px; background: #e9e4d8; }
.memory-dialog-image img { display: block; max-width: 100%; max-height: 67svh; width: auto; height: auto; margin: auto; object-fit: contain; }
.memory-view-caption { font: 12px/1.9 var(--serif); margin: 0; padding: 17px 23px 20px; color: var(--muted); }
.margin-note .margin-note-small { display: block; margin-top: 13px; font: 10px/1.9 var(--serif); color: var(--muted); }
.letter-body { border-top: 1px solid var(--line); padding-top: 32px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 25px; }
.margin-note { color: var(--muted); font-size: 11px; line-height: 2; letter-spacing: .08em; }
.margin-note > span { display: block; font: 13px/2 Georgia, serif; color: var(--red); }
.prose { font: 15px/2.35 var(--serif); letter-spacing: .04em; }
.prose p { margin: 0 0 24px; }
.prose .opening-line { font-size: 18px; line-height: 1.95; margin-bottom: 31px; }
.prose .prose-signoff { font-size: 14px; margin: 31px 0 0; }
.prose strong { font-weight: 500; color: var(--red); }
.wishes-section { margin-top: 85px; }
.section-label { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 9px Georgia, serif; letter-spacing: .15em; color: var(--muted); }
.section-label > span:last-child { font-size: 22px; color: var(--red); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 25px 0 33px; }
.section-heading h2 { font: 500 26px/1.6 var(--serif); margin: 0; }
.section-heading > p { font-size: 10px; color: var(--muted); margin: 0; }
.wish-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 8px 2px; }
.wish-card { position: relative; padding: 33px 23px 23px; min-height: 257px; text-align: left; border: 0; background: #eae7d7; box-shadow: 2px 6px 12px #534c3710; transform: rotate(-2deg); transition: transform .3s ease, box-shadow .3s ease; }
.wish-card::before { content: ""; position: absolute; width: 65px; height: 22px; top: -10px; left: calc(50% - 32px); background: #cfbe9561; transform: rotate(-4deg); border-left: 1px dashed #f6f2e9; border-right: 1px dashed #f6f2e9; }
.wish-card:nth-child(2) { transform: translateY(9px) rotate(2deg); background: #e8d8ca; }
.wish-card:nth-child(3) { transform: rotate(-1deg); background: #dfe5d5; }
.wish-card:hover, .wish-card[aria-expanded="true"] { transform: translateY(-5px) rotate(0); box-shadow: 3px 12px 18px #534c3717; }
.wish-number { display: block; font: italic 26px Georgia, serif; opacity: .5; }
.wish-title { display: block; font: 500 19px/1.5 var(--serif); margin: 25px 0 13px; }
.wish-teaser, .wish-message { display: block; font: 12px/1.95 var(--serif); }
.wish-action { display: flex; justify-content: space-between; font-size: 9px; color: #626553; margin-top: 28px; letter-spacing: .08em; }
.wish-note { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid #53503e24; font: 12px/1.8 var(--serif); color: var(--red); }
.birthday-section { position: relative; text-align: center; margin-top: 105px; padding: 64px 20px 58px; border: 1px solid var(--line); border-radius: 160px 160px 0 0 / 55px 55px 0 0; background: #ede8da42; overflow: hidden; }
.birthday-section > .eyebrow { color: var(--red); font: 9px Georgia, serif; }
.birthday-section h2 { font: 500 38px/1.6 var(--serif); letter-spacing: .06em; margin: 20px 0 16px; }
.candle-message { max-width: 430px; min-height: 44px; margin: 0 auto; font: 13px/1.9 var(--serif); color: var(--muted); }
.cake { max-width: 290px; margin: 4px auto 16px; position: relative; }
.cake-drawing { display: block; width: 100%; overflow: visible; }
.flame { transform-origin: 160px 80px; animation: candle-flicker 2s ease-in-out infinite alternate; transition: opacity .35s; }
.candle-smoke { opacity: 0; }
.cake.is-blown .flame { opacity: 0; animation: none; }
.cake.is-blown .candle-smoke { animation: smoke-rise 2.2s ease-out both; }
.cake-spark { position: absolute; color: #ac8b52; font-size: 24px; }
.spark-left { left: 7px; top: 62px; transform: rotate(-15deg); }
.spark-right { right: 11px; top: 101px; font-size: 17px; }
.primary-button { position: relative; z-index: 2; border: 1px solid var(--red); padding: 15px 23px; background: var(--red); color: #fff6e7; display: inline-flex; align-items: center; justify-content: center; gap: 32px; min-height: 50px; font-size: 12px; letter-spacing: .1em; transition: background .25s, transform .25s; }
.primary-button:hover { background: #8f352c; transform: translateY(-2px); }
.primary-button > span:last-child { font-size: 19px; }
.primary-button:disabled { background: transparent; color: var(--red); transform: none; }
.wish-footnote { margin: 17px 0 0; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.celebration { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; left: var(--x); top: -20px; width: 6px; height: 11px; background: var(--color); transform: rotate(var(--rotate)); animation: confetti-fall var(--duration) var(--delay) ease-in both; }
.letter-footer { text-align: center; padding-top: 56px; }
.closing { white-space: pre-line; font: 500 25px/1.9 var(--serif); letter-spacing: .06em; margin: 0 0 32px; }
.signature { display: inline-flex; flex-direction: column; align-items: center; font: 20px var(--serif); gap: 13px; color: var(--red); }
.signature-prefix { font: italic 10px Georgia, serif; letter-spacing: .15em; color: var(--muted); }
.signature > svg { width: 130px; height: 14px; fill: none; stroke: #a5413490; stroke-width: 1; margin-top: -6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 73px; padding: 21px 0 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.text-button { background: none; border: 0; padding: 10px 0 10px 10px; font-size: 11px; min-height: 44px; }
.text-button > span { color: var(--red); margin-left: 9px; }
.noscript-message { position: fixed; bottom: 20px; left: 5%; right: 5%; padding: 20px; background: #fff8ed; color: var(--red); border: 1px solid var(--red); z-index: 20; }

@keyframes hint-pulse { 50% { opacity: .3; } }
@keyframes letter-appear { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes candle-flicker { from { transform: scaleX(.94) rotate(-2deg); } to { transform: scaleX(1.04) rotate(2deg); } }
@keyframes smoke-rise { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: .65; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes confetti-fall { from { opacity: 0; translate: 0 -15px; rotate: 0deg; } 12% { opacity: .9; } to { opacity: 0; translate: 25px 650px; rotate: 310deg; } }

@media (min-width: 1500px) { .cover { min-height: min(850px, calc(100svh - 116px)); } }
@media (max-width: 900px) {
  .cover { padding-left: 6%; padding-right: 6%; gap: 4%; }
  .cover h1 { font-size: 38px; }
  .cover .eyebrow { font-size: 7px; letter-spacing: .1em; gap: 8px; }
  .envelope-to > span { font-size: 15px; }
  .wax-seal { width: 58px; height: 58px; }
  .wax-seal span { font-size: 30px; }
  .letter { padding-left: 35px; padding-right: 35px; }
  .wish-cards { gap: 14px; }
  .wish-card { padding-left: 19px; padding-right: 19px; }
  .wish-title { font-size: 17px; }
}
@media (max-width: 640px) {
  .masthead { height: 86px; padding: 0 6%; }
  .brand { font-size: 16px; gap: 8px; }
  .brand svg { width: 24px; }
  .brand-en { font-size: 6px; margin-top: 4px; }
  .masthead-note { font-size: 9px; letter-spacing: .07em; gap: 8px; }
  .masthead-actions { flex-direction: column; align-items: flex-end; gap: 1px; }
  .bgm-toggle { min-height: 36px; font-size: 10px; padding: 0 13px; }
  .tiny-star { font-size: 19px; }
  .cover { display: flex; flex-direction: column; min-height: calc(100svh - 86px); padding: 25px 8% 92px; gap: 0; }
  .cover-copy { width: 100%; }
  .cover .eyebrow { font-size: 7px; letter-spacing: .13em; }
  .cover h1 { font-size: clamp(30px, 8vw, 39px); line-height: 1.5; margin: 21px 0 15px; }
  .underlined::after { bottom: 3px; }
  .cover-description { font-size: 11px; line-height: 2; }
  .cover-handwriting { font-size: 15px; margin-top: 17px; }
  .envelope-scene { width: 91%; max-width: 380px; padding: 72px 0 55px; margin-top: 0; }
  .envelope-caption { font-size: 9px; margin-bottom: 18px; margin-left: 2px; }
  .postmark { width: 70px; height: 70px; top: -11px; right: -8px; gap: 3px; }
  .postmark b { font-size: 14px; }
  .postmark .postmark-age { font-size: 28px; }
  .postmark span { font-size: 4px; }
  .star-one { top: 22px; left: 10%; font-size: 25px; }
  .star-two { right: -9%; bottom: 77px; font-size: 18px; }
  .envelope-to > span { font-size: 14px; }
  .envelope-to { font-size: 8px; gap: 11px; }
  .envelope-label { font-size: 7px; }
  .wax-seal { width: 53px; height: 53px; }
  .wax-seal span { font-size: 28px; }
  .wax-seal::before { inset: 5px; }
  .mini-letter-title { font-size: 20px; }
  .open-hint { font-size: 9px; margin-top: 29px; gap: 7px; }
  .envelope-scribble { font-size: 14px; bottom: 10px; left: 2%; }
  .envelope-scribble svg { width: 43px; right: -51px; top: -11px; }
  .cover-footer { left: 6%; right: 6%; bottom: 21px; font-size: 9px; padding-top: 15px; }
  .cover-footer > span:last-child { font-size: 6px; }
  .cover-footer > span:last-child > span { margin-left: 5px; }
  .letter { padding: 17px 7% 0; }
  .letter-topline { font-size: 8px; letter-spacing: .05em; padding: 12px 0; }
  .letter-topline > span:first-child, .letter-topline > span:last-child { font-size: 7px; letter-spacing: .06em; }
  .letter-heading { padding: 43px 0 39px; }
  .letter-heading .eyebrow { font-size: 8px; letter-spacing: .13em; }
  .letter-heading h1 { font-size: clamp(31px, 8vw, 43px); margin-top: 19px; }
  .letter-flower { font-size: 47px; top: 37px; right: 0; }
  .heading-note { font-size: 14px; margin-top: 16px; }
  .friendship-note { align-items: flex-start; flex-direction: column; gap: 20px; padding: 23px 0; margin-bottom: 38px; }
  .friendship-number > span { font-size: 55px; }
  .friendship-number small { font-size: 9px; margin-top: 9px; }
  .friendship-note > p { font-size: 12px; padding-right: 0; }
  .friendship-flower { position: absolute; top: 28px; right: 12px; font-size: 31px; }
  .memories-section { margin-bottom: 37px; }
  .memory-gallery { grid-template-columns: minmax(0, 1fr); gap: 29px; padding-left: 2px; padding-right: 2px; }
  .memory-card { padding: 8px 8px 17px; }
  .memory-card figcaption { padding: 14px 8px 0; }
  .memory-card h3 { font-size: 19px; margin: 8px 0 6px; }
  .memory-card figcaption p { font-size: 12px; }
  .memory-quote { font-size: 16px; line-height: 2.1; margin-top: 30px; padding: 23px 0 6px; letter-spacing: 0; }
  .memory-dialog-toolbar { padding-left: 14px; padding-right: 14px; gap: 12px; }
  .memory-dialog-toolbar p { font-size: 14px; }
  .memory-dialog-image { padding: 7px; }
  .memory-dialog-image img { max-height: 62svh; }
  .memory-view-caption { font-size: 11px; padding: 13px 14px 16px; }
  .letter-body { display: block; padding-top: 23px; }
  .margin-note { margin-bottom: 20px; font-size: 10px; }
  .margin-note > span { display: inline; margin-right: 13px; font-size: 11px; }
  .margin-note .margin-note-small { margin-top: 7px; font-size: 11px; }
  .margin-note .margin-note-small br { display: none; }
  .prose { font-size: 14px; line-height: 2.2; }
  .prose .opening-line { font-size: 17px; line-height: 1.95; }
  .prose p { margin-bottom: 21px; }
  .prose .prose-signoff { font-size: 13px; }
  .wishes-section { margin-top: 51px; }
  .section-heading { display: block; margin: 20px 0 29px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading > p { margin-top: 9px; }
  .wish-cards { grid-template-columns: 1fr; gap: 25px; max-width: 370px; margin: auto; padding: 4px 8px; }
  .wish-card { min-height: 0; padding: 25px; }
  .wish-number { font-size: 23px; }
  .wish-title { font-size: 21px; margin-top: 17px; }
  .wish-teaser, .wish-message { font-size: 13px; }
  .wish-action { margin-top: 19px; font-size: 10px; }
  .wish-card:nth-child(2) { transform: rotate(1.5deg); }
  .wish-card:nth-child(2):hover, .wish-card:nth-child(2)[aria-expanded="true"] { transform: translateY(-5px) rotate(0); }
  .birthday-section { margin-top: 62px; padding: 48px 16px 35px; }
  .birthday-section h2 { font-size: 30px; }
  .candle-message { font-size: 12px; min-height: 46px; }
  .cake { width: 220px; max-width: 100%; margin-top: 12px; }
  .primary-button { font-size: 11px; padding: 12px 18px; gap: 22px; }
  .wish-footnote { font-size: 9px; line-height: 1.8; }
  .closing { font-size: 21px; line-height: 1.9; }
  .letter-footer { padding-top: 39px; }
  .signature { font-size: 17px; }
  .footer-bottom { margin-top: 48px; padding-bottom: 17px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cover.is-opening .envelope-letter { transform: none; }
  .confetti { display: none; }
}
