:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #52605b;
  --paper: #f7faf8;
  --surface: #ffffff;
  --line: #cdd8d3;
  --brand: #0c5c45;
  --brand-strong: #073f31;
  --brand-soft: #dff3eb;
  --accent: #b63f2e;
  --code: #111815;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: var(--code);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.hero {
  min-height: min(44rem, calc(100svh - 4.5rem));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: 5rem 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: 4.5rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: 2.15rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lede {
  max-width: 42rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 1.18rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--brand);
}

.button.primary:hover {
  color: #ffffff;
  background: var(--brand-strong);
}

.button.secondary {
  color: var(--brand);
  background: transparent;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.proof li::before {
  content: "✓";
  margin-right: 0.45rem;
  color: var(--brand);
  font-weight: 900;
}

.terminal {
  margin: 0;
  overflow: hidden;
  border: 1px solid #29342f;
  border-radius: 8px;
  background: var(--code);
  box-shadow: 0 24px 60px rgb(23 32 29 / 18%);
}

.terminal figcaption {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #31403a;
  color: #b6c9c1;
  font-size: 0.78rem;
  font-weight: 700;
}

.terminal pre,
.code-block pre {
  overflow-x: auto;
  margin: 0;
}

.terminal pre {
  padding: 1.5rem;
  color: #eaf7f1;
  font-size: 0.9rem;
  line-height: 1.7;
}

.workflow,
.projects,
.install {
  padding-block: 5.5rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
  counter-reset: steps;
}

.steps li {
  min-height: 13rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  counter-increment: steps;
}

.steps li:last-child {
  border-right: 0;
}

.steps li::before {
  content: "0" counter(steps);
  display: block;
  margin-bottom: 2.25rem;
  color: var(--accent);
  font-weight: 800;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 0.6rem;
  color: var(--muted);
}

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

.project-grid article {
  min-height: 33rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-shot {
  height: 16rem;
  display: grid;
  place-items: center;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef3f1;
}

.product-shot img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-shot.wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.product-shot figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.project-grid article p:not(.project-index) {
  color: var(--muted);
}

.project-grid article a {
  margin-top: auto;
  font-weight: 750;
}

.project-index {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
}

.install {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem 3rem;
}

.install .section-heading {
  grid-row: 1 / span 4;
}

.code-block {
  overflow: hidden;
  border: 1px solid #29342f;
  border-radius: 8px;
  background: var(--code);
}

.code-block > p {
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #31403a;
  color: #b6c9c1;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.code-block pre {
  padding: 1rem;
  color: #eaf7f1;
  font-size: 0.86rem;
}

.note {
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin-bottom: 0;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 4rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .steps,
  .project-grid,
  .install {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .install .section-heading {
    grid-row: auto;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
