Skip to content

The Open Standard for Generative UI

2.4 KB
Raw Blame
.titleBlock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 2px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
}

.title {
  display: block;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.cloudTag {
  display: inline-flex;
  align-items: center;
  margin-top: -3px;
  padding: 2px 6px 3px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 17px;
  line-height: 1;
  vertical-align: middle;
}

/* Narrows the shared tagline's measure without touching the home page, which
   uses the same component at its full 75rem width. */
.taglineText {
  display: block;
  max-width: 46rem;
  margin-inline: auto;
  text-wrap: balance;
}

/* Reads as a caption under the tagline, so it drops out of the display scale
   and back to body type. */
.taglineNote {
  display: block;
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--openui-text-neutral-secondary);
}

[data-theme="dark"] .taglineNote {
  color: rgba(255, 255, 255, 0.55);
}

.subtitle {
  display: block;
  flex: 0 0 400px;
  width: 400px;
  max-width: 400px;
  margin-top: 40px;
  margin-left: auto;
  padding-top: 12px;
  font-size: 22px;
  font-weight: var(--home-heading-weight);
  line-height: var(--home-lead-leading);
  letter-spacing: var(--home-heading-tracking);
  text-wrap: balance;
}

.ctaGroup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heroImage {
  display: block;
  width: 100%;
  height: auto;
}

.heroImageDark {
  display: none;
}

[data-theme="dark"] .heroImageLight {
  display: none;
}

[data-theme="dark"] .heroImageDark {
  display: block;
}

@media (max-width: 1023px) {
  .title {
    font-size: inherit;
  }

  .subtitle {
    margin-top: 0;
    padding-top: 0;
  }

  .ctaGroup {
    flex-direction: column;
    width: 320px;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .titleBlock {
    align-items: center;
    gap: 12px;
  }

  .subtitle {
    /* The base rule pins this to 400px, which is wider than a small phone and
       bled off both edges. Let it track the hero width instead. */
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
  }
}