/* Hugo port of the scoped styles in SiteBanner.vue + SiteFooter.vue —
   keep in lockstep with them. Requires tokens.css. */

/* ---- banner (SiteBanner.vue) ---- */

.banner {
  background: var(--red);
  padding: 16px var(--page-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wordmark {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: #f7f3ea;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d9a8a0;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.nav-link {
  color: #d9a8a0;
  text-decoration: none;
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #f7f3ea;
}

.nav-link.active {
  color: #f7f3ea;
  border-bottom-color: var(--brass);
}

.theme-switch {
  position: relative;
  width: 46px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: none;
}

.theme-switch .track {
  position: absolute;
  inset: 0;
  border: 1px solid #9c5750;
  transition: border-color 0.15s ease;
}

.theme-switch:hover .track {
  border-color: #d9a8a0;
}

.theme-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--brass);
  transition: transform 0.2s ease;
}

.theme-switch.dark .knob {
  transform: translateX(24px);
}

.theme-switch .knob::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b2118;
  transform: translate(-50%, -50%);
}

.theme-switch .knob::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.theme-switch.dark .knob::after {
  transform: translate(-15%, -75%) scale(1);
}

.brass-band {
  height: var(--band);
  background: var(--brass);
}

/* ---- footer (SiteFooter.vue) ---- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 16px var(--page-x);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.footer .links {
  display: flex;
  gap: 14px;
}

.footer .links a {
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer .links a:hover {
  color: var(--red-text);
}
