/* ─────────────────────────────────────────────────────────────
   Hyveminds — reset, typography, atoms
   From product/_shared.css lines 29-57 and index.html lines 71-95,
   de-duplicated. Class names are the source's and are not renamed
   (CLAUDE.md §3).
   ───────────────────────────────────────────────────────────── */

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

* { margin: 0; padding: 0; }

html,
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body { font-size: 15px; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

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

/* Accessibility — neither exists in the prototype (CLAUDE.md §2.3.9). */
:focus-visible {
  outline: 2px solid var(--p);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 11px 20px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-2);
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  left: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* ─── atoms ─── */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.eyebrow {
  font-family: var(--label);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-3);
  font-weight: 400;
}

.eyebrow-p { color: var(--p); }

.serif { font-family: var(--serif); font-weight: 400; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); }

.rule { height: 1px; background: var(--rule); width: 100%; }

/* ─── buttons ───
   The two sources disagree on .btn-primary's shadow: _shared.css
   tints it with ink, index.html with the brand blue. Ink wins —
   it is accent-agnostic, so it works on all eight product accents,
   and the difference on the home page is a shadow tint. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn-primary,
.btn-product {
  background: var(--p);
  color: #fff;
  box-shadow: 0 1px 2px rgba(27, 27, 31, .16), 0 2px 8px -2px rgba(27, 27, 31, .22);
}

.btn-primary:hover {
  filter: brightness(.93);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -3px rgba(27, 27, 31, .3);
}

.btn-product:hover {
  filter: brightness(.92);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--rule-2);
  color: var(--p);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--p);
  background: var(--p-dim);
}

.btn sup {
  font-size: 10px;
  color: var(--ink-3);
  margin-left: 6px;
  font-family: var(--mono);
  font-weight: 400;
}

/* ─── pills ───
   .tag (product pages) and .evidence-pill (home) are the same atom
   under two names. Both are kept so the ported markup can stay
   byte-comparable to its source. */

.tag,
.evidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--label);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-3);
  background: var(--paper);
}

.tag .dot,
.evidence-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--p);
}

.tag-beta {
  background: var(--p-dim);
  border-color: transparent;
  color: var(--p);
}

.evidence-pill { transition: border-color .16s, background .16s; }

.evidence-pill:hover {
  border-color: var(--p);
  background: var(--p-dim);
}

/* A row of buttons under a heading or a lede. */
.actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* WordPress pagination and multi-page links. */
.page-links {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--label);
  font-size: 13px;
  color: var(--ink-3);
}

.page-links a:hover { color: var(--p); }

/* ─── prose (post_content regions: Legal, Approach, Careers) ─── */

.prose > * + * { margin-top: 1.1em; }

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}

.prose h2 { font-size: clamp(26px, 2.6vw, 36px); }
.prose h3 { font-size: 24px; }
.prose h4 { font-size: 19px; }

.prose p,
.prose li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  text-wrap: pretty;
}

.prose ul,
.prose ol { padding-left: 1.2em; }

.prose li + li { margin-top: .4em; }

.prose a {
  color: var(--p);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong { font-weight: 600; color: var(--ink); }

.prose blockquote {
  border-left: 3px solid var(--p);
  padding-left: 20px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}

.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
}
