:root {
  --bg: #0c0a09;
  --text: #fafaf9;
  --muted: #a8a29e;
  --accent: #67e8f9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 26%),
    linear-gradient(180deg, #050816 0%, #0c0a09 45%, #111827 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.font-display {
  font-family: "Instrument Serif", serif;
}

.orb {
  position: fixed;
  z-index: 0;
  height: 18rem;
  width: 18rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.24;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-one {
  top: 4rem;
  left: -4rem;
  background: rgba(34, 211, 238, 0.3);
}

.orb-two {
  right: -5rem;
  bottom: 8rem;
  background: rgba(56, 189, 248, 0.22);
  animation-duration: 18s;
}

.hero-panel,
#post-grid article,
#dashboard section,
#dashboard article,
#auth-state,
#loading {
  box-shadow: 0 20px 70px rgba(2, 8, 23, 0.25);
}

.ticker-shell {
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.06), rgba(255, 255, 255, 0.02), rgba(103, 232, 249, 0.06));
}

.ticker-track {
  position: relative;
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.ticker-content {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.5rem;
  animation: ticker-scroll 36s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  color: #d6d3d1;
  font-size: 0.92rem;
  text-decoration: none;
}

.ticker-item::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.8);
}

.ticker-kicker {
  color: #67e8f9;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.prose-shell {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.9;
}

.prose-shell h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.65rem;
  font-weight: 700;
}

.prose-shell p {
  margin: 1.15rem 0;
  color: #e7e5e4;
}

.prose-shell ul {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
}

.prose-shell li {
  margin: 0.8rem 0;
  color: #d6d3d1;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2rem, -1rem, 0) scale(1.12);
  }
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .orb {
    height: 12rem;
    width: 12rem;
  }

  .ticker-content {
    animation-duration: 28s;
  }

  .prose-shell {
    font-size: 1rem;
    line-height: 1.8;
  }
}
