:root {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #f2efe1;
  background: #211e21;
}

body {
  margin: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem;
}

nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem;
}

a {
  color: #a6192e;
  text-underline-offset: 0.15em;
}

img {
  max-width: 100%;
  height: auto;
}

pre {
  overflow-x: auto;
}

html {
  scroll-behavior: smooth;
}

main h2[id] {
  scroll-margin-top: 8rem;
}

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