/* EC Hustles | base.css — Typography, global, font-face */

/* ── Self-Hosted Fonts ──────────────────────────────────────────────
   Download from Google Fonts and place in assets/fonts/:
   - assets/fonts/bebas-neue.woff2
   - assets/fonts/montserrat-variable.woff2
   README.md has download instructions.
   ──────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../assets/fonts/bebas-neue.woff2') format('woff2'),
       url('../assets/fonts/bebas-neue.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-variable.woff2') format('woff2-variations'),
       url('../assets/fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-variable-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── HTML / Body ──────────────────────────────────────────────────── */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--black);
  overflow-x: hidden;
}

/* ── Skip-to-Content ──────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: var(--z-top);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ── Typography ───────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.display { font-size: var(--fs-display); }

p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-muted);
}

p + p { margin-top: var(--sp-3); }

strong { color: var(--text-primary); font-weight: 600; }

em { font-style: italic; color: var(--gold); }

/* ── Gold Accents ─────────────────────────────────────────────────── */

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-primary); }

/* ── Section Labels ───────────────────────────────────────────────── */

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: var(--sp-2);
}

/* ── Hairline ─────────────────────────────────────────────────────── */

.hairline {
  border: none;
  border-top: 1px solid rgba(var(--gold-rgb), 0.2);
  margin: 0;
}

/* ── Custom Cursor ────────────────────────────────────────────────── */

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [role="button"], input, select, textarea, summary { cursor: none; }
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-top);
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

#cursor-dot.active { opacity: 1; }
#cursor-dot.expanded { width: 32px; height: 32px; background: rgba(var(--gold-rgb), 0.2); border: 1px solid var(--gold); }

@media (hover: none), (pointer: coarse) {
  #cursor-dot { display: none; }
}

/* ── Selection ────────────────────────────────────────────────────── */

::selection {
  background: rgba(var(--gold-rgb), 0.25);
  color: var(--text-primary);
}

/* ── Scrollbar ────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
