:root {
  color-scheme: dark;
  --paper: #171314;
  --ink: #f1e8df;
  --dim: #b4a69a;
  --line: #514840;
  --accent: #ff8a91;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #090809;
  font: 15px/1.48 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

a {
  color: inherit;
}

.sheet {
  width: min(940px, calc(100% - 32px));
  min-height: 100vh;
  margin: auto;
  padding: 30px 48px 60px;
  background: var(--paper);
  box-shadow: 0 0 80px #000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.links a {
  color: var(--dim);
  text-decoration: none;
}

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

footer {
  margin-top: 43px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 650px) {
  .sheet {
    width: 100%;
    padding: 22px 17px 45px;
  }

  .nav {
    align-items: flex-start;
  }

  .links {
    justify-content: flex-end;
  }
}
