@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --surface: #0d1117;
  --panel: #151e26;
  --text: #f1f5fa;
  --muted: #b4c2cf;
  --accent: #64e7c8;
  --line: #30434b;
  font: 16px/1.65 Inter, system-ui, sans-serif;
  background: var(--surface);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #acffe8; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.site-header, .site-footer { background: #101820; }
.site-header { border-bottom: 1px solid var(--line); }
.site-nav, .site-header .container, .site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.4rem;
  padding-block: 1rem;
}
.site-nav nav, nav.site-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.brand { color: var(--text); font-weight: 800; font-size: 1.2rem; }
.site-header a { text-decoration: none; }
.site-header a[aria-current] { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; font-size: .875rem; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.028em; }
h1 { font-size: clamp(2rem, 6vw, 3.7rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
p { margin: 0 0 1.12rem; }
.intro, .lede, .lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.listing, .article { padding-block: clamp(2.5rem, 7vw, 5.5rem) 1rem; }
.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 2.25rem;
}
.card-image { background: #0b1219; align-self: stretch; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-copy { padding: clamp(1.25rem, 4vw, 2.5rem); }
.card-copy h2 { margin: 0 0 .9rem; }
.card-copy h2 a { color: var(--text); text-decoration: none; }
.card-copy h2 a:hover { text-decoration: underline; }
.card-copy p, figcaption { color: var(--muted); }
.text-link { font-weight: 650; }
.article {
  /* The surrounding main container already provides the page gutters. */
  width: min(100%, 66rem);
  overflow-wrap: anywhere;
}
.article h2 { margin: 2.7rem 0 .9rem; }
.article h3 { margin-top: 1.6rem; }
.article figure { margin: 2rem 0; }
.article img { border: 1px solid var(--line); border-radius: 12px; }
.article figcaption { margin-top: .65rem; font-size: .875rem; }
.article blockquote, .article .cta {
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--panel);
}
.article blockquote p:last-child, .article .cta p:last-child { margin-bottom: 0; }
.article li + li { margin-top: .35rem; }
.article nav, .article .byline { color: var(--muted); margin-bottom: 1.25rem; }
@media (max-width: 630px) {
  .article-card { grid-template-columns: minmax(0, 1fr); }
  .card-image img { aspect-ratio: 16 / 9; }
}
