/* public/CSS/_Components/header.css
   The top bar of every page (views/_Components/header.ejs). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--header-background);
  backdrop-filter: saturate(1.3) blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.site-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading-text);
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-header-nav form {
  margin: 0;
}

.site-header-nav a,
.site-header-link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--body-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header-nav a:hover,
.site-header-link-button:hover {
  background-color: var(--raised-background);
}

.site-header-theme {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--surface-background);
  color: var(--heading-text);
}

/* The switch shows the moon in the light theme and the sun in the dark one. */
.icon-for-dark,
:root[data-theme="dark"] .icon-for-light {
  display: none;
}

:root[data-theme="dark"] .icon-for-dark {
  display: block;
}

/* On narrow phones the icons of the links are hidden to make room. */
@media (max-width: 420px) {
  .site-header-brand span {
    display: none;
  }

  .site-header-nav a svg,
  .site-header-link-button svg {
    display: none;
  }
}
