:root {
  --bg0: #0c0c0d;
  --bg1: #141416;
  --paper: #f4f1e8;
  --paper2: #fbf7ee;
  --ink: #121316;
  --muted: rgba(18, 19, 22, 0.65);
  --line: rgba(18, 19, 22, 0.12);
  --shadow: rgba(0, 0, 0, 0.18);
  --accent: #e23d28;
  --accent2: #ffb020;
  --good: #137b4b;
  --radius: 16px;
  --radius2: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  /* Intentionally serif-heavy to feel like a paper/newspaper (no external fonts). */
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "PMingLiU",
    Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 18% 0%, rgba(255, 176, 32, 0.22), transparent 62%),
    radial-gradient(900px 600px at 90% 18%, rgba(226, 61, 40, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.20;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 3px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 12px;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 12px;
  background: rgba(12, 12, 13, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.topbar__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(255, 176, 32, 0.90), transparent 64%),
    radial-gradient(80% 80% at 70% 70%, rgba(226, 61, 40, 0.95), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.brand__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.pill {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 12px 40px;
}

.hero {
  border-radius: var(--radius);
  padding: 22px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
    radial-gradient(900px 520px at 0% 0%, rgba(255, 176, 32, 0.15), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(226, 61, 40, 0.12), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}

.hero__headline {
  margin: 0;
  font-family: var(--serif);
  color: rgba(255, 255, 255, 0.93);
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: 0.01em;
}

.hero__lede {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 72ch;
}

.searchbar {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.searchbar__label {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.searchbar__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.searchbar__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.searchbar__input:focus {
  border-color: rgba(255, 176, 32, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.14);
}

.searchbar__btn {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.searchbar__btn:hover {
  background: rgba(0, 0, 0, 0.24);
}

.list-wrap {
  margin-top: 18px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 50px var(--shadow);
  overflow: hidden;
}

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(18, 19, 22, 0.06) 0px,
      rgba(18, 19, 22, 0.06) 1px,
      transparent 1px,
      transparent 8px
    );
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.list-meta__count {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
}

.list {
  display: grid;
  grid-template-columns: 1fr;
}

.item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.0));
}

.item:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.10));
}

.rank {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rank__num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-weight: 900;
}

.badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(226, 61, 40, 0.22);
  background: rgba(226, 61, 40, 0.10);
  color: rgba(140, 18, 6, 0.98);
}

.badge--new {
  border-color: rgba(19, 123, 75, 0.22);
  background: rgba(19, 123, 75, 0.10);
  color: rgba(10, 86, 50, 0.98);
}

.badge--boom {
  border-color: rgba(255, 176, 32, 0.25);
  background: rgba(255, 176, 32, 0.12);
  color: rgba(125, 72, 0, 0.98);
}

.item__title {
  font-family: var(--serif);
  font-size: 18px;
  margin: 2px 0 6px;
  line-height: 1.25;
}

.item__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hot {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.hot__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 19, 22, 0.55);
}

.hot__value {
  font-family: var(--mono);
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.empty,
.noscript,
.notfound {
  border-radius: var(--radius);
  padding: 26px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px var(--shadow);
}

.empty {
  margin: 16px;
}

.empty__title,
.notfound__title {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
}

.empty__body,
.notfound__body {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  margin-top: 24px;
  padding: 20px 12px 28px;
  color: rgba(255, 255, 255, 0.72);
}

.footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer__brand {
  font-family: var(--serif);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.90);
}

.footer__note {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 26px 50px var(--shadow);
  padding: 18px 18px 20px;
}

.article__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.article__title {
  font-family: var(--serif);
  margin: 14px 0 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
}

.article__sub {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.article__body {
  margin-top: 14px;
  line-height: 1.85;
  font-size: 16px;
}

.article__body p {
  margin: 0 0 12px;
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel {
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.panel__title {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.03);
}

.panel__body {
  padding: 10px 12px 12px;
}

.timeline,
.comments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: start;
}

.timeline__time {
  font-family: var(--mono);
  font-weight: 900;
  color: rgba(18, 19, 22, 0.70);
}

.timeline__text,
.comment__text {
  color: rgba(18, 19, 22, 0.78);
  line-height: 1.65;
}

.comment__user {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(18, 19, 22, 0.55);
  margin-bottom: 2px;
}

.article__footnote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(18, 19, 22, 0.20);
  color: rgba(18, 19, 22, 0.68);
  line-height: 1.7;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(18, 19, 22, 0.16);
  background: rgba(18, 19, 22, 0.96);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.btn:hover {
  filter: brightness(1.03);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.62);
  color: rgba(18, 19, 22, 0.88);
}

.reveal {
  animation: rise 520ms ease-out both;
}

@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0.0;
  }
  to {
    transform: translateY(0);
    opacity: 1.0;
  }
}

@media (max-width: 820px) {
  .item {
    grid-template-columns: 78px 1fr;
  }
  .hot {
    grid-column: 2 / 3;
    justify-items: start;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}

