/* ============================================================
   gb_hub — gbll design system tokens + hub page styles
   Tokens inlined from the Claude Design project (same set as the
   internal Register). Edit the design system, then re-inline;
   don't invent new colours here.
   Status treatment follows the system's dual-channel rule (§3.2):
   colour + shape, never colour alone.
   ============================================================ */

:root {
  /* brand — the single hue; focal points + focus rings only */
  --brand: #af005f;
  --brand-2: #8a004b;
  --brand-tint: #fbebf1;

  /* neutral warm ink scale */
  --ink-0: #fafaf9;
  --ink-1: #f5f3ee;   /* page background */
  --ink-2: #ece9e1;   /* rules, dividers */
  --ink-3: #d9d5cb;
  --ink-4: #a8a39a;   /* faint text */
  --ink-5: #6b6962;   /* secondary text */
  --ink-7: #1a1a1a;   /* primary ink */
  --surface: #ffffff;

  /* semantic accents — statuses always pull from these, never brand */
  --green-600: #2f7a3a;
  --green-700: #15803d;
  --amber-700: #7a4e0a;
  --blue-600: #1d4ed8;

  /* type stacks */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* shape */
  --radius-card: 8px;
  --focus-ring: 0 0 0 3px rgb(175 0 95 / 12%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-1);
  color: var(--ink-7);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.005em;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---------- masthead ---------- */
header { padding: 72px 0 40px; border-bottom: 2px solid var(--ink-7); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-5);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6.5vw, 58px);
  line-height: 1.08;
  margin-top: 20px;
  letter-spacing: -.018em;
}
h1 em { font-style: italic; color: var(--brand); }
.standfirst {
  margin-top: 18px; max-width: 58ch;
  color: var(--ink-5); font-size: 16px;
}

/* ---------- sections ---------- */
section { margin-top: 52px; }
h2 {
  font-family: var(--mono);
  font-weight: 500; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-5);
  display: flex; align-items: baseline; gap: 14px;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--ink-2); }

/* ---------- card grid ---------- */
.grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-card);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.card .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px; line-height: 1.2;
  letter-spacing: -.01em;
}
.card .desc { color: var(--ink-5); font-size: 14px; flex: 1; }

/* status tags — dual-channel: colour + shape (§3.2) */
.tag {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-5);
}
.tag .lamp { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tag--active .lamp { background: var(--green-600); }
.tag--active b { color: var(--green-700); }
.tag--demo .lamp {
  background: transparent;
  border: 1.5px solid var(--blue-600);
}
.tag--demo b { color: var(--blue-600); }
.tag--pilot .lamp {
  background: var(--amber-700);
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  width: 10px;
}
.tag--pilot b { color: var(--amber-700); }
.tag--plugin .lamp {
  background: var(--brand);
  border-radius: 2px;
}
.tag--plugin b { color: var(--brand); }
.tag b { font-weight: 500; }

/* primary action */
.action {
  margin-top: 6px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--ink-3);
  border-radius: 6px;
  padding: 8px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.action:hover { border-color: var(--brand); background: var(--brand-tint); }
.action:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
  box-shadow: var(--focus-ring);
}
.action--none {
  color: var(--ink-4);
  border-style: dashed;
  pointer-events: none;
}

/* ---------- footer ---------- */
footer {
  margin-top: 80px; padding: 28px 0 60px;
  border-top: 2px solid var(--ink-7);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-5);
}
footer a { color: var(--ink-5); text-decoration: none; }
footer a:hover { color: var(--brand); }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  header { padding: 48px 0 32px; }
}
