/*
  Masthead layout.
  Navigation sits in the header, the docs sidebars are gone on desktop,
  and every page reads down one centred column.
*/

/* ---------- Masthead ---------- */

.eb-masthead {
  box-shadow: none;
}

.eb-masthead .md-header__inner {
  padding-block: 0.3rem;
}

.eb-masthead__title {
  flex: 1 1 auto;
  margin-left: 0.4rem;
  height: 2.4rem;
  line-height: 2.4rem;
}

.eb-masthead__name {
  font-size: 1.3rem;
  white-space: nowrap;
}

.eb-nav {
  display: none;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--eb-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eb-nav__link {
  display: block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--eb-radius);
  transition: background-color 140ms var(--eb-ease), color 140ms var(--eb-ease);
}

.eb-nav__link:hover,
.eb-nav__link:focus-visible {
  background-color: var(--eb-amber);
  color: var(--eb-ink);
}

.eb-nav__link[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--eb-amber);
  text-decoration-thickness: 0.15rem;
  text-underline-offset: 0.4rem;
}

.eb-nav__link[aria-current]:hover {
  text-decoration-color: transparent;
}

@media screen and (min-width: 76.25em) {
  .eb-nav {
    display: flex;
  }

  /* The drawer covers navigation on small screens; the masthead does here. */
  .md-sidebar--primary {
    display: none;
  }
}

/* ---------- One reading column ---------- */

.md-grid {
  max-width: 62rem;
}

.md-main__inner {
  margin-top: 2.4rem;
}

@media screen and (min-width: 60em) {
  .md-content {
    max-width: 35rem;
    margin-inline: auto;
  }

  .md-content.md-content--post {
    max-width: none;
  }

  .md-content.md-content--post > .md-content__inner {
    max-width: 35rem;
  }

  .md-content.eb-home {
    max-width: none;
  }
}

.md-content__inner {
  padding-bottom: 3rem;
}


/* ---------- Home hero: the scoreboard ---------- */

.eb-hero {
  background-color: var(--eb-board);
  color: #ffffff;
}

.eb-hero__inner {
  padding: 2.6rem 0.8rem 3.4rem;
}

@media screen and (min-width: 76.25em) {
  .eb-hero__inner {
    padding: 3.6rem 1.2rem 4.4rem;
  }
}

.eb-hero__inner.md-typeset h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(4.2rem, 1.5rem + 12vw, 10.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.01em;
}

/* The tagline is the scoreboard readout. board.js rolls its letters into
   place once when the page loads. */
.eb-hero__inner.md-typeset h2 {
  margin: 1.6rem 0 0;
  color: var(--eb-amber);
  font-family: var(--eb-dots);
  font-size: clamp(1.05rem, 0.75rem + 1.5vw, 1.9rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.eb-hero__inner.md-typeset p {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.6;
}

.eb-hero__inner.md-typeset a {
  color: #ffffff;
  text-decoration-color: var(--eb-amber);
  text-decoration-thickness: 0.1em;
}

.eb-hero__inner.md-typeset a:hover,
.eb-hero__inner.md-typeset a:focus-visible {
  color: var(--eb-ink);
}

.eb-hero__inner.md-typeset .headerlink {
  display: none;
}

[data-md-color-scheme="slate"] .eb-hero {
  border-bottom: 0.05rem solid var(--eb-rule);
}

.eb-hero + .md-main .md-main__inner {
  margin-top: 2.8rem;
}

/* ---------- Footer ---------- */

.md-footer__inner {
  padding-block: 0.6rem;
}

.md-footer__title {
  font-family: var(--eb-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.md-footer-meta__inner {
  padding-block: 0.8rem;
}
