:root {
  color-scheme: light;
  --bg: #e8f0e5;
  --surface: #f2f6ef;
  --surface-strong: #f8fbf5;
  --text: #28332b;
  --muted: #667267;
  --primary: #355e4a;
  --accent: #875b46;
  --border: #aab8a7;
  --code-bg: #1f2b26;
  --code-text: #edf2eb;
  --font-heading: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-code: "Cascadia Code", Consolas, monospace;
  --shell: min(1180px, calc(100vw - 48px));
  --reading: 760px;
  --shadow: 0 18px 55px rgb(41 42 45 / 8%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b2420;
  --surface: #25302a;
  --surface-strong: #2d3932;
  --text: #e2e9df;
  --muted: #a7b2a6;
  --primary: #94b9a5;
  --accent: #cf9878;
  --border: #445149;
  --code-bg: #121915;
  --code-text: #e6eee3;
  --shadow: 0 18px 55px rgb(0 0 0 / 18%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 20%, rgb(255 255 255 / 7%) 0 1px, transparent 1.5px) 0 0 / 5px 5px,
    var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--font-body);
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
.page-shell { width: var(--shell); margin-inline: auto; }
.site-main { min-height: calc(100vh - 190px); }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--primary); color: #fff; }
.skip-link:focus { top: 12px; }
.eyebrow { display: inline-block; color: var(--accent); font: 700 11px/1.2 var(--font-code); letter-spacing: .16em; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 28%); background: color-mix(in srgb, var(--bg), transparent 8%); backdrop-filter: blur(14px); }
.site-header__inner { width: var(--shell); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font: 700 19px var(--font-heading); }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font: 700 17px var(--font-heading); letter-spacing: .12em; }
.brand__text small { margin-top: 3px; color: var(--muted); font: 10px var(--font-code); letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; font-size: 14px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--accent); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.icon-button, .nav-toggle { border: 0; background: transparent; cursor: pointer; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--border); }
.nav-toggle { display: none; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 22px; height: 1px; margin: 6px auto; background: currentColor; }

.home-hero { min-height: 650px; padding: 84px 0 92px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 82px; align-items: center; }
.home-hero__copy { position: relative; }
.profile-avatar { display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--primary); font: 700 32px var(--font-heading); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar--hero { width: 72px; height: 72px; margin: 32px 0 22px; box-shadow: 7px 7px 0 color-mix(in srgb, var(--accent), transparent 74%); }
.profile-avatar--about { width: 86px; height: 86px; background: var(--primary); color: var(--surface); font-size: 36px; }
.home-hero__name { margin: 0; color: var(--muted); letter-spacing: .2em; }
.home-hero h1 { max-width: 520px; margin: 8px 0 12px; font: 700 clamp(44px, 6vw, 76px)/1.08 var(--font-heading); letter-spacing: -.04em; }
.home-hero__tagline { margin: 0; color: var(--accent); font: 500 20px var(--font-heading); letter-spacing: .12em; }
.home-hero__actions { display: flex; gap: 14px; margin-top: 42px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border: 1px solid var(--primary); transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--primary); color: var(--surface-strong); }
.button--line { color: var(--primary); }
.dusk-placeholder { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(165deg, #8c6b67 0 26%, #be8970 27% 48%, #5a5961 49% 55%, #283648 56% 100%); box-shadow: 18px 20px 0 color-mix(in srgb, var(--primary), transparent 88%); }
.dusk-placeholder--image { aspect-ratio: auto; background: var(--surface); }
.dusk-placeholder.dusk-placeholder--image::before, .dusk-placeholder.dusk-placeholder--image::after { display: none; }
.dusk-placeholder__image { display: block; width: 100%; height: auto; object-fit: contain; }
.dusk-placeholder::before, .dusk-placeholder::after { content: ""; position: absolute; bottom: 22%; width: 29%; height: 40%; background: #313944; clip-path: polygon(0 18%, 56% 18%, 56% 0, 80% 0, 80% 48%, 100% 48%, 100% 100%, 0 100%); }
.dusk-placeholder::before { left: 0; }.dusk-placeholder::after { right: 0; transform: scaleX(-1); }
.dusk-placeholder__sun { position: absolute; width: 62px; height: 62px; border-radius: 50%; left: 58%; top: 26%; background: #d5a56e; box-shadow: 0 0 40px #d5a56e; }
.dusk-placeholder__road { position: absolute; bottom: -10%; left: 35%; width: 32%; height: 65%; background: #1d2937; clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.dusk-placeholder__label { position: absolute; left: 26px; bottom: 24px; display: grid; padding: 14px 18px; border-left: 2px solid #e8d9ca; background: rgb(29 34 41 / 68%); color: #f4e8da; backdrop-filter: blur(5px); }
.dusk-placeholder__label small { font: 10px var(--font-code); letter-spacing: .16em; }.dusk-placeholder__label strong { font: 700 21px var(--font-heading); }.dusk-placeholder__label span { font-size: 12px; opacity: .75; }

.latest-posts { padding: 90px 0 120px; border-top: 1px solid var(--border); }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.section-heading h2, .page-heading h1 { margin: 7px 0 0; font: 700 clamp(34px, 5vw, 54px)/1.15 var(--font-heading); }
.section-heading > a { color: var(--primary); font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.post-card { min-width: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface), transparent 36%); transition: background .22s ease, transform .22s ease; }
.post-card:hover { z-index: 1; background: var(--surface-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__link { min-height: 285px; padding: 30px; display: flex; flex-direction: column; }
.post-card__meta { display: flex; justify-content: space-between; color: var(--muted); font: 11px var(--font-code); letter-spacing: .08em; }
.post-card h3 { margin: 28px 0 13px; font: 700 26px/1.35 var(--font-heading); }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }
.post-card__more { margin-top: auto; padding-top: 24px; color: var(--accent); font-size: 13px; }

.page-heading { min-height: 230px; padding: 72px 0 38px; border-bottom: 1px solid var(--border); align-items: start; flex-direction: column; justify-content: end; }
.page-heading p { max-width: 560px; margin: 4px 0 0; color: var(--muted); }
.listing-page, .taxonomy-page, .photography-page, .standard-page, .album-detail { padding-bottom: 120px; }
.timeline-list { max-width: 860px; margin: 50px auto 0; }
.timeline-year { margin: 48px 0 15px; color: var(--accent); font: 700 34px var(--font-heading); }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--border); }
.timeline-item time { color: var(--muted); font: 12px var(--font-code); }.timeline-item h3 { margin: 0; font: 700 21px var(--font-heading); }.timeline-item span { color: var(--muted); font-size: 12px; }
.taxonomy-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.taxonomy-card { min-height: 130px; display: grid; align-content: center; gap: 6px; padding: 25px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }.taxonomy-card strong { font: 700 22px var(--font-heading); }.taxonomy-card span { color: var(--muted); font-size: 12px; }

.article { padding: 76px 0 120px; }
.article-header { max-width: 920px; margin: auto; padding-bottom: 42px; border-bottom: 1px solid var(--border); }
.article-header h1 { margin: 12px 0 20px; font: 700 clamp(38px, 6vw, 66px)/1.18 var(--font-heading); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font: 12px var(--font-code); }
.article-layout { position: relative; display: grid; grid-template-columns: 190px minmax(0, var(--reading)) 1fr; gap: 44px; margin-top: 54px; }
.article-toc { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 140px); overflow: auto; }
.article-toc > p { margin: 0 0 14px; color: var(--accent); font: 700 11px var(--font-code); letter-spacing: .15em; }
.article-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
.article-toc a { display: block; padding: 5px 0 5px 13px; color: var(--muted); font-size: 12px; line-height: 1.45; }.article-toc a:hover { color: var(--accent); }
.article-content { grid-column: 2; min-width: 0; }
.prose { font-size: 17px; line-height: 1.88; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 100px; font-family: var(--font-heading); line-height: 1.35; }
.prose h2 { margin: 2.5em 0 .8em; padding-bottom: .35em; border-bottom: 1px solid var(--border); font-size: 30px; }.prose h3 { margin: 2em 0 .6em; font-size: 23px; }
.prose p { margin: 1.15em 0; }.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }.prose img { margin: 2em auto; cursor: zoom-in; }
.prose blockquote { margin: 1.8em 0; padding: 10px 22px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); }.prose blockquote p { margin: .5em 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border); white-space: nowrap; }.prose th { background: var(--surface); }
.prose :not(pre) > code { padding: 2px 6px; background: var(--surface); color: var(--accent); font: .88em var(--font-code); }
.prose figure.highlight { position: relative; margin: 2em 0; overflow: auto; border: 1px solid color-mix(in srgb, var(--border), transparent 40%); background: var(--code-bg); color: var(--code-text); }
.prose figure.highlight table { width: auto; display: table; border: 0; }.prose figure.highlight td { padding: 0; border: 0; }.prose figure.highlight pre { margin: 0; padding: 20px; font: 13px/1.7 var(--font-code); }.prose figure.highlight .gutter { opacity: .36; user-select: none; }
.code-copy { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 4px 9px; border: 1px solid rgb(255 255 255 / 20%); background: rgb(0 0 0 / 20%); color: var(--code-text); cursor: pointer; font-size: 11px; }
.article-footer { max-width: var(--reading); margin: 54px auto 0; }.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }.tag-list a { padding: 5px 11px; border: 1px solid var(--border); color: var(--primary); font-size: 12px; }
.copyright-note { margin-top: 28px; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--surface); }.copyright-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.post-navigation { max-width: 920px; margin: 65px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); }.post-navigation a { min-height: 115px; padding: 22px; display: grid; align-content: center; }.post-navigation a + a { border-left: 1px solid var(--border); }.post-navigation small { color: var(--muted); }.post-navigation strong { font: 700 17px var(--font-heading); }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 100; width: 0; height: 2px; background: var(--accent); }

.standard-page .page-content { max-width: var(--reading); margin: 52px auto; }.standard-page .page-content--about { max-width: 900px; }.profile-card { display: grid; grid-template-columns: 100px 1fr; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--border); background: var(--surface); }.profile-links { display: flex; flex-wrap: wrap; gap: 12px; }.profile-links a { padding: 6px 12px; border: 1px solid var(--border); text-decoration: none; }

.album-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 44px 0 28px; }.album-filters button { padding: 7px 14px; border: 1px solid var(--border); background: transparent; cursor: pointer; }.album-filters button.is-active { background: var(--primary); border-color: var(--primary); color: var(--surface-strong); }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }.album-card[hidden] { display: none; }.album-card a { display: block; border: 1px solid var(--border); background: var(--surface); }.album-card__visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }.album-card__visual::before { content: ""; position: absolute; inset: 18% 10% 0; background: rgb(26 34 45 / 78%); clip-path: polygon(0 35%, 28% 35%, 28% 10%, 50% 10%, 50% 50%, 78% 50%, 78% 0, 100% 0, 100% 100%, 0 100%); }.album-card__visual img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }.album-card:hover .album-card__visual img { transform: scale(1.025); }.album-card__number { position: absolute; right: 16px; top: 12px; color: rgb(255 255 255 / 75%); font: 11px var(--font-code); }.album-tone-0 { background: linear-gradient(145deg, #9e665f, #d4a070 48%, #38485d 49%); }.album-tone-1 { background: linear-gradient(145deg, #6c7982, #b6a17c 50%, #343c43 51%); }.album-tone-2 { background: linear-gradient(145deg, #645a65, #bb7866 50%, #293b48 51%); }
.album-card__body { padding: 20px; }.album-card__body > div { display: flex; justify-content: space-between; color: var(--muted); font: 11px var(--font-code); }.album-card h2 { margin: 14px 0 5px; font: 700 24px var(--font-heading); }.album-card p { margin: 0; color: var(--muted); font-size: 13px; }
.album-header { max-width: 920px; padding: 80px 0 48px; }.album-header h1 { margin: 10px 0; font: 700 clamp(42px, 7vw, 72px)/1.1 var(--font-heading); }.album-header > p { max-width: 650px; color: var(--muted); }.album-facts { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 28px; }.album-facts div { min-width: 100px; }.album-facts dt { color: var(--muted); font-size: 11px; }.album-facts dd { margin: 2px 0 0; font-family: var(--font-heading); }.album-intro { max-width: var(--reading); margin: 0 0 46px; }
.photo-grid { columns: 2 360px; column-gap: 24px; }.photo-frame { break-inside: avoid; margin: 0 0 24px; }.photo-placeholder { min-height: 330px; display: grid; place-items: end start; padding: 20px; color: rgb(255 255 255 / 72%); font: 11px var(--font-code); }.photo-frame--1 .photo-placeholder { min-height: 470px; }.photo-frame figcaption { padding: 8px 2px; color: var(--muted); font-size: 12px; }

.pagination { margin-top: 42px; display: flex; justify-content: center; gap: 8px; }.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--border); }.pagination .current { background: var(--primary); color: var(--surface-strong); }
.empty-state { min-height: 260px; display: grid; place-content: center; justify-items: center; padding: 48px 24px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface), transparent 30%); text-align: center; }.empty-state h3 { margin: 12px 0 5px; font: 700 28px var(--font-heading); }.empty-state p { margin: 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); }.site-footer__inner { width: var(--shell); min-height: 110px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; color: var(--muted); font-size: 12px; }.site-footer__inner p { margin: 0; }.site-footer__icp { justify-self: center; text-align: center; }.site-footer__icp a:hover { color: var(--primary); }.site-footer__motto { justify-self: end; text-align: right; }.editorial-mark { margin-right: 12px; color: var(--accent); font: 10px var(--font-code); letter-spacing: .12em; }
.not-found { min-height: 70vh; display: grid; place-content: center; justify-items: start; }.not-found > strong { color: var(--primary); font: 700 clamp(100px, 20vw, 220px)/.9 var(--font-heading); opacity: .18; }.not-found h1 { margin: -30px 0 4px; font: 700 42px var(--font-heading); }.not-found p { max-width: 500px; color: var(--muted); }.not-found .button { margin-top: 18px; }

.search-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 32px)); padding: 0; border: 1px solid var(--border); background: var(--surface-strong); color: var(--text); box-shadow: var(--shadow); }.search-dialog::backdrop { background: rgb(16 20 26 / 64%); backdrop-filter: blur(4px); }.search-dialog__header { display: flex; justify-content: space-between; padding: 20px 24px 12px; }.search-dialog__header label { font: 700 23px var(--font-heading); }.search-dialog__header button { border: 0; background: transparent; cursor: pointer; font-size: 24px; }.search-dialog > input { width: calc(100% - 48px); margin: 6px 24px 12px; padding: 12px 14px; border: 1px solid var(--border); background: var(--bg); color: var(--text); outline: none; }.search-dialog > input:focus { border-color: var(--accent); }.search-status { margin: 0; padding: 0 24px 12px; color: var(--muted); font-size: 12px; }.search-results { margin: 0; padding: 0 24px 24px; list-style: none; }.search-results li { border-top: 1px solid var(--border); }.search-results a { display: block; padding: 14px 0; }.search-results strong { display: block; font-family: var(--font-heading); }.search-results span { color: var(--muted); font-size: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 80; padding: 40px; display: grid; place-items: center; background: rgb(12 15 19 / 92%); }.lightbox[hidden] { display: none; }.lightbox__image { max-width: 92vw; max-height: 84vh; }.lightbox__close { position: absolute; right: 22px; top: 18px; border: 0; background: transparent; color: #fff; font-size: 34px; cursor: pointer; }.lightbox__caption { color: #ddd; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr 1fr; gap: 38px; }
  .article-layout { display: block; }.article-toc { position: static; max-width: var(--reading); margin: 0 auto 36px; }.article-toc ol { columns: 2; }.article-content { max-width: var(--reading); margin: auto; }
  .album-grid, .taxonomy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .site-header__inner { min-height: 66px; }.nav-toggle { display: block; }.site-nav { position: fixed; inset: 66px 0 auto; padding: 24px; display: none; flex-direction: column; align-items: stretch; gap: 18px; border-bottom: 1px solid var(--border); background: var(--bg); }.site-nav.is-open { display: flex; }.site-nav .icon-button { width: 100%; }
  .home-hero { min-height: auto; padding: 54px 0 72px; grid-template-columns: 1fr; gap: 52px; }.home-hero h1 { font-size: 48px; }.dusk-placeholder { order: 2; box-shadow: 10px 12px 0 color-mix(in srgb, var(--primary), transparent 88%); }
  .latest-posts { padding: 68px 0 84px; }.section-heading { align-items: start; flex-direction: column; }.post-grid { grid-template-columns: 1fr; }.post-card__link { min-height: 245px; padding: 24px; }
  .page-heading { min-height: 190px; padding-top: 50px; }.article { padding-top: 52px; }.article-header h1 { font-size: 42px; }.article-toc ol { columns: 1; }.prose { font-size: 16px; }.post-navigation { grid-template-columns: 1fr; }.post-navigation a + a { border-left: 0; border-top: 1px solid var(--border); }
  .album-grid, .taxonomy-grid { grid-template-columns: 1fr; }.photo-grid { columns: 1; }.timeline-item { grid-template-columns: 62px 1fr; gap: 12px; }
  .site-footer__inner { padding: 26px 0; grid-template-columns: 1fr; justify-items: center; gap: 12px; text-align: center; }.site-footer__icp, .site-footer__motto { justify-self: center; text-align: center; }.profile-card { grid-template-columns: 1fr; }
}

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