:root {
  color-scheme: light dark;
  --background: #ffffff;
  --text: #25282d;
  --heading: #15171a;
  --muted: #5f6670;
  --link: #245fa8;
  --link-hover: #17467d;
  --focus: #2f72c4;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.site-header,
main {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.site-header {
  padding-top: 1.5rem;
}

.site-header a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

main {
  padding-block: 2.5rem 4rem;
}

article > :first-child {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.025em;
}

h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: -0.012em;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  font-size: 1.125rem;
}

p {
  margin-block: 0 1.2rem;
}

ul,
ol {
  margin-block: 0 1.2rem;
  padding-left: 1.5rem;
}

li {
  padding-left: 0.25rem;
}

li + li {
  margin-top: 0.4rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  border-radius: 0.125rem;
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

strong {
  color: var(--heading);
  font-weight: 650;
}

@media (min-width: 40rem) {
  .site-header,
  main {
    width: min(100% - 4rem, 48rem);
  }

  .site-header {
    padding-top: 2rem;
  }

  main {
    padding-block: 3.5rem 5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151719;
    --text: #d7d9dc;
    --heading: #f4f5f6;
    --muted: #adb2b9;
    --link: #8fc2ff;
    --link-hover: #bad9ff;
    --focus: #8fc2ff;
  }
}
