:root {
  --bg: #ffffff;
  --soft: #f3f2f0;
  --text: #1c1c1e;
  --mute: #8c8a86;
  --dim: #bdbab4;
  --link: #b08a1e;
  --mark-bg: #1c1c1e;
  --mark-fg: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --soft: #222222;
    --text: #f3f1ec;
    --mute: #8e8c88;
    --dim: #4f4e4b;
    --link: #d9b84e;
    --mark-bg: #f3f1ec;
    --mark-fg: #161616;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main,
header.site,
footer.site {
  max-width: 36rem;
  margin: 0 auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 0.6rem;
  background: var(--mark-bg);
  color: var(--mark-fg);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
}

header.site .wordmark {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.4rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.tagline {
  color: var(--mute);
  margin-bottom: 2rem;
}

.doc-meta {
  color: var(--mute);
  font-size: 0.95rem;
  border-left: 2px solid var(--dim);
  padding-left: 0.9rem;
  margin-bottom: 1.75rem;
}

.doc-meta p {
  margin: 0 0 0.2rem;
}

.callout {
  background: var(--soft);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.contact {
  font-size: 1.15rem;
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--dim);
  margin: 2.5rem 0 1.5rem;
}

footer.site {
  color: var(--mute);
  font-size: 0.95rem;
  margin-top: 3rem;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 26rem) {
  body {
    padding: 1.5rem 1.1rem 2.5rem;
    font-size: 16px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .lede {
    font-size: 1.05rem;
  }
}
