:root {
  color-scheme: light;
  --ink: #16221d;
  --muted: #5e6b65;
  --background: #f7f8f4;
  --surface: #ffffff;
  --line: #d9ded8;
  --primary: #176b4d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--ink);
  line-height: 1.6;
}

body {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid #f3c84b;
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header__inner,
main,
.site-footer__inner {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.site-header__inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 750;
  text-decoration: none;
}

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

.site-nav a {
  font-weight: 600;
}

main {
  min-height: calc(100vh - 10rem);
  padding-block: clamp(3rem, 10vw, 6rem);
}

.home {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 14rem);
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.5rem);
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

p,
li {
  font-size: 1rem;
}

.lede {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.primary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  font-weight: 700;
}

.document h1 {
  max-width: none;
  font-size: clamp(2rem, 6vw, 3rem);
}

.document-meta {
  margin-block: 1.25rem 2rem;
  color: var(--muted);
}

code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer__inner {
  padding-block: 1.5rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 32rem) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding-block: 0.85rem;
  }

  main {
    padding-block: 2.5rem;
  }
}
