/* =========================================================
   Metrica — atomic components
   Reusable primitives shared across all blocks:
   .container · .btn · .eyebrow · .section-meta · .section-head
   .section-lede · .chip · .arrow · .rule
   ========================================================= */

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.rule {
  height: 1px;
  background: var(--ink-100);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}
.btn-primary {
  background: var(--ink-900);
  color: var(--ink-0);
  border-color: var(--ink-900);
}
/* Hover: lift to ink-500 (muted blue-grey) + arrow slides right.
   Subdued institutional shift — no accent jump. */
.btn-primary:hover {
  background: var(--ink-500);
  border-color: var(--ink-500);
}
.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  color: var(--ink-900);
  border-color: var(--ink-200);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-900); }

.btn-text { color: var(--ink-500); }
.btn-text:hover { color: var(--ink-900); }

.btn .arrow {
  width: 14px;
  height: 14px;
  display: inline-block;
  transition: transform .2s ease;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink-400);
  display: block;
}

/* ---------- Section header anatomy ----------
   .section-meta  -> left mono marker (§ 0N) + right column with h2/p
   .section-head  -> serif H2 with italic emphasis
   .section-lede  -> grey 19px subline
*/
.section-meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 96px 0 32px;
}
.section-meta .left {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}

.section-head {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink-900);
  margin: 0 0 20px;
  max-width: 820px;
}
.section-head em {
  font-style: italic;
  color: var(--ink-500);
  font-weight: 400;
}

.section-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 760px;
  margin: 0;
}

/* ---------- Chip ---------- */
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--ink-0);
  border: 1px solid var(--ink-200);
  color: var(--ink-500);
  display: inline-block;
}

/* ---------- Mobile overrides for section heads ---------- */
@media (max-width: 900px) {
  /* Section marker stacks above the headline (desktop keeps side-by-side). */
  .section-meta {
    display: block;
    padding: 56px 0 24px;
  }
  .section-meta .left {
    display: block;
    margin-bottom: 16px;
  }
  .section-head,
  h2 {
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.1;
    letter-spacing: -.015em;
  }
  .section-lede {
    font-size: 16px;
    line-height: 1.55;
    max-width: 100%;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
  }
}

@media (max-width: 390px) {
  .section-head,
  h2 { font-size: 28px; }
}

@media (max-width: 900px) {
  a.btn,
  button.btn,
  .btn-primary,
  .btn-ghost { min-height: 44px; }
}
