:root {
  --paper: #f4efe7;
  --ink: #20231f;
  --muted: #77766d;
  --line: #20231f;
  --cream: #fffdf8;
  --yellow: #f2bf4b;
  --mint: #bed7cc;
  --blue: #9bb6ca;
  --rose: #e4b6a8;
  --orange: #dd7844;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
:focus-visible { outline: 3px solid #477b68; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 20; top: 14px; left: 14px; padding: 10px 14px; border: 2px solid var(--ink); background: var(--cream); font-size: 13px; font-weight: 800; transform: translateY(-160%); transition: transform 160ms var(--ease); }
.skip-link:focus { transform: translateY(0); }
.family-shell { width: min(100% - 48px, 1280px); margin: 0 auto; }
.family-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; border-bottom: 1px solid var(--line); }
.family-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 16px; font-weight: 900; letter-spacing: .02em; }
.brand-seal { display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-family: Georgia, serif; font-size: 18px; font-weight: 900; }
.family-nav { display: flex; gap: 32px; font-size: 12px; font-weight: 800; }
.family-nav a, .header-back { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; transition: border-color 160ms ease; }
.family-nav a:hover, .family-nav a[aria-current="page"], .header-back:hover { border-color: var(--ink); }
.header-date { justify-self: end; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.header-back { justify-self: end; font-size: 12px; font-weight: 800; }
.kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.kicker span { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.ink-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 48px; padding: 0 16px; border: 2px solid var(--ink); background: var(--ink); box-shadow: 5px 5px 0 var(--yellow); color: var(--cream); font-size: 12px; font-weight: 900; transition: transform 140ms var(--ease), box-shadow 140ms var(--ease); }
.ink-button:hover { transform: translateY(-2px); box-shadow: 5px 7px 0 var(--yellow); }
.ink-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--yellow); }
.family-hero { display: grid; grid-template-columns: minmax(330px, .85fr) minmax(560px, 1.15fr); gap: 72px; align-items: center; min-height: 640px; min-width: 0; padding: 72px 36px 84px; border-bottom: 1px solid var(--line); }
.hero-words { min-width: 0; }
.hero-words h1 { max-width: 560px; margin-bottom: 24px; font-size: 68px; font-weight: 950; letter-spacing: -.075em; line-height: .98; }
.hero-words h1 em { color: var(--orange); font-style: normal; }
.hero-lede { max-width: 390px; margin-bottom: 32px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-portraits { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 13px; min-height: 440px; min-width: 0; width: 100%; padding: 15px 0 25px; }
.hero-portrait { position: relative; display: block; min-width: 0; overflow: hidden; aspect-ratio: .74; border: 2px solid var(--ink); background: var(--mint); box-shadow: 6px 7px 0 var(--ink); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.hero-portrait:hover { transform: translateY(-8px); box-shadow: 6px 14px 0 var(--ink); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.portrait-dad { background: var(--blue); transform: rotate(-2deg); }
.portrait-mom { background: var(--rose); transform: translateY(22px) rotate(1.5deg); }
.portrait-child { background: var(--yellow); transform: rotate(-1deg); }
.portrait-dad:hover { transform: translateY(-8px) rotate(-2deg); }
.portrait-mom:hover { transform: translateY(14px) rotate(1.5deg); }
.portrait-child:hover { transform: translateY(-8px) rotate(-1deg); }
.portrait-index { position: absolute; z-index: 1; top: 9px; left: 9px; font-size: 10px; font-weight: 900; }
.portrait-label { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 9px 8px; background: var(--cream); border-top: 2px solid var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.hero-note { position: absolute; right: 4px; bottom: -3px; padding: 10px 12px; border: 1px solid var(--ink); background: var(--cream); font-size: 10px; font-weight: 900; line-height: 1.4; text-align: right; transform: rotate(3deg); }
.family-facts { display: grid; grid-template-columns: 160px 160px 1fr auto; align-items: center; gap: 20px; min-height: 112px; padding: 0 36px; border-bottom: 1px solid var(--line); }
.family-facts div { display: flex; align-items: baseline; gap: 10px; }
.family-facts strong { font-family: Georgia, serif; font-size: 38px; font-weight: 400; }
.family-facts span { color: var(--muted); font-size: 11px; font-weight: 800; }
.family-facts p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.people-section { padding: 110px 36px 128px; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; margin-bottom: 48px; }
.section-intro .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.section-intro h2 { margin: 0; font-size: 48px; font-weight: 950; letter-spacing: -.07em; }
.section-intro > p:last-child { max-width: 300px; margin: 0 0 4px auto; color: var(--muted); font-size: 14px; line-height: 1.7; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ink); background: var(--cream); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.person-card:hover { transform: translateY(-7px); box-shadow: 6px 7px 0 var(--ink); }
.person-image { aspect-ratio: 1.08; overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--mint); }
.person-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.card-dad .person-image { background: var(--blue); }
.card-mom .person-image { background: var(--rose); }
.card-child .person-image { background: var(--yellow); }
.person-copy { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 18px 18px 20px; }
.person-copy span { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.person-copy h3 { margin: 0; font-size: 25px; font-weight: 950; }
.person-copy p { align-self: end; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.person-copy b { grid-column: 1 / -1; margin-top: 15px; font-size: 11px; font-weight: 900; }
.family-note { display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 28px; min-height: 226px; padding: 38px 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--yellow); }
.note-stamp { display: grid; place-items: center; width: 100px; height: 100px; border: 2px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-size: 13px; line-height: 1.2; text-align: center; transform: rotate(-8deg); }
.family-note .kicker { margin-bottom: 9px; color: var(--ink); }
.family-note h2 { margin: 0 0 10px; font-size: 30px; font-weight: 950; letter-spacing: -.05em; }
.family-note p:last-child { max-width: 560px; margin: 0; font-size: 13px; line-height: 1.7; }
.note-date { color: rgba(32, 35, 31, .65); font-size: 10px; font-weight: 900; line-height: 1.6; text-align: right; letter-spacing: .1em; }
.note-date strong { color: var(--ink); font-size: 13px; letter-spacing: 0; }
.family-footer { display: flex; justify-content: space-between; gap: 20px; min-height: 86px; padding: 28px 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; }

/* member pages */
.profile-breadcrumb { display: flex; gap: 10px; align-items: center; padding: 28px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.profile-breadcrumb a { color: var(--ink); }
.profile-hero { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(360px, 1fr); gap: 110px; align-items: center; min-height: 600px; padding: 50px 72px 85px; border-bottom: 1px solid var(--line); }
.profile-portrait { position: relative; width: 100%; max-width: 470px; aspect-ratio: .86; overflow: hidden; border: 2px solid var(--ink); background: var(--mint); box-shadow: 10px 11px 0 var(--ink); }
.profile-dad .profile-portrait { background: var(--blue); }
.profile-mom .profile-portrait { background: var(--rose); }
.profile-child .profile-portrait { background: var(--yellow); }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.profile-tag { position: absolute; right: 12px; bottom: 12px; padding: 8px 10px; border: 1px solid var(--ink); background: var(--cream); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.profile-copy .kicker { margin-bottom: 16px; }
.profile-copy h1 { margin: 0 0 13px; font-size: 72px; font-weight: 950; letter-spacing: -.08em; }
.profile-lede { margin-bottom: 22px; color: var(--orange); font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.profile-body { max-width: 440px; margin-bottom: 40px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 16px; max-width: 440px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-facts div { display: grid; gap: 6px; }
.profile-facts span { color: var(--muted); font-size: 10px; font-weight: 800; }
.profile-facts strong { font-size: 13px; font-weight: 900; }
.profile-quote { padding: 82px 20px 92px; text-align: center; }
.profile-quote > span { display: block; height: 36px; color: var(--orange); font-family: Georgia, serif; font-size: 80px; line-height: .7; }
.profile-quote p { margin: 22px 0 20px; font-size: 32px; font-weight: 900; letter-spacing: -.06em; line-height: 1.35; }
.profile-quote small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.profile-switcher { display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-switcher a { display: grid; gap: 5px; min-width: 170px; padding: 21px 0; font-size: 15px; font-weight: 900; transition: color 160ms ease; }
.profile-switcher a:last-child { text-align: right; }
.profile-switcher a:hover { color: var(--orange); }
.profile-switcher span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }

@media (max-width: 980px) {
  .family-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 62px; }
  .hero-words h1 { font-size: 58px; }
  .hero-portraits { width: min(100%, 670px); margin: 0 auto; }
  .profile-hero { gap: 60px; padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 700px) {
  html { scroll-behavior: auto; }
  .family-shell { width: min(100% - 32px, 1280px); }
  .family-header { grid-template-columns: 1fr auto; min-height: 70px; }
  .family-nav { display: none; }
  .header-date { display: none; }
  .header-back { font-size: 11px; }
  .family-hero { min-height: auto; gap: 38px; padding: 54px 0 58px; }
  .hero-words h1 { font-size: 48px; }
  .hero-lede { width: 100%; max-width: 100%; font-size: 14px; overflow-wrap: anywhere; word-break: break-all; }
  .hero-portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 300px; padding-bottom: 28px; }
  .hero-portrait { box-shadow: 3px 4px 0 var(--ink); }
  .portrait-label { padding: 7px 4px; font-size: 7px; letter-spacing: .03em; }
  .portrait-index { top: 6px; left: 6px; font-size: 8px; }
  .hero-note { right: -2px; bottom: -5px; font-size: 8px; }
  .family-facts { grid-template-columns: 1fr 1fr; gap: 15px; min-height: 122px; padding: 18px 0; }
  .family-facts div:last-of-type { grid-column: 1 / -1; }
  .family-facts p { display: none; }
  .family-facts strong { font-size: 30px; }
  .people-section { padding: 72px 0 80px; }
  .section-intro { grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; }
  .section-intro h2 { font-size: 39px; }
  .section-intro > p:last-child { margin: 0; font-size: 13px; }
  .people-grid { grid-template-columns: 1fr; gap: 14px; }
  .person-card { grid-template-columns: 42% 1fr; grid-template-rows: 1fr; }
  .person-image { border-right: 1px solid var(--ink); border-bottom: 0; }
  .person-copy { align-content: center; padding: 14px; }
  .person-copy h3 { font-size: 22px; }
  .person-copy p { font-size: 11px; }
  .family-note { grid-template-columns: 70px 1fr; gap: 18px; min-height: 220px; padding: 28px 0; }
  .note-stamp { width: 70px; height: 70px; font-size: 10px; }
  .family-note h2 { font-size: 24px; }
  .note-date { grid-column: 2; text-align: left; }
  .family-footer { min-height: 70px; padding: 23px 0; font-size: 9px; }
  .profile-breadcrumb { padding-top: 20px; }
  .profile-hero { grid-template-columns: 1fr; gap: 42px; min-height: auto; padding: 34px 0 60px; }
  .profile-portrait { width: min(100%, 390px); margin: 0 auto; }
  .profile-copy h1 { font-size: 58px; }
  .profile-lede { font-size: 19px; }
  .profile-body { margin-bottom: 30px; font-size: 13px; }
  .profile-quote { padding: 68px 0 75px; }
  .profile-quote p { font-size: 26px; }
  .profile-switcher a { min-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* baby play CTA */
.family-play-cta {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
  padding: 56px 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff7e8 0%, #ffe8ef 48%, #e8f8ff 100%);
}
.play-cta-copy .kicker { margin-bottom: 10px; }
.play-cta-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 950;
  letter-spacing: -0.05em;
}
.play-cta-copy p {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.play-cta-visual {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}
.play-cta-visual span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 5px 6px 0 var(--ink);
}
.play-cta-visual span:nth-child(2) { transform: translateY(-10px); background: #fff4d6; }
.play-cta-visual span:nth-child(3) { transform: translateY(8px); background: #e9ffe8; }

.profile-play {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin: 0 72px 0;
  padding: 36px;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, #fff7e8, #ffe8ef);
  box-shadow: 8px 9px 0 var(--ink);
}
.profile-play h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.05em;
}
.profile-play p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 420px;
}
.profile-play-emojis {
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .family-play-cta {
    grid-template-columns: 1fr;
    padding: 40px 22px;
  }
  .play-cta-visual { justify-content: flex-start; flex-wrap: wrap; }
  .profile-play {
    grid-template-columns: 1fr;
    margin: 0 18px;
    padding: 24px;
  }
}
