:root {
  color-scheme: light;
  --bg: #f3f4f3;
  --surface: #ffffff;
  --surface-subtle: #f9faf9;
  --text: #111827;
  --muted: #6b7280;
  --muted-strong: #374151;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --accent: #00a86b;
  --accent-deep: #047857;
  --accent-soft: #e9f8f1;
  --danger: #9f1239;
  --shadow: 0 18px 45px rgb(17 24 39 / 0.06);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header,
.layout,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 54px 0 30px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 780;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 760;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.42;
  font-weight: 720;
}

.updated-at,
.brief-count,
.site-footer,
.source-line {
  color: var(--muted);
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 48px;
}

.archive {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.archive h2 {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--muted-strong);
}

.archive-list {
  display: grid;
  gap: 6px;
}

.archive-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.archive-link:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.archive-link.active {
  border-color: rgb(0 168 107 / 0.26);
  background: var(--accent-soft);
  color: var(--text);
}

.archive-link span:last-child {
  flex: 0 0 auto;
  font-size: 12px;
}

.brief {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brief-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 34px 26px;
  border-bottom: 1px solid var(--line);
}

.news-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(0 168 107 / 0.28);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 760;
}

.summary {
  margin: 14px 0 0;
  font-size: 17px;
  color: #1f2937;
}

.why {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
}

.source-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.source-line a {
  color: var(--accent-deep);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--muted-strong);
  font-size: 12px;
}

.empty-state {
  margin: 28px 34px;
  color: var(--danger);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 38px;
}

@media (max-width: 760px) {
  .site-header {
    display: block;
    padding-top: 36px;
  }

  h1 {
    font-size: 34px;
  }

  .updated-at {
    margin: 16px 0 0;
  }

  .layout {
    display: block;
  }

  .archive {
    position: static;
    margin-bottom: 18px;
    padding: 14px;
  }

  .archive-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .archive-link {
    min-width: 132px;
  }

  .brief-head {
    display: block;
    padding: 24px 20px 22px;
  }

  .brief-count {
    margin: 10px 0 0;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 20px;
  }

  .rank {
    width: 34px;
    height: 34px;
  }
}
