/* ══════════ SITE NAV ══════════
   One nav for every page: the floating pill, the island it turns into while scrolling,
   the round home and menu buttons, and the full-screen menu. */
:root { --sn-acc: #FF86A8; --sn-ease: cubic-bezier(0.16, 1, 0.3, 1); --sn-spring: cubic-bezier(0.34, 1.28, 0.64, 1); }

/* the pill */
#storeNav.store-nav {
  position: fixed !important; top: 20px !important; left: 50% !important; right: auto !important; bottom: auto !important;
  transform: translateX(-50%); z-index: 1000 !important; margin: 0 !important;
  width: max-content !important; min-width: 0 !important; max-width: calc(100vw - 48px) !important; height: auto !important;
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 0 !important;
  padding: 10px 8px !important; overflow: visible !important;
  background: rgba(38,47,82,0.8) !important; border: 1px solid rgba(249,252,244,0.1) !important; border-radius: 100px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important; backdrop-filter: blur(20px) saturate(1.6) !important;
  transition: width .6s var(--sn-spring), height .6s var(--sn-spring), transform .45s cubic-bezier(0.4, 0, 0.2, 1),
    background-color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}
#storeNav.store-nav.nav-hidden { transform: translateX(-50%) !important; opacity: 1 !important; pointer-events: auto !important; }
#storeNav .nav-links {
  display: flex !important; position: relative !important; z-index: 1; flex-direction: row !important; align-items: center !important;
  justify-content: center !important; gap: 16px !important; margin: 0 !important; padding: 0 !important; inset: auto !important;
  width: auto !important; height: auto !important; background: none !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; overflow: visible !important;
  opacity: 1; transform: none !important; transition: opacity .25s ease, filter .3s ease;
}
#storeNav .nav-links a {
  position: relative; z-index: 1; display: inline-block !important; width: auto !important; margin: 0 !important;
  padding: 9px 18px !important; border: 0 !important; border-radius: 100px !important; background: none !important; box-shadow: none !important;
  font: 700 10px/16px 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: 2.5px !important; text-transform: uppercase !important; text-decoration: none !important; white-space: nowrap !important;
  color: #F9FCF4 !important; transition: color .25s ease !important; -webkit-tap-highlight-color: transparent;
}
#storeNav .nav-links a:hover, #storeNav .nav-links a[aria-current] { color: var(--sn-acc) !important; }
#storeNav .nav-links a.is-blob { color: #1D2440 !important; }
#storeNav .nav-links a::before, #storeNav .nav-links a::after { display: none !important; }

/* liquid pill behind the hovered link */
.nav-blob {
  position: absolute; top: 10px; bottom: 10px; left: 0; width: 0; z-index: 0; border-radius: 100px !important;
  background: var(--sn-acc); opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(0.34, 1.4, 0.64, 1), width .5s cubic-bezier(0.34, 1.4, 0.64, 1), opacity .25s ease;
}
.nav-blob.is-on { opacity: 1; }

/* island */
.isl {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 16px; opacity: 0; pointer-events: none; color: #FFF; transition: opacity .25s ease;
}
.isl-ring { width: 20px; height: 20px; transform: rotate(-90deg); flex: none; }
.isl-ring circle { fill: none; stroke-width: 2.4; }
.isl-ring-bg { stroke: rgba(255,255,255,0.22); }
.isl-ring-fg { stroke: var(--sn-acc); stroke-linecap: round; stroke-dasharray: 50.27; stroke-dashoffset: var(--off, 50.27); }
.isl-label { font: 600 13px/1 'Inter', sans-serif; letter-spacing: 0.1px; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s ease, transform .3s var(--sn-ease); }
.isl-label.is-swap { opacity: 0; transform: translateY(5px); }
.isl-eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.isl-eq i { width: 3px; height: 100%; background: var(--sn-acc); border-radius: 2px !important; animation: islEq 0.9s ease-in-out infinite; transform-origin: bottom; }
.isl-eq i:nth-child(2) { animation-delay: -0.3s; }
.isl-eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes islEq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.is-music .isl-eq { display: inline-flex; }
#storeNav.store-nav.is-island {
  overflow: hidden !important; cursor: pointer; background: #121831 !important; border-color: #F9FCF4 !important;
  box-shadow: 0 10px 30px rgba(0,0,40,0.28) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
#storeNav.is-island .nav-links { opacity: 0; filter: blur(6px); pointer-events: none; }
#storeNav.is-island .isl { opacity: 1; transition-delay: .12s; }
#storeNav.is-island .nav-blob { opacity: 0; }

/* name in the corner, books button and menu button */
.sn-word {
  position: fixed; top: 22px; left: 26px; z-index: 2147482000; height: 52px; display: flex; align-items: center;
  font: 800 22px/1 'Inter Tight', 'Inter', sans-serif !important; letter-spacing: -0.04em !important; text-transform: uppercase;
  color: #F9FCF4 !important; text-decoration: none !important; white-space: nowrap; background: none !important; border: 0 !important;
  transition: color .25s ease, opacity .25s ease;
}
.sn-word:hover { color: var(--sn-acc) !important; }
.sn-fly .sn-word { opacity: 0; pointer-events: none; }
.sn-fly.sn-landed .sn-word { opacity: 1; pointer-events: auto; }
.sn-cta, .mn-btn { position: fixed; top: 22px; z-index: 2147482000; height: 52px; margin: 0; -webkit-tap-highlight-color: transparent; transition: transform .35s var(--sn-ease), background-color .25s, color .25s; }
.sn-cta {
  right: 88px; display: flex; align-items: center; padding: 0 22px !important; border-radius: 999px !important;
  background: #F9FCF4 !important; color: #1D2440 !important; border: 0 !important; box-shadow: 0 8px 24px rgba(5,8,25,0.35);
  font: 600 15px/1 'Inter', sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; white-space: nowrap;
}
.sn-cta:hover { transform: scale(1.04); background: var(--sn-acc) !important; }
.mn-btn { right: 26px; width: 52px; padding: 0; border-radius: 50% !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; background: #F9FCF4 !important; border: none !important; box-shadow: 0 8px 24px rgba(5,8,25,0.35); }
.mn-btn span { display: block; width: 18px; height: 2px; background: #1D2440; border-radius: 2px !important; transition: transform .45s var(--sn-ease); }
.mn-btn:hover { transform: scale(1.06); background: var(--sn-acc) !important; }
.mn-open .mn-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.mn-open .mn-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* full-screen menu */
.mn {
  position: fixed; inset: 0; z-index: 2147481999; overflow-y: auto; padding: 96px 24px 40px;
  background: rgba(18,24,49,0.9); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  display: flex; align-items: flex-start; justify-content: center; opacity: 0; transition: opacity .35s ease;
}
.mn[hidden] { display: none; }
.mn:focus { outline: none; }
.mn-open .mn { opacity: 1; }
.mn-list, .sn-rows {
  width: min(900px, 100%) !important; max-width: none !important; display: flex !important; flex-direction: column !important; align-items: stretch !important;
  gap: 10px; margin: auto 0 !important; padding: 0 !important; position: static !important; inset: auto !important; height: auto !important;
  background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* numbered rows, used by the menu and the end of every page */
.mn-row {
  display: grid !important; grid-template-columns: clamp(56px, 18%, 190px) 1fr auto; align-items: center;
  min-height: clamp(64px, 9vw, 112px); padding: 0 clamp(20px, 4vw, 48px) !important; border-radius: 999px !important;
  background: #2A3254 !important; color: #F9FCF4 !important; text-decoration: none !important; border: 0 !important;
  transition: opacity .5s ease, transform .7s var(--sn-ease), background-color .3s ease, color .3s ease;
  transition-delay: calc(var(--k) * 55ms), calc(var(--k) * 55ms), 0s, 0s;
}
.mn .mn-row, .sn-rows:not(.is-in) .mn-row { opacity: 0; transform: translateY(36px); }
.mn-open .mn .mn-row { opacity: 1; transform: none; }
.mn-num { font: 500 15px/1 'Inter', sans-serif; color: rgba(249,252,244,0.55); transition: color .3s; }
.mn-title { min-width: 0; font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: clamp(30px, 5.4vw, 60px); letter-spacing: -0.04em; line-height: 1; transition: transform .45s var(--sn-ease); }
.mn-arrow { width: clamp(46px, 6vw, 74px); height: clamp(46px, 6vw, 74px); border-radius: 50% !important; border: 1px solid rgba(249,252,244,0.4); display: flex; align-items: center; justify-content: center; transition: border-color .3s, transform .45s var(--sn-ease); }
.mn-arrow svg { width: 40%; height: 40%; }
.mn-row[aria-current] .mn-num { color: var(--sn-acc); }
.mn-row:hover, .mn-row:focus-visible { background: var(--sn-acc) !important; color: #1D2440 !important; }
.mn-row:hover .mn-num, .mn-row:focus-visible .mn-num { color: rgba(29,36,64,0.6); }
.mn-row:hover .mn-title, .mn-row:focus-visible .mn-title { transform: translateX(10px); }
.mn-row:hover .mn-arrow { border-color: #1D2440; transform: rotate(45deg); }
.mn-open body { overflow: hidden !important; }

/* two-tone headings: a white line, then an accent line */
.tt { font-family: 'Inter Tight', 'Inter', sans-serif !important; font-style: normal !important; font-weight: 800 !important; letter-spacing: -0.04em !important; line-height: 1 !important; }
.tt-a, .tt-b { display: block; }
.tt-a { color: #F9FCF4; }
.tt-b { color: var(--sn-acc); }

/* end of every page: the rows again, then socials */
.sn-explore { max-width: 1000px; margin: 0 auto; padding: 110px 24px 40px; display: flex; flex-direction: column; align-items: center; }
.sn-explore .tt { font-size: clamp(36px, 5.6vw, 72px); text-align: center; margin: 0 0 48px; }
.sn-foot { max-width: 1000px; margin: 0 auto; padding: 24px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; background: none; border: 0; }
.sn-soc { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sn-soc a {
  width: 48px; height: 48px; border-radius: 50% !important; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(249,252,244,0.3) !important; color: #F9FCF4 !important; background: none !important; text-decoration: none !important;
  transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--sn-ease);
}
.sn-soc a:hover { background: var(--sn-acc) !important; border-color: var(--sn-acc) !important; color: #1D2440 !important; transform: translateY(-3px); }
.sn-soc svg { width: 17px; height: 17px; }
.sn-legal { margin: 0; font: 400 13px/1.6 'Inter', sans-serif; color: rgba(249,252,244,0.6); text-align: center; }
.sn-legal a { color: inherit !important; text-decoration: underline !important; text-underline-offset: 3px; }
.sn-legal a:hover { color: var(--sn-acc) !important; }

/* room for the floating nav on pages that used to have a bar at the top */
.sn-space { height: 92px; }
body > nav.book-nav, body > nav.nav { position: relative !important; top: auto !important; }

/* narrower screens: the pill steps aside for the name, books button and menu */
@media (max-width: 1100px) {
  #storeNav.store-nav { display: none !important; }
  .sn-space { height: 84px; }
}
@media (max-width: 640px) {
  .sn-word { top: 16px; left: 16px; height: 48px; font-size: 16px !important; }
  .sn-cta, .mn-btn { top: 16px; height: 48px; }
  .mn-btn { right: 16px; width: 48px; }
  .sn-cta { right: 72px; padding: 0 16px !important; font-size: 14px !important; }
  .sn-space { height: 76px; }
  .mn { padding-top: 84px; }
  .mn-list, .sn-rows { gap: 8px; }
  .sn-explore { padding-top: 80px; }
}
@media (max-width: 359px) { .sn-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #storeNav.store-nav, .nav-blob, .mn, .mn-row, .mn-title, .mn-btn span { transition: none !important; }
  .sn-rows .mn-row { opacity: 1 !important; transform: none !important; }
  .isl-eq i { animation: none; }
}
