:root {
  color-scheme: light dark;
  --page: #ffffff;
  --ink: #1c1c1c;
  --muted: #555555;
  --rule: #d9d9d9;
  --focus: #005fcc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1.125rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap { width: min(100% - 2rem, 44rem); margin-inline: auto; }

.site-header, .site-footer { border-color: var(--rule); border-style: solid; }
.site-header { border-width: 0 0 1px; padding-block: 1rem; }
.site-footer { border-width: 1px 0 0; margin-top: 5rem; padding-block: 1rem; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }

.site-name { color: inherit; font-weight: 700; text-decoration-thickness: .12em; text-underline-offset: .2em; }
main { padding-block: 5rem; }
.intro { max-width: 39rem; }
h1, h2 { line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.35rem, 8vw, 4.75rem); letter-spacing: -.04em; }
h2 { margin: 5rem 0 1rem; font-size: 1.5rem; }
p { margin-block: 1rem; }

a { color: #004da8; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 1;
  padding: .5rem .75rem;
  background: var(--page);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

@media (prefers-color-scheme: dark) {
  :root { --page: #151515; --ink: #f4f4f4; --muted: #bdbdbd; --rule: #555; --focus: #8fc4ff; }
  a { color: #9dceff; }
}
