:root,
[data-theme="light"] {
  color-scheme: light;
  --sheet: #f5f5f2;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --copper: #a85214;
}

[data-theme="dark"] {
  color-scheme: dark;
  --sheet: #101416;
  --ink: #f1f3f4;
  --muted: #a8b3ba;
  --line: #30383d;
  --copper: #f28c3b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--sheet);
  color: var(--ink);
  font-family: Roboto, system-ui, sans-serif;
}

body {
  margin: 0;
}

::selection {
  background: color-mix(in srgb, var(--copper) 28%, var(--sheet));
  color: var(--ink);
}

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

a {
  color: var(--copper);
  text-underline-offset: 0.18em;
}

.wrap {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.25rem;
}

nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

nav a {
  color: var(--ink);
  text-decoration: none;
}

nav a:hover,
.brand:hover {
  color: var(--copper);
}

h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.125rem;
  font-weight: 800;
}

p,
li {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  max-width: 68ch;
}

ul {
  padding-left: 1.15rem;
}
