:root { color-scheme: light; --album-paper: #eff6fb; --album-ink: #233f50; --album-muted: #6b8292; --album-line: #afc6d766; --album-accent: #367398; --album-bar: #eff6fbeb; --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif; --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
:root[data-palette="warm"] { --album-paper: #fbf3df; --album-ink: #474439; --album-muted: #827866; --album-line: #bcae8f66; --album-accent: #846c40; --album-bar: #fbf3dfeb; }
:root[data-theme="dark"] { color-scheme: dark; --album-paper: #152737; --album-ink: #e1ebf2; --album-muted: #a0b3c3; --album-line: #8ba7bd40; --album-accent: #a2cfee; --album-bar: #152737ed; }
:root[data-theme="dark"][data-palette="warm"] { --album-paper: #2b2823; --album-ink: #e9e0d2; --album-muted: #bfb5a4; --album-line: #b6a88a40; --album-accent: #e1c996; --album-bar: #2b2823ed; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--album-paper); color: var(--album-ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.has-photo { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--album-accent); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: fixed; top: 12px; left: 20px; padding: 12px; z-index: 50; background: var(--album-paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.album-bar { position: sticky; top: 0; z-index: 10; min-height: 68px; padding: 12px 4.5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--album-bar); backdrop-filter: blur(16px); border-bottom: 1px solid var(--album-line); }
.album-return { font-size: 12px; letter-spacing: .035em; }
.album-return > span { margin-right: 10px; }
.album-brand { font: 15px var(--serif); letter-spacing: .06em; color: var(--album-muted); }
.album-controls { display: flex; align-items: center; gap: 20px; }
.preview-label { font-size: 10px; color: var(--album-muted); letter-spacing: .1em; }
.theme-toggle { width: 34px; height: 34px; padding: 7px; border-radius: 50%; display: grid; place-items: center; }
.theme-toggle:hover { background: var(--album-line); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.album-palettes { display: flex; gap: 12px; }
.album-palettes button { position: relative; width: 17px; height: 17px; border-radius: 50%; border: 1px solid #9baebb; background: #eff6fb; }
.album-palettes button::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; }
.album-palettes button[data-album-palette="warm"] { background: #fbf3df; }
.album-palettes button[aria-pressed="true"] { outline: 1px solid var(--album-muted); outline-offset: 3px; }
:root[data-theme="dark"] .album-palettes button { background: #182a3b; }
:root[data-theme="dark"] .album-palettes button[data-album-palette="warm"] { background: #2b2823; }
.album { max-width: 1240px; margin: auto; padding: 0 40px; }
.album-heading { padding: 62px 0 58px 130px; display: flex; justify-content: space-between; align-items: flex-end; }
.album-kicker { font-size: 12px; letter-spacing: .12em; margin: 0 0 17px; color: var(--album-muted); }
.album-kicker span { font: italic 17px Georgia, serif; margin: 0 8px; }
h1 { font: 600 54px/1.2 var(--serif); letter-spacing: .06em; margin: 0; }
.title-dot { color: var(--album-accent); }
.album-range { margin: 0 0 6px; font: 12px Georgia, serif; color: var(--album-muted); letter-spacing: .12em; }
.album-layout { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 34px; align-items: start; }
.year-index { position: sticky; top: 115px; padding-top: 8px; }
.year-index > p { color: var(--album-muted); font-size: 10px; letter-spacing: .1em; margin: 0 0 25px; }
.year-index nav { display: grid; gap: 9px; }
.year-index nav a { white-space: nowrap; }
.year-index nav a[href="#little-things"], .year-index nav a[href="#annual-photos"] { font-size: 12px; }
.year-index nav a { font: 15px Georgia, serif; padding: 10px 0; color: var(--album-muted); display: flex; align-items: center; gap: 12px; }
.year-index nav a::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--album-accent); opacity: .4; transition: opacity .2s; }
.year-index nav a:is(:hover, [aria-current="location"]) { color: var(--album-ink); }
.year-index nav a[aria-current="location"]::before { opacity: 1; }
.to-top { display: block; margin-top: 35px; color: var(--album-muted); font-size: 10px; }
.timeline { position: relative; padding-left: 32px; border-left: 1px solid var(--album-line); outline: none; }
.timeline-year { scroll-margin-top: 22px; }
.moment-date { position: relative; flex-shrink: 0; margin: 0; font: 400 26px/1.3 Georgia, serif; color: var(--album-ink); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.moment-date::before { content: ""; position: absolute; width: 9px; height: 9px; top: 11px; left: -37px; background: var(--album-paper); border: 1px solid var(--album-accent); border-radius: 50%; box-shadow: 0 0 0 6px var(--album-paper); }
.moment { padding-bottom: 74px; }
.moment-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; margin: 0 0 22px; }
.moment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin: 0; font-size: 11px; color: var(--album-muted); }
.moment-meta span { font-size: 13px; padding-left: 17px; border-left: 1px solid var(--album-line); }
.moment-title { font: 600 21px/1.5 var(--serif); letter-spacing: .02em; color: var(--album-ink); margin: 0; }
.moment-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(210px, 1fr); gap: 36px; align-items: center; }
.moment-photo { position: relative; display: block; width: 100%; padding: 0; border-radius: 5px; }
.moment-photo img { display: block; width: 100%; height: auto; border-radius: inherit; }
.moment-photo::after { content: "↗"; position: absolute; right: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: #102735a6; color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.moment-photo:is(:hover, :focus-visible)::after { opacity: 1; transform: translateY(0); }
.moment-portrait .moment-photo { max-width: 430px; justify-self: start; }
.moment-notes { padding: 5px 0; }
.moment-note + .moment-note { margin-top: 32px; }
.note-name { display: flex; gap: 10px; align-items: center; font: 400 18px/1.3 Georgia, serif; letter-spacing: .015em; color: var(--album-ink); margin: 0 0 12px; }
.note-name::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #739fbc; }
.moment-note:nth-child(2) .note-name::before { background: #b4a77d; }
.note-text { font: 17px/1.95 var(--serif); margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.album-collections { min-width: 0; }
.collection-heading { margin-bottom: 38px; }
.collection-heading > p { font-size: 10px; letter-spacing: .14em; color: var(--album-muted); margin: 0 0 13px; }
.collection-heading h2 { margin: 0; font: 600 30px/1.4 var(--serif); }
.annual-album { border-top: 1px solid var(--album-line); padding-top: 48px; margin: 12px 0 64px; }
.annual-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: start; }
.annual-card { margin: 0; padding: 9px 9px 0; background: #fffdf7; color: #44505b; border: 1px solid #d9dcd9; box-shadow: 0 5px 16px #15273712; }
.annual-photo { display: block; padding: 0; width: 100%; }
.square-crop { display: block; position: relative; aspect-ratio: 1; overflow: hidden; }
.square-crop img { position: absolute; display: block; max-width: none; max-height: none; }
.annual-card figcaption { font: 18px Georgia, serif; text-align: center; padding: 17px 0 19px; letter-spacing: .07em; }
:root[data-theme="dark"] .annual-card { background: #263b49; color: #e1ebf2; border-color: #8ba7bd40; }
:root[data-theme="dark"][data-palette="warm"] .annual-card { background: #39342c; }
.album-end { text-align: center; padding: 18px 0 64px 130px; color: var(--album-muted); }
.album-end > span { font-size: 30px; }
.album-end p { font: italic 17px Georgia, var(--serif); margin: 20px 0 30px; }
.album-end a { font-size: 11px; border-bottom: 1px solid var(--album-line); padding-bottom: 6px; }
.photo-lightbox { width: min(1320px, calc(100vw - 48px)); max-width: none; height: calc(100svh - 48px); max-height: none; padding: 20px 24px; border: 1px solid #91adc326; border-radius: 8px; background: #0b1722; color: #e8eef3; box-shadow: 0 24px 90px #0006; }
.photo-lightbox::backdrop { background: #040c14d9; backdrop-filter: blur(12px); }
.photo-lightbox[open] { display: flex; flex-direction: column; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #a6bbcc; }
#close-photo { padding: 8px 4px 8px 16px; font-size: 12px; }
#close-photo span { font-size: 24px; vertical-align: -2px; margin-left: 10px; }
.lightbox-stage { min-height: 0; flex: 1; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; grid-template-rows: minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 0; }
.lightbox-image-area { position: relative; height: 100%; min-height: 0; container-type: size; }
#lightbox-frame { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; }
#lightbox-frame:not(.square-crop) img { display: block; width: 100%; height: 100%; object-fit: contain; }
#lightbox-frame.square-crop { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
.lightbox-stage button { width: 42px; height: 42px; font-size: 25px; border-radius: 50%; }
.lightbox-stage button:hover { background: #294055; }
#lightbox-caption { text-align: center; font-size: 12px; line-height: 1.8; color: #b6c8d6; margin: 8px 0; }
@media (max-width: 1100px) { .album { padding: 0 30px; } .album-heading { padding-left: 108px; } .album-layout { grid-template-columns: 80px minmax(0, 1fr); gap: 28px; } .timeline { padding-left: 24px; } .moment-date::before { left: -29px; } .moment-layout { grid-template-columns: minmax(0, 1.6fr) minmax(190px, 1fr); gap: 25px; } .note-text { font-size: 16px; } }
@media (max-width: 760px) { .album-brand, .preview-label { display: none; } .album-bar { gap: 12px; padding-inline: 20px; } .album-controls { gap: 16px; } .album { padding: 0 20px; } .album-heading { padding: 40px 0 35px; } h1 { font-size: 42px; } .album-layout { grid-template-columns: 1fr; gap: 25px; } .year-index { position: sticky; top: 68px; z-index: 5; background: var(--album-paper); padding: 8px 0; } .year-index > p, .to-top { display: none; } .year-index nav { display: flex; justify-content: space-between; gap: 10px; } .year-index nav a { font-size: 13px; gap: 5px; } .moment-layout { grid-template-columns: 1fr; gap: 25px; } .moment-notes { display: grid; gap: 24px; } .moment-note + .moment-note { margin-top: 0; } .timeline { padding-left: 22px; } .moment-date::before { left: -27px; } .timeline-year { scroll-margin-top: 40px; } .moment-portrait .moment-photo { max-width: none; } .album-end { padding-left: 0; } .photo-lightbox { width: calc(100vw - 16px); height: calc(100svh - 20px); padding: 12px; } .lightbox-stage { grid-template-columns: 26px minmax(0, 1fr) 26px; gap: 4px; } .lightbox-stage button { width: 26px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
