:root {
  --ink: #273229;
  --ink-soft: #526158;
  --paper: #f5f0e6;
  --paper-deep: #e9dfcf;
  --leaf: #4b6652;
  --leaf-dark: #263f31;
  --sun: #d99052;
  --cream: #fffaf0;
  --line: rgba(39, 50, 41, 0.18);
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', serif;
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
picture, img { display: block; width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
.keep-together { white-space: nowrap; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 80px);
  color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .16em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
}
nav { display: flex; gap: clamp(18px, 3vw, 48px); font-size: 13px; letter-spacing: .14em; }
nav a { opacity: .78; transition: opacity .25s ease; }
nav a:hover, nav a:focus-visible { opacity: 1; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  padding: 110px clamp(24px, 7vw, 110px) 70px;
  color: var(--cream);
  background:
    radial-gradient(circle at 18% 10%, rgba(217,144,82,.2), transparent 30%),
    linear-gradient(130deg, #20382b 0%, #385243 54%, #6d806c 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
.hero-copy, .hero-photo { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 20px; color: var(--sun); font-size: 12px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 136px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.05em;
}
.hero-lede { max-width: 520px; margin: 38px 0 52px; font-family: var(--serif); font-size: clamp(18px, 2vw, 25px); line-height: 1.85; opacity: .85; }
.scroll-cue { display: inline-flex; align-items: center; gap: 28px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.4); font-size: 13px; letter-spacing: .18em; }
.hero-photo { width: min(100%, 650px); margin: 0; justify-self: end; }
.hero-photo::before { content: ''; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(255,255,255,.24); }
.hero-photo img { position: relative; z-index: 1; aspect-ratio: 4/5; object-fit: cover; object-position: 52% 46%; filter: saturate(.88) contrast(1.02); }
.hero-photo figcaption { position: absolute; z-index: 3; right: -18px; bottom: 34px; padding: 13px 20px; background: var(--cream); color: var(--ink); font-family: var(--serif); font-size: 15px; letter-spacing: .08em; }
.hero-number { position: absolute; right: -1vw; bottom: -8vw; font-family: var(--serif); font-size: clamp(200px, 35vw, 520px); color: rgba(255,255,255,.035); line-height: 1; }

.section-pad { padding: clamp(90px, 12vw, 180px) clamp(24px, 8vw, 130px); }
.section-label { display: flex; gap: 22px; align-items: center; margin-bottom: 70px; color: var(--leaf); font-size: 12px; font-weight: 600; letter-spacing: .22em; }
.section-label span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; letter-spacing: 0; }
.section-label.light { color: #dfe7df; }
.opening { background: var(--paper); }
.opening-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); gap: clamp(60px, 10vw, 170px); align-items: start; }
.opening h2, .final-wish h2 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5.2vw, 76px); font-weight: 500; line-height: 1.35; letter-spacing: -.035em; }
.opening h2 { font-size: clamp(32px, 3.7vw, 56px); }
.prose { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 20px); line-height: 2.05; color: var(--ink-soft); }
.prose p { margin: 0 0 1.5em; }

.snow-story { padding-top: 0; background: var(--leaf-dark); color: var(--cream); }
.wide-photo { margin: 0 calc(clamp(24px, 8vw, 130px) * -1) clamp(88px, 10vw, 140px); position: relative; }
.wide-photo img { height: min(74vh, 760px); object-fit: cover; object-position: center 52%; filter: saturate(.8) contrast(1.06); }
.wide-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,35,25,.42), transparent 45%); }
.wide-photo figcaption { position: absolute; z-index: 2; left: clamp(24px, 8vw, 130px); bottom: 30px; font-family: var(--serif); font-size: 15px; letter-spacing: .08em; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 10vw, 160px); align-items: start; }
blockquote { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 58px); line-height: 1.55; color: #f5ead7; }
.prose-light { color: rgba(255,250,240,.72); }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(80px, 10vw, 150px); border-top: 1px solid rgba(255,255,255,.16); }
.milestone { display: flex; align-items: baseline; gap: 14px; padding: 40px 22px 0 0; border-right: 1px solid rgba(255,255,255,.16); }
.milestone:last-child { border-right: 0; padding-left: 28px; }
.milestone:nth-child(2) { padding-left: 28px; }
.milestone strong { font-family: var(--serif); font-size: clamp(48px, 7vw, 92px); font-weight: 400; color: #f5ead7; line-height: 1; }
.milestone span { color: rgba(255,255,255,.62); font-size: 13px; }

.pride { background: var(--paper-deep); }
.pride-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(50px, 8vw, 130px); align-items: center; }
.classroom-photo { margin: 0; padding: 16px; background: var(--cream); transform: rotate(-1.2deg); box-shadow: 0 28px 70px rgba(55,48,37,.13); }
.classroom-photo img { aspect-ratio: 4/3; object-fit: cover; }
.pull-quote { margin: 0 0 54px; padding-left: 28px; border-left: 3px solid var(--sun); font-family: var(--serif); font-size: clamp(32px, 3.7vw, 56px); line-height: 1.5; }

.wish { padding-bottom: 0; color: var(--cream); background: linear-gradient(160deg, #344c3c, #1f3328 75%); }
.wish-intro { max-width: 1160px; margin: 0 auto; }
.classic-quote { margin: 10px 0 75px; font-family: var(--serif); font-size: clamp(50px, 7vw, 96px); line-height: 1.38; letter-spacing: -.04em; color: #f4e7d2; }
.wish-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); color: rgba(255,250,240,.7); font-family: var(--serif); font-size: clamp(16px, 1.4vw, 19px); line-height: 2; }
.wish-columns p { margin: 0; }
.family-gallery { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(24px, 5vw, 70px); max-width: 1120px; margin: clamp(80px, 10vw, 150px) auto 0; }
.family-photo { position: relative; margin: 0; }
.family-photo::before { content: ''; position: absolute; inset: -14px; border: 1px solid rgba(255,255,255,.2); }
.family-photo img { position: relative; aspect-ratio: 4/5; object-fit: cover; }
.family-photo-hike { width: 92%; transform: translateY(42px); }
.family-photo-hike img { object-position: center 36%; }
.family-photo-concert img { object-position: center 42%; }
.family-photo figcaption { position: absolute; z-index: 2; bottom: 18px; left: 20px; padding: 9px 14px; background: rgba(22,40,30,.78); backdrop-filter: blur(8px); font-family: var(--serif); font-size: 13px; letter-spacing: .12em; }
.final-wish { max-width: 900px; margin: 0 auto; padding: clamp(110px, 13vw, 190px) 0 clamp(90px, 11vw, 160px); text-align: center; }
.final-wish .eyebrow { color: #e1aa78; }
.final-wish h2 { color: #f6ead7; }
.final-wish > p:not(.eyebrow) { max-width: 680px; margin: 42px auto 0; font-family: var(--serif); font-size: 18px; line-height: 2; color: rgba(255,250,240,.7); }
.signature { display: block; margin-top: 48px; font-family: var(--serif); font-size: 16px; letter-spacing: .16em; color: #e1aa78; }
footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px clamp(24px, 8vw, 130px); background: #16281e; color: rgba(255,255,255,.48); font-size: 11px; letter-spacing: .13em; }
footer .icp-link { color: rgba(255,255,255,.72); text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
footer .icp-link:hover, footer .icp-link:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.reveal { animation: reveal 1s .12s both cubic-bezier(.2,.7,.2,1); }
.reveal-delay { animation-delay: .32s; }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { animation: none; } }

@media (max-width: 800px) {
  .site-header { padding-top: 20px; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; align-content: center; gap: 44px; padding-top: 98px; }
  .hero-copy { padding-top: 22px; }
  .hero-lede { margin: 26px 0 32px; }
  .hero-photo { width: 82%; }
  .hero-photo img { aspect-ratio: 4/4.7; }
  .opening-grid, .story-grid, .pride-grid, .wish-columns { grid-template-columns: 1fr; gap: 44px; }
  .section-label { margin-bottom: 48px; }
  .wide-photo img { height: auto; min-height: 0; }
  .wide-photo figcaption { position: relative; left: auto; bottom: auto; padding: 18px 22px; line-height: 1.7; }
  .milestones { grid-template-columns: 1fr; }
  .milestone, .milestone:nth-child(2), .milestone:last-child { padding: 26px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .milestone:last-child { border-bottom: 0; }
  .pride-copy { order: -1; }
  .classic-quote { margin-bottom: 48px; }
  .family-gallery { grid-template-columns: 1fr; gap: 48px; width: calc(100% - 20px); }
  .family-photo-hike { width: 90%; transform: none; }
  .family-photo-concert { width: 90%; justify-self: end; }
  footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding-left: 22px; padding-right: 22px; }
  .hero h1 { font-size: 62px; }
  .hero-photo { width: 92%; }
  .hero-photo figcaption { right: -12px; bottom: 18px; font-size: 12px; }
  .section-pad { padding-left: 22px; padding-right: 22px; }
  .wide-photo { margin-left: -22px; margin-right: -22px; }
  .wide-photo figcaption { left: auto; }
  .opening h2, .final-wish h2 { font-size: clamp(28px, 8.5vw, 40px); text-wrap: balance; }
  blockquote { font-size: 29px; }
  .classic-quote { font-size: clamp(26px, 7.8vw, 36px); }
}
