:root {
  color-scheme: light;
  --ground: #f3f0e6;
  --paper: #fbf9f2;
  --ink: #252d25;
  --muted: #575f54;
  --rust: #923e28;
  --forest: #243c33;
  --rule: #d9d5c8;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
.wrap { width: min(1240px, calc(100% - 76px)); margin-inline: auto; }
.visually-hidden, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; inset: 12px auto auto 12px; z-index: 5; width: auto; height: auto; padding: 8px 14px; clip-path: none; background: var(--paper); }

.masthead { color: #f7f2e4; background: var(--forest); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 7px; }
.brand small { display: block; margin-top: 5px; font: 9px/1.1 "Courier New", monospace; letter-spacing: .16em; color: #d0dace; }
.header-inner nav { display: flex; align-items: center; gap: clamp(4px, 1.5vw, 22px); }
.header-inner nav a { padding: 8px 12px; font-size: 13px; border-radius: 5px; text-decoration: none; white-space: nowrap; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { background: #f9f4e41e; }
.header-inner .search-link { border: 1px solid #e4eede5e; }
.masthead a:focus-visible, .cover a:focus-visible { outline-color: #f7f2e4; }

.cover { display: grid; grid-template-columns: .9fr 1.5fr; min-height: 348px; overflow: hidden; margin-block: 27px 42px; border-radius: 7px; background: #303c2a; color: #fff7e8; }
.cover-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 3.5vw, 51px); }
.cover-kicker { color: #f2bd95; font-size: 12px; letter-spacing: .12em; margin-bottom: 15px; }
.cover h1 { margin-bottom: 14px; font: 700 clamp(32px, 4vw, 57px)/1.2 var(--serif); letter-spacing: -.04em; }
.cover-description { max-width: 24em; margin-bottom: 24px; font-size: 13px; color: #e5e9da; }
.cover-link { display: inline-flex; gap: 23px; padding: 8px 13px; border-radius: 4px; background: #f8edd3; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.cover-link:hover { background: #f7d9b8; }
.cover-link span { color: var(--rust); }
.cover-figure { position: relative; overflow: hidden; }
.cover-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 59% 50%; }
.cover-figure figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 10px; background: linear-gradient(transparent, #142016da); padding: 28px 20px 13px; color: #fff8e9; font-size: 11px; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 290px); align-items: start; gap: 29px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 13px; margin-bottom: 15px; }
.section-head h2 { font: 700 clamp(27px, 3vw, 40px)/1.2 var(--serif); }
.section-head a, .text-link { color: var(--rust); font-size: 13px; }
.search { display: flex; gap: 7px; margin: 0 0 14px; }
.search input { min-width: 0; width: 100%; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); color: var(--ink); }
.search button { padding: 9px 19px; border: 0; border-radius: 5px; background: var(--forest); color: white; cursor: pointer; white-space: nowrap; }
.search button:hover { background: #38614b; }
#search-status { color: var(--muted); margin-bottom: 17px; overflow-wrap: anywhere; }
#search-empty { padding: 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }

.pills, .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pills { margin-bottom: 16px; }
.pills a, .tags a { padding: 4px 9px; border-radius: 4px; text-decoration: none; font-size: 12px; }
.pills a { padding: 5px 10px; border: 1px solid var(--rule); background: var(--paper); }
.tags a { color: #465747; background: #e9ece1; }
.pills a:hover, .tags a:hover, .pills a[aria-current] { color: #fff; background: var(--forest); }

.entries { display: grid; gap: 13px; }
.entry { position: relative; display: grid; grid-template-columns: minmax(130px, .36fr) 1fr; gap: 18px; padding: 15px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.entry:hover, .entry:focus-within { border-color: #8b9b81; }
.entry .meta a, .entry .tags a { position: relative; z-index: 1; }
.entry-image { display: block; border-radius: 4px; overflow: hidden; align-self: stretch; }
.entry img { width: 100%; height: 100%; min-height: 128px; max-height: 154px; object-fit: cover; background: #d3d8c8; transition: filter .2s; }
.entry:hover img { filter: saturate(1.15); }
.entry-copy { min-width: 0; }
.meta { display: flex; align-items: center; gap: 8px 13px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.meta a { color: var(--rust); text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.meta time { font-variant-numeric: tabular-nums; }
.entry-title { font: 700 clamp(19px, 2vw, 27px)/1.3 var(--serif); }
.entry-title a { display: block; text-decoration: none; }
.entry-title a::after { content: ""; position: absolute; inset: 0; }
.entry-title a:hover { color: var(--rust); }
.entry-title a span { margin-left: 9px; white-space: nowrap; color: var(--rust); font: 15px var(--sans); }
.summary { margin-block: 7px 10px; font-size: 13px; color: var(--muted); }

.sidebar { display: grid; gap: 15px; }
.side-panel { border: 1px solid var(--rule); border-radius: 6px; padding: 17px 19px; background: var(--paper); }
.side-panel h2 { font-size: 15px; margin-bottom: 10px; }
.side-panel p { color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.side-index { list-style: none; padding: 0; margin: 0; }
.side-index li + li { border-top: 1px solid var(--rule); }
.side-index a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 13px; text-decoration: none; }
.side-index a:hover { color: var(--rust); text-decoration: underline; }
.side-index span { color: var(--muted); font-size: 11px; white-space: nowrap; }

.page-heading { margin-block: 34px 25px; padding-bottom: 19px; border-bottom: 1px solid var(--rule); }
.page-heading h1, .article h1 { font: 700 clamp(34px, 4vw, 57px)/1.2 var(--serif); letter-spacing: -.035em; margin-bottom: 12px; }
.page-heading p, .lede { color: var(--muted); }
.archive-month, .credit-list { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; margin-bottom: 14px; padding: 18px 22px; }
.archive-month h2 { font: 700 25px var(--serif); margin-bottom: 9px; }
.archive-month ul, .credit-list, .category-directory { list-style: none; margin-top: 0; padding-left: 0; }
.archive-month ul { margin-bottom: 0; }
.archive-month li { display: grid; grid-template-columns: 48px 1fr auto; align-items: baseline; gap: 12px; padding-block: 12px; border-top: 1px solid var(--rule); }
.archive-month li time, .archive-category { color: var(--muted); font-size: 12px; white-space: nowrap; }
.category-directory a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 15px; margin-bottom: 12px; padding: 17px 19px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; }
.category-directory a:hover { border-color: #8b9b81; }
.category-directory strong { font: 700 25px var(--serif); }
.category-directory span { grid-row: 2; color: var(--muted); font-size: 13px; }
.category-directory small { grid-row: 1 / 3; grid-column: 2; color: var(--rust); white-space: nowrap; }

.article-columns { margin-top: 29px; }
.article { padding: clamp(19px, 4vw, 47px); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.crumb { display: flex; flex-wrap: wrap; gap: 9px; color: var(--rust); font-size: 12px; margin-bottom: 25px; }
.crumb span { color: var(--muted); }
.lede { font-size: 16px; margin-bottom: 13px; }
.article-photo { margin-block: 23px; }
.article-photo img { width: 100%; height: auto; max-height: 590px; object-fit: contain; background: #e9e7dc; border-radius: 4px; }
.article-photo figcaption { color: var(--muted); font-size: 12px; margin-top: 8px; }
.info-article .article-photo { margin-top: 0; }
.toc { background: #eeede3; padding: 15px 18px; border-left: 2px solid #9d9e7d; border-radius: 4px; }
.toc ol { margin-block: 6px 0; padding-left: 24px; }
.toc a { font-size: 13px; }
.prose { line-height: 1.9; }
.prose h2 { margin-block: 29px 11px; font: 700 clamp(22px, 2.6vw, 31px)/1.3 var(--serif); }
.prose p { margin-bottom: 1.1em; }
.article-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 19px; margin-top: 24px; border-top: 1px solid var(--rule); }
.article-bottom a { color: var(--rust); font-size: 12px; }
.article-bottom strong { display: block; font-size: 15px; }
.credit-list { padding: 8px 22px; max-width: 820px; }
.credit-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 12px 0; }
.credit-list li + li { border-top: 1px solid var(--rule); }
.credit-list li a:last-child { color: var(--rust); font-size: 13px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--rule); margin-top: 35px; padding-block: 21px; color: var(--muted); font-size: 12px; }
.footer > a { text-decoration: none; }
.footer strong { color: var(--ink); margin-right: 4px; }
.footer div { display: flex; flex-wrap: wrap; gap: 9px 19px; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 46px); }
  .columns { grid-template-columns: minmax(0, 1fr) 230px; gap: 17px; }
  .cover-copy { padding: 29px; }
  .cover { min-height: 315px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 30px); }
  .header-inner { min-height: 62px; gap: 8px; }
  .brand { font-size: 20px; gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .brand small { font-size: 8px; letter-spacing: .06em; }
  .header-inner nav { gap: 2px; }
  .header-inner nav a { padding: 6px 7px; font-size: 12px; }
  .cover { grid-template-columns: 1fr; margin-block: 16px 26px; }
  .cover-copy { padding: 22px 23px; }
  .cover-kicker { margin-bottom: 10px; }
  .cover h1 { font-size: clamp(35px, 8vw, 56px); }
  .cover-description { margin-bottom: 17px; }
  .cover-figure img { height: clamp(170px, 49vw, 290px); }
  .cover-figure figcaption { padding: 22px 12px 9px; font-size: 10px; }
  .columns { grid-template-columns: 1fr; gap: 23px; }
  .sidebar { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
  .entry { grid-template-columns: minmax(84px, .38fr) 1fr; padding: 11px; gap: 11px; }
  .entry img { min-height: 113px; }
  .entry-title { font-size: 20px; }
  .entry-title a span { margin-left: 4px; }
  .tags { gap: 4px; }
  .tags a { font-size: 11px; padding: 3px 6px; }
  .summary { line-height: 1.55; font-size: 12px; }
  .page-heading { margin-block: 23px 17px; }
  .archive-month { padding: 14px; }
  .archive-month li { grid-template-columns: 38px 1fr; gap: 5px 7px; }
  .archive-category { grid-column: 2; }
  .article-columns { margin-top: 17px; }
  .article-photo img { max-height: 420px; }
}

@media (max-width: 355px) {
  .header-inner nav a { padding-inline: 5px; }
  .brand small { font-size: 7px; }
  .entry { grid-template-columns: 1fr; }
  .entry img { max-height: 145px; }
}

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