:root {
  color-scheme: light;
  --paper: #D8DBE0;
  --ink: #0A0A0A;
  --muted: #4b515c;
  --line: rgba(0, 0, 0, .14);
  --accent: #35465e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(0, 0, 0, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link {
  position: absolute;
  top: .75rem;
  left: 1.5rem;
  padding: .5rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.site-header {
  max-width: 76rem;
  margin-inline: auto;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}
.brand img { width: 27px; height: 27px; }
.back-link { font-size: .875rem; }
main {
  width: min(100% - 3rem, 48rem);
  margin: clamp(2rem, 6vw, 5rem) auto 4rem;
  overflow-wrap: anywhere;
}
.document-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.app-name {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .875rem;
}
h1 {
  margin: 0 0 1.25rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.update-date { margin: 0; color: var(--muted); font-size: .875rem; }
section { margin-top: 2.5rem; }
h2 { margin: 0 0 1rem; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1.25rem; line-height: 1.4; font-weight: 400; }
p { margin: 0 0 1.25rem; }
.document-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.document-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.document-footer p { margin: 0; }
@media print {
  body { background: #fff; color: #000; }
  .site-header, .skip-link, .document-footer nav { display: none; }
  main { width: 100%; margin: 0; }
  h2 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
}
