:root {
  color-scheme: light;
  --paper: #f5f7f9;
  --card: #fff;
  --ink: #1f252d;
  --muted: #596371;
  --line: #e0e5ea;
  --accent: #244b72;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
.shell { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.masthead .shell { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; }
.mark { background: var(--accent); color: white; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; font-size: 16px; }
.masthead nav { display: flex; align-items: center; gap: 25px; font-size: 14px; color: var(--muted); }
.featured-section { margin-top: 25px; }
.featured-section > h1, .section-title { font-size: 22px; line-height: 1.4; }
.featured { display: grid; grid-template-columns: 1.32fr 1fr 1fr; gap: 15px; margin-top: 12px; }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.tile img { width: 100%; height: 150px; object-fit: cover; }
.tile > div { padding: 12px 14px 14px; }
.tile small { color: var(--accent); font-weight: 600; }
.tile :is(h2, h3) { font-size: 19px; line-height: 1.4; margin-top: 4px; }
.tile p, .meta { color: var(--muted); font-size: 14px; }
.tile p { margin-top: 6px; }
.feed, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 24px; margin-top: 26px; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.filters button { font: inherit; font-size: 14px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 13px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.entry { padding: 15px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin-bottom: 8px; }
.entry h3 { font-size: 20px; line-height: 1.4; margin: 3px 0; }
.entry > p:last-child { color: var(--muted); font-size: 14px; }
.sidebar { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 17px; font-size: 14px; }
.sidebar h2 { font-size: 17px; margin-bottom: 6px; }
.sidebar p + h2, .toc + h2 { margin-top: 18px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li + li { margin-top: 7px; }
footer { margin-top: 36px; border-top: 1px solid var(--line); padding: 17px 0; color: var(--muted); font-size: 14px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: clamp(20px, 4vw, 48px); min-width: 0; }
.article h1 { font-size: clamp(28px, 3.6vw, 43px); line-height: 1.24; margin: 12px 0; }
.article header { border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.article-layout > .sidebar { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.prose { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.prose > * { margin: 18px 0; }
.prose h2 { font-size: 25px; line-height: 1.45; margin-top: 34px; }
.prose :is(h3, h4) { font-size: 19px; line-height: 1.5; margin-top: 26px; }
.prose [id] { scroll-margin-top: 20px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto; margin: 12px auto; }
.prose pre { overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px; font-size: 14px; line-height: 1.55; tab-size: 4; }
.prose blockquote { margin-inline: 0; padding-inline: 16px; border-inline-start: 3px solid var(--accent); color: var(--muted); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose :is(td, th) { border: 1px solid var(--line); padding: 6px 12px; }
.return { color: var(--accent); font-size: 14px; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .masthead .shell { min-height: 54px; }
  .masthead nav { gap: 14px; }
  .feed, .article-layout { grid-template-columns: 1fr; gap: 14px; }
  .article-layout > .sidebar { position: static; max-height: none; }
  .featured { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile:first-child { grid-column: span 2; }
  .tile img { height: 100px; }
  .tile:first-child img { height: 160px; }
  .tile > div { padding: 9px; }
  .tile :is(h2, h3) { font-size: 16px; }
  .tile:first-child h2 { font-size: 20px; }
}
