:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --ink: #111318;
  --muted: #5c6575;
  --accent: #0b4f7c;
  --accent-2: #e6553e;
  --kind-digest: #2563eb;
  --kind-data: #059669;
  --kind-petition: #7c3aed;
  --shadow: 0 4px 18px rgba(0,0,0,0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

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

.container { max-width: 880px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  background: linear-gradient(135deg, var(--accent), #0a3a5e);
  color: #fff;
  padding: 1.25rem 0 0.5rem;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem; justify-content: space-between; }
.logo { font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 1rem; font-size: 0.92rem; font-weight: 500; }
.main-nav a { color: rgba(255,255,255,0.82); }
.main-nav a:hover { color: #fff; text-decoration: none; }
.tagline { margin: 0.5rem 0 0; font-size: 0.9rem; opacity: 0.82; }

main { padding: 2rem 0 3rem; }

.day-header { margin-bottom: 1.5rem; }
.day-title { font-size: 2rem; margin: 0; letter-spacing: -0.02em; }
.day-meta { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

.story-grid { display: grid; gap: 1.1rem; }
.story-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.story-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.09); }
.card-link h3 { margin: 0.5rem 0 0.25rem; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.card-link:hover { text-decoration: none; }
.card-link:hover h3 { color: var(--accent); }

.kind {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #fff;
  background: var(--muted);
}
.kind-digest { background: var(--kind-digest); }
.kind-data_brief { background: var(--kind-data); }
.kind-petition_watch { background: var(--kind-petition); }

.dek { margin: 0.4rem 0; color: var(--muted); font-size: 0.98rem; }
time { font-size: 0.8rem; color: #7e8795; }

.archive { margin-top: 2.5rem; }
.archive h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.archive-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.archive-list a { display: block; background: var(--surface); padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.9rem; box-shadow: var(--shadow); }
.archive-list a:hover { background: var(--accent); color: #fff; text-decoration: none; }

.story-article { background: var(--surface); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.back-to-latest {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(11,79,124,0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.back-to-latest:hover { background: var(--accent); color: #fff; text-decoration: none; }
.back-link { font-size: 0.9rem; color: var(--muted); }
.story-headline { font-size: 2rem; margin: 0.6rem 0 0.2rem; line-height: 1.2; letter-spacing: -0.02em; }
.story-dek { font-size: 1.2rem; color: var(--muted); margin: 0.4rem 0 0.6rem; }
.story-time { display: block; margin-bottom: 1.5rem; color: #7e8795; font-size: 0.85rem; }
.story-body { font-size: 1.05rem; max-width: 70ch; }
.story-body p { margin: 0.9rem 0; }
.story-body a { border-bottom: 1px solid rgba(11,79,124,0.25); }
.story-body a:hover { border-bottom-color: var(--accent); }
.story-body em { color: var(--muted); font-size: 0.92rem; }

.page-content { background: var(--surface); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.page-content h2 { margin-top: 0; }
.page-content .lead { font-size: 1.1rem; color: var(--muted); }
.page-content ul { padding-left: 1.2rem; }
.page-content li { margin: 0.5rem 0; }

.empty { color: var(--muted); font-size: 1.05rem; }

.site-footer { padding: 2rem 0 3rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.site-footer a { color: var(--accent); }

@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .day-title { font-size: 1.5rem; }
  .story-headline { font-size: 1.5rem; }
  .story-article { padding: 1.2rem; }
}