:root {
  --ink: #34243f;
  --muted: #806c86;
  --cream: #fffaf3;
  --paper: #fffdf9;
  --pink: #f6a7bc;
  --pink-deep: #d96b91;
  --lilac: #c5b4ed;
  --purple: #76528e;
  --peach: #f8c4a7;
  --yellow: #f4dc82;
  --line: rgba(86, 54, 91, 0.14);
  --shadow: 0 20px 50px rgba(107, 76, 110, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(circle at 7% 15%, rgba(246,167,188,.22), transparent 25%), radial-gradient(circle at 91% 48%, rgba(197,180,237,.2), transparent 24%);
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  z-index: 20;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark, .footer-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--paper); background: var(--purple); box-shadow: 4px 4px 0 var(--pink); font-size: 18px; }
.brand strong, .site-footer strong { display: block; font-size: 17px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-family: Georgia, serif; font-size: 11px; letter-spacing: .12em; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #9fd4a8; box-shadow: 0 0 0 4px rgba(159,212,168,.22); }

.hero { min-height: 590px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 70px; padding: 80px 0 70px; }
.eyebrow, .tiny-label { margin: 0 0 20px; color: var(--pink-deep); font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.eyebrow span { font-size: 16px; margin-left: 4px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 24px; color: var(--ink); font-size: clamp(50px, 6.7vw, 86px); font-weight: 600; line-height: 1.04; letter-spacing: -.07em; }
h1 em, h2 em { color: var(--pink-deep); font-family: "Ma Shan Zheng", cursive; font-style: normal; font-weight: 400; letter-spacing: 0; }
.hero-intro { max-width: 430px; color: var(--muted); font-size: 15px; line-height: 2; }
.pill-button { display: inline-flex; align-items: center; gap: 23px; margin-top: 13px; padding: 14px 17px 14px 22px; border-radius: 99px; color: var(--paper); background: var(--ink); font-size: 13px; transition: transform .25s ease, box-shadow .25s ease; }
.pill-button span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); background: var(--pink); font-size: 17px; }
.pill-button:hover { transform: translateY(-3px); box-shadow: 0 12px 20px rgba(52,36,63,.18); }

.hero-collage { position: relative; min-height: 590px; }
.birthday-stack { position: relative; width: min(450px, 92%); height: 568px; margin: 0 auto; }
.birthday-card { position: absolute; padding: 10px 10px 30px; background: var(--paper); box-shadow: var(--shadow); }
.birthday-card-one-two { top: 20px; left: 2%; z-index: 1; width: 76%; transform: rotate(-4deg); }
.birthday-card-three { top: 188px; right: 0; z-index: 2; width: 58%; transform: rotate(6deg); }
.birthday-card-four { bottom: 10px; left: 8%; z-index: 3; width: 70%; transform: rotate(-3deg); }
.birthday-photo { position: relative; overflow: hidden; background: #f3b8c9; }
.birthday-card-one-two .birthday-photo { height: 175px; }
.birthday-card-three .birthday-photo { height: 198px; }
.birthday-card-four .birthday-photo { height: 150px; }
.birthday-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.birthday-card-one-two .birthday-photo img { object-position: 50% 48%; }
.birthday-card-three .birthday-photo img { object-position: 57% 42%; }
.birthday-card-four .birthday-photo img { object-position: 62% 48%; }
.birthday-age { position: absolute; top: -22px; right: -15px; z-index: 4; display: grid; place-items: center; width: 65px; height: 65px; border-radius: 50%; color: var(--purple); background: var(--yellow); box-shadow: 4px 5px 0 rgba(118,82,142,.2); font-family: "Ma Shan Zheng", cursive; font-size: 28px; line-height: .68; text-align: center; transform: rotate(9deg); }
.birthday-age small { display: block; margin-top: 5px; font-family: "Noto Sans SC", sans-serif; font-size: 10px; font-weight: 700; }
.birthday-caption { display: block; padding: 9px 2px 0; color: var(--pink-deep); font-family: Georgia, serif; font-size: 10px; letter-spacing: .14em; }
.cloud { position: absolute; width: 100px; height: 30px; border-radius: 50px; background: rgba(255,255,255,.65); filter: blur(.2px); }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.cloud::before { left: 18px; width: 42px; height: 42px; }.cloud::after { left: 48px; width: 29px; height: 29px; }
.cloud-one { top: 0; left: 1%; transform: scale(.72); }.cloud-two { right: -2%; top: 190px; transform: scale(.55); opacity: .8; }
.scribble { position: absolute; color: var(--pink-deep); font-family: Georgia, serif; }
.scribble-heart { font-size: 42px; }.heart-one { bottom: 42px; left: 1%; transform: rotate(-17deg); }.heart-two { top: 82px; right: 3%; font-size: 23px; transform: rotate(19deg); }.heart-three { top: 278px; left: 0; font-size: 30px; transform: rotate(-25deg); }.heart-four { right: 13%; bottom: 22px; font-size: 20px; transform: rotate(13deg); }.scribble-star { right: 26%; bottom: 6px; color: var(--purple); font-size: 28px; }

.welcome-strip { display: flex; align-items: center; gap: 27px; min-height: 95px; margin-bottom: 120px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.54); transform: rotate(-1deg); }
.strip-label { color: var(--purple); font-family: Georgia, serif; font-size: 11px; letter-spacing: .18em; }.strip-copy { flex: 1; display: flex; align-items: baseline; gap: 18px; }.strip-copy strong { font-size: 18px; }.strip-copy span { color: var(--muted); font-size: 13px; }.strip-stamp { padding: 8px; border: 1px solid var(--pink-deep); color: var(--pink-deep); font-family: Georgia, serif; font-size: 10px; line-height: 1.1; letter-spacing: .1em; text-align: center; transform: rotate(8deg); }.age-ticker { min-width: 255px; padding-left: 19px; border-left: 1px solid var(--line); }.ticker-line { display: flex; align-items: baseline; gap: 5px; color: var(--pink-deep); font-family: Georgia, serif; white-space: nowrap; }.ticker-line b { min-width: 28px; font-size: 20px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }.ticker-line span { color: var(--muted); font-family: "Noto Sans SC", sans-serif; font-size: 10px; }.ticker-line i { color: var(--lilac); font-style: normal; }.birth-note { display: block; margin-top: 8px; color: #a79aa9; font-size: 10px; letter-spacing: .03em; }

.section-heading, .gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }.gallery-heading[hidden], .monthly-legend[hidden] { display: none; }.section-heading { margin-bottom: 34px; }.section-heading h2, .gallery-heading h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }.heading-aside { margin-bottom: 2px; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: right; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }.category-card { position: relative; min-height: 220px; padding: 25px 23px; border: 0; border-radius: 7px; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }.category-card:hover, .category-card.active { transform: translateY(-7px) rotate(-1deg); box-shadow: var(--shadow); }.category-timeline { color: var(--paper); background: var(--ink); }.category-school { background: #f7c0cd; }.category-dance { background: #d7c9f1; }.category-daily { background: #f8d6b5; }.category-art { background: #f4e4a4; }.category-icon { position: absolute; top: 17px; right: 20px; font-size: 30px; opacity: .75; }.category-number { display: block; margin-bottom: 73px; color: rgba(52,36,63,.55); font-family: Georgia, serif; font-size: 11px; letter-spacing: .1em; }.category-timeline .category-number, .category-timeline .category-icon { color: var(--pink); }.category-card strong { display: block; margin-bottom: 8px; font-size: 21px; }.category-card small { color: rgba(52,36,63,.68); font-size: 12px; line-height: 1.6; }.category-timeline small { color: rgba(255,253,249,.68); }.category-arrow { position: absolute; right: 21px; bottom: 18px; font-size: 23px; transition: transform .25s ease; }.category-card:hover .category-arrow { transform: translateX(4px); }

.gallery-section { padding: 140px 0 130px; }.gallery-heading { margin-bottom: 32px; }.tiny-label { display: block; margin-bottom: 10px; color: var(--purple); }.photo-count { color: var(--muted); font-family: Georgia, serif; font-size: 12px; letter-spacing: .12em; }.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 27px 17px; }.photo-card { min-width: 0; }.photo-wide { grid-column: span 2; }.photo-tall { grid-row: span 2; }.photo-placeholder { position: relative; display: grid; place-items: center; min-height: 245px; overflow: hidden; color: rgba(52,36,63,.7); text-align: center; }.photo-wide .photo-placeholder { min-height: 320px; }.photo-tall .photo-placeholder { min-height: 520px; }.photo-placeholder > * { position: relative; z-index: 1; }.photo-placeholder b { display: block; font-family: "Ma Shan Zheng", cursive; font-size: 24px; font-weight: 400; }.photo-placeholder small { display: block; margin-top: 8px; color: rgba(52,36,63,.55); font-size: 11px; }.placeholder-icon { display: block; margin-bottom: 8px; color: rgba(255,255,255,.76); font-family: Georgia, serif; font-size: 34px; }.photo-pink { background: #f3b8c9; }.photo-lilac { background: #c8b8e9; }.photo-peach { background: #f6c09f; }.photo-yellow { background: #f2dd8e; }.photo-purple { background: #bba6de; }.photo-blue { background: #aed8dd; }.photo-meta { display: flex; justify-content: space-between; gap: 15px; padding: 13px 2px 0; border-bottom: 1px solid var(--line); }.photo-meta span { color: var(--pink-deep); font-family: Georgia, serif; font-size: 10px; }.photo-meta strong { font-size: 12px; font-weight: 600; }.photo-card.is-hidden { display: none; }.empty-state { padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line); text-align: center; }.empty-state span { color: var(--pink-deep); font-size: 30px; }.empty-state p { margin: 12px 0 6px; color: var(--ink); font-size: 18px; }.empty-state small { font-size: 12px; }

.timeline { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 72px 70px; background: var(--ink); color: var(--paper); overflow: hidden; }.timeline .eyebrow { color: var(--pink); }.timeline h2 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 63px); line-height: 1; letter-spacing: -.06em; }.timeline h2 em { color: var(--pink); }.timeline-intro > p:last-child { max-width: 310px; color: rgba(255,253,249,.62); font-size: 13px; line-height: 1.9; }.timeline-list { position: relative; padding-left: 44px; }.timeline-list::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: rgba(255,255,255,.28); }.timeline-item { position: relative; padding: 0 0 32px; }.timeline-item::before { content: ""; position: absolute; left: -43px; top: 4px; width: 15px; height: 15px; border: 3px solid var(--ink); border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 1px var(--pink); }.timeline-item span { display: block; margin-bottom: 5px; color: var(--pink); font-family: Georgia, serif; font-size: 10px; letter-spacing: .15em; }.timeline-item strong { display: block; margin-bottom: 5px; font-size: 19px; }.timeline-item small { color: rgba(255,255,255,.58); font-size: 12px; }.timeline-item.upcoming { opacity: .55; }.timeline-item.upcoming::before { background: var(--yellow); }
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 50px 0 35px; }.site-footer > div { display: flex; gap: 11px; align-items: center; }.site-footer .footer-mark { width: 26px; height: 26px; font-size: 12px; box-shadow: 3px 3px 0 var(--pink); }.site-footer strong { font-size: 14px; }.site-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.75,.25,1) forwards; animation-play-state: paused; }.reveal-delay-1 { animation-delay: .1s; }.reveal-delay-2 { animation-delay: .18s; }.reveal-delay-3 { animation-delay: .26s; }.reveal.is-visible { animation-play-state: running; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 62px; }.hero-copy { max-width: 570px; }.hero-collage { min-height: 430px; }.category-grid { grid-template-columns: repeat(2, 1fr); }.gallery-grid { grid-template-columns: repeat(2, 1fr); }.photo-wide { grid-column: span 2; }.photo-tall { grid-row: span 1; }.photo-tall .photo-placeholder { min-height: 245px; }.timeline { grid-template-columns: 1fr; gap: 45px; padding: 52px 34px; }
}
@media (max-width: 560px) {
  .section-shell, .site-header { width: min(100% - 30px, 1160px); }.site-header { padding-top: 20px; }.header-note { display: none; }.brand strong { font-size: 15px; }.hero { padding: 54px 0 35px; min-height: auto; }.hero h1 { font-size: 57px; }.hero-intro { font-size: 13px; line-height: 1.9; }.hero-collage { min-height: 350px; transform: scale(.9); transform-origin: top center; margin-bottom: -36px; }.snapshot-main { left: 3%; width: 76%; }.snapshot-main .snapshot-image { height: 235px; }.snapshot-small { width: 145px; }.snapshot-small .snapshot-image { height: 120px; }.sun-sticker { right: 3%; }.welcome-strip { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 90px; padding: 17px 15px; }.strip-label { width: 100%; }.strip-copy { display: block; min-width: 45%; }.strip-copy strong { display: block; font-size: 14px; }.strip-copy span { display: block; margin-top: 4px; font-size: 11px; }.age-ticker { min-width: 0; flex: 1; padding-left: 10px; }.ticker-line { gap: 2px; }.ticker-line b { min-width: 22px; font-size: 15px; }.ticker-line span { font-size: 9px; }.birth-note { font-size: 9px; }.strip-stamp { margin-left: auto; font-size: 8px; }.section-heading, .gallery-heading { align-items: start; flex-direction: column; gap: 12px; }.heading-aside { text-align: left; }.category-grid { gap: 9px; }.category-card { min-height: 180px; padding: 18px 15px; }.category-number { margin-bottom: 51px; }.category-card strong { font-size: 18px; }.category-card small { font-size: 11px; }.gallery-section { padding: 95px 0 90px; }.gallery-grid { gap: 22px 10px; }.photo-placeholder, .photo-wide .photo-placeholder { min-height: 190px; }.photo-placeholder b { font-size: 18px; }.photo-meta { display: block; }.photo-meta strong { display: block; margin-top: 5px; padding-bottom: 8px; }.timeline { width: 100%; padding: 47px 27px; }.site-footer { display: block; padding: 35px 0 27px; }.site-footer p { margin: 17px 0 0; }
}

/* Narrow screens: keep the timer and card labels in their own flow instead of
   letting flex items compete for the same row. */
@media (max-width: 560px) {
  .welcome-strip { display: block; position: relative; padding-bottom: 19px; }
  .strip-copy { min-width: 0; }
  .strip-copy strong, .strip-copy span, .birth-note { overflow-wrap: anywhere; }
  .age-ticker { width: 100%; margin-top: 14px; padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .ticker-line { flex-wrap: wrap; row-gap: 2px; white-space: normal; line-height: 1.35; }
  .ticker-line b { min-width: 0; }
  .strip-stamp { display: inline-block; margin: 14px 0 0; }
  .category-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-width: 0; }
  .category-card strong, .category-card small, .photo-meta span, .photo-meta strong, .timeline-item strong, .timeline-item small { overflow-wrap: anywhere; }
  .category-card strong { line-height: 1.35; }
  .gallery-heading h2, .section-heading h2 { line-height: 1.18; }
  .photo-meta { gap: 4px; }
  .timeline h2 { font-size: clamp(35px, 11vw, 50px); line-height: 1.08; }
  .timeline-list { min-width: 0; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 49px; line-height: 1.08; letter-spacing: -.04em; }
  .hero-collage { transform: scale(.84); margin-bottom: -54px; }
  .category-card { min-height: 170px; padding: 16px 12px; }
  .category-number { margin-bottom: 42px; }
  .category-card strong { font-size: 16px; }
  .timeline { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; animation: none; }.pill-button, .category-card { transition: none; } }

/* The archive is ready to grow, but the homepage now keeps the timeline in
   focus. Category details live in a collapsible little book-spine at left. */
.archive-sidebar { position: fixed; top: 50%; left: 0; z-index: 35; width: 54px; overflow: hidden; border: 1px solid rgba(82,59,95,.16); border-left: 0; border-radius: 0 16px 16px 0; background: rgba(255,253,249,.94); box-shadow: 10px 12px 32px rgba(52,36,63,.13); transform: translateY(-50%); transition: width .28s cubic-bezier(.2,.75,.25,1), box-shadow .28s ease; }
.archive-sidebar.is-expanded { width: 272px; box-shadow: 14px 16px 38px rgba(52,36,63,.19); }
.archive-sidebar-toggle { display: flex; align-items: center; gap: 12px; width: 100%; height: 54px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); background: var(--ink); cursor: pointer; font: inherit; white-space: nowrap; }
.archive-sidebar-toggle > span:first-child { font-size: 17px; }.archive-sidebar-toggle-label { color: var(--paper); font-size: 12px; letter-spacing: .14em; }
.archive-sidebar .category-grid { display: grid; grid-template-columns: 1fr; gap: 0; width: 272px; }
.archive-sidebar .category-card { display: grid; grid-template-columns: 54px 1fr auto; grid-template-rows: auto auto; align-items: center; min-height: 64px; padding: 10px 15px 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; transform: none; overflow: visible; }
.archive-sidebar .category-card:hover, .archive-sidebar .category-card.active { background: rgba(247,192,205,.22); box-shadow: none; transform: none; }
.archive-sidebar .category-card.active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pink-deep); }
.archive-sidebar .category-icon { position: static; grid-row: 1 / span 2; grid-column: 1; justify-self: center; color: var(--purple); font-size: 21px; opacity: 1; }
.archive-sidebar .category-timeline .category-icon { color: var(--pink-deep); }.archive-sidebar .category-number { display: none; }.archive-sidebar .category-card strong { grid-column: 2; margin: 0; color: var(--ink); font-size: 13px; line-height: 1.3; white-space: nowrap; }.archive-sidebar .category-card small { grid-column: 2; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; white-space: nowrap; }.archive-sidebar .category-count { position: static; grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: 10px; white-space: nowrap; }.archive-sidebar .category-arrow { display: none; }
.archive-sidebar:not(.is-expanded) .archive-sidebar-toggle { justify-content: center; padding: 0; }.archive-sidebar:not(.is-expanded) .archive-sidebar-toggle-label, .archive-sidebar:not(.is-expanded) .category-card strong, .archive-sidebar:not(.is-expanded) .category-card small, .archive-sidebar:not(.is-expanded) .category-card .category-count { visibility: hidden; }.archive-sidebar:not(.is-expanded) .category-card { grid-template-columns: 54px 1fr; padding-right: 0; }
@media (max-width: 700px) { .archive-sidebar { top: auto; bottom: 18px; transform: none; }.archive-sidebar.is-expanded { width: min(272px, calc(100vw - 30px)); }.archive-sidebar .category-grid { width: min(272px, calc(100vw - 30px)); } }

.photo-real { background-position: center; background-size: cover; color: var(--paper); text-shadow: 0 2px 12px rgba(52,36,63,.55); }
.photo-real::before { width: 100%; height: 100%; border: 0; border-radius: 0; transform: none; background: linear-gradient(180deg, rgba(52,36,63,.08), rgba(52,36,63,.55)); }
.photo-real small { color: rgba(255,255,255,.82); }
.photo-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: inherit; cursor: zoom-in; }
.photo-placeholder { background: #f3b8c9; }
.photo-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.photo-open:hover img { transform: scale(1.045); }
.photo-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(52,36,63,.06), rgba(52,36,63,.62)); }
.photo-real > * { position: relative; z-index: 2; }
.photo-real::before { z-index: 1; }
.category-count { position: absolute; right: 22px; bottom: 18px; color: rgba(52,36,63,.58); font-family: Georgia, serif; font-size: 10px; letter-spacing: .08em; }
.load-more { display: flex; align-items: center; gap: 16px; margin: 42px auto 0; padding: 13px 18px 13px 23px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: rgba(255,255,255,.55); cursor: pointer; font-size: 12px; transition: transform .25s ease, background .25s ease; }
.load-more span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pink); font-size: 16px; }
.load-more:hover { transform: translateY(-3px); background: var(--paper); }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 38px 86px; background: rgba(35,23,42,.86); backdrop-filter: blur(12px); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1000px, 92vw); max-height: 90vh; margin: 0; text-align: center; }
.lightbox img, .lightbox video { display: block; max-width: 100%; max-height: 78vh; margin: auto; border: 8px solid var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.lightbox figcaption { margin-top: 14px; color: rgba(255,255,255,.8); font-size: 12px; }
.lightbox-close { position: absolute; top: 20px; right: 25px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: var(--paper); background: transparent; cursor: pointer; font-size: 29px; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.15); }
.lightbox-nav { position: absolute; top: 50%; z-index: 1; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: var(--paper); background: rgba(52,36,63,.55); cursor: pointer; font-family: Georgia, serif; font-size: 28px; line-height: 1; transform: translateY(-50%); transition: background .2s ease, transform .2s ease; }
.lightbox-nav:hover { background: var(--pink-deep); transform: translateY(-50%) scale(1.06); }.lightbox-prev { left: 24px; }.lightbox-next { right: 24px; }.lightbox-position { position: absolute; left: 50%; bottom: 20px; color: rgba(255,255,255,.72); font-family: Georgia, serif; font-size: 11px; letter-spacing: .16em; transform: translateX(-50%); }
.lightbox-open { overflow: hidden; }
@media (max-width: 560px) { .category-count { right: 15px; bottom: 16px; }.lightbox { padding: 20px 12px 58px; }.lightbox figure { max-width: 100%; }.lightbox img, .lightbox video { max-height: 72vh; border-width: 5px; }.lightbox-close { top: 12px; right: 12px; }.lightbox-nav { top: auto; bottom: 14px; width: 46px; height: 46px; transform: none; }.lightbox-nav:hover { transform: none; }.lightbox-prev { left: calc(50% - 70px); }.lightbox-next { right: calc(50% - 70px); }.lightbox-position { bottom: 30px; } }

/* Month-by-month archive: a quiet editorial frame that can grow with the
   photo manifest without changing the page structure. */
.monthly-view { margin: 0 0 34px; padding: 34px 34px 38px; border: 1px solid var(--line); background: rgba(255,255,255,.38); }
.monthly-view[hidden] { display: none; }
.monthly-view-header { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 15px; }
.monthly-view-header h3 { margin: 0; color: var(--ink); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.05em; }
.monthly-view-header p { max-width: 390px; margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.monthly-legend { display: flex; gap: 18px; margin-bottom: 25px; color: var(--muted); font-size: 11px; }
.monthly-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot, .legend-star { display: inline-grid; place-items: center; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.legend-star { width: auto; height: auto; color: var(--pink-deep); background: none; font-size: 14px; }
.monthly-timeline { position: relative; display: grid; gap: 23px; }
.monthly-timeline::before { content: ""; position: absolute; left: 13px; top: 16px; bottom: 16px; width: 1px; background: var(--lilac); opacity: .9; }
.month-card { position: relative; min-width: 0; padding: 25px 25px 21px 34px; border: 1px solid var(--line); border-left: 4px solid var(--purple); background: rgba(255,255,255,.78); box-shadow: 0 10px 25px rgba(86,57,88,.05); opacity: 0; transform: translateY(18px); }
.month-card.is-visible, .month-empty.is-visible { animation: rise .65s cubic-bezier(.2,.75,.25,1) forwards; }
.month-card::before { content: ""; position: absolute; left: -11px; top: 26px; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.month-card.is-milestone { border-color: rgba(211,117,139,.42); border-left-color: var(--pink-deep); background: linear-gradient(105deg, rgba(255,249,239,.98), rgba(255,238,242,.76)); box-shadow: 0 14px 32px rgba(211,117,139,.12); }
.month-card.is-milestone::before { width: 17px; height: 17px; left: -13px; top: 24px; background: var(--pink-deep); box-shadow: 0 0 0 4px rgba(211,117,139,.14); }
.month-card-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.month-card-head > div { min-width: 0; }
.month-index { display: inline-block; margin-right: 10px; color: var(--pink-deep); font-family: Georgia, serif; font-size: 10px; letter-spacing: .13em; }
.month-card h4 { display: inline; margin: 0; color: var(--ink); font-size: 23px; font-weight: 600; letter-spacing: -.04em; }
.month-title-milestone { display: inline-block; margin-left: 10px; padding: 4px 8px; border-radius: 99px; color: var(--pink-deep); background: rgba(211,117,139,.12); font-size: 11px; font-weight: 600; vertical-align: 3px; }
.month-card-head small { display: block; margin: 6px 0 0 31px; color: var(--muted); font-size: 11px; }
.month-count { flex: none; color: var(--muted); font-family: Georgia, serif; font-size: 10px; letter-spacing: .08em; }
.milestone-badge { flex: none; padding: 7px 10px; border: 1px solid rgba(211,117,139,.52); border-radius: 99px; color: var(--pink-deep); background: rgba(255,255,255,.58); font-size: 11px; }
.monthly-photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.monthly-view.is-curated { padding-bottom: 44px; border-color: rgba(118,82,142,.35); background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(249,238,231,.72)); }
.monthly-view.is-curated .monthly-timeline { gap: 28px; }
.month-card--curated { padding-bottom: 25px; overflow: hidden; }
.month-card--curated::after { content: ""; position: absolute; top: 67px; right: 0; bottom: 46px; width: 36px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9)); }
.monthly-rail { display: flex; gap: 12px; width: calc(100% + 25px); padding: 2px 25px 13px 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-color: var(--lilac) transparent; scrollbar-width: thin; }
.monthly-rail::-webkit-scrollbar { height: 7px; }.monthly-rail::-webkit-scrollbar-thumb { border-radius: 99px; background: var(--lilac); }
.month-card--curated .monthly-photo { flex: 0 0 clamp(142px, 18vw, 190px); scroll-snap-align: start; cursor: pointer; }
.month-card--curated .monthly-photo-image { aspect-ratio: 4 / 5; border: 1px solid rgba(118,82,142,.16); box-shadow: 4px 5px 0 rgba(211,117,139,.13); }
.month-card--curated .monthly-photo:nth-child(3n + 2) .monthly-photo-image { transform: rotate(-1.2deg); }.month-card--curated .monthly-photo:nth-child(3n) .monthly-photo-image { transform: rotate(1deg); }
.month-card--curated .monthly-photo:hover .monthly-photo-image { transform: translateY(-3px) rotate(0); }
.month-card--curated .monthly-photo-mark { width: 28px; height: 28px; background: var(--purple); font-size: 12px; }
.month-card--curated .monthly-photo-caption { padding-top: 9px; }
.monthly-photo { min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: zoom-in; }
.monthly-photo-image { position: relative; display: block; aspect-ratio: 1.12 / 1; overflow: hidden; background: var(--lilac); }
.monthly-photo-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.monthly-photo:hover img { transform: scale(1.055); }
.monthly-photo-mark { position: absolute; right: 7px; top: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--paper); background: rgba(52,36,63,.45); font-size: 10px; }
.monthly-photo-caption { display: block; min-width: 0; padding-top: 8px; }
.monthly-photo-caption b, .monthly-photo-caption small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monthly-photo-caption b { color: var(--ink); font-size: 11px; font-weight: 600; }
.monthly-photo-caption small { margin-top: 4px; color: var(--muted); font-family: Georgia, serif; font-size: 10px; }
.month-note { max-width: 670px; margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.milestone-date { margin-top: 10px; color: var(--pink-deep); font-family: Georgia, serif; font-size: 10px; letter-spacing: .07em; }
.month-empty { padding: 36px 22px; border: 1px dashed var(--lilac); background: rgba(255,255,255,.45); text-align: center; opacity: 0; transform: translateY(18px); }
.month-empty strong, .month-empty small { display: block; }
.month-empty strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.month-empty small { margin-top: 9px; color: var(--muted); font-size: 11px; }

.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(118,82,142,.3); border-radius: 50%; color: var(--paper); background: var(--purple); box-shadow: 4px 5px 0 rgba(211,117,139,.28); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, background .25s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--pink-deep); }
.back-to-top span { font-family: Georgia, serif; font-size: 20px; line-height: 1; }
.back-to-top small { margin-top: 1px; font-size: 9px; letter-spacing: .08em; }

@media (max-width: 850px) {
  .monthly-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .monthly-view { margin-bottom: 22px; padding: 25px 15px 28px 24px; }
  .monthly-view-header { display: block; }
  .monthly-view-header h3 { line-height: 1.2; }
  .monthly-view-header p { margin-top: 12px; line-height: 1.75; }
  .monthly-legend { flex-wrap: wrap; margin-bottom: 19px; }
  .monthly-timeline::before { left: 9px; }
  .month-card { padding: 21px 14px 18px 21px; }
  .month-card::before { left: -10px; }
  .month-card.is-milestone::before { left: -12px; }
  .month-card-head { display: block; }
  .month-count, .milestone-badge { display: inline-block; margin-top: 12px; }
  .month-card h4 { font-size: 21px; }
  .month-title-milestone { margin-left: 7px; font-size: 10px; vertical-align: 2px; }
  .monthly-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .monthly-rail { width: calc(100% + 14px); gap: 10px; padding-right: 14px; }
  .month-card--curated .monthly-photo { flex-basis: 136px; }
  .month-card--curated::after { width: 22px; }
  .monthly-photo-caption b, .monthly-photo-caption small { overflow-wrap: anywhere; white-space: normal; }
  .monthly-photo-caption b { line-height: 1.35; }
  .back-to-top { right: 14px; bottom: 15px; width: 46px; height: 46px; }
}
@media (max-width: 380px) {
  .monthly-view { padding-left: 19px; }
  .month-card { padding-left: 16px; }
  .monthly-photos { gap: 12px 7px; }
}

@media (max-width: 850px) {
  .hero-collage { min-height: 570px; }
}

@media (max-width: 560px) {
  .hero-collage { min-height: 500px; transform: scale(.88); transform-origin: top center; margin-bottom: -56px; }
  .birthday-stack { width: min(420px, 96%); height: 548px; }
  .birthday-card-one-two .birthday-photo { height: 160px; }
  .birthday-card-three .birthday-photo { height: 184px; }
  .birthday-card-four .birthday-photo { height: 138px; }
}

@media (max-width: 380px) {
  .hero-collage { transform: scale(.8); margin-bottom: -104px; }
}

/* A life line that begins with a precise date and gradually gives way to open
   space: the early years are measured, the distant years stay unwritten. */
.welcome-strip { margin-bottom: 28px; }
.life-journey { margin-bottom: 112px; padding: 27px 27px 18px; overflow: hidden; border: 1px solid rgba(118,82,142,.2); border-radius: 9px; background: linear-gradient(115deg, rgba(255,255,255,.72), rgba(255,242,231,.66)); box-shadow: 0 16px 38px rgba(86,57,88,.06); }
.life-journey-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 7px; }
.life-journey-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: clamp(22px, 2.7vw, 34px); letter-spacing: -.05em; }
.life-journey-heading p { max-width: 390px; margin: 0 0 3px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.journey-scroller { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: rgba(118,82,142,.34) transparent; scrollbar-width: thin; }
.journey-scroller::-webkit-scrollbar { height: 5px; }.journey-scroller::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(118,82,142,.34); }
.journey-ruler { --journey-year: 56px; position: relative; width: 1950px; height: 150px; margin: 0 27px 14px; }
.journey-scale { position: absolute; top: 87px; left: 0; width: 1680px; height: 17px; border-top: 2px solid var(--pink-deep); border-right: 1px solid rgba(118,82,142,.42); background: repeating-linear-gradient(90deg, rgba(118,82,142,.42) 0 1px, transparent 1px var(--journey-year)); }
.journey-ruler::after { content: ""; position: absolute; left: 1680px; right: 10px; top: 87px; height: 2px; background: linear-gradient(90deg, var(--lilac), rgba(118,82,142,0)); }
.journey-phase { position: absolute; top: 7px; left: var(--start); width: var(--span); padding: 2px 7px 5px; border-bottom: 1px solid rgba(118,82,142,.17); text-align: center; }
.journey-phase b, .journey-phase small { display: block; white-space: nowrap; }
.journey-phase b { color: var(--ink); font-size: 12px; font-weight: 600; }
.journey-phase small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.journey-milestone { position: absolute; top: 58px; left: var(--year); z-index: 2; width: 0; text-align: center; }
.journey-milestone b { display: block; width: 70px; color: var(--ink); font-size: 11px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.journey-milestone i { position: absolute; top: 24px; left: 0; width: 10px; height: 10px; border: 3px solid var(--paper); border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 1px rgba(118,82,142,.44); transform: translate(-50%, -50%); }
.journey-milestone time { position: absolute; top: 48px; left: 0; color: var(--pink-deep); font-family: Georgia, serif; font-size: 10px; letter-spacing: .05em; white-space: nowrap; transform: translateX(-50%); }
.journey-birth i { width: 16px; height: 16px; background: var(--pink-deep); box-shadow: 0 0 0 5px rgba(211,117,139,.13); }
.journey-now { position: absolute; z-index: 4; top: 47px; left: 0; color: var(--pink-deep); text-align: center; transform: translateX(-50%); }
.journey-now b { display: block; padding: 2px 8px; border-radius: 99px; background: var(--paper); box-shadow: 0 4px 14px rgba(211,117,139,.15); font-size: 10px; white-space: nowrap; }
.journey-now i { display: block; width: 0; height: 0; margin: 3px auto 0; border-right: 6px solid transparent; border-left: 6px solid transparent; border-top: 10px solid var(--pink-deep); }
.journey-forever { position: absolute; top: 66px; left: 1725px; width: 190px; }
.journey-forever b, .journey-forever small { display: block; }
.journey-forever b { color: var(--purple); font-family: "Ma Shan Zheng", cursive; font-size: 22px; }
.journey-forever small { color: var(--muted); font-size: 9px; }

/* Years act as book chapters. Each chapter can be folded without changing the
   month rails or their lightbox order. */
.monthly-timeline::before { display: none; }
.timeline-year { min-width: 0; }
.timeline-year-toggle { display: flex; align-items: center; width: 100%; margin: 0 0 14px; padding: 10px 13px; border: 0; border-bottom: 1px solid rgba(118,82,142,.18); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.timeline-year-toggle:hover { background: rgba(247,192,205,.12); }
.timeline-year-title { display: inline-flex; align-items: baseline; gap: 4px; }
.timeline-year-title b { font-family: Georgia, serif; font-size: 25px; font-weight: 400; letter-spacing: -.04em; }
.timeline-year-title small { color: var(--pink-deep); font-size: 10px; }
.timeline-year-summary { margin-left: 15px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.timeline-year-chevron { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(118,82,142,.24); border-radius: 50%; color: var(--purple); font-family: Georgia, serif; transition: transform .22s ease, background .22s ease; }
.timeline-year.is-collapsed .timeline-year-chevron { background: rgba(247,192,205,.2); transform: rotate(180deg); }
.timeline-year-body { position: relative; display: grid; gap: 23px; }
.timeline-year-body[hidden] { display: none; }
.timeline-year-body::before { content: ""; position: absolute; left: 13px; top: 16px; bottom: 16px; width: 1px; background: var(--lilac); opacity: .9; }
.monthly-view.is-curated .timeline-year-body { gap: 28px; }

@media (max-width: 560px) {
  .welcome-strip { margin-bottom: 20px; }
  .life-journey { margin-bottom: 88px; padding: 22px 14px 13px; }
  .life-journey-heading { display: block; }
  .life-journey-heading p { margin-top: 9px; }
  .journey-ruler { margin-left: 18px; }
  .timeline-year-toggle { padding-inline: 7px; }
  .timeline-year-title b { font-size: 22px; }
  .timeline-year-summary { margin-left: 10px; letter-spacing: 0; }
  .timeline-year-body::before { left: 9px; }
}
