/* ====================================
   Kate Fedotova — HEADER STYLES
   Palette: #E148C6 accent
   Fonts: Bowlby One, Open Sans
==================================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ----- Name / Logo ----- */
header h1 {
  font-family: "Bowlby One", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
  line-height: 1;
}

header h1 a {
  color: #1d0e10;
  text-decoration: none;
  transition: color 0.2s ease;
}

header h1 a:hover {
  color: #E148C6;
}

/* ----- Navigation ----- */
header nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

header nav a {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1d0e10;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0.4rem;
  transition: color 0.2s ease;
}

/* accent underline hover */
header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #E148C6;
  transition: width 0.25s ease;
}

header nav a:hover {
  color: #E148C6;
}

header nav a:hover::after {
  width: 100%;
}

/* ----- Responsive ----- */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem;
  }

  header nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  header nav a {
    font-size: 0.95rem;
  }
}
