:root {
  --background: #121416;
  --foreground: #d6d6d6;
  --accent: #f04a4a;
  --muted: #8a8a8a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100%;
  max-width: 720px;
  margin: 64px auto;
  padding: 0 10px;
  color: var(--foreground);
  background: var(--background);
  font-family: "Berkeley Mono", "Berkeley Mono Variable", "SF Mono",
    "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#maincontent,
.not-found {
  max-width: 46em;
  margin: 18px auto;
}

h1 {
  margin: 0 0 2px;
  color: var(--foreground);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

p {
  max-width: 58ch;
  margin: 1em 0;
}

strong {
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.links {
  margin-top: 2.75em;
}

.contact-link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--accent);
  color: var(--background);
  background: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--foreground);
  background: transparent;
  text-decoration: none;
}

.not-found-body {
  background: var(--background);
}

.not-found h1 {
  font-size: 1.2rem;
}

@media (max-width: 680px) {
  body {
    margin-top: 36px;
    margin-bottom: 36px;
  }
}
