/* Reset, typography, layout primitives — shared across all 4 sibling sites. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }
ul, ol { padding: 0; margin: 0; }
li { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.15; color: #0f172a; }
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0; }

::selection { background: var(--selection-bg); color: var(--selection-fg); }

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.container-prose { max-width: 768px; }

/* Spacing helpers */
.section-pad   { padding: 5rem 0; }
.section-pad-lg{ padding: 5rem 0 6rem; }
.section-pad-sm{ padding: 3.5rem 0; }
@media (min-width: 768px) { .section-pad-lg { padding: 6rem 0 7.5rem; } }

/* Visibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.show-sm { display: none; }
.hide-sm { display: block; }
@media (min-width: 640px) { .show-sm { display: block; } }
@media (min-width: 1024px) {
  .show-lg { display: flex; }
  .hide-lg { display: none !important; }
}
.show-lg { display: none; }

/* Layout grids */
.grid    { display: grid; gap: 1.5rem; }
.grid-2  { grid-template-columns: 1fr; }
.grid-3  { grid-template-columns: 1fr; }
.grid-4  { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 12-col grid for splits */
.grid-12 {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(12, 1fr);
}
.col-span-5 { grid-column: span 12; }
.col-span-7 { grid-column: span 12; }
.col-span-8 { grid-column: span 12; }
.col-span-4 { grid-column: span 12; }
@media (min-width: 1024px) {
  .col-span-5 { grid-column: span 5; }
  .col-span-7 { grid-column: span 7; }
  .col-span-8 { grid-column: span 8; }
  .col-span-4 { grid-column: span 4; }
}

/* Utility */
.text-center { text-align: center; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10{ margin-top: 2.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12{ margin-bottom: 3rem; }

.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-white     { color: #ffffff; }
.text-brand-700 { color: var(--brand-700); }
.text-brand-600 { color: var(--brand-600); }
.text-brand-500 { color: var(--brand-500); }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}
