/* One stylesheet, system fonts only: nothing here reaches off this origin. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --fg: #1c1b19;
  --muted: #5d5a55;
  --rule: #e2ded7;
  --accent: #b4661f;
  --code-bg: #f2efe9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --fg: #e9e6e1;
    --muted: #a09b93;
    --rule: #2b2a28;
    --accent: #d98c40;
    --code-bg: #1c1c1b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 3rem 1.5rem 2rem;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

main,
footer {
  max-width: 42rem;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0.75rem 0 0;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 34rem;
}

section {
  margin-top: 3rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.tools {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.tools dt {
  font-weight: 600;
}

.tools dd {
  margin: 0.125rem 0 0;
  color: var(--muted);
}

pre {
  margin: 0 0 1rem;
  padding: 1rem 1.125rem;
  overflow-x: auto;
  background: var(--code-bg);
  border-radius: 6px;
  border: 1px solid var(--rule);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9375rem;
}

pre code {
  line-height: 1.75;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.links li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

.links .name {
  flex: 1 1 12rem;
  font-weight: 600;
}

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

a:hover {
  text-decoration: none;
}

.fine {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
