/* ========================================
   BASE — RESET, TYPOGRAPHY, UTILITIES
   ======================================== */

/* -------- RESET -------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* -------- TYPOGRAPHY SCALE -------- */
.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }
.text-7xl   { font-size: var(--text-7xl); }

.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }
.font-body    { font-family: var(--font-body); }

/* -------- LAYOUT UTILITIES -------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

.section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* -------- COLOR UTILITIES -------- */
.text-gold   { color: var(--color-gold); }
.text-muted  { color: var(--color-text-muted); }
.text-faint  { color: var(--color-text-faint); }
.text-white  { color: var(--color-text); }

/* -------- SECTION TITLES -------- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  position: relative;
}

.section-title-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-title-line::before {
  content: '';
  display: block;
  width: 3px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}

/* -------- FOCUS VISIBLE -------- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* -------- SCROLL REVEAL BASE (override in animations.css) -------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- MONOSPACE TAG -------- */
.mono-tag {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gold);
}

/* -------- DIVIDER -------- */
.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

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

/* -------- FOOTER LEGAL LINKS -------- */
.footer-legal {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-text-muted);
}

/* -------- REDUCED MOTION -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-animate-1, .hero-animate-2, .hero-animate-3,
  .hero-animate-4, .hero-animate-5, .hero-photo-animate {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
