/* ============================================================
   AptoPack · Brand Tokens
   Foundation: Corporate Blue + Apto Gold (ULTIMATE-DNA)
   ============================================================ */

:root {
  /* — Brand Core — */
  --blue-900: #0f1f3a;
  --blue-800: #1B365D;   /* Corporate Blue · primary */
  --blue-600: #2d5a87;
  --blue-400: #4a7bb3;
  --blue-100: #e8edf5;

  --gold-700: #b8811e;
  --gold-500: #E6A532;   /* Apto Gold · accent */
  --gold-300: #f5c142;
  --gold-100: #fcedb8;
  --gold-050: #fef8e8;

  /* — Neutrals — */
  --ink-900: #111827;
  --ink-700: #374151;    /* Charcoal */
  --ink-500: #6B7280;    /* Medium */
  --ink-300: #D1D5DB;    /* Light */
  --ink-100: #F3F4F6;
  --paper:   #F9FAFB;
  --white:   #FFFFFF;

  /* — Functional — */
  --green-500: #10B981;
  --orange-500: #F59E0B;
  --red-500:   #EF4444;
  --info-500:  #3B82F6;

  /* — Typography — */
  --font-display: 'Oswald', 'Helvetica Neue', sans-serif;
  --font-body: 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* — Spacing 8px grid — */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* — Radius — */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* — Elevation — */
  --shadow-sm: 0 1px 2px rgba(15, 31, 58, 0.06);
  --shadow-md: 0 2px 8px rgba(15, 31, 58, 0.07), 0 1px 2px rgba(15, 31, 58, 0.04);
  --shadow-lg: 0 8px 24px rgba(15, 31, 58, 0.08), 0 2px 4px rgba(15, 31, 58, 0.04);

  /* — Layout — */
  --container: 1240px;
  --container-narrow: 880px;
}

/* ============================================================
   Reset + Base
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* — Display type — */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-800);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { text-wrap: pretty; }

.mono { font-family: var(--font-mono); }

/* — Container — */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container.narrow { max-width: var(--container-narrow); }

/* — Eyebrow — */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* — Folio (chapter number tag) — */
.folio {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  border-top: 1px solid var(--ink-300);
  padding-top: var(--s-3);
}
