:root {
  --paper: #e9e0cc;
  --paper-light: #f8f1e2;
  --paper-deep: #d7c6a5;
  --ink: #2c3029;
  --muted: #716d60;
  --accent: #b7654c;
  --accent-deep: #8d4937;
  --accent-pale: #dfb39d;
  --line: rgba(49, 50, 40, 0.22);
  --night: #2d342d;
  --shadow: 0 22px 46px rgba(61, 50, 28, 0.15);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { color: var(--paper-light); background: var(--accent); }

.paper-noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--accent-deep);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-light) 91%, transparent);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; }
.brand-mark svg { width: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 16px/1.15 var(--serif); }
.brand small { margin-top: 3px; color: var(--muted); font: 9px/1.2 var(--mono); letter-spacing: .13em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); }
.site-nav a { position: relative; padding: 8px 0; color: var(--ink); font-size: 14px; text-decoration: none; }
.site-nav a::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; content: ""; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); background: transparent; }
.menu-button > span:not(.sr-only) { display: block; height: 1px; margin: 4px 0; background: var(--ink); }

.hero {
  position: relative;
  min-height: 720px;
  padding: 84px 54px 70px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: linear-gradient(111deg, rgba(255,255,255,.34), transparent 52%), var(--paper-light);
}
.hero::before, .hero::after { position: absolute; top: 0; bottom: 0; width: 1px; content: ""; background: var(--line); opacity: .72; }
.hero::before { left: 30px; }
.hero::after { right: 30px; }
.file-tab { position: absolute; top: 0; left: 54px; padding: 9px 18px; color: var(--paper-light); background: var(--night); font: 700 10px/1.4 var(--mono); letter-spacing: .1em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); align-items: center; gap: clamp(44px, 8vw, 108px); min-height: 540px; }
.hero-copy { position: relative; z-index: 1; max-width: 625px; }
.hero h1 { max-width: 650px; margin: 20px 0 25px; font: 500 clamp(50px, 6.25vw, 84px)/1.08 var(--serif); letter-spacing: -.045em; }
.hero h1 span, .hero h1 em { display: block; font-style: normal; }
.hero h1 em { padding-block: 3px; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 11px; }
.intro { max-width: 560px; margin: 0; color: #4d4d43; font: 20px/1.9 var(--serif); }
.intro strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; padding: 12px 18px; border: 1px solid var(--ink); color: var(--ink); background: transparent; font-weight: 700; line-height: 1.3; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.button:hover, .button:focus-visible { box-shadow: 4px 4px 0 var(--paper-deep); transform: translate(-2px, -2px); }
.button-primary, .button-ink { color: var(--paper-light); background: var(--night); }
.paw-button { border-color: var(--accent); color: var(--accent-deep); background: rgba(255, 255, 255, .22); }
.paw-button.is-stamped { color: var(--paper-light); background: var(--accent); }
.paw-feedback { min-height: 27px; margin: 12px 0 0; color: var(--accent-deep); font-family: var(--serif); }
.birthday-wall { display: flex; align-items: center; gap: 7px; min-height: 36px; margin-top: 8px; color: var(--accent); }
.birthday-wall span { display: inline-grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: rgba(183, 101, 76, .12); font-size: 16px; transform: rotate(-8deg); }
.birthday-wall span:nth-child(2) { transform: rotate(10deg); opacity: .73; }
.birthday-wall span:nth-child(3) { transform: rotate(-14deg); opacity: .52; }
.birthday-wall span.is-new { animation: paw-arrive .45s cubic-bezier(.2, 1.5, .5, 1); }
.birthday-wall small { margin-left: 5px; color: var(--muted); font-size: 12px; }
@keyframes paw-arrive { from { transform: translateY(12px) rotate(-24deg) scale(.3); opacity: 0; } to { transform: translateY(0) rotate(-8deg) scale(1); opacity: 1; } }

.hero-portrait { position: relative; width: min(100%, 460px); justify-self: end; outline: none; touch-action: none; }
.hero-portrait:focus-visible { outline: 3px solid var(--accent-pale); outline-offset: 8px; }
.portrait-card { position: relative; padding: 18px 18px 14px; background: #f9f4e7; box-shadow: var(--shadow); transform: rotate(1.6deg); transition: transform .32s ease; }
.cat-tracker.has-seen .portrait-card { transform: rotate(.2deg) translateY(-5px); }
.portrait-art { position: relative; min-height: 410px; overflow: hidden; background: #ded9c9; }
.portrait-art::after { position: absolute; inset: 0; content: ""; border: 1px solid rgba(255,255,255,.4); box-shadow: inset 0 0 50px rgba(42, 42, 31, .2); pointer-events: none; }
.cat-sprite { width: 100%; height: 100%; min-height: 410px; background: #e4dfd0 url("assets/hero/jiujiu-direction-sprite.png") center/300% 300% no-repeat; background-position: var(--sprite-x, 50%) var(--sprite-y, 50%); transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); transform-style: preserve-3d; transition: background-position .13s steps(1), transform .22s ease; }
.cat-tracker.has-seen .cat-sprite { animation: cat-notice .45s ease; }
@keyframes cat-notice { 35% { transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(-5px); } }
.cat-look { position: absolute; left: var(--look-x, 50%); top: var(--look-y, 50%); z-index: 1; display: grid; width: 25px; height: 25px; place-items: center; color: var(--accent); font-size: 18px; opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .18s ease, transform .18s ease; }
.cat-tracker.has-seen .cat-look { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.portrait-note { position: absolute; right: 13px; bottom: 13px; z-index: 2; max-width: 180px; padding: 8px 10px; border-left: 2px solid var(--accent); color: var(--ink); background: rgba(248, 241, 226, .9); font: 15px/1.35 var(--serif); }
.portrait-caption { display: flex; justify-content: space-between; gap: 14px; padding: 11px 3px 0; font: 700 15px/1.3 var(--serif); }
.portrait-caption span:last-child { color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .08em; }
.paperclip { position: absolute; z-index: 2; top: -18px; right: 54px; width: 16px; height: 77px; border: 4px solid #8a887d; border-radius: 10px; transform: rotate(10deg); }
.birthday-sticker { position: absolute; right: -24px; bottom: -35px; z-index: 3; display: flex; width: 116px; height: 116px; flex-direction: column; align-items: center; justify-content: center; border: 3px double var(--accent); border-radius: 50%; color: var(--accent); background: rgba(248, 241, 226, .85); transform: rotate(-13deg); }
.birthday-sticker b { font: 700 44px/.9 var(--serif); }
.birthday-sticker span { margin-top: 5px; font: 8px/1.2 var(--mono); letter-spacing: .1em; text-align: center; }
.margin-note { position: absolute; bottom: 35px; left: -9px; color: var(--muted); font: 15px var(--serif); transform: rotate(-5deg); }

.meet-section { padding-block: 140px; }
.section-kicker { display: flex; align-items: center; gap: 12px; }
.section-kicker span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-deep); }
.meet-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(340px, .72fr); align-items: center; gap: clamp(40px, 9vw, 135px); margin-top: 32px; }
.meet-copy h2, .section-heading h2, .treat-heading h2, .birthday-copy h2 { margin: 14px 0 19px; font: 500 clamp(36px, 4vw, 58px)/1.18 var(--serif); letter-spacing: -.035em; }
.meet-copy > p { max-width: 535px; color: #565447; font: 19px/1.95 var(--serif); }
.meet-copy blockquote { margin: 36px 0 10px; padding: 19px 0 19px 22px; border-left: 2px solid var(--accent); font: 500 22px/1.7 var(--serif); }
.meet-sign { color: var(--accent-deep) !important; font-size: 15px !important; }
.photo-note { position: relative; margin: 0; padding: 14px 14px 17px; background: #fbf5e9; box-shadow: var(--shadow); transform: rotate(-2deg); }
.photo-note::before { position: absolute; top: -16px; left: 50%; width: 96px; height: 28px; content: ""; background: rgba(218, 194, 147, .65); transform: translateX(-50%) rotate(-3deg); }
.photo-note img { aspect-ratio: 4 / 4.25; width: 100%; object-fit: cover; object-position: center; }
.photo-note figcaption { display: flex; flex-direction: column; gap: 3px; padding: 12px 4px 0; }
.photo-note figcaption span { color: var(--accent-deep); font: 10px var(--mono); letter-spacing: .1em; }
.photo-note figcaption strong { font: 700 18px var(--serif); }

.year-section { padding: 88px 54px 100px; border: 1px solid var(--line); background: rgba(255, 255, 255, .16); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 280px; margin: 0 0 7px; color: var(--muted); font: 12px/1.7 var(--mono); text-align: right; }
.memory-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 6vw, 76px); margin-top: 45px; }
.memory-rail { display: flex; flex-direction: column; align-self: start; border-top: 1px solid var(--ink); }
.memory-step { display: grid; grid-template-columns: 35px 1fr; gap: 8px; width: 100%; padding: 17px 7px; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: transparent; font: 13px/1.3 var(--sans); text-align: left; transition: color .2s ease, padding-left .2s ease; }
.memory-step:hover, .memory-step:focus-visible, .memory-step.is-active { padding-left: 15px; color: var(--accent-deep); outline: none; }
.memory-step.is-active { background: rgba(183, 101, 76, .08); font-weight: 700; }
.memory-step span { font-family: var(--serif); }
.memory-story { display: grid; grid-template-columns: minmax(230px, .84fr) minmax(260px, 1fr); gap: clamp(24px, 5vw, 58px); align-items: center; }
.memory-photo { margin: 0; padding: 10px; background: var(--paper-light); box-shadow: 11px 12px 0 rgba(91, 73, 43, .12); transform: rotate(1.3deg); }
.memory-photo img { aspect-ratio: 1 / 1.06; width: 100%; object-fit: cover; opacity: 1; transition: opacity .22s ease; }
.memory-photo img.is-changing { opacity: .25; }
.memory-stage { margin: 0 0 9px; color: var(--accent-deep); font: 10px/1.4 var(--mono); letter-spacing: .12em; }
.memory-copy h3 { margin: 0 0 14px; font: 500 clamp(25px, 2.6vw, 38px)/1.34 var(--serif); }
.memory-copy > p:not(.memory-stage) { margin: 0; color: #555449; font: 18px/1.9 var(--serif); }
.memory-prompt { display: inline-block; margin-top: 28px; color: var(--muted); font-size: 12px; }
.habit-strip { margin-top: 72px; padding-top: 25px; border-top: 1px solid var(--ink); }
.habit-title { margin: 0 0 18px; color: var(--accent-deep); font: 700 13px var(--mono); letter-spacing: .1em; }
.habit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.habit-grid article { min-height: 160px; padding: 22px; border: 1px solid var(--line); background: rgba(248, 241, 226, .5); }
.habit-grid span { color: var(--accent); font: 21px var(--serif); }
.habit-grid h3 { margin: 7px 0 6px; font: 700 21px var(--serif); }
.habit-grid p { margin: 0; color: var(--muted); font: 14px/1.7 var(--serif); }

.rest-section { margin-top: 86px; padding: 78px 54px 94px; color: var(--paper-light); background: var(--night); }
.rest-section .eyebrow { color: var(--accent-pale); }
.light-heading { border-color: rgba(248, 241, 226, .72); }
.light-heading > p { color: rgba(248, 241, 226, .68); }
.sleep-study { display: grid; grid-template-columns: minmax(0, .9fr) minmax(330px, 1fr); gap: clamp(36px, 7vw, 78px); align-items: center; margin-top: 54px; }
.sleep-study h3 { margin: 14px 0 23px; font: 500 clamp(35px, 4.3vw, 56px)/1.17 var(--serif); letter-spacing: -.03em; }
.sleep-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sleep-tab { display: flex; gap: 8px; align-items: baseline; min-height: 48px; padding: 9px 11px; border: 1px solid rgba(248, 241, 226, .35); color: rgba(248, 241, 226, .75); background: transparent; font: 11px var(--mono); text-align: left; }
.sleep-tab span { font: 15px var(--serif); }
.sleep-tab:hover, .sleep-tab:focus-visible, .sleep-tab.is-active { border-color: var(--accent); color: var(--paper-light); background: var(--accent); outline: none; }
.sleep-note { min-height: 56px; margin: 24px 0 0; padding: 10px 0 10px 14px; border-left: 2px solid var(--accent); color: rgba(248, 241, 226, .85); font: 16px/1.7 var(--serif); }
.sleep-photo { position: relative; margin: 0; padding: 14px 14px 18px; color: var(--ink); background: #f7f0df; box-shadow: 16px 16px 0 rgba(13, 18, 13, .24); transform: rotate(1.1deg); }
.sleep-photo img { aspect-ratio: 1.2 / 1; width: 100%; object-fit: cover; transition: opacity .22s ease; }
.sleep-photo img.is-changing { opacity: .22; }
.sleep-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 3px 0; }
.sleep-photo figcaption span { color: var(--accent-deep); font: 10px var(--mono); letter-spacing: .1em; }
.sleep-photo figcaption strong { font: 700 19px var(--serif); }
.sleep-tape { position: absolute; z-index: 1; top: -13px; left: 36%; width: 105px; height: 27px; background: rgba(219, 195, 147, .72); transform: rotate(-2deg); }
.purr-archive { display: grid; grid-template-columns: minmax(300px, .76fr) minmax(0, 1fr); gap: clamp(35px, 8vw, 94px); align-items: center; margin-top: 94px; padding-top: 72px; border-top: 1px solid rgba(248, 241, 226, .5); }
.purr-video-wrap { position: relative; padding: 13px; background: #1d211c; box-shadow: 11px 13px 0 rgba(13, 18, 13, .26); transform: rotate(-1.5deg); }
.purr-video { aspect-ratio: .87 / 1; width: 100%; object-fit: cover; }
.sound-tag { position: absolute; z-index: 1; top: 23px; left: 23px; padding: 5px 7px; color: var(--paper-light); background: rgba(37, 42, 35, .88); font: 9px var(--mono); letter-spacing: .08em; }
.purr-copy h3 { margin: 14px 0 18px; font: 500 clamp(34px, 4.3vw, 55px)/1.15 var(--serif); }
.purr-copy > p:not(.eyebrow) { color: rgba(248, 241, 226, .77); font: 17px/1.85 var(--serif); }
.purr-wave { display: flex; height: 72px; align-items: center; gap: 6px; margin: 25px 0; padding: 7px 11px; border-top: 1px solid rgba(248, 241, 226, .5); border-bottom: 1px solid rgba(248, 241, 226, .5); }
.purr-wave span { width: 11px; height: 38%; background: var(--accent-pale); transition: height .2s ease; }
.purr-wave span:nth-child(3n) { height: 68%; }.purr-wave span:nth-child(4n) { height: 92%; }.purr-wave span:nth-child(5n) { height: 28%; }.purr-wave span:nth-child(7n) { height: 54%; }
.purr-wave.is-playing span { animation: purr-wave .78s ease-in-out infinite alternate; }
.purr-wave.is-playing span:nth-child(2n) { animation-delay: -.21s; }.purr-wave.is-playing span:nth-child(3n) { animation-delay: -.43s; }
@keyframes purr-wave { to { height: 90%; } }
.purr-toggle { margin-top: 6px; }

.treat-section { padding-block: 120px 105px; }
.treat-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 48px; padding-bottom: 23px; border-bottom: 1px solid var(--ink); }
.treat-heading h2 { grid-row: 2; margin: 0; }
.treat-heading > p:last-child { max-width: 255px; margin: 0 0 4px; color: var(--muted); font: 15px/1.7 var(--serif); text-align: right; }
.treat-video-card { width: min(760px, 84%); margin: 44px auto 0; padding: 14px 14px 18px; background: #f8f1e2; box-shadow: var(--shadow); transform: rotate(-.7deg); }
.treat-video-card video { aspect-ratio: 1.65 / 1; width: 100%; object-fit: cover; background: var(--night); }
.treat-video-card figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px 0; }
.treat-video-card strong { font: 700 19px var(--serif); }.treat-video-card span { color: var(--accent-deep); font: 9px var(--mono); letter-spacing: .09em; }

.birthday-section { display: grid; grid-template-columns: minmax(0, .88fr) minmax(340px, .8fr); align-items: center; gap: clamp(40px, 10vw, 145px); min-height: 540px; padding: 80px 78px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.28), transparent), #e2d4b7; }
.birthday-copy > p:not(.eyebrow) { max-width: 430px; margin: 0; color: #555447; font: 19px/1.9 var(--serif); }
.candle-button { margin-top: 27px; border-color: var(--accent); color: var(--paper-light); background: var(--accent); }
.candle-feedback { min-height: 28px; margin: 13px 0 0; color: var(--accent-deep); font-family: var(--serif); }
.cake-scene { position: relative; height: 340px; min-width: 280px; }
.cake-glow { position: absolute; top: 7px; left: 50%; width: 235px; height: 235px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 212, 121, .46), transparent 68%); transform: translateX(-50%); filter: blur(4px); transition: opacity .5s ease; }
.candles { position: absolute; z-index: 2; top: 45px; left: 50%; display: flex; width: 188px; height: 95px; align-items: end; justify-content: space-between; transform: translateX(-50%); }
.candles i { position: relative; width: 11px; height: 57px; border-radius: 8px 8px 2px 2px; background: repeating-linear-gradient(135deg, var(--accent) 0 5px, #f6e3b3 5px 10px); }
.candles i::before { position: absolute; top: -26px; left: 50%; width: 15px; height: 24px; border-radius: 70% 30% 65% 35%; content: ""; background: #f5c66f; box-shadow: 0 0 17px #f5c66f; transform: translateX(-50%) rotate(45deg); transform-origin: bottom; transition: opacity .45s ease, transform .45s ease; }
.candles i:nth-child(2n) { height: 68px; }.candles i:nth-child(3n) { height: 48px; }
.cake-top { position: absolute; z-index: 1; top: 126px; left: 50%; width: 282px; height: 66px; border-radius: 50%; background: #f4d9b4; transform: translateX(-50%); box-shadow: inset 0 -8px #e5b986; }
.cake-body { position: absolute; top: 158px; left: 50%; display: grid; width: 282px; height: 114px; place-items: center; border-radius: 7px 7px 38px 38px; color: var(--paper-light); background: var(--accent); transform: translateX(-50%); box-shadow: inset 0 -16px rgba(112, 51, 38, .16); }
.cake-body span { font: 700 25px var(--serif); letter-spacing: .08em; }
.cake-plate { position: absolute; bottom: 36px; left: 50%; width: 365px; height: 37px; border-radius: 50%; background: #b8ad91; transform: translateX(-50%); box-shadow: inset 0 -7px rgba(82, 74, 56, .19); }
.cake-scene.is-blown .candles i::before { opacity: 0; transform: translate(-50%, -25px) rotate(15deg) scale(.25); }
.cake-scene.is-blown .cake-glow { opacity: .1; }

.message-section { padding-block: 120px; }
.message-paper { position: relative; padding: 64px 54px 50px; overflow: hidden; border: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0 36px, rgba(73, 70, 54, .15) 37px 38px), var(--paper-light); box-shadow: var(--shadow); }
.message-paper::before, .message-paper::after { position: absolute; top: -13px; width: 106px; height: 29px; content: ""; background: rgba(217, 189, 135, .66); }.message-paper::before { left: 15%; transform: rotate(-4deg); }.message-paper::after { right: 14%; transform: rotate(3deg); }
.message-form { display: grid; grid-template-columns: minmax(145px, .34fr) minmax(0, 1fr) auto; align-items: end; gap: 20px; margin-top: 39px; padding-bottom: 24px; border-bottom: 1px dashed var(--ink); }
.message-form label { display: block; }.message-form label span { display: block; margin-bottom: 6px; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
.message-form input, .message-form textarea { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: none; color: var(--ink); background: transparent; font: 17px/1.5 var(--serif); resize: vertical; }
.message-form input:focus, .message-form textarea:focus { border-color: var(--accent); }
.message-form textarea { min-height: 52px; max-height: 130px; }
.message-feedback { min-height: 28px; margin: 13px 0 0; color: var(--accent-deep); font-family: var(--serif); }
.visitor-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.visitor-note { position: relative; min-height: 135px; padding: 21px 25px; background: rgba(253, 238, 184, .7); box-shadow: 5px 7px 14px rgba(79, 66, 40, .12); transform: rotate(-1deg); }.visitor-note:nth-child(even) { background: rgba(232, 222, 188, .88); transform: rotate(1.1deg); }
.visitor-note p { margin: 0 0 12px; font: 18px/1.65 var(--serif); }.visitor-note footer { color: var(--muted); font-size: 12px; }
.share-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); }.share-bar p { margin: 0; font: 18px var(--serif); }.share-button { border-color: var(--accent); color: var(--accent-deep); }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 43px max(24px, calc((100vw - 1180px) / 2)); color: var(--paper-light); background: var(--night); }.site-footer > div { display: grid; grid-template-columns: 46px 1fr; column-gap: 13px; align-items: center; }.footer-mark { display: grid; grid-row: span 2; width: 42px; height: 42px; place-items: center; border: 1px solid var(--accent-pale); border-radius: 50%; color: var(--accent-pale); font: 20px var(--serif); }.site-footer p, .site-footer small { margin: 0; }.site-footer > div p { font: 700 18px var(--serif); }.site-footer small { color: rgba(248, 241, 226, .62); font-size: 12px; }.site-footer > p { color: rgba(248, 241, 226, .55); font: 10px var(--mono); letter-spacing: .11em; }

@media (max-width: 860px) {
  .site-header { min-height: 68px; padding-inline: 22px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 12px 22px 18px; border-bottom: 1px solid var(--ink); background: var(--paper-light); }
  .site-nav.is-open { display: grid; }.site-nav a { padding-block: 10px; border-bottom: 1px dashed var(--line); }
  .hero { min-height: auto; padding: 85px 40px 85px; }.hero-grid, .meet-grid, .sleep-study, .purr-archive, .birthday-section { grid-template-columns: 1fr; }.hero-portrait { width: min(100%, 470px); justify-self: center; margin-top: 24px; }.hero-copy { max-width: 670px; }.margin-note { bottom: 24px; }
  .meet-section { padding-block: 96px; }.meet-photo { width: min(100%, 460px); justify-self: center; }.memory-layout { grid-template-columns: 1fr; }.memory-rail { display: grid; grid-template-columns: repeat(4, 1fr); }.memory-step { grid-template-columns: 1fr; min-height: 78px; padding: 12px 8px; }.memory-step:hover, .memory-step:focus-visible, .memory-step.is-active { padding-left: 8px; }.memory-story { grid-template-columns: minmax(210px, .7fr) 1fr; }.habit-grid { grid-template-columns: 1fr; }.habit-grid article { min-height: 0; }.rest-section { margin-top: 54px; }.purr-video-wrap { width: min(420px, 100%); justify-self: center; }.birthday-section { min-height: 0; }.cake-scene { justify-self: center; width: min(100%, 430px); }.message-form { grid-template-columns: minmax(145px, .4fr) 1fr; }.message-form .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 600px) {
  .section-shell { width: min(100% - 28px, 1180px); }.brand small { display: none; }.brand strong { font-size: 15px; }.brand-mark { width: 38px; height: 38px; }
  .hero { padding: 74px 25px 67px; }.hero::before { left: 11px; }.hero::after { right: 11px; }.file-tab { left: 25px; padding-inline: 12px; font-size: 9px; }.hero h1 { margin-top: 16px; font-size: clamp(45px, 13vw, 61px); }.intro { font-size: 17px; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .button { width: 100%; }.birthday-wall { flex-wrap: wrap; }.birthday-wall small { flex-basis: 100%; margin-left: 0; }.portrait-art, .cat-sprite { min-height: 310px; }.portrait-note { max-width: 170px; font-size: 13px; }.birthday-sticker { right: -11px; bottom: -27px; width: 91px; height: 91px; }.birthday-sticker b { font-size: 34px; }.paperclip { right: 36px; }
  .meet-section { padding-block: 74px; }.meet-copy h2, .section-heading h2, .treat-heading h2, .birthday-copy h2 { font-size: 37px; }.meet-copy > p { font-size: 17px; }.meet-copy blockquote { margin-top: 28px; font-size: 19px; }.meet-grid { gap: 36px; }
  .year-section { padding: 56px 22px 64px; }.section-heading { display: block; }.section-heading > p { max-width: none; margin-top: 10px; text-align: left; }.memory-layout { margin-top: 30px; }.memory-rail { grid-template-columns: repeat(2, 1fr); }.memory-step { min-height: 61px; }.memory-story { grid-template-columns: 1fr; gap: 28px; }.memory-photo { width: min(88%, 360px); justify-self: center; }.memory-copy h3 { font-size: 28px; }.memory-copy > p:not(.memory-stage) { font-size: 16px; }.habit-strip { margin-top: 49px; }
  .rest-section { padding: 55px 22px 65px; }.sleep-study { margin-top: 35px; }.sleep-study h3 { font-size: 39px; }.sleep-tabs { grid-template-columns: 1fr; }.sleep-photo { width: min(94%, 450px); justify-self: center; }.purr-archive { margin-top: 65px; padding-top: 54px; }.purr-copy h3 { font-size: 41px; }.purr-wave { height: 61px; gap: 4px; }.purr-wave span { width: 9px; }
  .treat-section { padding-block: 76px; }.treat-heading { display: block; }.treat-heading > p:last-child { margin-top: 14px; text-align: left; }.treat-video-card { width: 100%; margin-top: 32px; }.treat-video-card figcaption { align-items: start; flex-direction: column; }
  .birthday-section { gap: 15px; padding: 58px 25px 34px; }.cake-scene { height: 300px; transform: scale(.86); transform-origin: center top; margin-bottom: -33px; }.candle-button { width: 100%; }
  .message-section { padding-block: 76px; }.message-paper { padding: 48px 22px 37px; }.message-form { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }.message-form .button { width: 100%; }.visitor-notes { grid-template-columns: 1fr; }.share-bar { align-items: stretch; flex-direction: column; }.share-button { width: 100%; }.privacy-note { line-height: 1.55; }.site-footer { align-items: start; flex-direction: column; padding-block: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
