:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --ink: #282723;
  --muted: #706d65;
  --accent: #b34227;
  background: var(--paper);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

::selection {
  background: #eacbbd;
  color: var(--ink);
}

.page {
  max-width: 800px;
  padding: 32px 32px 24px;
}

.masthead {
  margin-bottom: 80px;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  display: flex;
  align-items: center;
  gap: 0.65ch;
  font-size: inherit;
  font-weight: 500;
}

.cursor {
  display: inline-block;
  width: 0.65ch;
  height: 1em;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

section + section {
  margin-top: 28px;
}

h2 {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

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

h2 .syntax {
  margin-right: 0.2ch;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li {
  padding-left: 2ch;
  text-indent: -2ch;
  overflow-wrap: anywhere;
}

.links li + li {
  margin-top: 8px;
}

.link-target {
  text-indent: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

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

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

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 1;
  padding: 6px 12px;
  background: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .page {
    padding: 24px;
  }

  .masthead {
    margin-bottom: 64px;
  }

  h2 {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}

@media print {
  .page {
    max-width: none;
    padding: 0;
  }

  .masthead {
    margin-bottom: 48px;
  }

  .skip-link {
    display: none;
  }
}
