/*
Home page styles for futureancestors.dev.

This stylesheet is loaded by every page, so each rule starts from the home
page's title. Its id, future-ancestors, is made from the words of the title
in docs/index.md, so these rules stop applying if that title changes.

The rules style the title, the home page's epigraph (the quote that follows
the title) and the paragraph after it.
*/

/* The rose window logo is drawn before the words of the title. */
.md-typeset #future-ancestors::before {
  content: "";
  display: inline-block;
  inline-size: 1.5em;
  block-size: 1.5em;
  margin-inline-end: 0.3em;
  vertical-align: middle;
  background: url("../img/logo.svg") center / contain no-repeat;
}

/* The epigraph stands on its own, so the theme's side rule is not needed. */
.md-typeset #future-ancestors + blockquote {
  margin-block: 2em 3em;
  padding: 0;
  border: 0;
  /* Full strength text colour, for contrast at a light font weight. */
  color: var(--md-default-fg-color);
}

/*
The quote itself is the first paragraph of the epigraph. Its lines are set
far enough apart that the tails of letters on one line stay clear of the
tops of letters on the next.
*/
.md-typeset #future-ancestors + blockquote p:first-child {
  margin-block: 0;
  font-size: 1.6em;
  font-weight: 300;
  line-height: 1.6;
  text-wrap: balance;
}

/* The paragraph that follows the epigraph is the page's lead. */
.md-typeset #future-ancestors + blockquote + p {
  font-size: 1.2em;
}

/* Only wider screens have room for a larger title and quote. */
@media (min-width: 45em) {
  /* The title is larger than the titles of the other pages. */
  .md-typeset #future-ancestors {
    font-size: 3em;
  }

  .md-typeset #future-ancestors + blockquote p:first-child {
    font-size: 2.2em;
  }
}
