:root {
  color-scheme: light;
  --ink: #142019;
  --muted: #5d6a62;
  --paper: #f7f8f3;
  --line: #dce2da;
  --accent: #2156d9;
  --accent-soft: #e8efff;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% -10%, var(--accent-soft), transparent 36rem),
    var(--paper);
  color: var(--ink);
  font:
    17px/1.65 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 15%);
}

.brand {
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a,
.footer-links a {
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.hero {
  max-width: 900px;
  padding: clamp(78px, 12vw, 150px) 0 clamp(64px, 9vw, 105px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  scroll-margin-top: 24px;
}

.card,
.article-card,
.upcoming,
.latest,
.about {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface), transparent 4%);
  box-shadow: 0 18px 50px rgb(20 32 25 / 0.05);
}

.card {
  min-height: 250px;
  padding: 30px;
}

.card h2,
.upcoming h2,
.about h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.card p,
.about > p:not(.kicker),
.upcoming li {
  color: var(--muted);
}

.upcoming,
.latest,
.about {
  margin-top: 72px;
  padding: clamp(30px, 5vw, 54px);
}

.upcoming ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  margin: 26px 0 0;
  padding-left: 1.1rem;
}

.about {
  scroll-margin-top: 24px;
}

.about > p {
  max-width: 780px;
}

.disclosure {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.latest > h2,
.index-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  padding: 28px;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.article-card p {
  color: var(--muted);
}

.article-label,
.article-date,
.byline {
  color: var(--muted);
  font-size: 0.84rem;
}

.article-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.index-shell,
.article-shell {
  width: min(900px, calc(100% - 40px));
}

.index-hero,
.article-hero {
  padding: clamp(70px, 10vw, 120px) 0 56px;
}

.article-hero h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 1;
}

.byline {
  margin: 28px 0 0;
}

.original-contribution,
.preview-banner {
  border: 1px solid color-mix(in srgb, var(--accent), transparent 65%);
  background: var(--accent-soft);
}

.original-contribution {
  margin-bottom: 52px;
  padding: 22px 24px;
  border-radius: 16px;
}

.preview-banner {
  padding: 10px 20px;
  text-align: center;
  font-size: 0.88rem;
}

.article-body,
.sources,
.related,
.article-disclosure {
  max-width: 760px;
}

.article-body h2,
.sources h2,
.related h2,
.article-disclosure h2 {
  margin: 62px 0 20px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.article-body h3 {
  margin: 38px 0 12px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.article-body p,
.article-body li,
.sources li,
.related li,
.article-disclosure p {
  color: color-mix(in srgb, var(--ink), var(--muted) 25%);
}

.article-body li + li,
.sources li + li,
.related li + li {
  margin-top: 10px;
}

.article-body code {
  padding: 0.12em 0.32em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--line), transparent 28%);
  font-size: 0.9em;
}

.article-body blockquote {
  margin: 32px 0;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}

.article-body blockquote p {
  color: var(--muted);
}

.sources,
.related,
.article-disclosure {
  margin-top: 58px;
  padding-top: 1px;
  border-top: 1px solid var(--line);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.not-found {
  padding-top: 18vh;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .cards,
  .article-grid,
  .upcoming ul {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }

  nav {
    gap: 14px;
  }
}
