/* Coupe Marra — shared site nav (desktop bar + mobile overlay). Self-contained; no Tailwind dependency. */
:root {
  --cm-ground: #0A0C0E;
  --cm-ink: #EDE7DC;
  --cm-red: #ff0036;
  --cm-hair: rgba(237,231,220,.13);
  --cm-nav-h: 58px;
  --cm-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Anchor targets land below the fixed bar (works for /#music arrivals too). */
section[id], footer[id], article[id] { scroll-margin-top: var(--cm-nav-h); }

.cm-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--cm-nav-h);
  z-index: 1001;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
  background: rgba(10,12,14,.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cm-hair);
  font-family: 'Sora', sans-serif;
  color: var(--cm-ink);
  transition: background-color .35s var(--cm-ease), border-color .35s var(--cm-ease);
}
@media (max-width: 767px) { .cm-bar { padding: 0 16px 0 20px; } }

.cm-brand {
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--cm-ink); text-decoration: none; white-space: nowrap;
  transition: color .35s var(--cm-ease);
}
.cm-brand .cm-dot { color: var(--cm-red); transition: color .35s var(--cm-ease); }
@media (max-width: 767px) { .cm-brand { font-size: 18.75px; } }

.cm-links { display: none; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.cm-link {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .1725em; line-height: 1.15;
  color: var(--cm-ink); text-decoration: none; padding: 8px 0;
  transition: color .2s ease;
}
.cm-link:hover, .cm-link[aria-current]:hover { color: #00aeff; }
.cm-link[aria-current] { color: var(--cm-red); }

.cm-actions { display: flex; align-items: center; gap: 10px; }
.cm-pill {
  display: none; align-items: center;
  padding: 8px 16px; border: 1px solid var(--cm-hair); border-radius: 999px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .15em; line-height: 1;
  color: var(--cm-ink); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cm-pill:hover { background: var(--cm-ink); color: var(--cm-ground); }
.cm-cta {
  display: inline-flex; align-items: center;
  padding: 8px 14px; background: var(--cm-red); color: #fff;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: filter .2s ease, opacity .25s ease;
}
.cm-cta:hover { filter: brightness(1.1); }

.cm-bar a:focus-visible, .cm-toggle:focus-visible {
  outline: 2px solid var(--cm-red); outline-offset: 3px; border-radius: 2px;
}

/* Hamburger: two thin lines that morph into an X */
.cm-toggle {
  position: relative; width: 44px; height: 44px; margin: 0 -8px 0 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--cm-ink);
  -webkit-tap-highlight-color: transparent;
}
.cm-toggle-box { position: relative; width: 22px; height: 10px; display: block; }
.cm-toggle-line {
  position: absolute; left: 0; width: 22px; height: 1.5px; border-radius: 1px;
  background: currentColor;
  transition: transform .4s var(--cm-ease), top .4s var(--cm-ease), background-color .35s var(--cm-ease);
}
.cm-toggle-line:nth-child(1) { top: 0; }
.cm-toggle-line:nth-child(2) { top: 8.5px; }
.cm-open .cm-toggle { color: var(--cm-ground); }
.cm-open .cm-toggle-line:nth-child(1) { top: 4.25px; transform: rotate(45deg); }
.cm-open .cm-toggle-line:nth-child(2) { top: 4.25px; transform: rotate(-45deg); }
.cm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Bar while the menu is open: dissolve into the red sheet */
.cm-open .cm-bar { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cm-open .cm-brand, .cm-open .cm-brand .cm-dot { color: var(--cm-ground); }
.cm-open .cm-cta { opacity: 0; pointer-events: none; }

/* Full-screen mobile menu */
.cm-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--cm-red); color: var(--cm-ground);
  display: flex; flex-direction: column;
  padding: calc(var(--cm-nav-h) + 4vh) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--cm-ease), visibility 0s linear .4s;
}
.cm-open .cm-menu { opacity: 1; visibility: visible; transition: opacity .4s var(--cm-ease), visibility 0s linear 0s; }

.cm-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-menu-item {
  opacity: 0; transform: translateY(56px) skewY(4deg); filter: blur(6px);
  transform-origin: left bottom;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.cm-open .cm-menu-item {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .7s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(180ms + var(--i, 0) * 95ms);
}
.cm-menu-link {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(34px, 10.6vw, 64px); line-height: 1.06; letter-spacing: -0.035em;
  color: var(--cm-ground); text-decoration: none;
  padding: 4px 0;
}
.cm-menu-num {
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .15em;
  opacity: .55; transform: translateY(-1.6em); min-width: 1.6em;
}
.cm-menu-link .cm-period { opacity: 0; transition: opacity .2s ease; }
.cm-menu-link[aria-current] .cm-period { opacity: 1; }
@media (hover: hover) { .cm-menu-link:hover .cm-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; } }
.cm-menu a:focus-visible { outline: 2px solid var(--cm-ground); outline-offset: 4px; border-radius: 2px; }

.cm-menu-foot {
  margin-top: auto; padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(10,12,14,.22);
}
.cm-menu-foot.cm-menu-item { transition-delay: 0s; }
.cm-open .cm-menu-foot.cm-menu-item { transition-delay: calc(180ms + var(--i, 0) * 95ms); }
.cm-menu-foot { padding-top: 20px; }
.cm-menu-spotify {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .15em;
  color: var(--cm-ground); text-decoration: none; padding: 10px 0;
}
.cm-menu-spotify svg { width: 16px; height: 16px; flex: none; }
.cm-menu-mark {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
  color: var(--cm-ground); white-space: nowrap;
}

/* Scroll lock while the menu is open */
html.cm-lock, html.cm-lock body { overflow: hidden !important; }

/* Desktop (md and up): inline links, no overlay */
@media (min-width: 768px) {
  .cm-links { display: flex; }
  .cm-pill { display: inline-flex; }
  .cm-toggle, .cm-menu { display: none !important; }
  .cm-bar.cm-has-cta .cm-links { gap: 26px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cm-bar.cm-has-cta .cm-pill { display: none; }
}

/* No-JS fallback */
.cm-noscript { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; height: var(--cm-nav-h); display: flex; align-items: center; gap: 18px; padding: 0 20px; overflow-x: auto; background: rgba(10,12,14,.92); border-bottom: 1px solid var(--cm-hair); }
.cm-noscript a { font-family: 'Sora', sans-serif; font-size: 10.5px; text-transform: uppercase; letter-spacing: .15em; color: var(--cm-ink); text-decoration: none; white-space: nowrap; }


/* Quick close: links lift away, panel slides up */
.cm-closing .cm-menu {
  opacity: 1; visibility: visible; transform: translateY(-100%);
  transition: transform .34s cubic-bezier(.7,0,.84,0) .08s;
}
.cm-closing .cm-menu-item {
  opacity: 0; transform: translateY(-24px); filter: none;
  transition: opacity .16s ease-in, transform .2s ease-in; transition-delay: 0s;
}
.cm-closing .cm-brand, .cm-closing .cm-brand .cm-dot { color: var(--cm-ground); }
.cm-menu.cm-noanim, .cm-menu.cm-noanim .cm-menu-item { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .cm-bar, .cm-brand, .cm-toggle-line, .cm-menu, .cm-menu-item, .cm-open .cm-menu, .cm-open .cm-menu-item, .cm-closing .cm-menu, .cm-closing .cm-menu-item {
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .cm-menu-item { transform: none; filter: none; }
}

/* Official profile icons (footers + mobile menu). Markup generated by tools/build_aeo.py from aeo/band.json. */
.cm-social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cm-social li { margin: 0; padding: 0; list-style: none; }
.cm-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 2px;
  color: rgba(237,231,220,.62); text-decoration: none;
  transition: color .2s ease;
}
.cm-social svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.cm-social a:hover { color: #00aeff; }
.cm-social a:focus-visible { outline: 2px solid var(--cm-red); outline-offset: 2px; color: #00aeff; }
.cm-social--footer { order: -1; margin-left: -9px; }
@media (min-width: 640px) { .cm-social--footer { flex: 0 0 100%; } }
.cm-social--light a { color: rgba(255,255,255,.82); }
.cm-social--light a:hover, .cm-social--light a:focus-visible { color: #00aeff; }
.cm-social--center { justify-content: center; }
.cm-social--home { margin-bottom: 64px; gap: 8px; }
.cm-social--home a { width: 40px; height: 40px; }
.cm-social--home svg { width: 20px; height: 20px; }
/* mobile menu foot: icon row above "Listen on Spotify" */
.cm-menu-foot { flex-wrap: wrap; row-gap: 6px; }
.cm-menu-social { flex: 0 0 100%; margin-left: -10px; gap: 2px; }
.cm-menu-social a { width: 40px; height: 40px; color: var(--cm-ground); }
.cm-menu-social svg { width: 19px; height: 19px; }
.cm-menu-social a:hover { color: #fff; }
.cm-menu .cm-menu-social a:focus-visible { outline: 2px solid var(--cm-ground); outline-offset: 0; color: var(--cm-ground); }
