:root {
  --sub-topbar-height: 34px;
  --sub-nav-height: 109px;
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

html {
  scroll-padding-top: calc(var(--sub-topbar-height) + var(--sub-nav-height) + 16px);
}

body {
  padding-top: var(--sub-topbar-height);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  color: #26170f;
  font: 700 14px/1 Arial, sans-serif;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.sub-topbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  min-height: 34px;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #26170f;
  color: #f7ead5;
  font: 700 11px/1.25 Arial, sans-serif;
  letter-spacing: .12em;
  text-align: center;
}

.sub-topbar span + span::before,
.sub-topbar a::before {
  content: "•";
  margin-right: 18px;
  color: #c69b52;
}

.sub-topbar a {
  color: inherit;
  text-decoration: none;
}

.sub-topbar a:hover {
  color: #e7c079;
}

.waffle-hero {
  min-height: calc(88vh - 34px);
  z-index: 900;
}

.hero-nav {
  position: fixed;
  z-index: 990;
  top: var(--sub-topbar-height);
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  min-height: var(--sub-nav-height);
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  background: rgba(34,20,12,.78);
  box-shadow: 0 10px 34px rgba(24,12,6,.18);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-links a {
  position: relative;
  min-height: 44px;
  padding: 13px 2px 9px;
  white-space: nowrap;
}

.hero-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #d7ad62;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.hero-links a:hover::after,
.hero-links a.active::after {
  transform: scaleX(1);
}

.hero-links a.active {
  color: #ffe0a3;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(26,16,10,.42);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-nav {
    position: fixed;
  }

  .mobile-nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-links {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 4px;
    border: 1px solid rgba(198,155,82,.45);
    border-radius: 18px;
    background: rgba(35,21,13,.97);
    box-shadow: 0 20px 60px rgba(0,0,0,.32);
    backdrop-filter: blur(16px);
  }

  .hero-links.open {
    display: grid;
    animation: navReveal .24s ease both;
  }

  .hero-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hero-links a:hover,
  .hero-links a.active {
    background: rgba(215,173,98,.14);
  }

  .hero-links a::after {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --sub-topbar-height: 38px;
    --sub-nav-height: 94px;
  }

  .sub-topbar {
    min-height: 38px;
    padding: 6px 10px;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 9px;
    letter-spacing: .07em;
  }

  .sub-topbar span + span::before,
  .sub-topbar a::before {
    margin-right: 5px;
  }

  .hero-links {
    left: 14px;
    right: 14px;
  }
}

@keyframes navReveal {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-links.open { animation: none; }
  .hero-links a::after { transition: none; }
}
