/* ============================================================
   HUB DESIGN SYSTEM - colors + type
   Locked 2026-05-24
   See: 03_sandboxes/hub/design-system/BRAND_LOOKBOOK.md
   Distinct from Artempire (cream editorial) + Zidicircle (white teal)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* === Foundation === */
  --hub-ivory:    #F2F0EA;   /* primary background (cooler than Artempire) */
  --hub-bone:     #FAF8F2;   /* card surface, one shade lighter */
  --hub-ink:      #0E1A2A;   /* headlines + structural lines */
  --hub-charcoal: #1F1A14;   /* body text */
  --hub-graphite: #574E40;   /* section mono labels */

  /* === Accents - used sparingly === */
  --hub-blueprint: #3D5A7A;  /* draftsman's blueprint blue */
  --hub-clay:      #6B3520;  /* engineering-stamp clay - NOT Artempire orange */
  --hub-stone:     #A8A29A;  /* borders, secondary text */
  --hub-page-rule: #C9C3B5;  /* dividers */

  /* === Type - GT Sectra / Tiempos preferred; Spectral as web-safe fallback === */
  --hub-display-serif: 'GT Sectra', 'Tiempos Headline', 'Spectral', Georgia, serif;
  --hub-body-sans:     'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hub-mono:          'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', 'Menlo', monospace;

  /* === Sizes === */
  --hub-h1:       3.5rem;     /* 56px */
  --hub-h2:       2.25rem;    /* 36px */
  --hub-h3:       1.5rem;     /* 24px */
  --hub-body-lg:  1.125rem;   /* 18px */
  --hub-body:     1rem;       /* 16px */
  --hub-small:    0.875rem;   /* 14px */
  --hub-mono-sz:  0.75rem;    /* 12px */

  /* === Spacing rhythm === */
  --hub-rhythm: 8px;
  --hub-section-gap: 96px;
  --hub-container-max: 1280px;
  --hub-gutter: 24px;
}

@media (max-width: 720px) {
  :root {
    --hub-h1: 2.25rem;
    --hub-h2: 1.5rem;
    --hub-section-gap: 64px;
    --hub-gutter: 16px;
  }
}

/* === Base surfaces === */
html, body { background: var(--hub-ivory); color: var(--hub-charcoal); font-family: var(--hub-body-sans); }

/* === Headlines === */
.hub-h1, .hub-h2, .hub-h3 {
  font-family: var(--hub-display-serif);
  font-weight: 600;
  color: var(--hub-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hub-h1 { font-size: var(--hub-h1); }
.hub-h2 { font-size: var(--hub-h2); }
.hub-h3 { font-size: var(--hub-h3); line-height: 1.25; }

/* === Body === */
.hub-body, .hub-prose p {
  font-family: var(--hub-body-sans);
  font-size: var(--hub-body-lg);
  line-height: 1.65;
  color: var(--hub-charcoal);
}

/* === Section labels === */
.hub-mono-label {
  font-family: var(--hub-mono);
  font-size: var(--hub-mono-sz);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hub-graphite);
  font-weight: 500;
}

.hub-section-marker {
  font-family: var(--hub-mono);
  font-size: var(--hub-mono-sz);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hub-blueprint);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

/* === Dividers === */
.hub-rule { border: 0; border-top: 1px solid var(--hub-page-rule); margin: 24px 0; }
.hub-rule-thick { border: 0; border-top: 2px solid var(--hub-ink); margin: 32px 0; }

/* === Buttons / CTA === */
.hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hub-body-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 22px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.hub-btn-primary {
  background: var(--hub-ink);
  color: var(--hub-ivory);
}
.hub-btn-primary:hover {
  background: var(--hub-clay);
}
.hub-btn-ghost {
  background: transparent;
  color: var(--hub-ink);
  border: 1px solid var(--hub-ink);
}
.hub-btn-ghost:hover {
  background: var(--hub-ink);
  color: var(--hub-ivory);
}

/* === Diagnostic table (the signature element) === */
.hub-diagnostic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hub-ink);
  border-bottom: 1px solid var(--hub-ink);
  margin: 24px 0;
}
.hub-diagnostic > div {
  padding: 18px 20px;
  border-right: 1px solid var(--hub-page-rule);
}
.hub-diagnostic > div:last-child { border-right: 0; }
.hub-diagnostic-label {
  font-family: var(--hub-mono);
  font-size: var(--hub-mono-sz);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hub-graphite);
  margin-bottom: 8px;
}

/* === Container === */
.hub-container { max-width: var(--hub-container-max); margin: 0 auto; padding: 0 var(--hub-gutter); }

/* === Cards (use sparingly) === */
.hub-card {
  background: var(--hub-bone);
  padding: 28px 32px;
  border-left: 3px solid var(--hub-blueprint);
}
