@charset "UTF-8";

:root {
  --bg: #f5f2eb;
  --surface: #faf8f3;
  --surface-2: #ebe7de;
  --text: #1c211d;
  --muted: #6c716b;
  --line: rgba(28, 33, 29, .16);
  --line-strong: rgba(28, 33, 29, .34);
  --header: rgba(245, 242, 235, .9);
  --accent: #41685a;
  --tech: #dfe9e2;
  --research: #e4e2ed;
  --pets: #efe2da;
  --travel: #dfe9ed;
  --training: #e2e8d9;
  --moments: #ece6d6;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Noto Serif SC", "Songti SC", SimSun, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1200px;
  --reading: 720px;
}

:root[data-theme="dark"] {
  --bg: #141713;
  --surface: #1b1e1a;
  --surface-2: #252922;
  --text: #f1eee6;
  --muted: #a2a69f;
  --line: rgba(241, 238, 230, .14);
  --line-strong: rgba(241, 238, 230, .3);
  --header: rgba(20, 23, 19, .9);
  --accent: #9bc5b4;
  --tech: #21332a;
  --research: #2b2838;
  --pets: #382a24;
  --travel: #22343a;
  --training: #2b3525;
  --moments: #353024;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141713;
    --surface: #1b1e1a;
    --surface-2: #252922;
    --text: #f1eee6;
    --muted: #a2a69f;
    --line: rgba(241, 238, 230, .14);
    --line-strong: rgba(241, 238, 230, .3);
    --header: rgba(20, 23, 19, .9);
    --accent: #9bc5b4;
    --tech: #21332a;
    --research: #2b2838;
    --pets: #382a24;
    --travel: #22343a;
    --training: #2b3525;
    --moments: #353024;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
::selection { color: var(--surface); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 8px 12px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(18px); }
.nav-shell { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 15px; height: 15px; border: 1px solid var(--accent); border-radius: 50%; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 3px; background: var(--accent); border-radius: 50%; }
.brand-name { font-weight: 800; letter-spacing: .12em; }
.brand-note { padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.main-nav a { position: relative; padding: 9px 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; right: 10px; bottom: 4px; left: 10px; height: 1px; background: var(--text); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.theme-toggle { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle { display: none; }

.home-shell { padding-bottom: 112px; }
.hero { min-height: 570px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr); grid-template-rows: 1fr auto; gap: 40px 72px; align-items: end; padding: 112px 0 38px; border-bottom: 1px solid var(--line-strong); }
.hero-main { align-self: center; }
.eyebrow, .section-kicker { display: block; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .18em; }
.hero h1 { max-width: 820px; margin: 0; font: 600 clamp(50px, 6.3vw, 82px)/1.16 var(--serif); letter-spacing: -.055em; }
.poem-stage { min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.poem-text { margin: 18px 0 0; font: 600 clamp(25px, 2.8vw, 38px)/1.5 var(--serif); letter-spacing: -.035em; }
.poem-text { transition: opacity .16s ease, transform .16s ease; }
.poem-text.is-changing { opacity: 0; transform: translateY(6px); }
.poem-source { margin: 18px 0 0; color: var(--muted); font: 11px var(--sans); letter-spacing: .08em; transition: opacity .16s ease; }
.hero-aside { align-self: center; padding-top: 72px; }
.hero-aside > p { margin: 0; color: var(--muted); font-size: 15px; }
.poem-refresh { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.poem-refresh:hover { color: var(--accent); }
.poem-refresh span { font-size: 16px; transition: transform .25s ease; }
.poem-refresh:hover span { transform: rotate(90deg); }
.hero-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; font-size: 13px; }
.hero-links a, .text-link { padding-bottom: 3px; border-bottom: 1px solid var(--line-strong); }
.hero-links a:hover, .text-link:hover { color: var(--accent); }
.hero-footer { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-footer > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; }
.hero-footer .hero-links { flex: 0 0 auto; margin-top: 0; }

.section-block { margin-top: 104px; }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: 30px; }
.section-heading h2, .browse-card h2 { margin: 7px 0 0; font: 600 clamp(32px, 4vw, 48px)/1.2 var(--serif); letter-spacing: -.04em; }
.section-heading > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.world-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.world-card { position: relative; min-height: 310px; padding: 25px; border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.world-card::after { content: ""; position: absolute; right: -80px; bottom: -150px; width: 270px; height: 270px; border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-radius: 50%; }
.world-card:hover { z-index: 2; border-color: var(--line-strong); transform: translateY(-3px); }
.world-tech { grid-column: span 7; background: var(--tech); }
.world-research { grid-column: span 5; background: var(--research); }
.world-pets, .world-travel, .world-training, .world-moments { grid-column: span 3; min-height: 285px; }
.world-pets { background: var(--pets); }
.world-travel { background: var(--travel); }
.world-training { background: var(--training); }
.world-moments { background: var(--moments); }
.world-topline { display: flex; justify-content: space-between; color: var(--muted); font: 10px var(--mono); letter-spacing: .14em; }
.world-copy { position: relative; z-index: 1; margin: auto 0; }
.world-copy h3 { margin: 0 0 10px; font: 600 clamp(36px, 4vw, 56px)/1 var(--serif); letter-spacing: -.04em; }
.world-copy p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; }
.world-foot { position: relative; z-index: 1; min-height: 26px; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.world-foot strong { max-width: 55%; overflow: hidden; color: var(--text); font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.world-foot b { margin-left: auto; color: var(--text); font-size: 17px; font-weight: 400; }

.recent-list { border-top: 1px solid var(--line-strong); }
.post-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 26px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-date { display: flex; flex-direction: column; font: 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.post-date small { color: var(--muted); font-size: 10px; }
.post-title { display: inline; font: 650 20px/1.45 var(--serif); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .2s ease; }
.post-title:hover { color: var(--accent); background-size: 100% 1px; }
.post-main p { max-width: 680px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.post-tags { display: flex; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.post-meta { display: flex; align-items: center; gap: 13px; }
.section-chip { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; }
.post-arrow { font-size: 16px; transition: transform .2s ease; }
.post-row:hover .post-arrow { transform: translate(2px, -2px); }
.empty-state { min-height: 170px; display: flex; align-items: center; justify-content: center; gap: 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.empty-index { font: 42px var(--serif); color: var(--line-strong); }
.large-empty { min-height: 260px; margin-top: 12px; border: 1px dashed var(--line-strong); }

.browse-grid { margin-top: 112px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-strong); }
.browse-card { position: relative; min-height: 210px; padding: 32px 30px; }
.browse-card + .browse-card { border-left: 1px solid var(--line); }
.browse-card:hover { background: var(--surface); }
.browse-card h2 { font-size: 34px; }
.browse-card p { max-width: 270px; color: var(--muted); font-size: 13px; }
.browse-arrow { position: absolute; right: 28px; bottom: 24px; color: var(--muted); font: 11px var(--mono); }

.page-shell { padding-bottom: 110px; }
.page-hero { min-height: 330px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 90px 0 42px; border-bottom: 1px solid var(--line-strong); }
.page-hero-copy { max-width: 760px; }
.page-hero h1 { margin: 10px 0 12px; font: 600 clamp(50px, 7vw, 78px)/1.1 var(--serif); letter-spacing: -.055em; }
.page-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 15px; }
.page-count { display: flex; flex-direction: column; align-items: flex-end; padding-bottom: 6px; color: var(--muted); }
.page-count strong { color: var(--text); font: 500 44px/1 var(--serif); }
.page-count span { font-size: 11px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 72px; padding-top: 44px; }
.section-intro { margin-bottom: 28px; }
.content-side { padding-top: 1px; }
.side-box { position: sticky; top: 104px; border-top: 1px solid var(--line-strong); }
.side-label { padding: 14px 0 8px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.side-box a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.side-box b { font-weight: 400; }
.side-note { margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.article-shell { max-width: 1120px; padding: 92px 0 110px; }
.article-header { max-width: 820px; margin: 0 auto 52px; }
.article-section { display: inline-flex; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 700; }
.article-header h1 { margin: 16px 0 20px; font: 600 clamp(42px, 6vw, 68px)/1.16 var(--serif); letter-spacing: -.05em; }
.article-summary { max-width: 720px; margin: 0 0 22px; color: var(--muted); font: 20px/1.65 var(--serif); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 18px; }
.tag-row a { color: var(--muted); font-size: 12px; }
.tag-row a:hover { color: var(--accent); }
.cover { max-width: 1020px; margin: 0 auto 60px; }
.cover img { width: 100%; max-height: 630px; object-fit: cover; }
.cover figcaption, .article-content figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) 210px; gap: 72px; justify-content: center; }
.article-main, .article-content { min-width: 0; }
.article-content { overflow-wrap: break-word; font: 18px/1.88 var(--serif); letter-spacing: .01em; }
.article-content > :first-child { margin-top: 0; }
.article-content p { margin: 1.35em 0; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--text); font-family: var(--sans); line-height: 1.35; }
.article-content h2 { margin: 2.7em 0 .8em; padding-bottom: .45em; border-bottom: 1px solid var(--line); font-size: 28px; letter-spacing: -.025em; }
.article-content h3 { margin: 2.2em 0 .7em; font-size: 21px; }
.article-content h4 { margin-top: 2em; font-size: 17px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.article-content ul, .article-content ol { padding-left: 1.35em; }
.article-content li { margin: .45em 0; padding-left: .2em; }
.article-content blockquote { margin: 2em 0; padding: .15em 0 .15em 24px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 1.05em; }
.article-content hr { height: 1px; margin: 3.5em 0; border: 0; background: var(--line-strong); }
.article-content img { width: auto; max-height: 760px; margin: 2.4em auto; }
.article-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font: 14px var(--sans); }
.article-content th, .article-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article-content code { padding: .13em .35em; border-radius: 3px; background: var(--surface-2); font: .84em var(--mono); }
.article-content pre, .article-content .highlight { margin: 2em 0; }
.article-content pre { max-width: 100%; overflow-x: auto; padding: 20px 22px; border-radius: 5px; background: #1d211e; color: #eef0e9; font: 13px/1.7 var(--mono); }
.article-content pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.toc { position: sticky; top: 104px; align-self: start; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.55; }
.toc-title { margin-bottom: 12px; color: var(--text); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li + li { margin-top: 8px; }
.toc ul ul { padding: 8px 0 0 12px; }
.toc a:hover { color: var(--accent); }
.toc-mobile { display: none; }
.article-footer { max-width: var(--reading); margin: 70px auto 0; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.back-link { color: var(--muted); font-size: 12px; }
.article-pager { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.article-pager a { display: flex; flex-direction: column; padding-top: 12px; border-top: 1px solid var(--line); }
.article-pager small { color: var(--muted); font-size: 10px; }
.article-pager span { margin-top: 4px; font-family: var(--serif); }

.archive-wrap { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.archive-year { display: grid; grid-template-columns: 170px 1fr; gap: 44px; padding: 34px 0; border-bottom: 1px solid var(--line-strong); }
.year-label { display: flex; flex-direction: column; }
.year-label span { font: 42px/1 var(--serif); }
.year-label small { margin-top: 7px; color: var(--muted); font: 9px var(--mono); letter-spacing: .16em; }
.archive-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 58px; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.archive-row:last-child { border-bottom: 0; }
.archive-row time, .archive-row span { color: var(--muted); font: 10px var(--mono); }
.archive-row a { font: 16px var(--serif); }
.archive-row a:hover { color: var(--accent); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 44px; }
.tag-cloud a { display: inline-flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); }
.tag-cloud a:hover { border-color: var(--line-strong); color: var(--accent); }
.tag-cloud small { color: var(--muted); font-family: var(--mono); }

.site-footer { border-top: 1px solid var(--line-strong); }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 12px; }
.footer-brand { display: flex; align-items: baseline; gap: 16px; }
.footer-brand strong { letter-spacing: .12em; }
.footer-muted { color: var(--muted); }
.footer-meta { display: flex; align-items: center; gap: 20px; }
.footer-meta a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .brand-note { display: none; }
  .main-nav a { padding-inline: 7px; }
  .world-tech, .world-research, .world-pets, .world-travel, .world-training, .world-moments { grid-column: span 6; }
  .content-layout { grid-template-columns: 1fr; gap: 0; }
  .content-side { display: none; }
  .article-layout { grid-template-columns: minmax(0, var(--reading)); }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 34px; padding: 13px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; }
  .toc-mobile summary { color: var(--text); cursor: pointer; }
}

@media (max-width: 760px) {
  .shell { width: min(var(--max), calc(100% - 32px)); }
  .nav-shell { min-height: 64px; gap: 12px; }
  .site-brand { margin-right: auto; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
  .menu-toggle i { width: 13px; height: 8px; border-block: 1px solid currentColor; }
  .theme-toggle { width: 34px; height: 34px; }
  .main-nav { position: absolute; top: 64px; right: 0; left: 0; display: none; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 10px 16px 18px; border-bottom: 1px solid var(--line-strong); background: var(--bg); }
  .site-header.is-menu-open .main-nav { display: grid; }
  .main-nav a { padding: 11px 8px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .hero { min-height: auto; display: block; padding: 76px 0 28px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .poem-stage { min-height: 220px; }
  .hero-aside { padding-top: 44px; }
  .hero-footer { display: block; margin-top: 52px; }
  .hero-footer .hero-links { margin-top: 22px; }
  .section-block { margin-top: 78px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { display: none; }
  .section-heading h2 { font-size: 36px; }
  .split-heading .text-link { display: inline-block; margin-top: 14px; font-size: 12px; }
  .world-grid { grid-template-columns: 1fr; gap: 10px; }
  .world-tech, .world-research, .world-pets, .world-travel, .world-training, .world-moments { grid-column: auto; min-height: 235px; }
  .world-copy h3 { font-size: 40px; }
  .world-foot strong { display: none; }
  .post-row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .post-title { font-size: 18px; }
  .post-meta { grid-column: 2; justify-content: space-between; }
  .post-arrow { display: none; }
  .post-main p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .browse-grid { margin-top: 82px; grid-template-columns: 1fr; }
  .browse-card { min-height: 160px; padding: 26px 20px; }
  .browse-card + .browse-card { border-top: 1px solid var(--line); border-left: 0; }
  .page-hero { min-height: 270px; gap: 16px; padding: 68px 0 30px; }
  .page-hero h1 { font-size: 50px; }
  .page-count strong { font-size: 32px; }
  .content-layout { padding-top: 28px; }
  .article-shell { width: min(100% - 32px, var(--reading)); padding: 64px 0 80px; }
  .article-header h1 { font-size: 40px; }
  .article-summary { font-size: 18px; }
  .cover { width: calc(100% + 32px); margin: 0 -16px 42px; }
  .article-content { font-size: 17px; }
  .article-content h2 { font-size: 24px; }
  .article-content pre { margin-inline: -16px; padding: 18px 16px; border-radius: 0; }
  .article-content table { display: block; overflow-x: auto; }
  .article-pager { grid-template-columns: 1fr; }
  .archive-wrap { margin-top: 28px; }
  .archive-year { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .archive-row { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .archive-row span { display: none; }
  .footer-inner { min-height: 150px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; }
  .footer-meta { flex-wrap: wrap; gap: 12px 18px; }
  .footer-meta .footer-muted { flex-basis: 100%; }
}

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