/* ============================================================
   PULP FICTION CHRONICLES — base.css
   Design System: Deep Noir-Pulp
   Fonts: Alfa Slab One (Aachen Bold), Barlow Condensed (Univers),
          Special Elite (Reporter/typewriter)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Barlow+Condensed:wght@400;600;700;800&family=Special+Elite&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Backgrounds */
  --bg:           #0C0A09;
  --surface:      #16120F;
  --surface-2:    #211A14;
  --surface-3:    #2C2218;

  /* Text */
  --text:         #EDE0C8;
  --text-muted:   #9A8575;
  --text-faint:   #5C4E42;

  /* Accent — Pulp Crimson */
  --accent:       #C41230;
  --accent-dim:   #8B0D21;
  --accent-glow:  rgba(196, 18, 48, 0.22);
  --accent-bright:#E01535;

  /* Parchment — pulp magazine cream */
  --parchment:    #EDE0C8;
  --parchment-dim:#C8B89A;

  /* Borders */
  --border:       rgba(196, 18, 48, 0.18);
  --border-cream: rgba(237, 224, 200, 0.12);
  --divider:      rgba(237, 224, 200, 0.07);

  /* Typography Scale */
  --font-display: 'Alfa Slab One', serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Special Elite', serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;

  /* Transitions */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --fast:      150ms;
  --mid:       300ms;
  --slow:      600ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--fast);
}
.skip-link:focus { top: 1rem; }

/* ── TYPOGRAPHY BASE ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

h1 { font-size: clamp(3.5rem, 10vw, 9rem); font-family: var(--font-display); letter-spacing: 0.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h4 { font-size: 1.2rem; }

p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 72ch;
}

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

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

/* ── UTILITY CLASSES ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.section {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--divider);
}

.section:first-of-type { border-top: none; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── HALFTONE TEXTURE ── */
.halftone-bg {
  position: relative;
}
.halftone-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(196,18,48,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 2px; }
