@font-face {
  font-family: "InterVariable";
  src: url("./InterVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --still-blue: #2a47e8;
  --ink: #0b1430;
  --ink-secondary: #4a5170;
  --surface: #fff;
  --surface-raised: #f6f7fb;
  --border: #e3e6f0;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: var(--ink);
  background: var(--surface);
  font-family:
    "InterVariable",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  font-optical-sizing: auto;
  line-height: 1.6;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 0.25rem;
  font-size: 1.9rem;
}

h2 {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1.25rem;
}

h3 {
  margin-block: 1.5rem 0.25rem;
  font-size: 1.05rem;
}

.updated {
  margin-top: 0;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.lede {
  color: var(--ink-secondary);
}

a {
  color: var(--still-blue);
}

a:focus-visible {
  outline: 2px solid var(--still-blue);
  outline-offset: 3px;
}

table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-raised);
}

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.4rem 0;
}

code {
  font-size: 0.95em;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --still-blue: #5a74ff;
    --ink: #eef1fa;
    --ink-secondary: #a7aec8;
    --surface: #0b0f1a;
    --surface-raised: #141a2b;
    --border: #232a40;
  }
}
