:root {
  --bg: #fbfaf7;
  --text: #1f2421;
  --muted: #59625c;
  --accent: #2f6b4f;
  --line: #dcdfd8;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151916;
    --text: #e9ece7;
    --muted: #a3ada5;
    --accent: #7fc8a0;
    --line: #2c332e;
    --card: #1c211e;
  }
}

* {
  box-sizing: border-box;
}

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

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

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

header.site a.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

nav a {
  margin-right: 1rem;
}

nav a:last-child {
  margin-right: 0;
}

a {
  color: var(--accent);
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

p,
ul {
  margin: 0.75rem 0;
}

li {
  margin: 0.35rem 0;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--card);
  font-size: 0.95rem;
}

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

th {
  font-weight: 600;
}

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
}

footer.site {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 30rem) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    left: -9999px;
  }

  tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
  }

  td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  td:last-child {
    border-bottom: 0;
  }
}
