:root {
  color-scheme: light;
  --background: #243b5a;
  --surface: #f8f4ec;
  --surface-ink: #1f2937;
  --text: #fffdf8;
  --muted: #e6edf6;
  --accent: #ffd166;
  --border: #9eb0c8;
  --focus: #ffd166;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
  margin: 0;
  min-height: 100vh;
}

.skip-link {
  background: var(--surface);
  color: var(--surface-ink);
  font-weight: 700;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: absolute;
  top: -5rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

main,
footer {
  margin: 0 auto;
  max-width: 52rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

main {
  padding-bottom: 3rem;
  padding-top: 3rem;
}

footer {
  border-top: 1px solid var(--border);
  padding-bottom: 3rem;
  padding-top: 1.5rem;
}

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

h1 {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  margin: 2.25rem 0 0.5rem;
}

p,
li {
  font-size: 1rem;
  max-width: 72ch;
}

a {
  color: var(--text);
  font-weight: 700;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

nav ul,
.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

nav a,
.footer-links a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
}

.lede {
  font-size: 1.2rem;
  max-width: 52ch;
}

.notice {
  background: var(--surface);
  border-left: 0.35rem solid var(--accent);
  border-radius: 0.4rem;
  color: var(--surface-ink);
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
}

.notice p:first-child {
  margin-top: 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice a {
  color: #17466f;
}

.updated {
  color: var(--muted);
}

@media (max-width: 36rem) {
  main {
    padding-top: 2rem;
  }

  nav ul,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .notice {
    border: 2px solid CanvasText;
  }
}
