[data-md-color-scheme="slate"] {
  --hpt-card-bg: #242424;
  --hpt-card-bg-hover: #292929;
  --hpt-card-border: #404040;
  --hpt-rule: #404040;
}

[data-md-color-scheme="default"] {
  --hpt-card-bg: #ffffff;
  --hpt-card-bg-hover: #f2f2f2;
  --hpt-card-border: #e3e3e3;
  --hpt-rule: #e3e3e3;
}

.homepage-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hpt-rule);
}

.homepage-hero__text {
  flex: 1 1 auto;
  min-width: 0;
}

.md-typeset .homepage-hero__text h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 22.1053px + 1.64474vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--md-default-fg-color);
  text-wrap: balance;
}

.homepage-hero__text h1 span {
  display: inline-block;
  margin-right: 0.35em;
}

.md-typeset .homepage-hero__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

.homepage-hero__image {
  flex: 0 0 auto;
  width: min(420px, 42%);
}

.homepage-hero__image video,
.homepage-hero__image img {
  display: block;
  width: 100%;
  height: auto;
}

.md-typeset .homepage-section-title {
  margin: 32px 0 16px;
  padding-bottom: 6px;
  font-size: clamp(24px, 17.6842px + 1.31579vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--md-default-fg-color);
  border-bottom: 1px solid var(--hpt-rule);
}

.md-typeset .homepage-section-title .headerlink {
  display: none;
}

.homepage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 12px;
  margin: 16px 0 32px;
}

.md-typeset .homepage-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3.25rem;
  padding: 14px 16px;
  background-color: var(--hpt-card-bg);
  border: 1px solid var(--hpt-card-border);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.md-typeset .homepage-card:hover,
.md-typeset .homepage-card:focus-visible {
  background-color: var(--hpt-card-bg-hover);
  border-color: var(--md-typeset-a-color);
}

.homepage-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--md-typeset-a-color);
}

.md-typeset .homepage-card:hover .homepage-card__title {
  color: var(--md-accent-fg-color);
}

.md-typeset .homepage-grid + hr,
.md-typeset .homepage-hero + hr {
  margin: 32px 0;
  border-bottom: 1px solid var(--hpt-rule);
}

@media screen and (max-width: 59.9375em) {
  .homepage-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .homepage-hero__image {
    width: 100%;
    max-width: 320px;
  }
}

@media screen and (max-width: 44.9375em) {
  .homepage-hero__image {
    display: none;
  }
}
