/* Astromesh — Mission Control aesthetic */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Override Starlight accent palette — derived from logo cyan */
  --sl-color-accent-low: #071825;
  --sl-color-accent: #00d4ff;
  --sl-color-accent-high: #67e8f9;

  /* Custom tokens */
  --am-glow: rgba(0, 212, 255, 0.35);
  --am-glow-strong: rgba(0, 212, 255, 0.6);
  --am-surface: rgba(255, 255, 255, 0.03);
  --am-border: rgba(255, 255, 255, 0.08);
  --am-border-hover: rgba(0, 212, 255, 0.4);
  --am-gradient-start: #00d4ff;
  --am-gradient-end: #06b6d4;
  --am-radius: 0.625rem;

  /* Fonts */
  --sl-font: 'DM Sans', system-ui, sans-serif;
  --sl-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── Force dark mode permanently ──────────────── */
:root {
  color-scheme: dark;
}

:root[data-theme='light'] {
  /* Redirect light tokens to dark values */
  --sl-color-accent-low: #071825;
  --sl-color-accent: #00d4ff;
  --sl-color-accent-high: #67e8f9;
  --sl-color-bg: var(--sl-color-gray-6);
  --sl-color-bg-nav: var(--sl-color-gray-6);
  --sl-color-bg-sidebar: var(--sl-color-gray-6);
  --sl-color-text: var(--sl-color-gray-1);
  --sl-color-text-accent: var(--sl-color-accent-high);
}

/* ── Header logo ─────────────────────────────── */
[data-sl-header] .site-title img,
.site-title img {
  height: 4.2rem;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.3));
  object-fit: contain;
}

/* Splash page hero refinements */
.hero {
  padding-block: 2rem !important;
}

.hero img {
  max-width: min(560px, 90vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
  animation: hero-logo-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-logo-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero .tagline {
  font-weight: 300 !important;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

/* Global link glow on hover */
a:hover {
  text-decoration-color: var(--sl-color-accent) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
