.skip-link {
  position: fixed;
  z-index: 10;
  top: var(--space-3);
  left: var(--space-3);
  padding: 0.55rem 0.8rem;
  color: var(--background);
  background: var(--foreground);
  transform: translateY(-200%);
}

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

.shell {
  width: min(calc(100% - 2 * var(--space-5)), var(--content-width));
  margin-inline: auto;
}

.section-border {
  border-top: 1px solid var(--border);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 3.25rem;
  height: auto;
}

.nav-links,
.actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.nav a,
.actions a,
.site-footer a {
  color: var(--foreground);
  text-underline-offset: 0.28em;
  text-decoration-color: transparent;
  transition: text-decoration-color 120ms ease;
}

.nav a:hover,
.actions a:hover,
.site-footer a:hover {
  text-decoration-color: currentColor;
}

.hero {
  display: grid;
  justify-items: center;
  padding-block: clamp(6rem, 15vw, 11rem);
  text-align: center;
}

.hero-mark {
  width: min(24rem, 68vw);
  height: auto;
  margin-bottom: var(--space-6);
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.closing h2 {
  margin: 0;
  color: var(--foreground);
  font-weight: 560;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: none;
  font-size: clamp(3rem, 6.2vw, 5.5rem);
  line-height: 0.95;
  white-space: nowrap;
}

.hero-copy {
  margin: var(--space-5) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.actions {
  justify-content: center;
  margin-top: var(--space-5);
}

.actions a {
  padding: 0.45rem 0;
  font-weight: 620;
}

.example {
  padding-block: clamp(5rem, 11vw, 8rem);
}

.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(24rem, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.section-intro h2,
.closing h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.section-intro > p:last-child {
  max-width: 34rem;
  margin-top: var(--space-4);
  color: var(--muted);
}

.code-sample {
  overflow: hidden;
  border: 1px solid #292929;
  background: var(--code-background);
}

.code-label {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #303030;
  color: #9c9c9c;
  font: 0.75rem/1.4 var(--font-mono);
}

.code-sample pre {
  overflow-x: auto;
  margin: 0;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  color: #f2f2ef;
  font: 0.9rem/1.8 var(--font-mono);
}

.yaml-key {
  color: #d6d6d0;
}

.yaml-string {
  color: #a9c8ae;
}

.command {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid #303030;
  color: #a7a7a2;
  font-family: var(--font-mono);
}

.command code {
  color: #f2f2ef;
}

.flow {
  grid-column: 1 / -1;
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.5rem);
  align-items: center;
  justify-content: center;
  padding-top: var(--space-5);
  color: var(--muted);
  font-family: var(--font-mono);
}

.flow strong {
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  letter-spacing: -0.08em;
}

.principles {
  padding-block: clamp(4rem, 9vw, 6rem);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.principle-list > div {
  min-height: 9rem;
  padding: 0 var(--space-5);
  border-left: 1px solid var(--border);
}

.principle-list > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.principle-list dt {
  color: var(--foreground);
  font-size: 1.1rem;
  font-weight: 650;
}

.principle-list dd {
  max-width: 18rem;
  margin: var(--space-3) 0 0;
  color: var(--muted);
}

.closing {
  padding-block: clamp(6rem, 14vw, 10rem);
  text-align: center;
}

.closing-mark {
  width: 6rem;
  height: auto;
  margin-bottom: var(--space-5);
}

.site-footer {
  padding-block: var(--space-5);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-content p {
  margin: 0;
}

.footer-content nav {
  justify-content: flex-end;
}

.footer-brand {
  font-size: 0.9rem;
}

.footer-brand img {
  width: 2.5rem;
}

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

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 2 * var(--space-4)), var(--content-width));
  }

  .nav {
    min-height: 4rem;
  }

  .nav-links {
    gap: var(--space-3);
  }

  .hero {
    padding-block: 5rem 6rem;
  }

  .hero h1 {
    white-space: normal;
  }

  .example-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .flow {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .principle-list > div {
    min-height: auto;
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .principle-list > div:first-child {
    border-top: 0;
  }

  .footer-content {
    grid-template-columns: 1fr auto;
    gap: var(--space-3);
  }

  .footer-content > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
