/* ============================================================
   Off the Record — by Clear Lake Recording
   Brand foundations: design tokens + shared atoms.

   This is the source of truth for color, type, spacing and radii.
   Change brand values HERE — never hard-code them in a page.

   Visual register ("Telepathic Instruments"): studio-dark,
   broadcast-crisp. One Solder Orange accent on a linen-gray canvas,
   Geist + Geist Mono, flat surfaces (no drop shadows), pill controls.
   ============================================================ */

:root {
  /* ---- Color ---- */
  --canvas:      #e5e7eb;  /* page background — linen gray */
  --card:        #ffffff;  /* card / panel surface */
  --dark:        #191919;  /* dark sections, nav pill, featured card */
  --darker:      #0a0a0a;  /* hero / cinematic image backdrop */
  --ink:         #000000;  /* primary text */
  --ink-mute:    #a3a3a3;  /* muted / helper text, resting mono labels */
  --hair:        #e5e7eb;  /* hairline border on white */
  --hair-strong: #c2c2c2;  /* stronger hairline / footer rule */
  --accent:      #ff6c2f;  /* Solder Orange — the single accent */

  --on-dark:       rgba(255, 255, 255, 0.82);
  --on-dark-mute:  rgba(255, 255, 255, 0.62);
  --on-dark-faint: rgba(255, 255, 255, 0.45);

  /* ---- Type ---- */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ---- Radius ---- */
  --r-sm:   2px;
  --r-card: 24px;
  --r-lg:   32px;
  --r-nav:  64px;
  --r-pill: 9999px;

  /* ---- Layout ---- */
  --maxw: 1280px;
  --gutter: 24px;
  --section: 96px;   /* vertical rhythm between major bands */
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section); }

/* ---- Mono label / eyebrow ---- */
.mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-mute); }
.eyebrow--accent { color: var(--accent); }

/* ---- Section header: index label (left) + lead paragraph (right) ---- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
.sec-head--end { align-items: end; }
.sec-head__title {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.sec-head__lead {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.sec-head__note { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.5; }

/* ---- Buttons (pills) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { opacity: .9; }
.btn--ghost-dark { background: transparent; color: #fff; border-color: var(--on-dark-faint); }
.btn--ghost-dark:hover { border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--block { justify-content: center; width: 100%; padding: 16px; }

/* ---- Card surface ---- */
.card { background: var(--card); border-radius: var(--r-card); }
.card--dark { background: var(--dark); color: #fff; }

/* ---- Reveal-on-scroll (progressive enhancement) ----
   Gated on .js: with no JavaScript, all content stays visible by default. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  :root { --section: 72px; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
