:root {
  --ink: #14261f;
  --muted: #5c6f66;
  --line: #d5e2db;
  --paper: #f3f6f4;
  --card: #ffffff;
  --green: #0c7a58;
  --green-dark: #095c42;
  --shadow: 0 16px 40px rgba(20, 38, 31, 0.06);
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--green-dark); }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 16px; }
.shell { min-height: 100vh; }
header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand span {
  margin-left: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
nav { display: flex; gap: 18px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.session { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.session form { margin: 0; }
.frame { min-height: calc(100vh - 72px); display: flex; flex-direction: column; }
main { flex: 1; }
footer { padding: 28px 32px 40px; color: var(--muted); font-size: 14px; }
.hero, .wrap { max-width: 1080px; margin: 0 auto; padding: 32px; }
.narrow { max-width: 720px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: 56px; margin: 0 0 12px; }
h2 { font-size: 28px; margin: 0 0 8px; }
.lede { font-size: 19px; max-width: 62ch; color: var(--ink); }
.meta, .pay { color: var(--muted); }
.search, .filters, .form { display: grid; gap: 10px; }
.search { grid-template-columns: 1fr auto; align-items: end; max-width: 640px; margin-top: 24px; }
.search label, .filters label { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.filters { grid-template-columns: 1fr 180px auto; align-items: end; margin: 20px 0; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
}
.form { max-width: 460px; }
.form label { font-size: 14px; font-weight: 700; }
button, .button {
  display: inline-block;
  background: var(--green);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button.secondary, button.quiet {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--line);
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin: 8px 0; font-size: 26px; }
.card a { text-decoration: none; }
.companies ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.companies li { background: white; border-radius: 999px; padding: 8px 12px; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
dt { color: var(--muted); }
blockquote { margin: 0; padding: 16px 18px; background: white; border-radius: 16px; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 10px; background: #e5f6ef; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.pill.paused, .pill.draft { background: #eef1f4; color: var(--muted); }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.tags { display: flex; gap: 8px; padding: 0; list-style: none; }
.tags li { background: white; border-radius: 999px; padding: 6px 10px; }
.error { color: #8d2f2f; font-weight: 700; }
.empty { color: var(--muted); }
.api-status:empty { display: none; }
.api-status { color: var(--muted); font-size: 14px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

body[data-product="voice"] {
  --ink: #101828;
  --green: #1d4e89;
  --green-dark: #163a66;
  --paper: #eef2f6;
  --line: #d5deea;
}
body[data-product="voice"] .shell { display: grid; grid-template-columns: 232px 1fr; }
body[data-product="voice"] header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  background: #101828;
  color: white;
  border: 0;
}
body[data-product="voice"] .brand,
body[data-product="voice"] nav a,
body[data-product="voice"] .session a { color: white; }
body[data-product="voice"] nav { flex-direction: column; gap: 12px; }
body[data-product="voice"] .session { margin: auto 0 0; flex-direction: column; align-items: flex-start; }
body[data-product="voice"] button.quiet { color: white; border-color: rgba(255, 255, 255, 0.25); }

@media (max-width: 800px) {
  header { flex-wrap: wrap; padding: 16px; }
  h1 { font-size: 40px; }
  .hero, .wrap { padding: 20px 16px; }
  .search, .filters, .facts div { grid-template-columns: 1fr; }
  body[data-product="voice"] .shell { grid-template-columns: 1fr; }
  body[data-product="voice"] nav { flex-direction: row; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
