:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --border: #e4e2dc;
  --link: #1f5fbf;
  --ai: #5b4bd6;
  --gaming: #c2410c;
  --dev: #0f766e;
  --science: #1d4ed8;
  --other: #6b7280;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1c1c1f;
    --text: #ececee;
    --muted: #a0a0a8;
    --border: #2c2c31;
    --link: #8ab4ff;
    --ai: #a69bff;
    --gaming: #fb923c;
    --dev: #2dd4bf;
    --science: #7aa2ff;
    --other: #9ca3af;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 18px 20px;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.site-header nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--text); }

main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.brief-head { padding: 12px 0 20px; }
.brief-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.02em; }
.eyebrow { margin: 0 0 4px; color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; font-weight: 600; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .card:first-child { flex-direction: row; }
  .card:first-child .card-img { width: 55%; flex-shrink: 0; height: auto; min-height: 100%; }
  .card:first-child h2 { font-size: 1.5rem; }
}
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--border); }
.placeholder { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; letter-spacing: .04em; opacity: .9; }
.placeholder.cat-ai { background: linear-gradient(135deg, var(--ai), #2a1f8a); }
.placeholder.cat-gaming { background: linear-gradient(135deg, var(--gaming), #7c2d12); }
.placeholder.cat-dev { background: linear-gradient(135deg, var(--dev), #134e4a); }
.placeholder.cat-science { background: linear-gradient(135deg, var(--science), #1e1b4b); }
.placeholder.cat-other { background: linear-gradient(135deg, var(--other), #374151); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--text); opacity: .92; }
.meta { display: flex; justify-content: space-between; align-items: center; }
.num { color: var(--muted); font-size: .8rem; }
.tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tag.cat-ai, .dot.cat-ai { color: var(--ai); }
.tag.cat-gaming, .dot.cat-gaming { color: var(--gaming); }
.tag.cat-dev, .dot.cat-dev { color: var(--dev); }
.tag.cat-science, .dot.cat-science { color: var(--science); }
.tag.cat-other, .dot.cat-other { color: var(--other); }
.source { margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 600; text-decoration: none; }

.pager { display: flex; justify-content: space-between; max-width: 1100px; margin: 28px auto 0; padding: 0 20px; }
.pager a { text-decoration: none; font-weight: 600; }

.archive { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.archive > li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.archive-date { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.archive ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; color: var(--text); font-size: .95rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 10px; vertical-align: middle; }

.site-footer { max-width: 1100px; margin: 40px auto 0; padding: 24px 20px 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }
