/* page-header.css: the logo and the page title, at the top of every page. */

.page-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: max(7cqh, var(--safe-top) + var(--space-3)) var(--gutter-right) 3cqh var(--gutter-left);
}

.page-header-logo {
  width: 8.75rem;
  margin-top: 0.3em;
}

.page-header h1 {
  width: min-content;
  overflow-wrap: normal;
  font-size: var(--text-title);
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Stacked: the logo centred and larger, the title centred below it (the Archives page). */
.page-header-stacked {
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-top: max(5cqh, var(--safe-top) + var(--space-3));
  padding-bottom: 2cqh;
  text-align: center;
}

.page-header-stacked .page-header-logo {
  width: 13.25rem;
  margin-top: 0;
}

.page-header-stacked h1 {
  width: auto;
  max-width: 9em; /* breaks the title over two lines */
  font-size: var(--text-body);
  text-wrap: balance;
}
