/* Shared site header: the same logo, links, sizes and spacing on every page.
   Colors come from the page (currentColor), so it sits on flavor colors or cream alike.
   Markup:
   <header class="site-head">
     <a class="site-logo" href="/" aria-label="Happy Spoon home"></a>
     <nav class="site-nav" aria-label="Main"><a href="/">Waitlist</a><a href="/shop/">Shop</a><a href="/about/">Our story</a></nav>
     <a class="site-box" href="/shop/?box" aria-label="Your box"><span>(box icon)<span class="box-count">0</span></span></a>
   </header>
   Every page has the same three links and the box button, so nothing shifts between pages.
   Mark the current page's link with aria-current="page". The box button's icon and count take the
   page's background color: --bg on flavor pages, or set --head-bg. A header inside a narrower centered
   column gets class "bleed" so it still spans the screen with the site's side margins. */
.site-head { display: flex; align-items: center; gap: 14px; height: 58px; position: relative; z-index: 5; }
.site-logo {
  display: block; flex: 0 0 auto; width: 76px; color: inherit; aspect-ratio: 640 / 422; margin-right: auto; background: currentColor;
  -webkit-mask: url(logos/happy-spoon-wordmark-mask.png) center / contain no-repeat;
  mask: url(logos/happy-spoon-wordmark-mask.png) center / contain no-repeat;
}
.site-nav { display: flex; gap: 14px; font: 700 14px/1 "Archivo", system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.site-nav a { color: inherit; text-decoration: none; padding: 10px 0; opacity: .8; transition: opacity .2s ease; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .site-contact { border: 1px solid currentColor; border-radius: 999px; padding: 9px 14px; opacity: 1; }
.site-contact:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Menu button (added by site-header.js); only shown on phones */
.site-menu { display: none; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; place-items: center; color: inherit; background: color-mix(in srgb, currentColor 16%, transparent); cursor: pointer; }
.site-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transition: transform .25s ease, opacity .2s ease; }
.site-menu .sm-x { position: absolute; opacity: 0; }
.site-head.menu-open .site-menu .sm-bars { opacity: 0; }
.site-head.menu-open .site-menu .sm-x { opacity: 1; }
/* Phones: logo, box and menu in one row; the links drop down in a white card */
@media (max-width: 599px) {
  .site-head { gap: 10px; }
  .site-head.menu-open { z-index: 60; }
  .site-menu { display: grid; position: relative; }
  .site-nav {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 8px;
    border-radius: 22px; background: #fff; color: #15191d; font-size: 17px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45);
  }
  .site-head.bleed .site-nav { left: 18px; right: 18px; }
  .site-head.menu-open .site-nav { display: flex; animation: menuIn .25s ease; }
  .site-nav a { padding: 15px 14px; border-radius: 14px; opacity: 1; }
  .site-nav a[aria-current="page"] { text-decoration: none; background: #f3f3f1; }
  .site-nav .site-contact { border: 0; border-radius: 14px; padding: 15px 14px; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
}
.site-box {
  display: inline-flex; align-items: center; flex: 0 0 auto; height: 40px; padding: 0 12px 0 10px; border: 0; border-radius: 999px;
  color: inherit; background: currentColor; text-decoration: none; font: 800 15px/1 "Archivo", system-ui, sans-serif; cursor: pointer;
  transition: background-color .6s ease, transform .15s ease;
}
.site-box > span { display: inline-flex; align-items: center; gap: 6px; color: var(--head-bg, var(--bg, #fff)); transition: color .9s ease; }
.site-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.site-head.bleed { width: 100vw; margin-left: calc(50% - 50vw); padding: 0 18px; }
@media (min-width: 900px) {
  .site-head { height: 64px; gap: 32px; }
  .site-logo { width: 112px; }
  .site-nav { gap: 32px; font-size: 16px; }
  .site-box { height: 46px; padding: 0 18px 0 16px; font-size: 16px; }
  .site-head.bleed { padding: 0 clamp(32px, 4.5vw, 72px); }
}
