@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/outfit-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/AtkinsonHyperlegibleNext-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2");
}

:root {
  --bg: #000;
  --raised: #111;
  --line: #2a2a2a;
  --text: #fff;
  --muted: #c8c8c8;
  --cyan: #6ee6ea;
  --blue: #557ee0;
  --header: "Outfit", "Atkinson Hyperlegible Next", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", sans-serif;
  --wrap: 44rem;
  --pad: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cyan);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
  color: var(--bg);
}

.wrap {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.site-footer .wrap {
  padding-block: 1rem 1.35rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--header);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.brand img {
  width: 3rem;
  height: 3rem;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-underline-offset: 0.28em;
}

main {
  padding-block: 2.5rem 3.5rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--header);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.5rem;
}

h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.125rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 38rem;
}

.muted {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem 0.15rem;
}

.cards h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.panel {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.todo {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--blue);
  border-radius: 0.75rem;
  background: #0a0a0a;
}

.todo strong {
  color: var(--blue);
}

.toc {
  padding-left: 1.2rem;
}

.toc a {
  text-decoration-thickness: 1px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--text);
}

.site-footer p {
  margin: 0;
  flex: 1 1 16rem;
}

.fine {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

code {
  font-family: "Atkinson Hyperlegible Next", ui-monospace, monospace;
  font-size: 0.95em;
}

@media (max-width: 40rem) {
  h1 {
    font-size: 2rem;
  }

  main {
    padding-block: 1.75rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  a,
  .nav a,
  .site-footer a,
  .kicker,
  .todo strong {
    color: #000;
  }

  .site-header,
  .site-footer,
  .skip {
    border-color: #000;
  }

  .cards li,
  .todo {
    background: #fff;
    border-color: #000;
  }
}
