Skip to content

The Open Standard for Generative UI

1.3 KB
Raw Blame
.header {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--home-container-max);
  margin-inline: auto;
  padding-inline: var(--home-container-gutter);
  text-align: center;
}

.title {
  margin: 0;
  /* Sized against the viewport so a one-sentence headline sits on two lines
     from tablet width up, rather than only on wide screens. */
  max-width: 100%;
  font-family: var(--home-font-display);
  font-size: clamp(2.125rem, 4vw, 3.75rem);
  font-weight: var(--home-display-weight, 600);
  line-height: var(--home-display-leading, 1.1);
  letter-spacing: var(--home-display-tracking, -0.02em);
  text-wrap: balance;
  color: var(--openui-text-neutral-primary);
}

/* Wide enough that a two-sentence caption sits on two or three lines under the
   headline instead of a narrow column; short captions are unaffected. */
.subtitle {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  font-family: var(--home-font-text);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.5;
  text-wrap: balance;
  color: var(--openui-text-neutral-secondary);
}

/* A forced break between two sentences in a headline, desktop only: on a phone
   the sentences wrap on their own. */
.break {
  display: block;
}

@media (max-width: 767px) {
  .break {
    display: none;
  }
}