/* ── About page ─────────────────────────────────────────────────────── */

.about {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;

  h2 {
    font-size: 1.25rem;
    color: var(--sapphire);
    margin-bottom: 1rem;
  }
  h2::before {
    content: "▸ ";
  }

  p {
    line-height: 1.5;

    code {
      background: var(--crust);
      padding: 0.125em 0.375em;
      border-radius: 2px;

      @media (prefers-color-scheme: dark) {
        background: var(--surface0);
      }
    }
  }
}

.about section p + p {
  margin-top: 1rem;
}

.about section + section {
  margin-top: 3rem;
}

.about .links-section {
  margin-top: 1.5rem;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.hero-header {
  align-items: center;
  --space: 0;
}

.hero-logo {
  font-size: 1.5rem;

  .hero-logo-letter {
    color: var(--green);
  }
}

.hero h1 {
  font-weight: 400;
}

.hero-accent {
  color: var(--yellow);
}

.hero-content {
  align-items: center;
  --space: 1.5rem;
}

.hero-text {
  font-size: 1rem;
  line-height: 1.5;
  max-inline-size: 55ch;

  code:nth-of-type(1) {
    color: var(--green);
  }

  code:nth-of-type(2) {
    color: var(--mauve);
  }

  code:nth-of-type(3) {
    color: var(--yellow);
  }

  code:nth-of-type(4) {
    color: var(--sapphire);
  }
}

/* ── Demo gif ─────────────────────────────────────────────────────── */

.demo-gif img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 0.0625rem solid var(--surface0);
}

.demo-link {
  margin-top: 0.75rem;
  text-align: left;
}

.demo-link a {
  color: var(--sapphire);
}

/* ── Install ─────────────────────────────────────────────────────── */

.install-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.install-method {
  background: var(--mantle);
  border: 0.0625rem solid var(--surface1);
  border-radius: 0.375rem;
  padding: 1rem;
  min-width: 0;
}

.install-method h3 {
  font-size: 0.8125rem;
  color: var(--subtext0);
  margin-bottom: 0.625rem;
  font-weight: 600;
}

.install-code {
  position: relative;
}

.install-method pre {
  border: 0.0625rem solid var(--surface0);
  background: var(--base);
  padding: 0.75rem;
  padding-right: 4rem;
  border-radius: 0.25rem;
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0.5rem;
  /* background: var(--surface0);
  border: 0.0625rem solid var(--surface1);
  color: var(--overlay0);
  font-family: var(--font-mono);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s; */
}

/* .copy-btn:hover {
  color: var(--text);
  border-color: var(--overlay0);
} */

/* .copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
} */

.install-method code {
  color: var(--green);
  /* font-size: 0.8125rem; */
  font-family: var(--font-mono);
}

.install-note {
  margin-top: 0.75rem;
  color: var(--subtext0);
}

/* ── Usage ─────────────────────────────────────────────────────── */

.usage-block {
  background: var(--mantle);
  border: 0.0625rem solid var(--surface0);
  border-radius: 0.375rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.usage-block code {
  font-family: var(--font-mono);
  color: var(--text);
}

.u-yellow {
  color: var(--yellow);
}
.u-sapphire {
  color: var(--sapphire);
}
.u-green {
  color: var(--green);
}

.usage-docs-link a {
  color: var(--sapphire);
  text-decoration: none;
}

.usage-docs-link a:hover {
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 43.75rem) {
  /* About */
  .about {
    padding: 1rem 1.5rem 2rem;
  }
  .links-section {
    flex-direction: column;
  }
}
