:root {
  --bg: #0b0c0f;
  --fg: #e7e9ee;
  --muted: #b6bcc8;
  --card: #12141a;
  --border: #1f2330;
  --accent: #4da3ff;
  --radius: 14px;
  --maxw: 72rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #0f1222;
    --muted: #5a6477;
    --card: #f7f8fb;
    --border: #e6e9f0;
  }
}

* {
  box-sizing: border-box
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 19px;
  line-height: 1.6
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 2rem 1.25rem
}

header {
  margin: 1rem 0 2rem
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 .25rem
}

h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 .75rem
}

p.lede {
  color: var(--muted);
  margin: .5rem 0 0
}

.grid {
  display: grid;
  gap: 1rem
}

@media (min-width:720px) {
  .grid {
    grid-template-columns: 1fr
  }
}

/* single column up to wide screens */
@media (min-width:1200px) {
  .grid {
    grid-template-columns: 1fr 1fr
  }
}

/* at most 2 per row */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 12px rgba(0, 0, 0, .08);
}

figure {
  margin: 0
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

figcaption {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .5rem
}

a {
  color: var(--accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

footer {
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem
}