/* App pages (hub, dossier): the shell around the tools. Loaded after
   styles.css, which provides the palette, top bar, buttons and footer. */

.wrap--wide {
  max-width: var(--wrap-wide);
}

/* Black title band under the top bar. */
.page-head {
  background: var(--black);
  color: var(--paper);
  padding: 2.75rem 0 3rem;
}
.page-head h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.page-head .subtitle {
  margin: 1rem 0 0;
  max-width: 44rem;
  font-size: 1.1rem;
  line-height: 1.45;
  color: #dddddd;
}

.page-body {
  padding: 2.5rem 0 4.5rem;
}

/* ---------- hub: the two tools ---------- */

.tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 0;
}
@media (min-width: 820px) {
  .tools {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--paper);
  border: 3px solid var(--black);
  box-shadow: 10px 10px 0 var(--red);
}
.tool__eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.tool h2 {
  margin: 0 0 0.75rem;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.tool p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  flex: 1 1 auto;
}

/* On app pages the nav links are the way between tools, so keep them on
   small screens (the homepage hides them; its anchors are one scroll away). */
@media (max-width: 720px) {
  .topbar--app .topbar__inner {
    flex-wrap: wrap;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  .topbar--app .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .topbar--app .nav__links {
    display: flex;
    gap: 1rem;
  }
  .topbar--app .nav__links a {
    font-size: 0.78rem;
  }
}
