:root {
  color-scheme: light;
  --bg: #fafafa;
  --ink: #171717;
  --muted: #737373;
  --line: #e5e5e5;
  --code: #f5f5f5;
  --link: #14516e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "DejaVu Sans", "Liberation Sans", sans-serif;
}

header,
main,
footer {
  width: min(1040px, calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.brand img {
  display: block;
}

.alpha,
figcaption,
dd {
  color: var(--muted);
}

.alpha {
  font-size: 12px;
  font-weight: 400;
}

header code,
pre {
  font: 13px/1.4 "DejaVu Sans Mono", "Liberation Mono", ui-monospace, monospace;
}

header code {
  padding: 0.4rem 0.6rem;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
}

main {
  padding: 2.5rem 0 1rem;
}

h1,
h2 {
  margin: 0 0 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 20px;
}

p {
  margin: 0 0 0.75rem;
  max-width: 40rem;
}

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

figure {
  margin: 1.5rem 0 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
}

dl {
  margin: 0;
}

dt {
  margin-top: 0.85rem;
  font-weight: 500;
}

dd {
  margin: 0.15rem 0 0;
}

dd code,
footer code {
  font: 0.9em "DejaVu Sans Mono", "Liberation Mono", ui-monospace, monospace;
}

footer {
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

pre {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 800px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  header code {
    white-space: normal;
  }

  .split {
    grid-template-columns: 1fr;
  }
}
