:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f2f2f2;
    --muted: #9a9a9a;
    --line: #242424;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

header,
footer {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header .mark {
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wordmark {
  margin: 0;
  font-size: clamp(3.5rem, 14vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
}

.wordmark span,
.mark span {
  color: var(--muted);
}

.tagline {
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 28rem;
}

.code {
  margin: 0;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.08em;
}

h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.back {
  margin-top: 2rem;
}

footer {
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a,
.link {
  color: inherit;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.prose {
  max-width: 40rem;
  line-height: 1.6;
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 650;
}

.prose p,
.prose ul {
  margin: 0.5rem 0;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.consent p {
  margin: 0;
  flex: 1 1 16rem;
}

.consent a {
  color: inherit;
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
}

.consent-actions button {
  min-width: 6rem;
  padding: 0.5rem 1rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 0.375rem;
  cursor: pointer;
}
