:root {
  --bg: #f8f7f2;
  --surface: #ffffff;
  --muted: #eef2ed;
  --ink: #17201c;
  --text: #37423c;
  --soft: #6d7872;
  --line: #dbe2dc;
  --accent: #24483d;
  --accent2: #b86835;
  --shadow: 0 20px 55px rgba(27, 43, 36, 0.08);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 1rem; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248,247,242,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.brand span { font-weight: 820; color: var(--ink); letter-spacing: -.02em; }
.brand small { color: var(--soft); font-size: .78rem; }
.nav nav { display: flex; gap: 1rem; align-items: center; }
.nav nav a { text-decoration: none; font-weight: 720; color: var(--text); font-size: .92rem; }
.hero { padding: clamp(4rem, 7vw, 6.5rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.eyebrow {
  color: var(--accent2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
h1, h2, h3 { margin: 0 0 .7rem; color: var(--ink); line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.2rem); max-width: 900px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--soft); max-width: 760px; margin: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-meta span {
  display: inline-flex; align-items: center; min-height: 38px; border: 1px solid var(--line);
  background: rgba(255,255,255,.75); border-radius: 999px; padding: .45rem .85rem;
  font-weight: 720; font-size: .88rem;
}
.brief {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: calc(var(--radius) + 8px);
  padding: 1.6rem;
}
.brief h2 { font-size: 1.35rem; }
.brief p { color: var(--soft); margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.5rem 0 2.5rem; }
.metrics article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.metrics strong { display: block; font-size: 2.1rem; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.metrics span { color: var(--soft); font-size: .92rem; font-weight: 680; }
.featured-section, .dashboard, .update-panel { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading p:not(.eyebrow) { color: var(--soft); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card, .entry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 12px 34px rgba(27,43,36,.045);
}
.feature-card { min-height: 265px; display: flex; flex-direction: column; }
.entry-card { min-height: 310px; display: flex; flex-direction: column; }
.badge-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.badge {
  display: inline-flex; align-items: center; min-height: 27px; padding: .32rem .55rem;
  border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: var(--muted); border: 1px solid var(--line);
}
.badge.high { color: #783c1d; background: #f5e8df; border-color: #ead2c2; }
.card-date { color: var(--soft); font-size: .88rem; margin-bottom: .7rem; }
.card-summary, .card-why { color: var(--soft); margin: 0 0 1rem; }
.card-why { border-left: 3px solid var(--accent2); padding-left: .8rem; }
.source-link { margin-top: auto; font-weight: 800; color: var(--accent); text-decoration: none; }
.source-link::after { content: " →"; }
.no-source { margin-top: auto; color: var(--soft); font-size: .9rem; }
.controls {
  display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(150px, .7fr));
  gap: .85rem; background: var(--surface); padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.controls label { display: grid; gap: .25rem; }
.controls span { color: var(--soft); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
input, select {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); padding: .6rem .75rem; font: inherit;
}
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 1.2rem; }
.results-bar p { margin: 0; color: var(--soft); font-weight: 700; }
button {
  min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--accent); padding: .55rem .9rem; font-weight: 800; cursor: pointer;
}
button:hover { background: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.update-panel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.update-panel ol { margin: 0; padding-left: 1.2rem; color: var(--soft); }
.update-panel li + li { margin-top: .55rem; }
code { background: #eef2ed; border: 1px solid var(--line); border-radius: 6px; padding: .08rem .25rem; }
.footer { background: var(--ink); color: #dce8e2; padding: 2rem 0; margin-top: 4rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer p { margin: 0; color: #c5d0c9; }
.footer a { color: #fff; text-decoration: none; font-weight: 800; }
@media (max-width: 980px) {
  .hero-grid, .metrics, .featured-grid, .card-grid, .update-panel, .controls { grid-template-columns: 1fr 1fr; }
  .controls label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .nav, .footer-inner { flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1rem 0; }
  .hero-grid, .metrics, .featured-grid, .card-grid, .update-panel, .controls { grid-template-columns: 1fr; }
  h1 { font-size: 2.25rem; }
}
