.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px; /* Increased height for better breathing room */
}

.header__logo {
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
}

.header__nav .nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xl); /* Increased spacing */
  list-style: none;
  padding: 0;
  margin: 0;
}

.header__nav a {
  color: var(--color-text);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

/* Nav Link Underline Effect */
.header__nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-brand);
  transition: width 0.3s ease;
}

.header__nav a:hover {
  color: var(--color-brand);
}

.header__nav a:hover::after {
  width: 100%;
}

.nav__item--has-dropdown {
  position: relative;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 8px;
  list-style: none;
  padding: var(--space-xs);
  margin: 10px 0 0 0;
  border: 1px solid rgba(0,0,0,0.05);
}

.nav__item--has-dropdown:hover .nav__dropdown {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.font-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 6px;
}

.font-selector__btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.font-selector__btn:hover {
  color: var(--color-text);
}

.font-selector__btn[aria-pressed="true"] {
  background: #fff;
  color: var(--color-brand);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-weight: 700;
}

.header__toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

/* Mobile Menu Icon Styling would go here if we had SVG icons, assuming it's handled via JS/CSS elsewhere or empty for now */
