@font-face {
  font-family: Newsreader;
  src: url('fonts/Newsreader-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Archivo;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #0f172a;
  --sky: #242f43;
  --paper: #f3f1ec;
  --muted: #b9bec6;
  --line: #373b41;
  --focus: #7e9aff;
  --serif: Newsreader, Georgia, serif;
  --sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--sans);
}

* { box-sizing: border-box; }
body { margin: 0; }

.wrap {
  width: calc(100% - 2 * clamp(20px, 5vw, 64px));
  max-width: 46rem;
  margin-inline: auto;
}

.topbar {
  background: var(--sky);
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}

a {
  color: var(--paper);
  text-underline-offset: .2em;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip:focus { transform: none; }

main { padding-top: clamp(36px, 7vw, 88px); }

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  text-wrap: balance;
}

h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }

p {
  margin: 12px 0 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.65;
}

.intro {
  margin-top: 16px;
  font-size: 1.125rem;
}

section, .site-foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

code {
  color: var(--paper);
  font-size: .95em;
  overflow-wrap: anywhere;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 32px;
}

.site-foot p { margin: 0; }
