/* ==========================================================================
   Joz Social Co — Website 8 — Base Styles (base.css)
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--type-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* ======================================================================
   HEADINGS
   ====================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  color: var(--text-primary);
}

h1 {
  font-size: clamp(var(--type-4xl), 6vw, var(--type-6xl));
  letter-spacing: var(--ls-tight);
}

h2 {
  font-size: clamp(var(--type-3xl), 4vw, var(--type-5xl));
  letter-spacing: var(--ls-tight);
}

h3 {
  font-size: clamp(var(--type-2xl), 3vw, var(--type-3xl));
}

h4 {
  font-size: var(--type-xl);
}

/* ======================================================================
   TEXT
   ====================================================================== */

p {
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

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

.text-center {
  text-align: center;
}

/* ======================================================================
   LINKS
   ====================================================================== */

a {
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ======================================================================
   EYEBROW
   ====================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--type-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ======================================================================
   SELECTION
   ====================================================================== */

::selection {
  background-color: var(--color-gold-muted);
  color: var(--color-black);
}

/* ======================================================================
   SCROLLBAR (WebKit)
   ====================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-sand);
}

::-webkit-scrollbar-thumb {
  background: var(--color-beige);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ======================================================================
   DARK SECTION OVERRIDES
   ====================================================================== */

.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--text-on-dark);
}

.dark-section p {
  color: var(--text-on-dark-muted);
}

.dark-section .eyebrow {
  color: var(--color-gold);
}

/* ======================================================================
   SCROLL ANIMATIONS
   ====================================================================== */

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
