:root {
  color-scheme: light;
  --paper: #fff;
  --page: #fffdfd;
  --ink: #382e38;
  --soft-ink: #746570;
  --line: #ecdee4;
  --pink: #fff0f3;
  --pink-deep: #b63f67;
  --rose: #d95e83;
  --mint: #eaf6f0;
  --green: #36735d;
  --yellow: #fff3bd;
  --blue: #eaf2fc;
  --shadow: 0 8px 26px #633c4a0d;
  font-family: "Yuanti SC", "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.65; -webkit-tap-highlight-color: transparent; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.35; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: 56px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 5px; }
::selection { background: #f7ccda; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 20px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.topbar { position: sticky; top: 0; z-index: 30; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(32px, calc((100% - 1280px) / 2)); background: #fffffffa; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; white-space: nowrap; }
.brand .icon { width: 30px; height: 30px; color: var(--rose); fill: var(--pink); transform: rotate(-10deg); }
.soft-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.soft-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; color: var(--soft-ink); font-size: 14px; font-weight: 600; border-radius: 6px; }
.soft-nav a:hover, .soft-nav a[aria-current="page"] { color: var(--pink-deep); background: var(--pink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: white; place-items: center; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.quiet-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--pink-deep); font-size: 13px; font-weight: 700; }
.quiet-label .icon { width: 18px; height: 18px; }
.home-intro { padding: 40px 0 22px; background: var(--pink); border-bottom: 1px solid #efdce4; text-align: center; }
.home-intro .quiet-label { justify-content: center; }
.home-intro h1 { color: #733b55; font-size: 62px; }
.intro-note { margin-top: 12px; color: var(--soft-ink); font-size: 18px; }
.intro-note span { display: inline-block; }
.cover-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 900px; margin: 34px auto 26px; padding: 8px 10px; }
.cover-photo { min-width: 0; padding: 10px 10px 0; border: 1px solid #dfd5d8; border-bottom: 4px solid var(--accent); border-radius: 6px; background: white; box-shadow: 0 7px 0 #71394a06, var(--shadow); transition: transform 200ms ease; transform: rotate(-3deg); }
.cover-photo:nth-child(2) { transform: rotate(2deg) translateY(-6px); }
.cover-photo:nth-child(3) { transform: rotate(-2deg); }
.cover-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.cover-photo:first-child img { object-position: center 78%; }
.cover-photo figcaption { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 0; font-size: 14px; font-weight: 600; }
.cover-photo figcaption .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.mint { --accent: #c3e7d7; --accent-ink: #36735d; --wash: var(--mint); }
.pink { --accent: #f4c0d0; --accent-ink: #ad3e62; --wash: var(--pink); }
.yellow { --accent: #f0d97e; --accent-ink: #7b661e; --wash: var(--yellow); }
.blue { --accent: #c5dcf6; --accent-ink: #3c668c; --wash: var(--blue); }
.intro-bottom { display: flex; align-items: center; justify-content: space-between; max-width: 880px; margin: auto; gap: 16px; font-size: 12px; color: var(--soft-ink); }
.intro-bottom a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--pink-deep); font-size: 14px; font-weight: 700; }
.album-section { padding-block: 56px 72px; }
.album-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.album-heading h2 { margin-bottom: 8px; }
.album-heading p:not(.quiet-label) { font-size: 15px; color: var(--soft-ink); }
.month-filter { display: flex; gap: 3px; flex-shrink: 0; padding: 4px; border-radius: 7px; background: #f6eff2; }
.month-filter button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 5px; background: transparent; color: var(--soft-ink); font-size: 14px; }
.month-filter button[aria-pressed="true"] { background: white; color: var(--pink-deep); box-shadow: 0 2px 5px #67364a12; font-weight: 700; }
.month-filter button span { font-size: 11px; opacity: 0.8; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.diary-card { min-width: 0; display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-bottom: 4px solid var(--accent); border-radius: 8px; background: white; box-shadow: var(--shadow); transition: transform 200ms ease, box-shadow 200ms ease; }
.diary-image { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--wash); }
.diary-image img { width: 100%; height: 100%; object-fit: cover; }
.diary-image img.photo-bottom { object-position: center 80%; }
.entry-number { position: absolute; bottom: 10px; left: 10px; padding: 4px 9px; border: 1px solid #ffffffb3; border-radius: 4px; background: var(--wash); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.diary-copy { flex: 1; display: flex; flex-direction: column; padding: 18px 12px 6px; }
.diary-copy time { margin-bottom: 6px; color: var(--accent-ink); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; }
.diary-copy h3 { margin-bottom: 10px; }
.diary-copy p { margin-bottom: 20px; color: var(--soft-ink); font-size: 14px; line-height: 1.8; }
.entry-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.entry-bottom > span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--soft-ink); font-size: 12px; }
.entry-bottom .icon { width: 16px; height: 16px; }
.entry-arrow { padding: 8px; width: 34px !important; height: 34px !important; border-radius: 50%; background: var(--wash); color: var(--accent-ink); }
.together-band { background: var(--mint); border-block: 1px solid #d9e9e1; }
.together-inner { display: flex; align-items: center; gap: 24px; padding-block: 38px; }
.together-icon { width: 42px; height: 42px; color: var(--green); }
.together-inner h2 { margin-bottom: 6px; font-size: 25px; }
.together-inner p { color: var(--soft-ink); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; color: var(--green); white-space: nowrap; font-size: 14px; font-weight: 700; }
.site-foot { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 40px 24px; color: var(--soft-ink); text-align: center; font-size: 14px; }
.site-foot > .icon { color: var(--rose); fill: var(--pink); }
.site-foot small { font-size: 11px; color: #8a7882; }
.page { padding-block: 0 32px; }
.story-hero { display: block; max-width: 1060px; padding-top: 44px; }
.story-hero > div:first-child { max-width: 740px; margin: 0 auto 32px; text-align: center; }
.story-hero .quiet-label { justify-content: center; }
.story-hero h1 { margin-bottom: 16px; color: #733b55; font-size: 44px; }
.lead { color: var(--soft-ink); font-size: 17px; line-height: 1.9; }
.story-media { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); align-items: center; gap: 28px; max-width: 880px; margin: 0 auto 24px; padding: 10px 10px 22px; }
.paper-photo { position: relative; min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-bottom: 4px solid #f4c0d0; border-radius: 6px; background: white; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.paper-photo.small, .paper-photo.medium { transform: rotate(2deg); border-bottom-color: #c3e7d7; }
.paper-photo img, .paper-photo video { width: 100%; height: 360px; object-fit: contain; background: #faf6f8; border-radius: 3px; }
.paper-photo.small img, .paper-photo.medium img { height: 300px; }
.open-media { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: zoom-in; border-radius: inherit; }
.open-media .icon { position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; padding: 8px; color: #6b4154; background: #ffffffed; border: 1px solid var(--line); border-radius: 50%; }
.chapter { max-width: 960px; padding-block: 40px; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; gap: 56px; }
.chapter:nth-of-type(odd) .chapter-grid { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.memory-line, .memory-line.wide, .memory-line.right { min-width: 0; padding-block: 24px; }
.overline { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--pink-deep); font-size: 14px; font-weight: 700; }
.overline::before { content: ""; width: 20px; height: 3px; background: #ecc273; border-radius: 2px; }
.memory-line p { color: var(--soft-ink); font-size: 18px; line-height: 1.95; }
.memory-picture { position: relative; min-width: 0; margin: 0; overflow: hidden; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: var(--shadow); }
.memory-picture img, .memory-picture video { width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #faf6f8; border-radius: 3px; }
.memory-picture video { aspect-ratio: 4 / 3; }
.keepsakes { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; }
.keepsakes span { border-bottom: 2px solid #d1e8db; color: var(--green); font-size: 13px; }
.quiet-ending { width: min(700px, calc(100% - 48px)); margin: 32px auto 0; padding-top: 28px; border-top: 1px dashed var(--line); text-align: center; color: var(--pink-deep); font-size: 21px; }
.back-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: min(960px, calc(100% - 64px)); margin: 36px auto 0; padding: 22px 0; border-top: 1px solid var(--line); }
.soft-button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--pink-deep); font-size: 14px; font-weight: 700; }
.map-hero { max-width: 740px; padding-block: 52px 36px; text-align: center; }
.map-hero .quiet-label { justify-content: center; }
.map-hero h1 { margin-bottom: 16px; color: #733b55; font-size: 44px; }
.map-flow { max-width: 960px; padding-bottom: 16px; }
.map-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); }
.map-title { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.map-title::before { content: ""; width: 10px; height: 10px; border: 2px solid #ca7c95; border-radius: 50%; background: var(--pink); }
.map-row:nth-child(even) .map-title::before { border-color: #77a58c; background: var(--mint); }
.map-words { display: flex; flex-wrap: wrap; gap: 10px; }
.map-words span { display: inline-block; padding: 8px 12px; border-radius: 4px; background: var(--pink); color: #785265; font-size: 14px; }
.map-words span:nth-child(3n+2) { background: var(--mint); color: var(--green); }
.map-words span:nth-child(3n+3) { background: #fff5d2; color: #776127; }
.map-note { padding: 36px 0 12px; text-align: center; color: var(--pink-deep); font-size: 22px; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; gap: 16px; padding: max(70px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); background: #241d27f5; color: white; overscroll-behavior: contain; }
.lightbox > img { grid-column: 2; grid-row: 1; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 170px); object-fit: contain; }
.lightbox button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff44; border-radius: 50%; background: #ffffff15; color: white; }
.close-lightbox { position: absolute; right: max(20px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); }
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }
.lightbox-caption { grid-column: 1 / -1; grid-row: 2; max-width: 700px; text-align: center; font-size: 14px; }
.lightbox-count { display: block; margin-top: 6px; color: #d9cbd2; font-size: 12px; }
.lightbox button:focus-visible { outline-color: #ffcae0; }
.fade-in { opacity: 1; }
@media (hover: hover) {
  .cover-photo:hover { transform: rotate(0) translateY(-4px); }
  .diary-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px #633c4a15; }
  .text-link:hover, .soft-button:hover { text-decoration: underline; text-underline-offset: 5px; }
  .lightbox button:hover { background: #ffffff30; }
}
@media (max-width: 1100px) {
  .topbar { gap: 16px; padding-inline: 24px; }
  .brand { font-size: 19px; }
  .soft-nav a { padding-inline: 7px; font-size: 13px; }
  .album-grid { gap: 20px; }
  .chapter-grid { gap: 36px; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; min-height: 68px; gap: 0; padding-block: 10px; }
  .enhanced .menu-toggle { display: grid; }
  .soft-nav { width: 100%; justify-content: flex-start; margin-top: 10px; }
  .enhanced .soft-nav { display: none; }
  .enhanced .topbar.menu-open .soft-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); max-height: calc(100svh - 90px); overflow-y: auto; }
  .soft-nav a { min-height: 46px; padding: 10px 14px; font-size: 14px; }
  .home-intro h1 { font-size: 52px; }
  .cover-photos { gap: 18px; }
  .cover-photo figcaption { font-size: 12px; gap: 4px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .story-media { gap: 18px; }
  .paper-photo img, .paper-photo video { height: 300px; }
  .paper-photo.small img, .paper-photo.medium img { height: 250px; }
  .story-hero h1, .map-hero h1 { font-size: 38px; }
  .together-inner { flex-wrap: wrap; gap: 18px; }
  .together-inner .text-link { margin-left: 60px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 84px; }
  .shell { width: calc(100% - 40px); }
  .topbar { min-height: 64px; padding-inline: 20px; }
  .brand { font-size: 18px; }
  .brand .icon { width: 25px; height: 25px; }
  .home-intro { padding: 28px 0 16px; }
  .home-intro h1 { font-size: 40px; }
  .quiet-label { font-size: 12px; margin-bottom: 10px; }
  .intro-note { font-size: 15px; margin-top: 10px; }
  .cover-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 24px 18px; padding-inline: 4px; }
  .cover-photo { padding: 6px 6px 0; border-bottom-width: 3px; }
  .cover-photo:nth-child(3) { display: none; }
  .cover-photo img { aspect-ratio: 4 / 5; }
  .cover-photo figcaption { font-size: 11px; padding-block: 10px; gap: 4px; }
  .cover-photo figcaption .icon { width: 13px; height: 13px; }
  .intro-bottom { gap: 6px; font-size: 10px; }
  .intro-bottom a { gap: 4px; font-size: 12px; }
  .intro-bottom .icon { width: 16px; height: 16px; }
  .album-section { padding-block: 34px 42px; }
  h2 { font-size: 26px; }
  .album-heading { gap: 20px; margin-bottom: 20px; }
  .album-heading p:not(.quiet-label) { font-size: 14px; }
  .month-filter { width: 100%; }
  .month-filter button { flex: 1; padding-inline: 10px; }
  .album-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .diary-copy { padding: 16px 10px 6px; }
  .diary-copy h3 { font-size: 22px; }
  .diary-copy p { margin-bottom: 16px; }
  .together-inner { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-block: 26px; }
  .together-icon { width: 28px; height: 28px; align-self: start; }
  .together-inner h2 { font-size: 22px; }
  .together-inner .text-link { grid-column: 2; margin-left: 0; }
  .site-foot { padding-block: 30px; }
  .story-hero { padding-top: 28px; }
  .story-hero > div:first-child { margin-bottom: 20px; text-align: left; }
  .story-hero .quiet-label { justify-content: flex-start; }
  .story-hero h1, .map-hero h1 { font-size: 32px; margin-bottom: 12px; }
  .lead { font-size: 15px; line-height: 1.85; }
  .story-media { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 12px; padding: 8px 2px 18px; margin-bottom: 0; }
  .paper-photo { padding: 5px; border-bottom-width: 3px; transform: none; }
  .paper-photo.small, .paper-photo.medium { transform: none; }
  .paper-photo img, .paper-photo video { height: 232px; }
  .paper-photo.small img, .paper-photo.medium img { height: 184px; }
  .open-media .icon { right: 10px; bottom: 10px; width: 30px; height: 30px; padding: 6px; }
  .chapter { padding-block: 24px; }
  .chapter-grid, .chapter:nth-of-type(odd) .chapter-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .chapter-grid .memory-picture { order: 0; }
  .chapter-grid .memory-line { order: 1; padding: 0 4px 8px; }
  .memory-line p { font-size: 16px; line-height: 1.9; }
  .overline { margin-bottom: 8px; font-size: 13px; }
  .memory-picture { padding: 6px; }
  .memory-picture img, .memory-picture video { max-height: 520px; }
  .quiet-ending { margin-top: 24px; font-size: 18px; }
  .back-row { width: calc(100% - 40px); margin-top: 26px; gap: 10px; }
  .soft-button { font-size: 13px; gap: 6px; }
  .map-hero { padding-block: 34px 24px; }
  .map-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 22px; }
  .map-title { font-size: 21px; }
  .map-words { gap: 8px; }
  .map-words span { padding: 7px 10px; font-size: 13px; }
  .lightbox { grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: minmax(0, 1fr) 48px auto; gap: 14px 8px; padding-inline: 12px; }
  .lightbox > img { grid-column: 1 / -1; max-height: calc(100svh - 240px); }
  .lightbox-prev { grid-column: 1; grid-row: 2; }
  .lightbox-next { grid-column: 3; grid-row: 2; }
  .lightbox-caption { grid-column: 2; grid-row: 2 / 4; align-self: start; padding-top: 6px; font-size: 12px; }
}
@media (max-width: 359px) {
  .shell { width: calc(100% - 32px); }
  .home-intro h1 { font-size: 35px; }
  .cover-photo figcaption .icon { display: none; }
  .cover-photo figcaption { font-size: 10px; }
  .intro-bottom { flex-direction: column; gap: 0; }
  .story-hero h1, .map-hero h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
