/* =============================================================
   BASECAMP BEND — BASE DESIGN SYSTEM
   Dark Mountain · Retro Wild · Sasquatch Country
   ============================================================= */

/* ----- CSS Custom Properties ----- */
:root {
  /* Backgrounds */
  --bg-deep:    #0b1410;
  --bg-surface: #111e14;
  --bg-card:    #172018;
  --bg-lift:    #1e2d20;

  /* Brand Colors */
  --amber:       #e8790a;
  --amber-light: #f5b03a;
  --amber-dim:   #a0520a;

  /* Text */
  --cream:     #f0e4c4;
  --cream-dim: #b8a98a;
  --muted:     #6a837a;

  /* Accents */
  --pine:       #3a6b45;
  --pine-light: #5a9468;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.07);
  --border-amber:  rgba(232, 121, 10, 0.3);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* clip is stronger than hidden — doesn't create scroll context */
}

/* ----- Base Body ----- */
body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Grain texture overlay — full page */
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='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9000;
}

/* ----- Global Typography ----- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  color: var(--cream);
}

p {
  color: var(--cream-dim);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber-light);
}

/* ----- Buttons ----- */
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--bg-deep);
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  line-height: 1;
}

.btn-primary:hover {
  background: var(--amber-light);
  color: var(--bg-deep);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.btn-secondary:hover {
  border-color: var(--amber);
  background: rgba(232, 121, 10, 0.08);
  color: var(--cream);
}

/* ----- Shared Section Utilities ----- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--amber);
}

.section-sub {
  color: var(--cream-dim);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ----- Badge (hero + misc) ----- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  border: 1px solid var(--border-amber);
  color: var(--amber-light);
  background: rgba(232, 121, 10, 0.08);
}

/* ----- Mountain Ridge Dividers ----- */
/*
  Used between sections. Each ridge SVG fills the color of the
  NEXT section, so it visually "cuts into" the current section.
  Place the div directly adjacent to — and before — the next section.
*/
.mountain-ridge {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.mountain-ridge svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Background of the ridge DIV = color of the CURRENT section */
.ridge-from-deep    { background: var(--bg-deep); }
.ridge-from-surface { background: var(--bg-surface); }

/* ----- Screen Reader Utility ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----- Scrollbar (optional polish) ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-lift); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
