/* ═══════════════════════════════════════════
   BASE — Base element styles + Typography
   MoMoney-inspired: Dark, bold, vibrant
   ═══════════════════════════════════════════ */

html {
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--surface-text);
  background-color: var(--surface-bg);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Utility Classes ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Headings (MoMoney: BOLD, uppercase, punchy) ─── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-extra);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  text-transform: lowercase;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

/* Poetic / italic subheadlines — lighter weight, no uppercase */
.text-poetic {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  font-style: italic;
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-snug);
}

/* ─── Paragraphs ─── */
p {
  max-width: 65ch;
}

/* ─── Links ─── */
a {
  cursor: none;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
  border-radius: var(--border-radius-sm);
}

/* ─── Images ─── */
img {
  height: auto;
  font-style: italic;
  border-radius: var(--border-radius-lg);
}

/* ─── Strong / Em ─── */
strong { font-weight: var(--weight-bold); }
em { font-style: italic; }

/* ─── Code ─── */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ─── Visually Hidden (for screen readers) ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Skip Link ─── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-3) var(--space-6);
  background: var(--neon-cyan);
  color: var(--surface-bg);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: none;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--border-radius-pill);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  outline: none;
}

/* ─── Selection ─── */
::selection {
  background: rgba(0, 229, 255, 0.35);
  color: #fff;
}

.zone-deep ::selection,
.zone-shallow ::selection {
  background: rgba(168, 85, 247, 0.4);
  color: #fff;
}

.zone-bio ::selection {
  background: rgba(255, 107, 53, 0.35);
  color: #fff;
}

/* ─── Body cursor restore for touch ─── */
@media (pointer: coarse) {
  body, a, button {
    cursor: auto;
  }
}
