:root {
  --bg: #f5f7f7;
  --surface: #ffffff;
  --text: #172020;
  --text-muted: #5c6668;
  --border: #cdd8d7;
  --brand: #00a3a3;
  --brand-strong: #017d7d;
  --focus: #00a3a3;
  --maxw: 45rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1212;
    --surface: #101b1b;
    --text: #f5f8f8;
    --text-muted: #9db2ce;
    --border: #22302f;
    --brand: #33c7c7;
    --brand-strong: #6fe0e0;
    --focus: #33c7c7;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}

header.site img {
  height: 1.75rem;
  width: auto;
}

header.site nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

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

a:hover {
  color: var(--brand-strong);
}

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

h1 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3125rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 2.75rem 0 0.75rem;
  scroll-margin-top: 1.5rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

strong {
  font-weight: 700;
}

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

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.ack {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 1rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.toc p {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 34rem) {
  .toc ol {
    columns: 1;
  }
}

footer.site {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

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

/* Landing page */
.hero {
  text-align: center;
  padding: 4rem 1.25rem 2rem;
}

.hero img {
  height: 2.5rem;
  width: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.25rem;
}

.hero .lead {
  max-width: 32rem;
  margin: 0.75rem auto 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
}

.card:hover {
  border-color: var(--brand);
  color: var(--text);
}

.card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.card span {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
