:root {
  --bg: #f6f6f2;
  --surface: #fffefa;
  --ink: #11161c;
  --muted: #5f6a76;
  --line: #dedfd8;
  --accent: #2957e6;
  --accent-soft: #e8edff;
  --violet: #7a4bd6;
  --green: #1f7a54;
  --amber: #9a5b13;
  --radius: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(11, 15, 20, 0.9); }

  :root {
    --bg: #0b0f14;
    --surface: #111820;
    --ink: #e9eef4;
    --muted: #98a4b1;
    --line: #222c36;
    --accent: #7d9bff;
    --accent-soft: #16213a;
    --violet: #b79cff;
    --green: #6fd3a5;
    --amber: #e0ad63;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  background: rgba(246, 246, 242, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-header nav { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
.site-header nav a.active { color: var(--ink); font-weight: 600; }

main { max-width: var(--max); margin: 0 auto; padding: 0 28px 72px; }

.hero { padding: 78px 0 54px; max-width: 820px; }

.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.hero h1 { margin: 0 0 18px; font-size: clamp(44px, 7vw, 76px); }

.lede {
  margin: 0;
  max-width: 660px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.updated { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

.section { margin-top: 54px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 { margin: 0; font-size: 28px; }
.section-head a { font-size: 14px; color: var(--muted); white-space: nowrap; }
.section-head a:hover { color: var(--accent); }

.feed { border-bottom: 1px solid var(--line); }

.item { padding: 26px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }

.item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-industry { background: var(--accent-soft); color: var(--accent); }
.tag-research { background: rgba(31, 122, 84, 0.12); color: var(--green); }
.tag-labs { background: rgba(122, 75, 214, 0.14); color: var(--violet); }
.tag-analysis { background: rgba(154, 91, 19, 0.14); color: var(--amber); }

.source { font-weight: 600; color: var(--ink); }
.item-meta time { margin-left: auto; white-space: nowrap; }

.item h3 { margin: 0 0 8px; font-size: 25px; }
.item h3 a:hover { color: var(--accent); }
.item-dek { margin: 0; max-width: 820px; color: var(--muted); font-size: 16px; }

.item.lead h3 { font-size: clamp(30px, 4vw, 40px); }
.item.lead .item-dek { font-size: 18px; }

.feed-compact .item { padding: 20px 0; }
.feed-compact .item h3 { font-size: 21px; }
.feed-compact .item-dek { display: none; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.card-num { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.card h3 { margin: 16px 0 10px; font-size: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-more { margin-top: auto; padding-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent); }

.sources {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.sources h2 { margin: 0 0 10px; font-size: 16px; font-family: inherit; letter-spacing: 0.04em; text-transform: uppercase; }
.sources p { margin: 0; font-size: 14px; line-height: 1.8; }

.page { padding-top: 0; }
.page-head { padding: 64px 0 34px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 14px; font-size: clamp(40px, 6vw, 64px); }
.page-head .lede { font-size: 18px; }

.feed-all { border-bottom: 0; }

.article { max-width: 760px; padding: 64px 0 0; }
.article-meta { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.article h1 { margin: 0 0 22px; font-size: clamp(38px, 6vw, 58px); }
.article .standfirst { margin: 0 0 34px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.article-body { font-size: 18px; line-height: 1.75; }
.article-body h2 { margin: 42px 0 14px; font-size: 30px; }
.article-body h3 { margin: 30px 0 10px; font-size: 23px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
}
.article-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  font-size: 0.9em;
}
.article-foot { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 28px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-brand { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.footer-note { margin: 0; max-width: 620px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; text-align: right; white-space: nowrap; }
.footer-meta { margin: 22px 0 0; font-size: 12px; }

.notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 760px) {
  .site-header { padding: 14px 18px; flex-wrap: wrap; }
  .site-header nav { gap: 14px; font-size: 14px; }
  main { padding: 0 18px 56px; }
  .hero { padding: 48px 0 36px; }
  .lede { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .item-meta time { margin-left: 0; }
  .item h3 { font-size: 22px; }
  .item.lead h3 { font-size: 28px; }
  .article { padding-top: 40px; }
  .article-body { font-size: 17px; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: row; text-align: left; }
}
