/* Navigation styling overrides for torillic header — more polish and interaction. */

.torillic-header {
  padding: 1.25rem 1rem 1.5rem;
  gap: 0.75rem;
}

.torillic-header h1 {
  letter-spacing: 0.08em;
  margin-bottom: 0.15em;
  transition: text-shadow 0.2s ease;
}

.torillic-header h1:hover {
  text-shadow: 1.5px 1.5px 3px rgba(0, 0, 0, 0.55);
}

/* Single-row nav with even spacing; wrap only when needed */
.torillic-header nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  max-width: 100%;
}

.torillic-header nav a {
  position: relative;
  text-decoration: none;
  padding: 0.25em 0.1em 0.35em;
  color: var(--offwhite, #fcf5e5);
  transform: scale(1);
  transition: color 0.2s ease, transform 0.15s ease;
}

/* Animated underline: thin bar that grows on hover and is gold for current */
.torillic-header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1em;
  width: 0;
  height: 2px;
  background: var(--yellow, #c9ad6a);
  transition: width 0.25s ease, left 0.25s ease;
  transform: translateX(-50%);
}

.torillic-header nav a:hover {
  color: #fff;
  transform: scale(1.03);
}

.torillic-header nav a:hover::after {
  width: 110%;
  left: 50%;
}

.torillic-header nav a.current {
  font-weight: 700;
  color: #fff;
}

.torillic-header nav a.current::after {
  width: 110%;
  left: 50%;
  height: 2px;
  background: var(--yellow, #c9ad6a);
}

.torillic-header nav a:active {
  transform: scale(0.99);
}
