/* ==================== SHARED HEADER STYLES ==================== */

@font-face {
  font-family: 'PPNeueMontreal';
  src: url('fonts/PPNeueMontreal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'PPNeueMontreal';
  src: url('fonts/PPNeueMontreal-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'PPNeueMontreal';
  src: url('fonts/PPNeueMontreal-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

header {
  padding: 1.75em 2.5em;
  position: sticky;
  top: 0;
  background-color: transparent;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.0625em;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.625em;
}

.logo-link {
  text-decoration: none;
  line-height: 1.2;
}

.logo-text,
.desktop-nav a {
  font-family: 'PPNeueMontreal', sans-serif;
  font-weight: 500;
  font-size: 1.3em;
  line-height: 20px;
  color: #111;
  letter-spacing: -0.01em;
}

.logo-text {
  font-style: normal;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1rem;
}

.desktop-nav a {
  text-decoration: none;
  margin-right: 0.375em;
  transition: opacity 0.15s ease;
}

.desktop-nav a.active {
  font-style: italic;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1em;
  padding-top: 0.55em;
}

/* ---- Tomato toggle ---- */
.tomato-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: none;
  display: flex;
  align-items: center;
  line-height: 1;
}

.toggle-tomato {
  width: 3.2em;
  height: 3.2em;
  display: block;
  /* no transition — spin animation handles all transform */
}

.toggle-tomato--dark {
  display: none;
}

body.dark-mode .toggle-tomato--light {
  display: none;
}

body.dark-mode .toggle-tomato--dark {
  display: block;
}

/* Always spinning */
@keyframes tomato-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.toggle-tomato {
  animation: tomato-spin 6s linear infinite;
}

.tomato-toggle:hover .toggle-tomato {
  animation-duration: 1.5s;
}

/* ---- Dark mode ---- */
body.dark-mode .logo-text,
body.dark-mode .desktop-nav a {
  color: #ffffff;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  header {
    padding: 1.25em 1.5em;
  }

  .logo-text,
  .desktop-nav a {
    font-size: 1.5em;
  }

  .toggle-tomato {
    width: 3em;
    height: 3em;
  }
}