/* ============================================================
   BASE.CSS — Reset · Variables · Fonts · Grain · Shared Base
   Sauce Marley — James Guidry Personal Brand Site
   ============================================================ */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

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

html {
  scroll-behavior: smooth;
}

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

ul, ol {
  list-style: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --black:      #0A0A0A;
  --black-2:    #111111;
  --gray-dark:  #1A1A1A;
  --gray-mid:   #2A2A2A;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --gold-dim:   #7A6428;
  --cream:      #F5F0E8;
  --cream-dim:  #B0A890;

  /* Typography */
  --font-display:   'Bebas Neue', sans-serif;
  --font-body:      'Barlow Condensed', sans-serif;
  --font-editorial: 'DM Serif Display', serif;

  /* Spacing */
  --pad-section:    5rem 1.25rem;
  --pad-section-lg: 8rem 3rem;
  --pad-nav:        1.2rem 1.25rem;
  --max-content:    1200px;
  --max-grid:       1100px;
  --max-video:      800px;

  /* Borders */
  --border-gold:      1px solid rgba(201, 168, 76, 0.2);
  --border-gold-faint: 1px solid rgba(201, 168, 76, 0.12);

  /* Transitions */
  --transition-base: 0.2s ease;
  --transition-reveal: opacity 0.7s ease, transform 0.7s ease;
}

/* ============================================================
   BODY & GLOBAL
   ============================================================ */
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-reveal);
}

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

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--cream);
  margin-bottom: 3rem;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 2rem;
}

.story-title em {
  color: var(--gold);
  font-style: normal;
}

/* ============================================================
   GOLD RULE DIVIDER
   ============================================================ */
.gold-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   BREAKPOINTS (reference)
   Mobile-first base → 640 → 768 → 1024 → 1280
   ============================================================ */
@media (min-width: 640px) {
  :root {
    --pad-nav: 1.2rem 2rem;
    --pad-section: 5rem 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-nav: 1.2rem 3rem;
    --pad-section: 7rem 3rem;
  }
}
