/* ── HEADER & FOOTER ────────────────────────────────────
   Navigation styles shared across all pages.
───────────────────────────────────────────────────────── */

header {
  flex-shrink: 0;
  padding: 1.1rem clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-size: clamp(0.58rem, 0.8vw, 0.7rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  transition: border-color 3s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.header-name {
  color: var(--header-name-color);
  justify-self: start;
  transition: color 3s ease;
}

.header-tag {
  color: var(--header-name-color);
  justify-self: end;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 1em;
  text-transform: uppercase;
  font-style: normal;
  transition: color 3s ease;
}

footer {
  flex-shrink: 0;
  padding: 1.1rem clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--border-color);
  font-size: clamp(0.58rem, 0.8vw, 0.7rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
  transition: border-color 3s ease;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.55em;
  text-decoration: none;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.18em;
  white-space: nowrap;
  transition: color 0.2s;
}
.footer-link:hover { color: #FA9FCA; }
.footer-link svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

.footer-link-left  { justify-self: start; }
.footer-link-right { justify-self: end; }

.footer-copy {
  color: inherit;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  white-space: nowrap;
  transition: color 3s ease;
}

@media (max-width: 600px) {
  header { grid-template-columns: 1fr; gap: 0.4rem; }
  .header-tag { justify-self: start; }

  footer {
    grid-template-columns: auto 1fr auto;
    padding: 0.9rem 1.5rem;
    gap: 0.5rem;
  }
  .footer-link-text { display: none; }
  .footer-copy {
    font-size: clamp(0.45rem, 2.2vw, 0.6rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5em;
  }
}
