/* One small stylesheet for every page on leetdreet.com. No scripts, no fonts
   from other sites, no trackers: the pages load nothing but themselves. */

:root {
  --ink: #1f2428;
  --muted: #57606a;
  --paper: #ffffff;
  --line: #d8dee4;
  --link: #1f5fbf;
  --note: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf3;
    --muted: #9da7b1;
    --paper: #14171a;
    --line: #30363d;
    --link: #79b0ff;
    --note: #1c2126;
  }
}

* {
  box-sizing: border-box;
}

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

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

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

header {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

header a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

footer {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 1rem 0 0.25rem;
}

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

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}

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

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.updated {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.note {
  background: var(--note);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

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