:root {
  --ink: #1b1b1b;
  --paper: #faf6ec;
  --paper-bg: #efe9db;
  --red: #b4001b;
  --muted: #8a8172;
  --faint: #5c5546;
  --dot: #c9c0aa;
  --hair: #d8d0bd;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper-bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

/* ---------- masthead ---------- */
header {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--paper);
  padding: 22px 30px 0;
  box-shadow: 0 0 24px rgba(60, 50, 30, .18);
}
.topbar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: .14em; color: var(--faint);
  border-bottom: 1px solid var(--ink); padding-bottom: 7px;
}
.masthead { text-align: center; padding: 18px 0 4px; }
.mast-en { font-size: 12px; letter-spacing: .55em; color: var(--muted); text-transform: uppercase; }
.mast-title { font-size: 58px; font-weight: 900; letter-spacing: .12em; line-height: 1.15; }
.mast-title .seal {
  display: inline-block; background: var(--red); color: var(--paper);
  font-size: 27px; vertical-align: 13px; padding: 3px 7px 5px; margin-left: 10px;
  letter-spacing: 0; border-radius: 2px;
}
.mast-sub { margin-top: 6px; font-size: 14px; letter-spacing: .34em; color: #44403a; }
.rule-double { border-top: 3.5px solid var(--ink); border-bottom: 1px solid var(--ink); height: 5px; margin-top: 14px; }
header nav {
  display: flex; justify-content: center; gap: 38px;
  padding: 9px 0; border-bottom: 1px solid var(--ink);
  font-size: 16.5px; letter-spacing: .22em;
}
header nav a { color: var(--faint); }
header nav a.active { color: var(--red); font-weight: 700; }
.filters { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; padding: 9px 0 11px; }
.filters button {
  border: none; background: none; cursor: pointer;
  font-family: var(--serif); font-size: 14.5px; letter-spacing: .12em; color: var(--faint);
  padding: 0 2px 2px;
}
.filters button.active { color: var(--red); font-weight: 700; border-bottom: 2px solid var(--red); }

/* ---------- page body ---------- */
main {
  max-width: 1060px; margin: 0 auto;
  background: var(--paper);
  padding: 10px 30px 42px;
  box-shadow: 0 0 24px rgba(60, 50, 30, .18);
}
.meta { color: var(--muted); font-size: 12px; font-weight: normal; font-family: var(--sans); letter-spacing: .05em; }
.meta.bad { color: var(--red); }
.empty { color: var(--muted); text-align: center; padding: 3rem 0; font-size: 16px; letter-spacing: .2em; }
.tag {
  display: inline-block; font-size: 11px; padding: 0 .45rem; margin-right: .3rem;
  border: 1px solid var(--hair); color: var(--faint); font-family: var(--sans);
  vertical-align: 2px;
}

/* ---------- hot lists: source columns ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 36px; }
.card { padding: 16px 0 10px; border-bottom: 1px dotted var(--dot); }
.card h2 {
  font-size: 21px; font-weight: 900; letter-spacing: .06em; margin: 0 0 8px;
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  border-bottom: 2.5px solid var(--ink); padding-bottom: 6px;
  box-shadow: 0 4px 0 -2.5px var(--paper), 0 5.5px 0 -2.5px var(--ink);
}
.card h2 a:hover { color: var(--red); }
.card h2 > span { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.card ol { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: item; }
.card ol li {
  counter-increment: item; margin: 0; padding: 7px 0 7px 30px; position: relative;
  border-bottom: 1px dotted var(--dot); font-size: 15px; line-height: 1.55;
}
.card ol li:last-child { border-bottom: none; }
.card ol li::before {
  content: counter(item); position: absolute; left: 0; top: 6px;
  font-size: 19px; font-weight: 900; color: var(--red); min-width: 22px;
}
.card ol li a { font-weight: 600; }
.card ol li .meta { margin-left: .3rem; }

/* ---------- featured: front page ---------- */
.feed { max-width: 880px; margin: 0 auto; list-style: none; padding: 0; counter-reset: story; }
.feed li { padding: 16px 0 14px; border-bottom: 1px dotted var(--dot); counter-increment: story; }
.feed a.title { font-size: 19px; font-weight: 700; line-height: 1.5; display: block; margin-top: 4px; }
.feed p { margin: .35rem 0 0; color: #55503f; font-size: 14px; line-height: 1.75; }
.feed li:first-child { padding-top: 20px; text-align: left; }
.feed li:first-child a.title { font-size: 34px; font-weight: 900; line-height: 1.35; }
.feed li:first-child p { font-size: 16px; line-height: 1.9; color: #33302a; }
.feed li:first-child p::first-letter {
  font-size: 40px; font-weight: 900; float: left; line-height: 1;
  padding: 3px 8px 0 0; color: var(--red);
}

@media (max-width: 720px) {
  header { padding: 16px 16px 0; }
  main { padding: 6px 16px 32px; }
  .mast-title { font-size: 40px; }
  .mast-title .seal { font-size: 20px; vertical-align: 9px; }
  header nav { gap: 22px; font-size: 15px; }
  .filters { gap: 16px; }
  .feed li:first-child a.title { font-size: 26px; }
}
