/* ── Font faces ── */
@font-face {
  font-family: 'Miller Display';
  src: url('../fonts/Miller-Display.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Miller Display';
  src: url('../fonts/Miller-DisplayItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'NHaas Grotesk';
  src: url('../fonts/NHaasGroteskDSPro-35XLt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NHaas Grotesk';
  src: url('../fonts/NHaasGroteskDSPro-55Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NHaas Grotesk';
  src: url('../fonts/NHaasGroteskDSPro-75Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Hide legacy elements ── */
#footer-bar,
#date-bar,
.footer-logo {
  display: none;
}

/* ── Header ── */
#site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  pointer-events: none;
}

#site-header h1 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}

#heading-img {
  width: min(40vw, 340px);
  height: auto;
  display: block;
}

/* ── Nav links — scattered under heading ── */
#header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: -8px;
  pointer-events: auto;
}

.nav-link {
  font-family: 'NHaas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 28px;
  background: rgba(240,91,48,0.92);
  transition: background 0.2s;
  white-space: nowrap;
  clip-path: polygon(6% 0%, 94% 0%, 100% 50%, 94% 100%, 6% 100%, 0% 50%);
}

.nav-link:nth-child(2) {
  transform: rotate(-1.5deg) translateY(2px);
}
.nav-link:nth-child(3) {
  transform: rotate(1deg) translateY(-1px);
}
.nav-link:nth-child(4) {
  transform: rotate(-0.8deg) translateY(3px);
}

.nav-link:hover {
  background: rgba(200,210,78,0.92);
}

/* focus indicator uses drop-shadow to work through clip-path */
.nav-link:focus-visible {
  filter: drop-shadow(0 0 3px rgba(200,204,90,0.9)) drop-shadow(0 0 1px rgba(200,204,90,0.7));
  outline: none;
}

.nav-link.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* ── Mobile ── */
@media (prefers-reduced-motion: reduce) {
  .nav-link { transition: none; }
}

@media (max-width: 600px) {
  #heading-img {
    width: 80vw;
  }
  #header-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    justify-items: center;
  }
  .nav-link {
    font-size: 13px;
    letter-spacing: 2px;
    padding: 8px 20px;
    width: 100%;
    text-align: center;
  }
}
