:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --accent: #005f73;
  --accent-hover: #0a9396;
  --muted: #555555;
  --border: #dddddd;
  --focus: #005f73;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #eeeeee;
    --accent: #80e7e0;
    --accent-hover: #a8f0eb;
    --muted: #aaaaaa;
    --border: #333333;
    --focus: #80e7e0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background-color: var(--bg);
  color: var(--accent);
  text-decoration: none;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

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

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

.container {
  max-width: 72ch;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

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

.site-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-title a {
  color: var(--fg);
  text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
  color: var(--accent);
  text-decoration: underline;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

nav a {
  font-weight: 500;
}

main {
  padding: 2rem 0;
}

main h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-top: 0;
}

main h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

main h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

main ul,
main ol {
  padding-left: 1.5rem;
}

main li {
  margin-bottom: 0.5rem;
}

main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95em;
  background-color: var(--border);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--muted);
}

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

@media (min-width: 40rem) {
  header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-title {
    margin: 0;
  }
}
