/* Shared site header. Scoped to header.top so page navs are untouched. */
@font-face{font-family:Oswald;font-weight:700;font-display:swap;src:url(/fonts/oswald-latin-700-normal.woff2) format("woff2")}
:root{--bg:#0d0b0b;--panel:#171415;--line:#3a3537;--text:#ebe7e4;--muted:#a39d99;--accent:#b3121b;--accent-lo:#620a0f;--accent-hi:#ec3f49}

header.top{
  position:sticky;top:0;z-index:40;
  background:rgba(14,12,13,.78);
  backdrop-filter:saturate(1.25) blur(16px);
  -webkit-backdrop-filter:saturate(1.25) blur(16px);
  border-bottom:1px solid rgba(58,53,55,.9);
  box-shadow:0 8px 28px rgba(0,0,0,.35);
}
header.top:before{
  content:"";position:absolute;left:0;right:0;top:0;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,var(--accent) 35%,#ff6a72 50%,var(--accent) 65%,transparent 100%);
  opacity:.9;
}
header.top,header.top *{box-sizing:border-box}
header.top .bar{position:relative}
header.top .wrap{
  max-width:1160px;margin:0 auto;padding:0 20px;width:100%;
  display:flex;align-items:center;gap:16px;height:64px;
}
header.top .brand{
  font-family:Oswald,Impact,sans-serif;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;font-size:22px;color:var(--text);text-decoration:none;
  white-space:nowrap;flex-shrink:0;line-height:1;
}
header.top .brand:hover{color:#fff}
header.top .brand:focus-visible,
header.top nav a:focus-visible,
header.top .btn-buy:focus-visible,
header.top .nav-toggle:focus-visible{
  outline:2px solid var(--accent-hi);outline-offset:3px;border-radius:3px;
}

header.top nav{
  display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;
  gap:0 20px;min-width:0;
}
header.top nav a{
  position:relative;color:var(--muted);text-decoration:none;font-weight:600;
  font-size:15px;letter-spacing:.01em;padding:8px 0;white-space:nowrap;
  transition:color .15s ease;
}
header.top nav a:hover,
header.top nav a.on{color:#fff}
header.top nav a:after{
  content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;
  background:var(--accent-hi);border-radius:1px;
  transform:scaleX(0);transform-origin:center;
  transition:transform .16s ease,box-shadow .16s ease;
  box-shadow:0 0 8px rgba(236,63,73,0);
}
header.top nav a:hover:after,
header.top nav a.on:after{
  transform:scaleX(1);
  box-shadow:0 0 10px rgba(236,63,73,.7);
}

header.top .btn-buy{
  display:inline-flex;align-items:center;justify-content:center;
  flex-shrink:0;margin-left:4px;
  font:700 14px/1 Oswald,Impact,sans-serif;text-transform:uppercase;letter-spacing:.08em;
  color:#fff;background:var(--accent);text-decoration:none;
  padding:10px 16px;border-radius:4px;min-height:40px;
  box-shadow:0 0 0 1px rgba(236,63,73,.28),0 4px 16px rgba(179,18,27,.4);
  transition:background .15s ease,box-shadow .15s ease,transform .15s ease;
}
header.top .btn-buy:hover{
  background:var(--accent-hi);color:#fff;
  box-shadow:0 0 18px rgba(236,63,73,.55),0 4px 16px rgba(179,18,27,.45);
}
header.top .btn-buy:active{transform:translateY(1px)}

header.top .nav-toggle{
  display:none;appearance:none;-webkit-appearance:none;
  width:44px;height:44px;margin:0 -6px 0 0;padding:0;
  border:0;background:transparent;cursor:pointer;flex-shrink:0;
  position:relative;border-radius:4px;
}
header.top .nav-toggle span{
  position:absolute;left:12px;right:12px;height:2px;border-radius:1px;
  background:var(--text);transition:transform .18s ease,opacity .18s ease,top .18s ease;
}
header.top .nav-toggle span:nth-child(1){top:15px}
header.top .nav-toggle span:nth-child(2){top:21px}
header.top .nav-toggle span:nth-child(3){top:27px}
header.top.is-open .nav-toggle span:nth-child(1){top:21px;transform:rotate(45deg)}
header.top.is-open .nav-toggle span:nth-child(2){opacity:0}
header.top.is-open .nav-toggle span:nth-child(3){top:21px;transform:rotate(-45deg)}

/* Compact the desktop links so they fit down to the hamburger breakpoint. */
@media (max-width:1280px) and (min-width:1100px){
  header.top .brand{font-size:20px}
  header.top .bar .wrap{gap:12px}
  header.top nav{gap:0 14px}
  header.top nav a{font-size:14px}
}

/*
  Hamburger under 1100px. The full desktop link set (especially on the
  homepage) cannot fit without overlap or a horizontal scroll at 768px.
*/
@media (max-width:1099px){
  header.top .nav-toggle{display:block}
  header.top .bar .wrap{gap:10px}
  header.top .brand{font-size:clamp(16px,4.6vw,20px);min-width:0;overflow:hidden;text-overflow:ellipsis}
  header.top .btn-buy{margin-left:auto;padding:9px 14px;min-height:40px}
  header.top nav{
    display:none;flex:none;
    position:absolute;top:100%;left:0;right:0;
    background:#120f10;
    border-bottom:1px solid var(--line);
    box-shadow:0 16px 32px rgba(0,0,0,.45);
    padding:8px 0 12px;
    max-height:calc(100dvh - 64px);
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  header.top.is-open nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}
  header.top nav a{
    display:flex;align-items:center;
    min-height:48px;padding:0 20px;
    font-size:18px;color:var(--text);
    border-bottom:1px solid rgba(58,53,55,.65);
    white-space:normal;
  }
  header.top nav a:after{
    left:20px;right:auto;bottom:auto;top:50%;width:3px;height:22px;
    transform:translateY(-50%) scaleY(0);transform-origin:center;
    border-radius:2px;
  }
  header.top nav a:hover:after,
  header.top nav a.on:after{transform:translateY(-50%) scaleY(1)}
  header.top nav a.on{background:rgba(179,18,27,.16);color:#fff}
  body.nav-open{overflow:hidden}
}

@media (prefers-reduced-motion:reduce){
  header.top nav a,header.top nav a:after,header.top .btn-buy,header.top .nav-toggle span{
    transition:none;
  }
}
