:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1f2530;
  --muted: #5b6472;
  --rule: #e2e0d8;
  --accent: #b86e0a;
  --accent-soft: #fbefd9;
  --done: #2f8a55;
  --late: #b53d35;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #12151b;
    --surface: #1f2530;
    --text: #e8eaed;
    --muted: #98a1af;
    --rule: #3a4352;
    --accent: #e8a33d;
    --accent-soft: #2c2a22;
    --done: #4fb477;
    --late: #ee8c84;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 1;
}

header.site,
footer.site {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

header.site .brand {
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

header.site nav,
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  margin-top: 48px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}

h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15;
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 23px;
  margin: 40px 0 8px;
  padding-top: 8px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 4px;
}

p,
li {
  max-width: 68ch;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.summary {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}

.summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 520px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 600;
}

.toc {
  columns: 2 240px;
  padding-left: 20px;
  font-size: 15px;
}

/* Landing page */
.hero {
  padding: 24px 0 8px;
}

.hero p.lede {
  font-size: 20px;
  color: var(--muted);
  margin: 8px 0 24px;
}

.button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px;
}

.features h3 {
  margin: 0 0 4px;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.rail {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  border-left: 2px solid var(--rule);
}

.rail li {
  position: relative;
  padding: 4px 0 12px 20px;
}

.rail li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.rail li.done::before {
  background: var(--done);
}

.rail li.late::before {
  background: var(--late);
}

.rail time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}
