:root {
  --cream: #f6efe4;
  --paper: #fffaf1;
  --ink: #253934;
  --muted: #6f7771;
  --orange: #e66d3f;
  --gold: #f4bd55;
  --blue: #8ab6c3;
  --green: #9eb492;
  --line: rgba(37, 57, 52, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .1;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}
.site-header {
  width: min(1240px, calc(100% - 48px)); height: 92px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10;
}
.brand { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.brand-mark, .footer-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50% 45% 52% 40%;
  background: var(--orange); color: white; font-family: "ZCOOL KuaiLe", cursive; font-size: 20px; transform: rotate(-5deg);
}
nav { display: flex; gap: 36px; font-size: 14px; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--ink); transition: .25s; }
nav a:hover::after { right: 0; }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); }
.hero {
  min-height: calc(100vh - 92px); width: min(1240px, calc(100% - 48px)); margin: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding: 60px 0 100px;
}
.eyebrow { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: .25em; font-weight: 700; color: var(--orange); margin: 0 0 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(52px, 6.2vw, 94px); line-height: 1.12; letter-spacing: -.055em; margin-bottom: 32px; }
h1 em { color: var(--orange); font-style: normal; }
.hero-intro { max-width: 570px; color: var(--muted); font-size: 17px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.button { padding: 14px 22px; display: inline-flex; align-items: center; gap: 28px; border-radius: 4px; font-size: 14px; }
.button.primary { color: white; background: var(--ink); }
.button span { transition: transform .2s; }
.button:hover span { transform: translate(3px, 3px); }
.text-link { font-size: 14px; border-bottom: 1px solid var(--ink); }
.hero-art { min-height: 560px; position: relative; display: grid; place-items: center; }
.sun { position: absolute; top: 10%; right: 3%; width: 74px; height: 74px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 12px rgba(244,189,85,.15); }
.planet { position: relative; width: min(430px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--blue); overflow: hidden; box-shadow: inset -30px -30px 0 rgba(37,57,52,.1), 20px 30px 60px rgba(37,57,52,.12); transform: rotate(-3deg); }
.planet::before, .planet::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.17); }
.planet::before { width: 210px; height: 130px; right: -35px; top: 45px; }
.planet::after { width: 290px; height: 100px; left: -55px; bottom: 40px; }
.planet-path { position: absolute; width: 100%; height: 45%; left: -10%; bottom: -4%; border-radius: 50% 55% 0 0; background: #7f9a79; transform: rotate(7deg); }
.child { position: absolute; left: 47%; top: 38%; width: 80px; height: 140px; z-index: 2; transform: rotate(3deg); }
.child span { display: block; position: absolute; background: var(--ink); }
.child .head { width: 45px; height: 48px; border-radius: 50%; left: 15px; background: #d88963; box-shadow: inset 0 9px var(--ink); }
.child .body { width: 54px; height: 70px; border-radius: 20px 20px 9px 9px; left: 11px; top: 43px; background: #f1b84f; }
.child .arm { width: 60px; height: 12px; left: 43px; top: 55px; border-radius: 10px; transform: rotate(-28deg); transform-origin: left; }
.child .leg { width: 14px; height: 47px; top: 105px; border-radius: 10px; }
.child .leg.left { left: 22px; transform: rotate(10deg); }
.child .leg.right { left: 44px; transform: rotate(-9deg); }
.tree { position: absolute; z-index: 2; left: 17%; top: 47%; width: 20px; height: 95px; background: #694d39; border-radius: 10px; }
.tree span, .tree::before, .tree::after { content: ""; position: absolute; border-radius: 50%; background: #41665b; }
.tree span { width: 105px; height: 90px; left: -44px; top: -55px; }
.tree::before { width: 65px; height: 65px; left: -55px; top: -20px; }
.tree::after { width: 70px; height: 70px; left: 8px; top: -25px; }
.orbit { position: absolute; border: 1px solid rgba(37,57,52,.2); border-radius: 50%; transform: rotate(-23deg); }
.orbit-one { width: 110%; height: 63%; }
.orbit-two { width: 88%; height: 110%; transform: rotate(32deg); }
.star { position: absolute; font-size: 28px; color: var(--orange); }
.star-one { top: 9%; left: 8%; } .star-two { bottom: 15%; right: 2%; color: var(--gold); } .star-three { bottom: 3%; left: 20%; font-size: 16px; }
.hero-note { position: absolute; right: -10px; bottom: 6%; background: var(--paper); padding: 18px 24px; box-shadow: 8px 8px 0 rgba(230,109,63,.2); transform: rotate(2deg); }
.hero-note span, .hero-note small { display: block; font-size: 11px; color: var(--muted); }
.hero-note strong { display: block; color: var(--orange); font-size: 22px; margin: 2px 0; }
.quote-strip { background: var(--ink); color: var(--cream); padding: 38px 24px; text-align: center; }
.quote-strip p { margin: 0; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: .1em; }
.quote-strip span { color: #f0bd72; }
.section { padding: 130px max(24px, calc((100vw - 1240px) / 2)); }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 80px; }
.section-heading h2, .favorites-title h2, .letter h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.25; margin: 0; letter-spacing: -.04em; }
.section-heading > p { width: min(420px, 100%); color: var(--muted); margin: 0; font-size: 14px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 102px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.milestone { display: grid; grid-template-columns: 82px 40px 1fr; align-items: start; margin-bottom: 42px; }
.milestone-year { font-family: Arial, sans-serif; font-weight: bold; font-size: 14px; padding-top: 20px; }
.milestone-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--orange); border: 4px solid var(--cream); box-sizing: content-box; margin-top: 17px; z-index: 1; }
.milestone-card { min-height: 260px; position: relative; padding: 42px 120px 38px 48px; border-radius: 3px; overflow: hidden; }
.milestone-card.peach { background: #efd1bc; } .milestone-card.blue { background: #c7dadd; } .milestone-card.green { background: #ccd7c5; }
.milestone-card .date { font: 700 11px Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; opacity: .7; }
.milestone-card h3 { font-size: 28px; margin: 18px 0 12px; }
.milestone-card > p:last-of-type { max-width: 630px; color: #4e5a56; font-size: 14px; }
.card-number { position: absolute; right: 28px; top: 12px; font: 700 78px Arial, sans-serif; color: rgba(255,255,255,.38); }
.doodle { position: absolute; right: 38px; bottom: 24px; font-size: 50px; transform: rotate(12deg); opacity: .6; }
.moments { background: var(--ink); color: var(--cream); }
.section-heading.light > p { color: rgba(246,239,228,.64); }
.moment-grid { display: grid; grid-template-columns: 1.35fr .65fr 1fr; grid-template-rows: repeat(2, 320px); gap: 18px; }
.moment { margin: 0; position: relative; overflow: hidden; background: #d4c0a9; min-width: 0; }
.moment-wide { grid-row: span 2; }
.moment.quote-card { grid-column: span 2; background: #e6b65d; color: var(--ink); padding: 45px; display: flex; flex-direction: column; justify-content: space-between; }
.moment blockquote { margin: 0; font-size: clamp(24px, 3vw, 42px); line-height: 1.55; }
.moment figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 26px 20px; display: flex; align-items: end; justify-content: space-between; background: linear-gradient(transparent, rgba(20,30,28,.75)); color: white; }
.moment figcaption span { font-size: 16px; } .moment figcaption small { opacity: .75; }
.quote-card figcaption { position: static; padding: 0; background: none; color: var(--ink); }
.placeholder-art { width: 100%; height: 100%; position: relative; overflow: hidden; transition: transform .6s ease; }
.moment:hover .placeholder-art { transform: scale(1.03); }
.sunset { background: linear-gradient(#e9b583 0 47%, #72909a 47% 100%); }
.sunset::before { content: ""; position: absolute; top: 19%; left: 18%; width: 75px; height: 75px; border-radius: 50%; background: #f4d787; }
.hill { position: absolute; display: block; border-radius: 50% 50% 0 0; background: #536f64; bottom: 35%; }
.hill-one { width: 80%; height: 25%; left: -10%; } .hill-two { width: 80%; height: 20%; right: -20%; background: #415c55; }
.little-person { position: absolute; bottom: 25%; right: 33%; color: var(--ink); font-size: 38px; }
.little-person::after { content: ""; position: absolute; width: 12px; height: 45px; background: var(--ink); left: 13px; top: 28px; }
.kite { background: linear-gradient(160deg, #b8d8dc, #789ca2); }
.kite span { position: absolute; top: 18%; right: 23%; font-size: 65px; color: #e96c48; transform: rotate(28deg); }
.kite::after { content: "〰〰"; position: absolute; top: 38%; right: 13%; font-size: 30px; transform: rotate(70deg); color: var(--paper); }
.blocks { background: #c9b58e; display: flex; align-items: end; justify-content: center; gap: 8px; padding-bottom: 60px; }
.blocks span { display: block; width: 24%; aspect-ratio: 1; background: #d65d3f; box-shadow: 0 -75px 0 #466c65; }
.blocks span:nth-child(2) { background: #e8b84d; transform: translateY(-30px); box-shadow: 0 -76px 0 #b75840, 0 -150px 0 #e9d8a9; }
.blocks span:nth-child(3) { background: #527886; box-shadow: 0 -75px 0 #e3c46c; }
.privacy-note { text-align: center; color: rgba(246,239,228,.45); font-size: 11px; margin: 26px 0 0; }
.favorites { background: #e9dfcf; }
.favorites-title { text-align: center; margin-bottom: 60px; }
.favorites-title > span { font-size: 12px; color: var(--orange); letter-spacing: .2em; }
.favorite-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.favorite { text-align: center; padding: 52px 20px; border-right: 1px solid var(--line); }
.favorite:last-child { border: 0; }
.favorite-icon { display: block; font-size: 42px; filter: grayscale(.2); margin-bottom: 20px; }
.favorite p { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.favorite h3 { font-size: 18px; margin: 0; }
.letter { background: #d9e1d2; position: relative; }
.letter::before { content: "✦"; position: absolute; left: 6%; top: 18%; color: var(--orange); font-size: 50px; }
.letter-paper { max-width: 940px; margin: auto; padding: 75px 90px; background: var(--paper); box-shadow: 18px 20px 0 rgba(53,76,68,.08); transform: rotate(-.4deg); }
.letter-heading { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 52px; }
.letter-heading span { color: var(--muted); font-size: 12px; }
.letter-body { font-size: 16px; color: #485852; line-height: 2.15; margin: 38px 0; }
.letter-body p { margin-bottom: 18px; }
.signature { text-align: right; display: flex; flex-direction: column; align-items: end; }
.signature span, .signature small { color: var(--muted); font-size: 11px; }
.signature strong { font-family: "ZCOOL KuaiLe", cursive; color: var(--orange); font-size: 28px; margin: 4px 0; }
footer { padding: 42px max(24px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; background: var(--cream); }
footer p { margin: 0; font-size: 14px; font-weight: 700; } footer > span { font-size: 11px; color: var(--muted); } footer > a { border: 1px solid var(--line); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-art { min-height: 500px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 55px; }
  .moment-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 480px 290px 290px; }
  .moment-wide { grid-column: span 2; grid-row: auto; }
  .moment.quote-card { grid-column: span 1; }
  .favorite-list { grid-template-columns: 1fr 1fr; }
  .favorite:nth-child(2) { border-right: 0; }
  .favorite:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .site-header { width: calc(100% - 32px); height: 74px; }
  .brand { font-size: 13px; }
  .menu-button { display: block; cursor: pointer; }
  nav { display: none; position: absolute; top: 68px; right: 0; width: 190px; padding: 22px; flex-direction: column; gap: 18px; background: var(--paper); box-shadow: 0 12px 30px rgba(37,57,52,.12); }
  nav.open { display: flex; }
  .hero { width: calc(100% - 32px); min-height: auto; gap: 20px; padding: 45px 0 75px; }
  h1 { font-size: 46px; }
  .hero-intro { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-art { min-height: 390px; }
  .hero-note { right: 0; bottom: 0; }
  .sun { width: 54px; height: 54px; }
  .quote-strip { padding: 28px 30px; }
  .quote-strip p { font-size: 16px; }
  .section { padding-top: 85px; padding-bottom: 85px; }
  .section-heading h2, .favorites-title h2, .letter h2 { font-size: 36px; }
  .timeline::before { left: 7px; }
  .milestone { grid-template-columns: 20px 1fr; }
  .milestone-year { grid-column: 2; padding: 0 0 10px 15px; }
  .milestone-dot { grid-column: 1; grid-row: 1 / span 2; margin-top: 2px; transform: translateX(-4px); }
  .milestone-card { grid-column: 2; padding: 32px 28px; }
  .card-number { font-size: 48px; }
  .doodle { display: none; }
  .moment-grid { grid-template-columns: 1fr; grid-template-rows: 430px repeat(3, 280px); }
  .moment-wide, .moment.quote-card { grid-column: auto; }
  .moment.quote-card { padding: 30px; }
  .favorite-list { grid-template-columns: 1fr; }
  .favorite { border-right: 0; border-bottom: 1px solid var(--line); }
  .favorite:nth-child(3) { border-bottom: 1px solid var(--line); }
  .letter-paper { padding: 48px 28px; }
  .letter-heading { align-items: start; flex-direction: column; }
  .letter::before { display: none; }
  footer { grid-template-columns: auto 1fr auto; }
  footer > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
