@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-variable-italic.woff2")
    format("woff2");
}

:root {
  --font-family:
    "Atkinson Hyperlegible Next", system-ui, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 650;
}

.brand:hover,
.brand:focus,
.brand:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 1.75rem;
  height: auto;
}

.theme-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-control label {
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

.theme-control select {
  width: auto;
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
}

.page-header {
  margin: 2.5rem 0 3rem;
}

.page-header h1 {
  margin: 0;
}

.page-lead {
  max-width: 38rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero {
  margin: 3.5rem auto 4.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero-lead {
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
}

.code-card {
  max-width: 100%;
  margin: 1.75rem auto 0;
  width: max-content;
  text-align: left;
  font-size: 0.8125rem;
}

.code-card > code {
  overflow-wrap: anywhere;
}
