/* econodata.ai — derived from the approved 10 Nov 2026 homepage mockup */
:root {
  --bg: #F3F0E8;
  --bg-deep: #E8E3D7;
  --card: #FFFcf6;
  --ink: #161513;
  --muted: #5E5A53;
  --line: #D4CEC0;
  --navy: #1A2B44;
  --navy-2: #243A58;
  --paper-dark: #161513;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 430;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body { min-width: 0; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }

/* Header */
header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header .wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: "Instrument Serif", serif;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark span { color: var(--muted); }
nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
nav a.btn {
  background: var(--navy);
  color: #F6F2EA;
  padding: 9px 16px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.02em;
}
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  padding: 96px 0 100px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
}
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-sub {
  margin-top: 28px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.5;
  color: #3A3732;
}
.hero-right { padding-bottom: 8px; }
.signup-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.signup {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--navy);
  background: var(--card);
  min-height: 52px;
}
.signup.disabled { border-color: #A8A296; opacity: 0.9; }
.signup input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.signup input::placeholder { color: #8A857B; }
.signup input:disabled { cursor: not-allowed; }
.signup button {
  border: 0;
  background: var(--navy);
  color: #F6F2EA;
  padding: 0 22px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.signup.disabled button { background: #6B675F; cursor: not-allowed; }
.signup-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.signup-note a { color: var(--navy); }

/* Sections */
section { padding: 0 0 96px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 36px;
}
.section-title {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

/* What we do */
.what { padding: 0 0 96px; }
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.pillars h3, .card-body h3, .page-title {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.pillars h3 { font-size: 30px; margin-bottom: 12px; }
.pillars p { font-size: 15.5px; line-height: 1.5; color: #3A3732; }
.pillars .status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.read {
  margin-top: 14px;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

/* Brief cards */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
article.card {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}
.thumb {
  height: 228px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 8px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.date {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-body h3 { font-size: 22px; margin-bottom: 10px; }
.card-body p { font-size: 15px; color: #3A3732; flex: 1; }
.card-body .read { margin-top: 16px; }

/* Featured chart */
.feature-chart {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
}
.feature-chart img { display: block; width: 100%; }
.caption { margin-top: 16px; font-size: 15px; color: #3A3732; max-width: 920px; }
.chart-mount { width: 100%; min-height: 360px; background: var(--card); }
.chart-mount svg { display: block; width: 100%; }
.chart-toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 10px; }
.chart-toolbar button, .toggles label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12.5px;
}
.chart-toolbar button {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
}
.toggles { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.toggles label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #222; }
.swatch { width: 12px; height: 3px; display: inline-block; }
.footnotes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: #333;
}
.footnotes p + p { margin-top: 8px; }

/* Brief / archive pages */
.page-hero { padding: 56px 0 36px; }
.page-title { font-size: clamp(36px, 5vw, 56px); max-width: 920px; }
.lede { margin-top: 16px; max-width: 720px; color: #3A3732; font-size: 18px; }
.prose { max-width: 760px; padding-bottom: 96px; }
.prose h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}
.prose h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 22px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16.5px; color: #2A2723; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0 16px 1.2em; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 600; }
.prose a { color: var(--navy); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 18px 0 24px;
}
.table-wrap { overflow-x: auto; margin: 18px 0 24px; }
.table-wrap table { margin: 0; }
.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 600; background: var(--bg-deep); }
.prose td { font-variant-numeric: tabular-nums; }
.figure { margin: 28px 0 36px; }
.figure .fig-title { font-weight: 600; font-size: 18px; margin-bottom: 8px; letter-spacing: -0.02em; }
.figure .fig-sub { font-size: 14px; color: #333; margin-bottom: 12px; max-width: 920px; }
.static-chart { background: var(--card); border: 1px solid var(--line); padding: 12px; }
.source-line { margin-top: 28px; font-size: 14px; color: #3A3732; }

/* Footer */
footer {
  background: var(--paper-dark);
  color: #E8E3D7;
  padding: 56px 0 40px;
}
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.footer-brand {
  font-family: "Instrument Serif", serif;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #F3F0E8;
  text-decoration: none;
}
.footer-brand span { color: #9A9488; }
.footer-email {
  margin-top: 12px;
  display: inline-block;
  font-size: 14px;
  color: #E8E3D7;
  text-decoration: none;
}
.footer-nav { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
.footer-nav a { color: #E8E3D7; text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid #3A3732;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9A9488;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }
  header .wrap { min-height: 72px; padding: 14px 0; flex-wrap: wrap; }
  .wordmark { font-size: 28px; }
  nav { gap: 16px 20px; }
  .hero { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 36px; }
  .signup { flex-direction: column; }
  .signup input, .signup button { width: 100%; }
  .pillars, .grid { grid-template-columns: 1fr; }
  section, .what, .prose { padding-bottom: 64px; }
  footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { justify-content: flex-start; }
  .thumb { height: 200px; }
  .chart-toolbar { flex-wrap: wrap; }
}
