/* ============================================
   oddbawls.com — Brand Tokens & Base Styles
   Source of truth: CLAUDE.md §VISUAL
   ============================================ */

:root {
  /* ——— Color tokens ——— */
  --odb-black: #1A1A1A;       /* Primary — the void we build against */
  --odb-bone: #F5F0E8;        /* Primary — what we're made of */
  --odb-blue: #2b8fc4;        /* Secondary — earth + brand accent. NOTE: Packet lists #2D5F8A — reconcile. */
  --odb-green: #3A7D44;       /* Secondary — seasonal only; never simultaneously with blue */
  --odb-red: #C0392B;         /* Accent — roses. Rare. Achievement only. NEVER as graphic. */
  --odb-gold: #C9A84C;        /* Accent — triumph. Rarest. Never casual. */

  /* ——— Semantic tokens (dark-default surfaces) ——— */
  --bg: var(--odb-black);
  --fg: var(--odb-bone);
  --accent: var(--odb-blue);
  --muted: rgba(245, 240, 232, 0.6);
  --border: rgba(245, 240, 232, 0.12);

  /* ——— Typography ——— */
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* ——— Fluid type scale ——— */
  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.89rem);
  --step-0:  clamp(1rem,    0.95rem + 0.2vw, 1.13rem);
  --step-1:  clamp(1.2rem,  1.1rem + 0.5vw,  1.5rem);
  --step-2:  clamp(1.5rem,  1.3rem + 1vw,    2rem);
  --step-3:  clamp(2rem,    1.7rem + 1.5vw,  2.75rem);
  --step-4:  clamp(2.75rem, 2.2rem + 2.5vw,  4rem);
  --step-5:  clamp(3.75rem, 2.8rem + 4vw,    6rem);

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

  /* ——— Layout ——— */
  --measure: 65ch;
  --container: min(1200px, 100% - 2rem);
}

/* ——— Reset ——— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ——— Typography ——— */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }

p { max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { border-color: var(--accent); color: var(--accent); }

/* ——— Layout primitives ——— */
.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section--bone {
  background: var(--odb-bone);
  color: var(--odb-black);
}
.section--bone .eyebrow { color: var(--odb-black); }
.section--bone a { color: var(--odb-black); border-color: rgba(26, 26, 26, 0.2); }
.section--bone a:hover { color: var(--odb-blue); border-color: var(--odb-blue); }

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(6px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
}
.nav__mark { height: 28px; border: none; }
.nav__menu {
  display: flex;
  gap: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.nav__menu a { border: none; opacity: 0.5; pointer-events: none; } /* disabled until Phase 2 */

/* ——— Hero ——— */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: var(--space-lg);
}
.hero__emblem { width: clamp(120px, 20vw, 220px); height: auto; margin-bottom: var(--space-md); }
.hero__wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--step-5);
  letter-spacing: -0.03em;
}
.hero__truth {
  max-width: 32ch;
  margin: var(--space-md) auto 0;
  font-size: var(--step-1);
  color: var(--muted);
  line-height: 1.4;
}

/* ——— Manifesto band ——— */
.manifesto { text-align: center; }
.manifesto__line {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1.15;
  max-width: 18ch;
  margin: var(--space-md) auto 0;
  letter-spacing: -0.02em;
}
.manifesto__body {
  max-width: var(--measure);
  margin: var(--space-md) auto 0;
  font-size: var(--step-1);
  line-height: 1.5;
}

/* ——— Framework: Seeds / Thorns / Roses ——— */
.framework {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.framework__item h3 {
  margin-bottom: var(--space-sm);
  color: var(--accent);
}
.framework__item p { max-width: 36ch; }

/* ——— Email capture ——— */
.capture { max-width: 520px; margin-inline: auto; text-align: center; }
.capture h3 {
  margin: var(--space-sm) 0 var(--space-md);
  font-family: var(--font-heading);
}
.capture input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  transition: border-color 120ms ease;
}
.capture input:focus { outline: none; border-color: var(--accent); }
.capture small {
  display: block;
  margin-top: var(--space-sm);
  color: var(--muted);
  font-size: var(--step--1);
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-lg) var(--space-md);
  font-size: var(--step--1);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
}
.footer__copy { color: var(--muted); }
