:root {
  --bg: #000;
  --fg: #e7e5e2;
  --accent: #f81018;
  --font: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --text: clamp(0.875rem, 0.78rem + 0.28vw, 1.125rem);
  --gutter: clamp(1rem, 2.2vw, 2.5rem);
  --column: min(48rem, 768px, calc(100% - var(--gutter) * 2));
}

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  font-size: var(--text);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-140%);
  background: var(--bg);
  color: var(--fg);
  padding: 0.35em 0.6em;
  font-size: 0.9em;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell,
.hand {
  width: var(--column);
  margin-inline: auto;
}

.hand {
  margin-block: clamp(1.25rem, 3.5vh, 2.75rem) clamp(0.85rem, 2vh, 1.75rem);
}

.hand canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 200 / 63;
}

.page {
  padding: 0 0 clamp(2.75rem, 1.4rem + 6vh, 8rem);
}

.prose p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

.prose a {
  color: inherit;
  text-decoration: none;
}

.prose a span {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose a:hover span {
  color: #fff;
  text-decoration-thickness: 2px;
}

.prose .favicon {
  width: 1em;
  height: 1em;
  margin-right: 0.28em;
  vertical-align: -0.18em;
  border-radius: 0.18em;
}

.prose .favicon[src$="github.com.png"] {
  filter: invert(1);
}

.prose strong {
  font-weight: 700;
}

.prose em {
  font-style: italic;
}
