:root {
  --paper: #fff8f8;
  --rose: #a13e5e;
  --rose-dark: #813049;
  --ink: #553940;
  --muted: #7e5964;
  --line: #e7cbd2;
  --pink: #f5e0e5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 20px; line-height: 1.85; }
button, summary { font: inherit; cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--rose); outline-offset: 6px; }
.wrap { width: calc(100% - 104px); max-width: 1220px; margin-inline: auto; }
p { margin: 0; color: var(--muted); }
.site-header { min-height: 116px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; font-size: 22px; line-height: 1.5; font-weight: 600; }
.brand-flower { color: var(--rose); font-size: 41px; font-weight: 400; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; letter-spacing: 3px; }
nav { display: flex; gap: 36px; font-size: 17px; }
nav a { padding-block: 10px; }
nav a:hover, footer a:hover { color: var(--rose); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 68px; align-items: center; padding-block: 85px 95px; }
.eyebrow { font-size: 14px; letter-spacing: 2px; font-weight: 500; }
.little-dot { display: inline-block; width: 8px; height: 8px; background: var(--rose); border-radius: 50%; margin-right: 8px; }
h1 { font-size: clamp(54px, 5.2vw, 76px); line-height: 1.4; letter-spacing: 1px; font-weight: 650; margin: 26px 0 25px; }
h1 span { color: var(--rose); }
.hero-description { font-size: 23px; line-height: 1.95; margin-bottom: 35px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; border: 1px solid var(--rose); border-radius: 50px; color: white; background: var(--rose); padding: 15px 26px; font-size: 18px; line-height: 1.5; transition: background .2s, transform .2s; }
.button:hover { background: var(--rose-dark); transform: translateY(-2px); }
.hero-footnote { font-size: 16px; margin-top: 23px; }
.hero-art { position: relative; padding: 20px; max-width: 485px; width: 100%; justify-self: end; }
.handwriting { font-family: "Segoe Print", "KaiTi", cursive; font-weight: 400; color: #966171; }
.art-caption-top { position: absolute; top: -23px; left: 36px; z-index: 1; transform: rotate(-7deg); font-size: 20px; }
.paper-picture { background: #fff; padding: 15px 15px 0; border: 1px solid #f0dee1; box-shadow: 0 14px 40px #9d596313; transform: rotate(4deg); }
.love-art { width: 100%; height: auto; display: block; }
.paper-picture p { font-size: 17px; text-align: center; padding-block: 18px; letter-spacing: 2px; }
.love-stamp { position: absolute; right: -13px; bottom: 83px; width: 112px; height: 112px; border-radius: 50%; background: #f1d5df; color: #85415b; outline: 6px solid #f1d5df; border: 1px dashed #ac657e; display: grid; place-content: center; text-align: center; font-size: 15px; letter-spacing: 1px; transform: rotate(-12deg); }
.love-stamp strong { font-size: 17px; font-weight: 500; }
.art-caption-bottom { display: block; text-align: center; margin-top: 28px; font-size: 17px; transform: rotate(-3deg); }
.love-ribbon { display: flex; justify-content: space-around; align-items: center; gap: 35px; white-space: nowrap; overflow: hidden; background: #f7e3e8; border-block: 1px solid var(--line); padding: 17px 22px; font-size: 16px; letter-spacing: 3px; color: #895063; }
.love-ribbon span:nth-child(even) { font-size: 22px; }
.section { padding-block: 85px; }
h2 { font-size: 38px; line-height: 1.6; font-weight: 600; letter-spacing: 1px; margin: 14px 0 18px; }
h3 { font-size: 27px; font-weight: 600; line-height: 1.6; }
.letter-section { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: 75px; }
.section-intro { padding-top: 22px; }
.section-intro>p:last-of-type { font-size: 20px; line-height: 1.9; }
.letter-mark { display: block; font-family: serif; font-size: 95px; line-height: 1; color: #c9879d; margin-top: 36px; transform: rotate(-12deg); width: fit-content; }
.letter-paper { background: #fffdf9; border: 1px solid #eed9da; padding: 38px 43px 40px; box-shadow: 0 8px 28px #99546809; position: relative; }
.paper-tape { position: absolute; width: 130px; height: 30px; top: -16px; left: 50%; transform: translateX(-50%) rotate(-4deg); background: #e9c4cf9c; }
.letter-topline { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; color: var(--muted); font-size: 17px; }
.letter-topline span:last-child { font-size: 27px; color: var(--rose); }
.letter-paper h3 { margin: 23px 0 17px; }
.letter-paper p { font-size: 22px; line-height: 2; }
details { margin-top: 25px; }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 18px; color: var(--rose); border-top: 1px dashed var(--line); padding-top: 21px; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 26px; transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
.letter-content { padding-top: 23px; }
.letter-content>p { margin-bottom: 25px; }
.letter-content .letter-last { color: var(--rose); }
.letter-signature { font-size: 20px; text-align: right; padding-top: 10px; }
.letter-signature span { display: block; font-size: 18px; margin-top: 10px; }
.together-section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading>p { font-size: 18px; padding-bottom: 9px; }
.moments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.moment-art { height: 242px; position: relative; overflow: hidden; display: grid; place-items: center; }
.art-label { position: absolute; bottom: 15px; font-size: 19px; font-family: "KaiTi", serif; letter-spacing: 2px; color: #76535e; }
.dinner { background: #f0dbd7; }
.table-scene { width: 235px; height: 55px; background: #dcc1b7; border-radius: 50%; position: relative; margin-top: 45px; }
.cup { position: absolute; bottom: 39px; width: 34px; height: 41px; border-radius: 5px 5px 14px 14px; background: #fff5eb; border-top: 5px solid #c2a594; }
.cup:after { content: ""; position: absolute; right: -13px; top: 5px; width: 15px; height: 20px; border: 5px solid #fff5eb; border-radius: 50%; }
.cup-one { left: 27px; transform: rotate(-5deg); }
.cup-two { right: 26px; transform: rotate(5deg); background: #c68692; border-top-color: #a96574; }
.cup-two:after { border-color: #c68692; }
.plate { position: absolute; left: 90px; bottom: 9px; width: 58px; height: 27px; background: #f9ede4; border: 5px solid #f5e6db; border-radius: 50%; }
.candle { position: absolute; left: 111px; bottom: 57px; width: 14px; height: 41px; background: #f4e5cf; }
.candle:before { content: ""; position: absolute; width: 9px; height: 17px; border-radius: 80% 10% 70% 30%; background: #bb7b54; left: 3px; top: -23px; transform: rotate(-15deg); }
.evening { background: #e9dde4; }
.evening-sun { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: #d5a6a8; top: 30px; left: 55%; }
.hills { position: absolute; bottom: 0; left: -12%; width: 125%; height: 116px; border-radius: 80% 50% 0 0; background: #b5b49f; }
.hills:before { content: ""; position: absolute; bottom: 0; left: 42%; width: 80%; height: 149px; border-radius: 70% 50% 0 0; background: #cbd0b8; }
.path { position: absolute; width: 37px; height: 125px; top: 114px; background: #e9dace; transform: rotate(29deg) skewY(20deg); border-radius: 100% 0 0 0; }
.rainy { background: #e8e0dd; }
.rain-window { position: absolute; top: 22px; left: calc(50% - 64px); width: 128px; height: 145px; border: 7px solid #faf3ee; border-radius: 56px 56px 0 0; background: repeating-linear-gradient(113deg, transparent 0 14px, #b3bdc650 15px 16px, transparent 17px 29px), #c9d3d5; }
.rain-window:before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; background: #faf3ee; }
.rain-window:after { content: ""; position: absolute; left: 0; top: 60%; width: 100%; height: 5px; background: #faf3ee; }
.rain-book { position: absolute; top: 153px; left: calc(50% - 28px); width: 70px; height: 35px; background: #b78191; border: 4px solid #c49ba6; transform: rotate(-10deg); box-shadow: 0 4px 0 #fff9f2, 0 7px 0 #a06d7d; }
.moment-number { font-size: 15px; letter-spacing: 1px; padding-top: 21px; }
.moment h3 { margin: 7px 0 10px; }
.moment>p:last-child { font-size: 19px; line-height: 1.95; }
.whisper-section { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.35fr 1fr; gap: 65px; align-items: center; }
.whisper-paper { background: var(--pink); padding: 37px 39px 39px; position: relative; overflow: hidden; }
.whisper-paper h2 { font-size: 31px; }
#love-quote { font-size: 24px; line-height: 1.85; min-height: 96px; max-width: 95%; margin-bottom: 23px; position: relative; z-index: 1; }
.outline { background: transparent; color: var(--rose); font-size: 17px; gap: 22px; position: relative; z-index: 1; }
.outline:hover { color: var(--rose); background: #edd0d9; }
.whisper-flower { font-size: 190px; position: absolute; bottom: -83px; right: -29px; color: #deb3c1; line-height: 1.5; transform: rotate(17deg); }
.heart-note h3 { font-size: 30px; margin: 20px 0 23px; line-height: 1.7; }
.heart-button { padding: 8px 0; background: transparent; border: 0; border-bottom: 1px solid var(--rose); color: var(--rose); font-size: 20px; }
.heart-button>span { display: inline-block; font-size: 30px; vertical-align: middle; margin-right: 10px; line-height: 1.3; }
.heart-button:disabled { cursor: default; opacity: 1; }
#heart-status { font-size: 17px; margin-top: 14px; }
.closing { text-align: center; padding-block: 48px 68px; border-top: 1px solid var(--line); }
.closing>span:first-child { color: var(--rose); font-size: 43px; }
.closing p { font-size: 30px; margin: 14px 0 12px; letter-spacing: 2px; color: var(--ink); }
.closing .handwriting { font-size: 20px; }
footer { display: flex; justify-content: space-between; gap: 25px; padding-block: 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.skip-link { position: fixed; z-index: 10; top: -120px; left: 15px; padding: 10px 15px; background: white; }
.skip-link:focus { top: 15px; }
@media (max-width: 1024px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 28px; padding-block: 65px 75px; }
  h1 { font-size: 56px; }
  .hero-description { font-size: 21px; }
  .letter-section { gap: 35px; grid-template-columns: .7fr 1.3fr; }
  .letter-paper { padding-inline: 30px; }
  .moments-grid { gap: 22px; }
  .moment h3 { font-size: 24px; }
  .moment>p:last-child { font-size: 18px; }
  .whisper-section { gap: 30px; }
  .whisper-paper { padding-inline: 28px; }
  .whisper-paper h2 { font-size: 29px; }
}
@media (max-width: 768px) {
  body { font-size: 19px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 19px; min-height: 100px; flex-wrap: wrap; gap: 15px; }
  .brand { font-size: 21px; }
  .brand small { font-size: 13px; }
  nav { width: 100%; gap: 26px; font-size: 16px; justify-content: space-between; }
  nav a { padding-block: 3px; }
  .hero { grid-template-columns: 1fr; gap: 61px; padding-block: 42px 50px; }
  .hero-copy { padding-inline: 6px; }
  h1 { font-size: clamp(43px, 10.8vw, 65px); margin-block: 21px; }
  .hero-description { font-size: 21px; margin-bottom: 27px; }
  .button { font-size: 18px; padding: 14px 24px; }
  .hero-footnote { font-size: 16px; }
  .hero-art { max-width: 425px; padding: 12px 20px; justify-self: center; }
  .art-caption-top { font-size: 18px; left: 28px; top: -22px; }
  .paper-picture { padding: 12px 12px 0; }
  .paper-picture p { font-size: 16px; padding-block: 16px; letter-spacing: 1px; }
  .love-stamp { width: 95px; height: 95px; right: 0; bottom: 75px; font-size: 14px; }
  .love-stamp strong { font-size: 16px; }
  .art-caption-bottom { font-size: 16px; }
  .love-ribbon { justify-content: flex-start; padding-block: 13px; gap: 27px; font-size: 15px; }
  .section { padding-block: 50px; }
  h2 { font-size: 31px; }
  .eyebrow { font-size: 14px; letter-spacing: 1.4px; }
  .letter-section { grid-template-columns: 1fr; gap: 32px; }
  .section-intro { padding: 0; }
  .section-intro>p:last-of-type { font-size: 19px; }
  .letter-mark { display: none; }
  .letter-paper { padding: 29px 22px; }
  .letter-paper p { font-size: 20px; line-height: 2; }
  .letter-paper h3 { font-size: 25px; }
  .letter-topline { font-size: 16px; }
  .desktop-break { display: none; }
  .letter-signature { font-size: 18px; }
  .letter-signature span { font-size: 17px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading h2 { margin-bottom: 13px; }
  .section-heading>p { font-size: 18px; }
  .moments-grid { grid-template-columns: 1fr; gap: 36px; }
  .moment-art { height: 240px; }
  .moment-number { font-size: 15px; padding-top: 17px; }
  .moment h3 { font-size: 26px; }
  .moment>p:last-child { font-size: 19px; }
  .whisper-section { grid-template-columns: 1fr; gap: 34px; }
  .whisper-paper { padding: 27px 23px 30px; }
  .whisper-paper h2 { font-size: 26px; }
  #love-quote { font-size: 23px; min-height: 87px; }
  .outline { font-size: 17px; padding-inline: 19px; }
  .heart-note h3 { font-size: 29px; }
  .heart-button { font-size: 20px; }
  #heart-status { font-size: 17px; }
  .closing { padding-block: 35px 48px; }
  .closing p { font-size: 26px; }
  .closing .handwriting { font-size: 17px; }
  footer { flex-wrap: wrap; font-size: 14px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition: none !important; } }
