html {
  --masthead-height: 4.75rem;
  scroll-padding-block-start: calc(var(--masthead-height) + 1.25rem);
}
@media (pointer: fine) {
  html { scrollbar-gutter: stable both-edges; }
}
body {
  --page-inset: clamp(1rem, 3.5vw, 2.5rem);
  margin: 0;
  padding: 0 var(--page-inset) var(--page-inset);
}
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-block: 0.375rem;
  letter-spacing: normal;
  background: #191919;
}
.masthead-inner {
  width: min(100%, 64rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.masthead-logo { display: block; width: var(--masthead-height); height: auto; transform: scale(1.15); }
.masthead nav { display: flex; align-items: center; gap: 0.5rem; }
.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: clamp(0.6rem, 2vw, 1rem);
  color: #c4c9c5;
  font: 0.875rem/1.3 ui-monospace, monospace;
  text-decoration: none;
  border-radius: 0.25rem;
}
.masthead nav a:hover, .masthead nav a:focus-visible { color: #b6efd5; background: #252c28; }
.masthead nav a[aria-current="page"] { color: #8de3b9; background: #252c28; }
@media (max-width: 48rem) {
  html { --masthead-height: 3.6rem; }
  .masthead-inner { max-width: 40rem; }
}
@media (min-width: 64rem) {
  html { --masthead-height: 4.25rem; }
  .masthead-inner { max-width: 60rem; }
}
@media (max-width: 24rem) {
  .masthead nav { gap: 0.15rem; }
  .masthead nav a { padding-inline: 0.35rem; }
}
