:root {
  color-scheme: dark;
  font-family: "IBM Plex Sans", sans-serif;
  color: #f1f5f9;
  background: #020617;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background: #020617;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 4px;
}

pre,
code {
  font-family: "IBM Plex Mono", monospace;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.shell {
  width: min(calc(100% - 2rem), 72rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #0f172a;
  transform: translateY(-200%);
}

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

.site-header {
  border-bottom: 1px solid #334155;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-inner {
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #d97706;
  border-radius: 0.375rem;
  color: #fbbf24;
  font-family: "IBM Plex Mono", monospace;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
}

.primary-nav a,
.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.primary-nav a {
  text-decoration: none;
}

.primary-nav a:hover,
.text-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(32rem, 1.1fr);
  align-items: center;
  gap: 4rem;
  padding-block: 6rem 5rem;
}

.hero-copy,
.source-inspector {
  min-width: 0;
}

.availability {
  margin: 0 0 1.5rem;
  color: #fbbf24;
  font-size: 0.875rem;
  font-weight: 600;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 1.5rem;
  font-size: 6rem;
  line-height: 0.96;
  font-weight: 600;
}

.hero-summary {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding-inline: 1.25rem;
  border-radius: 0.375rem;
  color: #fff;
  background: #b45309;
  font-weight: 600;
  text-decoration: none;
}

.text-link {
  color: #cbd5e1;
  font-weight: 500;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  color: #94a3b8;
  font-size: 0.875rem;
  list-style: none;
}

.proof-list li {
  padding-inline: 1rem;
  border-left: 1px solid #334155;
}

.proof-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.source-inspector {
  margin: 0;
  overflow: hidden;
  border: 1px solid #475569;
  border-radius: 0.5rem;
  background: #0f172a;
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}

.source-inspector figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #334155;
  color: #94a3b8;
  background: #1e293b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.status {
  color: #fbbf24;
}

.source-inspector pre {
  margin: 0;
  padding-block: 1.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.75rem;
}

.code-line {
  display: grid;
  min-width: 30rem;
  grid-template-columns: 3rem minmax(16rem, 1fr) 5rem;
  padding-inline: 1.5rem;
  white-space: pre;
}

.code-line::before {
  content: attr(data-line);
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.code-line::after {
  content: attr(data-range);
  padding-left: 1rem;
  border-left: 1px solid #334155;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.comment {
  color: #fbbf24;
}

.active-line {
  background: #1e293b;
}

mark {
  padding-inline: 0.125rem;
  color: #020617;
  background: #fbbf24;
}

.inspector-note {
  margin: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.875rem;
}

.capability-section {
  padding-block: 5rem;
  border-block: 1px solid #334155;
  background: #0f172a;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.section-heading h2,
.detail-copy h2,
.install-inner h2 {
  margin-bottom: 0;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
}

.section-heading p,
.detail-copy > p,
.install-inner p {
  max-width: 38rem;
  margin-bottom: 0;
  color: #94a3b8;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #334155;
}

.capability-grid article {
  padding: 2rem;
  border-left: 1px solid #334155;
}

.capability-grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

.method-name {
  margin-bottom: 2rem;
  color: #fbbf24;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.capability-grid h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.capability-grid article > p:last-child {
  margin-bottom: 0;
  color: #94a3b8;
  line-height: 1.625;
}

.detail-section,
.install-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.detail-section {
  align-items: center;
  padding-block: 6rem;
}

.detail-copy h2 {
  margin-bottom: 1.5rem;
}

.detail-copy > p {
  margin-bottom: 1.5rem;
}

.ruby-sample,
.install-command {
  margin: 0;
  overflow-x: auto;
  border-radius: 0.5rem;
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
}

.ruby-sample {
  padding: 2rem;
  font-size: 0.875rem;
  line-height: 1.75rem;
}

.install-section {
  border-top: 1px solid #334155;
  background: #0f172a;
}

.install-inner {
  align-items: end;
  padding-block: 5rem;
}

.install-inner h2 {
  max-width: 20ch;
  margin-bottom: 1rem;
}

.install-command {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-left: 4px solid #d97706;
  background: #020617;
  font-size: 1rem;
}

.site-footer {
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-inner {
  min-height: 6rem;
}

.footer-inner p {
  margin-bottom: 0;
}

@media (max-width: 56rem) {
  .hero {
    display: block;
  }

  .source-inspector {
    margin-top: 3rem;
  }

  h1 {
    max-width: 12ch;
    font-size: 3.75rem;
    line-height: 1;
  }

  .section-heading,
  .detail-section,
  .install-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .capability-grid article,
  .capability-grid article:first-child {
    padding: 2rem 0;
    border-left: 0;
    border-bottom: 1px solid #334155;
  }

  .capability-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 40rem) {
  .header-inner,
  .footer-inner,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding-block: 1.5rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .hero {
    padding-block: 4rem;
  }

  h1 {
    font-size: 3rem;
  }

  .proof-list {
    display: grid;
    gap: 0.75rem;
  }

  .proof-list li,
  .proof-list li:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .capability-section,
  .detail-section,
  .install-inner {
    padding-block: 4rem;
  }

  .section-heading h2,
  .detail-copy h2,
  .install-inner h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .footer-inner {
    justify-content: center;
    gap: 0.5rem;
    padding-block: 1.5rem;
  }
}
