/* Each platform's interface font, named, rather than system-ui: Windows maps
   that to its CJK font under some locales, which draws Latin text poorly. */
:root {
  --background: #fff;
  --text: #171717;
  --muted: #595959;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111;
    --text: #ececec;
    --muted: #a0a0a0;
  }
}

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

html {
  background: var(--background);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(4rem, 20vh, 10rem) clamp(1.5rem, 6vw, 3rem) 4rem;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.subtitle {
  margin: 0.375rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.note {
  margin: 2.5rem 0 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.2em;
  border-radius: 1px;
}
