:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --surface: #ffffff;
  --text: #16211b;
  --muted: #5f6f66;
  --line: #dbe2d8;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --gold: #b7791f;
  --max: 1120px;
  --article: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.1s;
}
.skip-link:focus {
  top: 0;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; display: block; }

.site-header, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a, .text-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 56px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.03em; }
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}
h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { margin: 0 0 10px; font-size: 1.1rem; }

.hero-copy, .lede, .section-heading p, .article-summary, .card-meta, .article-meta {
  color: var(--muted);
}
.hero-copy, .lede, .section-heading p, .article-summary {
  max-width: 720px;
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.button.secondary:hover {
  background: var(--accent);
  color: white;
}
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
}
.section-heading { max-width: 760px; margin-bottom: 24px; }
.section-heading p { margin-bottom: 0; }

.topic-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.topic-grid article, .article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 1px 0 rgba(13, 18, 16, 0.02);
}
.article-card h2, .article-card h3 {
  margin-bottom: 12px;
}
.article-card a {
  text-decoration: none;
}
.article-card p { color: var(--muted); margin: 0 0 14px; }
.card-meta {
  margin-bottom: 10px;
  font-size: .92rem;
}
.featured-card {
  padding: 28px;
  border-left: 4px solid var(--accent);
}
.latest {
  border-top: 1px solid var(--line);
}
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer nav { justify-content: flex-end; }

.article-shell {
  max-width: var(--article);
  margin: 0 auto;
  padding: 12px 24px 72px;
}
.article-page {
  background: transparent;
  border: none;
  border-radius: 24px;
  padding: 28px 18px 0;
  box-shadow: none;
}
.article-header { margin-bottom: 28px; }
.article-header h1 {
  max-width: 100%;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-top: 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: .95rem;
}
.takeaways {
  background: #f1f7f5;
  border: 1px solid #d2e4de;
  border-radius: 18px;
  padding: 20px 22px;
  margin: 24px 0 32px;
}
.takeaways ul, .prose ul, .source-list, .related-links {
  margin: 0;
  padding-left: 1.2rem;
}
.prose {
  font-size: 1.06rem;
}
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: #243129; }
.source-list li, .related-links li { margin-bottom: .55rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link::after {
  content: "→";
  font-size: .95em;
}

.archive h1 { margin-bottom: 10px; }
.archive .article-grid { margin-top: 22px; grid-template-columns: 1fr; max-width: 760px; }

@media (max-width: 1000px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 44px; }
  .topic-grid, .article-grid { grid-template-columns: 1fr; }
  .article-page { padding: 20px 0 0; border-radius: 20px; }
  .article-shell { padding-inline: 16px; }
}
.article-media {
  margin: 28px 0;
}
.article-media img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(13, 18, 16, 0.08);
}
.article-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
}
.hero-media {
  margin-top: 24px;
  overflow: hidden;
}
.hero-media img {
  aspect-ratio: 16 / 10;
  height: clamp(320px, 38vw, 520px);
  object-fit: cover;
  object-position: center 84%;
}
.inline-media {
  margin: 22px 0;
}
