:root {
  --ink: #111111;
  --bg: #FFFFFF;
  --text-muted: #767676;
  --hairline: #E2E2E2;
  --brand: #145C52;
  --brand-accent: #E0793B;
  --youtube-red: #FF0000;
  --font-headline: Georgia, 'Source Serif 4', serif;
  --font-meta: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-headline);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.top-bar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-meta);
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 24px;
  border-bottom: 1px solid var(--hairline);
}
.top-bar .live { color: var(--brand-accent); font-weight: bold; }
.top-bar a { color: var(--brand); text-decoration: none; font-family: var(--font-meta); }
.top-bar a:hover { text-decoration: underline; }

.masthead {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: block;
}

.wordmark-text {
  font-family: var(--font-meta);
  font-weight: 900;
  font-size: 29px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.wordmark-text .wordmark-ai { color: var(--brand-accent); }

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 4px;
}
.icon-link svg { width: 22px; height: 22px; display: block; }
.icon-link:hover { color: var(--brand-accent); }

.about-link {
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.about-link:hover { color: var(--brand); }

.youtube-subscribe {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  white-space: nowrap;
}
.youtube-subscribe svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.youtube-subscribe:hover { background: #f5f5f5; border-color: #ccc; }

.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  padding: 4px;
}
.search-trigger:hover { color: var(--brand-accent); }

.nav {
  display: flex;
  gap: 20px;
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: bold;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 8px 0;
  margin-top: 14px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 3px solid transparent;
  margin-bottom: -9px;
}
.nav a.nav-about {
  margin-left: auto;
  color: var(--text-muted);
}
.nav a.nav-about:hover { color: var(--brand); }
.nav a.active {
  border-bottom-color: var(--nav-active-color, var(--brand));
  color: var(--nav-active-color, var(--brand));
}

.feed {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.cat-label {
  font-family: var(--font-meta);
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.story-time {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.story-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.story-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: var(--font-meta);
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.hero .story-image { margin-bottom: 14px; aspect-ratio: 21 / 9; }
.hero h1 {
  font-size: 32px;
  font-weight: normal;
  line-height: 1.15;
  margin: 0 0 10px;
}
.hero h1 a { color: inherit; text-decoration: none; }
.hero h1 a:hover, .hero h1 a:focus-visible { text-decoration: underline; }
.hero-summary {
  font-family: var(--font-meta);
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin: 0 0 8px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 4px;
}
.story-card {
  padding: 16px;
  border-bottom: 1px solid var(--hairline);
}
.story-card:nth-child(odd) { border-right: 1px solid var(--hairline); padding-left: 0; }
.story-card:nth-child(even) { padding-right: 0; }
.story-card .story-image { margin-bottom: 10px; }
.story-card h3 {
  font-size: 18px;
  font-weight: normal;
  line-height: 1.3;
  margin: 0 0 6px;
}
.story-card h3 a { color: inherit; text-decoration: none; }
.story-card h3 a:hover, .story-card h3 a:focus-visible { text-decoration: underline; }

.brief-section { margin-top: 8px; }
.brief-header {
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
  margin: 28px 0 0;
}
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.brief-tag {
  flex: 0 0 auto;
  font-family: var(--font-meta);
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 2px;
}
.brief-time {
  flex: 0 0 auto;
  font-family: var(--font-meta);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.brief-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.brief-title:hover, .brief-title:focus-visible { text-decoration: underline; }

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(240px, 1fr);
  gap: 40px;
  align-items: start;
}

.story-page { padding: 20px 0 40px; max-width: 700px; }
.story-page .story-image { margin-bottom: 16px; aspect-ratio: 16 / 9; }
.story-page h1 {
  font-size: 34px;
  font-weight: normal;
  line-height: 1.2;
  margin: 6px 0 10px;
}
.story-body {
  font-family: var(--font-headline);
  font-size: 19px;
  line-height: 1.6;
  color: #222;
  margin: 20px 0;
}
.story-read-more {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-meta);
  font-size: 14px;
}
.story-read-more a { color: var(--brand); font-weight: bold; text-decoration: none; }
.story-read-more a:hover { text-decoration: underline; }

.story-sidebar { padding-top: 20px; }
.sidebar-heading {
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin: 0 0 4px;
}
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-story {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.sidebar-story a {
  display: block;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 4px;
}
.sidebar-story a:hover, .sidebar-story a:focus-visible { color: var(--brand); text-decoration: underline; }
.sidebar-story-time {
  font-family: var(--font-meta);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sidebar-module + .sidebar-module { margin-top: 32px; }

.sidebar-promo-card {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.sidebar-promo-card:last-child { border-bottom: none; }
.sidebar-promo-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}
.sidebar-promo-icon svg { width: 40px; height: 40px; }
.sidebar-promo-title {
  font-family: var(--font-meta);
  font-size: 14px;
  font-weight: bold;
  color: var(--ink);
  margin: 0 0 4px;
}
.sidebar-promo-text {
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 10px;
}
.buttondown-form-sidebar { flex-direction: column; gap: 8px; }
.buttondown-form-sidebar input[type="email"] { min-width: 0; width: 100%; }

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.archive-item { border-bottom: 1px solid var(--hairline); }
.archive-item a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-meta);
  font-weight: bold;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.archive-item a:hover, .archive-item a:focus-visible { color: var(--brand); }

.one-year-ago {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hairline);
}
.one-year-ago-label { font-weight: bold; text-transform: uppercase; font-size: 11px; margin: 0 0 4px; }
.one-year-ago-link { color: var(--ink); text-decoration: none; font-style: italic; }
.one-year-ago-link:hover { color: var(--brand); }

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-links { margin: 0 0 8px; }
.site-footer .footer-links a { margin-right: 16px; }

kbd {
  font-family: var(--font-meta);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.search-overlay[hidden] { display: none; }

.search-box {
  width: min(560px, 90vw);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  font-family: var(--font-meta);
}
.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-headline);
  font-size: 18px;
  padding: 8px 0;
  outline: none;
}
.search-box input:focus { border-bottom-color: var(--brand); }
.search-hint { font-size: 11px; color: var(--text-muted); margin: 8px 0 0; }
.search-results { list-style: none; margin: 12px 0 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.search-results li { border-top: 1px solid var(--hairline); }
.search-results a { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px; text-decoration: none; }
.search-result-date { font-size: 11px; color: var(--text-muted); }
.search-result-title { font-family: var(--font-headline); font-size: 15px; color: var(--ink); }
.search-results a:hover .search-result-title { color: var(--brand); }
.search-empty { color: var(--text-muted); font-size: 13px; padding: 10px 4px; }

.empty-state {
  padding: 48px 0;
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: 14px;
  text-align: center;
}

.about-page { padding: 28px 0 56px; }
.about-page .about-eyebrow {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-accent);
  margin: 0 0 10px;
}
.about-page h1 {
  font-size: 40px;
  font-weight: normal;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 780px;
}
.about-page .about-lede {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: #333;
  max-width: 700px;
  margin: 0 0 8px;
}

.about-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.about-section h2 {
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin: 0 0 16px;
}
.about-section p {
  font-family: var(--font-headline);
  font-size: 17px;
  line-height: 1.6;
  color: #222;
  max-width: 700px;
  margin: 0 0 14px;
}
.about-section > p:first-of-type { margin-top: -4px; }

/* How it works: three-step explainer */
.how-it-works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.how-it-works li { padding-right: 8px; }
.how-it-works .step-num {
  font-family: var(--font-headline);
  font-size: 28px;
  color: var(--hairline);
  margin: 0 0 4px;
}
.how-it-works h3 {
  font-family: var(--font-meta);
  font-size: 15px;
  margin: 0 0 6px;
}
.how-it-works p {
  font-family: var(--font-meta);
  font-size: 14px;
  line-height: 1.55;
  color: #444;
  max-width: none;
  margin: 0;
}

.category-guide {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.category-guide li {
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--cat-color, var(--brand));
  border-radius: 2px;
  padding: 16px 18px;
}
.category-guide .cat-label { margin-bottom: 8px; }
.category-guide p {
  font-family: var(--font-meta);
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  max-width: none;
}

/* Twin CTA cards: newsletter + YouTube */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.cta-card {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-card h2 { margin: 0; }
.cta-card p {
  font-family: var(--font-meta);
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  max-width: none;
  margin: 0;
}
.cta-card .cta-action { margin-top: auto; padding-top: 4px; }

.youtube-callout { display: flex; align-items: center; gap: 14px; }
.youtube-callout .icon-link {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}
.youtube-callout .icon-link svg { width: 48px; height: 48px; }
.youtube-callout-text { font-family: var(--font-meta); font-size: 14px; color: #333; }
.youtube-callout-text a { color: var(--brand); font-weight: bold; text-decoration: none; }
.youtube-callout-text a:hover { text-decoration: underline; }

.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.source-pills li {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: bold;
  color: var(--brand);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 12px;
}

.creator-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.creator-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.creator-block a { color: var(--brand); font-weight: bold; text-decoration: none; }
.creator-block a:hover { text-decoration: underline; }

.newsletter-banner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.newsletter-banner-text h2 {
  font-family: var(--font-meta);
  font-size: 15px;
  margin: 0 0 2px;
}
.newsletter-banner-text p {
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.newsletter-embed { flex: 0 0 auto; }

.past-reports-link {
  color: var(--brand);
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
.past-reports-link:hover { text-decoration: underline; }

.buttondown-form {
  display: flex;
  gap: 8px;
  font-family: var(--font-meta);
}
.buttondown-form input[type="email"] {
  font-family: var(--font-meta);
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  min-width: 220px;
}
.buttondown-form input[type="email"]:focus { outline: none; border-color: var(--brand); }
.buttondown-form button {
  font-family: var(--font-meta);
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: var(--brand-accent);
  border: none;
  border-radius: 4px;
  padding: 9px 16px;
  cursor: pointer;
}
.buttondown-form button:hover { background: #c85f1e; }

.newsletter-section-embed { max-width: 420px; }

@media (max-width: 980px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-page { max-width: none; }
  .story-sidebar { padding-top: 0; }
}

@media (max-width: 620px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-card:nth-child(odd) { border-right: none; padding: 16px 0; }
  .hero h1 { font-size: 24px; }
  .brief-item { flex-wrap: wrap; }
  .story-page h1 { font-size: 26px; }
  .category-guide { grid-template-columns: 1fr; }
  .about-page h1 { font-size: 26px; }
  .about-page .about-lede { font-size: 17px; }
  .how-it-works { grid-template-columns: 1fr; gap: 24px; }
  .cta-grid { grid-template-columns: 1fr; }
  .newsletter-banner { flex-direction: column; align-items: stretch; }
  .buttondown-form { flex-direction: column; }
  .buttondown-form input[type="email"] { min-width: 0; }
  .creator-block { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .wordmark-logo { width: 30px; height: 30px; }
  .wordmark-text { font-size: 19px; }
  .youtube-subscribe {
    padding: 6px 8px;
    border-radius: 8px;
    gap: 0;
  }
  .youtube-subscribe span { display: none; }
  .youtube-subscribe svg { width: 24px; height: 24px; }
}
