/* The home page, on top of site.css. The header and the opening together
   fill the first screen, in the page's own light or dark theme. */

/* the header runs straight into the opening, with no rule between */
.site-header--flush {
  border-bottom: 0;
}

/* The opening: the lockup, revealing itself, with the headline beneath */

.home-opening {
  display: flex;
  align-items: center;
  /* the first screen, less the header */
  min-height: calc(100svh - var(--doppla-space-16));
  padding: var(--doppla-space-6) 0 var(--doppla-space-12);
  /* red starts left of the mark and blue far to the right of it; neither
     may widen the page while they travel */
  overflow-x: clip;
}

.home-opening__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The mark's width sets the lockup's size, and its clear space: half the
   mark's width on every side (section 03). */
.home-opening__lockup {
  font-size: clamp(var(--doppla-space-16), 12vw, var(--doppla-space-24));
  padding: 0.5em;
}

.home-opening__lockup .doppla-reveal {
  font-size: inherit;
}

.home-opening h1 {
  max-width: 16em;
}

.home-opening .lede {
  max-width: 34rem;
}

/* Slate in both themes. :root makes this outrank site.css's rule that
   sets the lede in the text colour on dark pages. */
:root .home-opening .lede {
  color: var(--doppla-slate);
}

.home-opening .actions {
  justify-content: center;
}

/* The closing section, when the page has one */

.home-closing {
  text-align: center;
}

.home-closing > * {
  margin-inline: auto;
}
