/* ==========================================================================
   Azura — GTA 6 fan hub
   main.css: tokens, reset, base layout
   ========================================================================== */

:root {
  /* Color — Vice City dusk: ink navy base, sunset magenta + biscayne teal accents */
  --bg: #0d0b12;
  --bg-raised: #141019;
  --surface: #191420;
  --surface-2: #211a2b;
  --border: #2c2438;
  --border-soft: #221c2c;

  --text: #f3eff6;
  --text-muted: #a79cbd;
  --text-faint: #6f6480;

  --accent: #ff3e78;      /* sunset magenta — primary */
  --accent-dim: #7a2140;
  --teal: #00d4bd;        /* biscayne teal — secondary */
  --gold: #ffb454;        /* sparing highlight only */

  --focus-ring: #00d4bd;

  --radius-sm: 3px;
  --radius-md: 6px;

  --max-width: 1180px;
  --gutter: 24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@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;
  }
}

/* Type scale
   ========================================================================== */
h1, .h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 60ch;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}

/* Layout
   ========================================================================== */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--border-soft);
}

/* Horizon divider — the one signature motif, used once as skyline/sunset seam */
.horizon {
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--accent) 55%, var(--gold));
  opacity: 0.85;
}

/* Directory grid — grouped link lists rather than repeated identical cards */
.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
}

.directory-group h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.directory-group ul { display: grid; gap: 8px; }

.directory-group a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s var(--ease);
}

.directory-group a:hover,
.directory-group a:focus-visible {
  color: var(--text);
}

/* Utility */
.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;
}

/* Hero split layout — homepage intro + feature card */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .wrap { padding: 0 18px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
}