Skip to content

The Open Standard for Generative UI

2.5 KB
Raw Blame
.hero {
  width: 100%;
}

/* Mirrors the home hero's left lockup positioning: a 75rem container centered with
   a 2rem inner gutter, and the same 5rem/3rem vertical rhythm — so directory-page
   headlines land in the same spot as the home hero headline. */
.inner {
  display: flex;
  max-width: var(--home-container-max);
  margin-inline: auto;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-inline: var(--home-section-padding-inline);
  padding-block: clamp(3.5rem, 7vw, 5rem) clamp(2rem, 3vw, 3rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--home-font-mono);
  font-size: var(--home-label-size);
  font-weight: var(--home-label-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--openui-text-neutral-secondary);
}

/* Matches the home hero's left lockup: title and subheadline share the same large
   display size (3.75rem desktop), the title bold/primary and the subheadline
   600/secondary, so directory pages read identically to the home page. */
.title {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--openui-text-neutral-primary);
  text-wrap: balance;
}

.titleAccent {
  color: var(--openui-text-neutral-primary);
}

.subtitle {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--openui-text-neutral-secondary);
  text-wrap: balance;
}

/* Smaller, regular-weight, narrow subheadline (a lead/description under the title). */
.subtitleSmall {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  /* Center the lockup on mobile: title, subheadline and buttons all centered. */
  .inner {
    align-items: center;
    text-align: center;
  }

  .eyebrow,
  .title,
  .subtitle,
  .subtitleSmall {
    letter-spacing: 0;
  }

  .actions {
    width: 100%;
    justify-content: center;
  }
}

/* Match the home/OpenClaw hero's desktop top rhythm so directory-page headlines
   land at the same height: the full hero is .desktopHero (8rem top) + the lockup
   (5rem top) = 13rem, applied at the same 1024px breakpoint. */
@media (min-width: 1024px) {
  .inner {
    padding-block-start: 7rem;
  }
}