/* Banner: fixed height — identical on every page */
header.cover {
  background-position: center 15% !important;
  background-size: cover !important;
  height: 40vh;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 60em) {
  header.cover {
    height: 50vh;
  }
}

/* Make the dimming overlay fill the full header height,
   nav pinned to top, title content pushed to bottom */
header.cover > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Title content div: grow to fill remaining space below nav and centre content */
header.cover .tc-l {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem !important;
}

/* Banner title: larger on desktop, scales down for mobile */
header.cover h1 {
  font-size: 1.6rem !important;
  line-height: 1.2;
  margin: 0 0 0.2rem 0;
}

header.cover h2 {
  font-size: 0.85rem !important;
  line-height: 1.4;
  margin: 0.2rem 0 0 0;
}

@media screen and (min-width: 60em) {
  header.cover h1 {
    font-size: 3.5rem !important;
  }

  header.cover h2 {
    font-size: 1.1rem !important;
  }
}

/* Nav: always use flexbox so title and menu links stay on one row on mobile.
   Scale the site title down on small screens so menu items fit alongside it. */
nav .flex-l {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

@media screen and (max-width: 60em) {
  nav a.f3 {
    font-size: 0.9rem;
  }

  nav ul li a {
    font-size: 0.8rem;
  }
}

/* About page: hide the duplicate title rendered inside the article body
   (it already appears in the hero banner above) */
.page-about h1.f1 {
  display: none;
}

/* About page: consistent body font with rest of site */
.page-about .nested-copy-line-height {
  font-family: avenir, sans-serif;
  font-size: 1.125rem;
}
