:root {
  color-scheme: light;
  --background: #f6f7f4;
  --surface: #ffffff;
  --text: #1d292d;
  --muted: #59676c;
  --accent: #126a73;
  --border: #d4dcda;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 1rem;
  line-height: 1.65;
}

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

a:hover {
  text-decoration-thickness: 0.14em;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 1.45rem;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
}

.home {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.home-page {
  width: min(100%, 32rem);
}

.home-page h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 8vw, 2.5rem);
}

.home-page nav {
  display: flex;
  gap: 1.25rem;
}

.page-shell {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.quiet-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  max-width: 48rem;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
}

main > section:not(.hero) {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tool {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.tool p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.tool-meta {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool .tester-link {
  margin-top: 1rem;
  color: var(--text);
  font-size: 0.92rem;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.25rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  line-height: 1.55;
}

.note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-intro {
  max-width: 42rem;
  color: var(--muted);
}

.pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1.4fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pipeline > .flow-node {
  margin-top: 1.7rem;
}

.pipeline-options,
.flow-node {
  display: grid;
  gap: 0.4rem;
}

.flow-node {
  min-width: 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.pipeline-core {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.pipeline-core strong:not(:first-of-type) {
  margin-top: 0.75rem;
}

.pipeline-label {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-node .pipeline-label {
  margin-bottom: 0.35rem;
}

.flow-node span {
  color: var(--muted);
  font-size: 0.9rem;
}

.flow-arrow {
  align-self: center;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.relationship > p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  padding-block: 2rem 3rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

@media (max-width: 48rem) {
  .tool-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 4rem;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline > .flow-node {
    margin-top: 0;
  }

  .pipeline-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 28rem) {
  .page-shell {
    width: min(100% - 1.5rem, 68rem);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pipeline-options {
    grid-template-columns: 1fr;
  }
}
