:root {
  color-scheme: light dark;
  --background: #eef8f4;
  --text: #173b41;
  --heading: #0e5d6b;
  --rule: #b6d8cf;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b2129;
    --text: #e3f1ed;
    --heading: #91ddcb;
    --rule: #345962;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem / 1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  box-sizing: border-box;
  max-width: 50rem;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

h1, h2, a {
  color: var(--heading);
}

h1, h2 {
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
h2 { margin-top: 2rem; font-size: 1.25rem; }

header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

a {
  overflow-wrap: anywhere;
  text-underline-offset: .18em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: .2em;
}
