:root {
  color-scheme: dark;
  --color-primary: #ff8f00;
  --color-muted: #888;
  --color-text: #ccc;
  --color-text-highlight: #f0f0f0;
  --color-background: #151515;
  --color-background-muted: #1b1b1b;
  --color-border: #2a2a2a;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 2rem auto;
  max-width: 760px;
  padding: 0 1rem;
}

/* header + logo */
header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: .75rem;
}

header img.logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  filter: grayscale(100%) brightness(1.2);
}

header a {
  text-decoration: none;
  color: var(--color-text-highlight);
  font-weight: 600;
  letter-spacing: .5px;
}

footer {
  margin-top: 3rem;
  opacity: .6;
  font-size: .9rem;
  padding-top: .75rem;
}

/* links */
a {
  color: var(--color-muted);
  font-weight: 500;
  transition: color .2s ease-in;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

/* lists */
ul, ol {
  margin: 1rem 0 1rem 1.5rem;
}
li {
  margin: .25rem 0;
}

/* tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
}
th, td {
  background: var(--color-background-muted);
  border: 1px solid var(--color-border);
  padding: .5rem .75rem;
}
th {
  background: inherit;
  color: var(--color-muted);
  text-align: left;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* code + pre */
pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
code {
  background: var(--color-background-muted);
  padding: .15rem .35rem;
  border-radius: .3rem;
  color: var(--color-text);
}
pre {
  overflow-x: auto;
  background: var(--color-background-muted);
  color: var(--color-text);
  padding: .75rem;
  border-radius: .5rem;
  border: 1px solid var(--color-border);
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* headings */
h1, h2, h3, h4, h5 {
  color: var(--color-text-highlight);
  margin-top: 2rem;
  margin-bottom: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
}
