:root {
  color-scheme: light dark;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --ink: #1a1d21;
  --ink-muted: #545b65;
  --rule: #d9dcd8;
  --accent: #2d5bd7;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font);
  font-size: 106.25%;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121418;
    --surface: #1b1e23;
    --ink: #eceef1;
    --ink-muted: #a4abb6;
    --rule: #30343b;
    --accent: #8fb0ff;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main,
footer {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

main {
  padding-block: 3.5rem 3rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wordmark {
  margin: 0 0 2.5rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.wordmark a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.2rem);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 3rem 0 1rem;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 36rem;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.tools {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tool {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: inherit;
  text-decoration: none;
}

.tool:hover {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.tool img {
  flex: none;
  border-radius: 10px;
}

.tool-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.tool-name {
  font-size: 1.15rem;
  font-weight: 720;
}

.tool-domain {
  color: var(--accent);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tool-about {
  margin-top: 0.25rem;
  color: var(--ink-muted);
}

.principles dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
}

.principles dt {
  font-weight: 700;
}

.principles dd {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
}

.contact p {
  margin: 0;
}

footer {
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

footer p {
  max-width: 40rem;
  margin: 0;
}

footer a {
  color: inherit;
}
