@font-face {
  font-family: 'BC Ludva';
  src: url('../assets/fonts/BCLudva-Bold.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Zanzalu Light Mode (Default) */
  --bg-page: #fdfad9;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.7);
  --text-main: #012350;
  --text-muted: #3a4b63;
  --border-subtle: #e4e0ba;
  --border-strong: #029bbd;
  
  --accent-cyan: #029bbd;
  --accent-coral: #f2415d;
  --accent-yellow: #fee451;

  --glass-surface: rgba(253, 250, 217, 0.75);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 16px 36px rgba(1, 35, 80, 0.08), 0 2px 6px rgba(1, 35, 80, 0.04);

  --font-display: 'BC Ludva', 'Big Shoulders Display', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  /* Zanzalu Dark Mode */
  --bg-page: #012350;
  --bg-surface: #041938;
  --bg-card: rgba(4, 25, 56, 0.7);
  --text-main: #fdfad9;
  --text-muted: #a6b7cf;
  --border-subtle: #12376d;
  --border-strong: #029bbd;

  --accent-cyan: #029bbd;
  --accent-coral: #f2415d;
  --accent-yellow: #fee451;

  --glass-surface: rgba(4, 25, 56, 0.75);
  --glass-border: rgba(18, 55, 109, 0.85);
  --glass-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 15% 15%, rgba(255, 255, 255, 0.6) 0px, transparent 65%),
    radial-gradient(at 85% 20%, rgba(254, 228, 81, 0.15) 0px, transparent 60%),
    radial-gradient(at 50% 80%, rgba(2, 155, 189, 0.08) 0px, transparent 70%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(at 15% 15%, rgba(2, 155, 189, 0.12) 0px, transparent 65%),
    radial-gradient(at 85% 20%, rgba(4, 25, 56, 0.8) 0px, transparent 60%),
    radial-gradient(at 50% 80%, rgba(0, 0, 0, 0.5) 0px, transparent 70%);
}

.desktop-only {
  display: flex !important;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 980px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
}

#mobileMenuMount {
  display: contents;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }

  #mobileMenuMount,
  #mobileMenuMount .mobile-glass-burger {
    display: block !important;
  }

  #mobileMenuMount .mobile-glass-burger {
    display: flex !important;
  }
}

/* --- Top Floating Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  pointer-events: none;
}

.nav-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

.nav-pill {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 5px 8px;
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.25);
}

.nav-btn.active {
  background: var(--text-main);
  color: var(--bg-page);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* --- Top-Right Glass Capsule (Search, Cart, Dark Mode) --- */
.top-right-wrapper {
  position: fixed;
  top: 20px;
  right: 28px;
  pointer-events: auto;
}

.glass-action-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.capsule-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.capsule-btn span,
.capsule-btn a,
.capsule-btn:hover,
.capsule-btn:focus,
.cart-count-badge {
  text-decoration: none !important;
}

.capsule-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.capsule-btn.icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.capsule-btn.icon-only svg {
  margin: auto;
  display: block;
  flex-shrink: 0;
}

.cart-count-badge {
  background: var(--accent-coral);
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 800;
}

.capsule-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-coral);
  outline-offset: 3px;
}

.glass-specular-light {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  pointer-events: none;
  border-radius: 999px;
}

[data-theme="dark"] .glass-specular-light {
  background: linear-gradient(90deg, transparent 0%, rgba(2, 155, 189, 0.4) 50%, transparent 100%);
}

/* --- Mobile Floating Glass Cart Button (Beside Burger) --- */
.mobile-glass-cart {
  position: fixed;
  top: 16px;
  right: 68px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: none;
  align-items: center;
  gap: 7px;
  color: var(--text-main);
  text-decoration: none !important;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  z-index: 250;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

[data-theme="dark"] .mobile-glass-cart {
  border-color: rgba(18, 55, 109, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 980px) {
  .mobile-glass-cart {
    display: flex !important;
  }
}

.mobile-glass-cart:hover {
  transform: translateY(-1px);
}

.mobile-glass-cart svg {
  flex-shrink: 0;
}

/* --- Mobile Floating Circular Glass Trigger --- */
.mobile-glass-burger {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 250;
  overflow: hidden;
  isolation: isolate;
}

/* Suppress the linear horizontal specular light strip from clipping across circular icon */
.mobile-glass-burger .glass-specular-light {
  display: none !important;
}

[data-theme="dark"] .mobile-glass-burger {
  border-color: rgba(18, 55, 109, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#mobileMenuMount .mobile-glass-burger {
  pointer-events: auto;
}

.zanzalu-emblem-svg {
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 26px;
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mobile-glass-burger .ring-outer { fill: var(--accent-coral); }
.mobile-glass-burger .ring-cream { fill: var(--bg-page); }
.mobile-glass-burger .ring-cyan { fill: var(--accent-cyan); }
.mobile-glass-burger .ring-dark { fill: var(--text-main); }
.mobile-glass-burger .ring-yellow { fill: var(--accent-yellow); }
.mobile-glass-burger .ring-core { fill: var(--text-main); }
.mobile-glass-burger .satellite-dot { fill: var(--bg-page); }

.burger-close-x {
  position: absolute;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 300;
  color: var(--text-main);
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
  transition: all 0.25s ease;
  pointer-events: none;
}

.mobile-glass-burger.open .zanzalu-emblem-svg {
  opacity: 0;
  transform: scale(0.5) rotate(180deg);
}

.mobile-glass-burger.open .burger-close-x {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* --- Mobile Drawer --- */
.mobile-drawer {
  position: fixed;
  top: 68px;
  left: 16px;
  right: 16px;
  background: var(--glass-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: var(--glass-shadow);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Scroll Animations (Anti-Jitter) */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* The reveal is done: hand back the compositing layer the will-change above was keeping
   alive. js/main.js adds this on transitionend (with a timeout as the backstop for
   reveals that never transition, such as reduced motion). */
.fade-in.is-settled {
  will-change: auto;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.mobile-drawer-link.active {
  background: var(--text-main);
  color: var(--bg-page);
}

.mobile-drawer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer-actions .capsule-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  flex: 1;
  justify-content: center;
}

/* --- Global Fixed Brand Lockup --- */
.site-brand-lockup {
  position: fixed;
  top: 20px;
  left: 28px;
  z-index: 210;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  pointer-events: auto;
  line-height: 1;
}

/* Desktop: Frosted protective halo behind emblem to eliminate painting clash */
@media (min-width: 981px) {
  .site-brand-lockup {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    padding: 4px;
    box-shadow: var(--glass-shadow);
  }
}

.site-brand-lockup .brand-emblem-svg {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(1, 35, 80, 0.15));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-brand-lockup:hover .brand-emblem-svg {
  transform: scale(1.05);
}

/* No hover distortion on brand mark */
.site-brand-lockup:hover .brand-emblem-svg {
  transform: none;
}

/* Mobile: Identical Glass Pill (Vertically Centered with Burger & Cart) */
.site-brand-lockup .brand-wordmark-mobile {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  user-select: none;
  padding: 5px 12px;
  height: 30px;
  box-sizing: border-box;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Exact same glass styling tokens as .mobile-glass-cart and .mobile-glass-burger */
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text-main);
}

[data-theme="dark"] .site-brand-lockup .brand-wordmark-mobile {
  border-color: rgba(18, 55, 109, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 980px) {
  .site-brand-lockup {
    top: 16px;
    left: 16px;
    height: 44px; /* Matches exact height of burger & cart buttons */
    display: inline-flex;
    align-items: center; /* Centers the 30px tight pill on the 44px vertical axis */
  }
}

/* ==========================================================================
   Monumental Zanzalu Midnight Navy Footer (~70vh Proportion & Large Grid)
   ========================================================================== */
.site-footer {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #01142e;
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(2, 155, 189, 0.3) 0%, transparent 65%),
    radial-gradient(circle at 90% 90%, rgba(242, 65, 93, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #012350 0%, #000a18 100%);
  color: #fdfad9;
  padding: 96px 48px 42px;
  margin-top: 96px;
  border-top: 1.5px solid rgba(2, 155, 189, 0.35);
  box-sizing: border-box;
}

.site-footer-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 60px;
}

/* 4-Column Architectural Distribution */
.footer-columns-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.6fr 1.3fr;
  gap: 48px;
  align-items: flex-start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Col 1: Brand & Origin */
.footer-col-brand {
  gap: 14px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.zanzalu-footer-emblem {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.footer-brand-name {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1;
}

.footer-brand-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #9cb2cf;
  max-width: 340px;
}

.footer-origin-pill {
  font-family: monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  background: rgba(2, 155, 189, 0.12);
  border: 1px solid rgba(2, 155, 189, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
}

/* Column Labels */
.footer-col-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-coral);
  display: block;
}

/* Standard Nav Links with Underline Reveal */
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fdfad9;
  opacity: 0.85;
  text-decoration: none !important;
  width: fit-content;
  padding-bottom: 2px;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover {
  opacity: 1;
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-link:hover::after {
  width: 100%;
}

/* Large-Text Legal Pages Column */
.footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-legal-link {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fdfad9;
  line-height: 1.15;
  text-decoration: none !important;
  width: fit-content;
  padding-bottom: 3px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-legal-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: #fdfad9;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-legal-link:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-legal-link:hover::after {
  width: 100%;
}

/* Big Social Links: Tactile Touch/Click Targets */
.footer-social-cluster-large {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fdfad9;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.social-btn-large svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
  transition: transform 0.25s ease, color 0.25s ease;
}

.social-btn-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.social-btn-large:hover {
  background: rgba(2, 155, 189, 0.18);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  transform: translateX(4px);
}

.social-btn-large:hover svg {
  color: var(--accent-coral);
  transform: scale(1.15);
}

/* Divider & Bottom Status Bar */
.footer-divider-rule {
  width: 100%;
  height: 1px;
  background: rgba(228, 224, 186, 0.14);
  margin-top: auto;
}

.footer-copyright-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(253, 250, 217, 0.65);
  letter-spacing: 0.02em;
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-wire-hint {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-wire-hint:hover {
  color: var(--accent-coral);
}

/* Responsive Column Reflow */
@media (max-width: 1080px) {
  .site-footer {
    min-height: auto;
    padding: 72px 32px 36px;
  }

  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 680px) {
  .site-footer {
    padding: 56px 20px 28px;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-copyright-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   Cookie Consent Banner (Zanzalu Glass Capsule)
   ========================================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--glass-surface);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 20px 48px rgba(1, 35, 80, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 300;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.cookie-consent-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-text-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cookie-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-main);
  line-height: 1;
}

.cookie-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cookie-desc a {
  color: var(--accent-cyan);
  text-decoration: underline !important;
}

/* ==========================================================================
   Inline Prose Links (brand mentions inside body copy)
   ========================================================================== */
.prose-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent-cyan);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose-link:hover,
.prose-link:focus-visible {
  color: var(--accent-coral);
  text-decoration-color: var(--accent-coral);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--text-main);
  color: var(--bg-page);
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-accept:hover {
  background: var(--accent-coral);
  color: #FFFFFF;
}

@media (max-width: 580px) {
  .cookie-consent-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --- Global Search & Command Palette --- */
.search-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 35, 80, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-palette-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-palette-shell {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(1, 35, 80, 0.25);
  overflow: hidden;
  transform: translateY(-14px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-palette-backdrop.is-open .search-palette-shell {
  transform: translateY(0) scale(1);
}

[data-theme="dark"] .search-palette-shell {
  background: #041938;
  border-color: #12376d;
}

.palette-input-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.palette-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.palette-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
}

.palette-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.palette-esc-hint {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.palette-item:hover,
.palette-item.is-selected {
  background: rgba(2, 155, 189, 0.08);
  transform: translateX(3px);
}

[data-theme="dark"] .palette-item:hover {
  background: rgba(2, 155, 189, 0.16);
}

.palette-item-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--bg-page);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.palette-item-tag.tag-artist {
  color: var(--accent-coral);
  border-color: rgba(242, 65, 93, 0.3);
}

.palette-item-tag.tag-artwork {
  color: var(--accent-cyan);
  border-color: rgba(2, 155, 189, 0.3);
}

.palette-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.palette-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.palette-item-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.palette-item-arrow {
  color: var(--text-muted);
  opacity: 0.4;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.palette-item:hover .palette-item-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--accent-coral);
}

.palette-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}