:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #354454;
  --surface: #ffffff;
  --accent: #075985;
  --focus: #d97706;
  --border: #b8c2cc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.content-width {
  width: min(100% - 2rem, 70ch);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #f4f8fb;
}

.site-name {
  margin: 0;
  padding: 1rem 0;
  font-weight: 700;
}

main {
  padding: 2rem 0 3rem;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  margin-top: 0;
  font-size: clamp(2rem, 6vw, 3rem);
}

h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
}

p,
li {
  max-width: 70ch;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #063f5c;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-120%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.notice {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

code {
  overflow-wrap: anywhere;
}

@media (max-width: 40rem) {
  .content-width {
    width: min(100% - 1.25rem, 70ch);
  }

  main {
    padding-top: 1.5rem;
  }
}
