/* ═══════════════════════════════════════════════════════════
   MigrationProvision — Base
   Reset, root typography, layout primitives, prose.
═══════════════════════════════════════════════════════════ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-4); }

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
button:focus-visible { outline: none; box-shadow: var(--sh-focus); }

input, select, textarea { font: inherit; color: inherit; }
img, svg, video { max-width: 100%; display: block; height: auto; }

ul, ol { list-style: none; }

::selection { background: var(--c-authority); color: var(--c-ink); }

/* ── Headings ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

.h1, h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); font-weight: 600; }
.h2, h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem); }
.h3, h3 { font-size: clamp(1.35rem, 1vw + .8rem, 1.75rem); }
.h4, h4 { font-size: var(--fs-20); }
.h5, h5 { font-size: var(--fs-17); }

/* Display variant — used only on home hero */
.display {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--c-authority-d);
  margin-bottom: var(--space-4);
}

.eyebrow--ink { color: var(--c-ink); }
.eyebrow--on-dark { color: var(--c-authority-l); }

.lead {
  font-size: clamp(var(--fs-18), 1vw + .85rem, var(--fs-20));
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  text-wrap: pretty;
  max-width: 620px;
}

.text-center .lead { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--c-ink);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--c-paper-2);
  letter-spacing: var(--tracking-wide);
}

.kicker__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-authority);
}

/* ── Prose (article / legal-doc content) ──────────── */
.prose { color: var(--text-body); }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: var(--fs-28); margin-top: var(--space-9); }
.prose h3 { font-size: var(--fs-20); margin-top: var(--space-7); }
.prose h4 { font-size: var(--fs-18); }
.prose p, .prose li { font-size: var(--fs-17); line-height: var(--lh-relaxed); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul li, .prose ol li { margin-top: var(--space-2); }
.prose a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-authority);
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--c-authority-d); }
.prose strong { color: var(--text-strong); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--c-authority);
  padding: var(--space-2) var(--space-6);
  margin-left: 0;
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-size: var(--fs-20);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--c-slate-100);
  padding: 1px 6px;
  border-radius: var(--r-4);
  color: var(--c-ink);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-9) 0; }

/* ── Layout primitives ────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-7);
}
.container--narrow { max-width: var(--container-narrow); }
.container--prose  { max-width: var(--container-prose); }

@media (max-width: 640px) {
  .container { padding: 0 var(--space-5); }
}

.section { padding: var(--space-12) 0; }
.section--sm { padding: var(--space-9) 0; }
.section--lg { padding: var(--space-13) 0; }

@media (max-width: 768px) {
  .section { padding: var(--space-10) 0; }
  .section--sm { padding: var(--space-9) 0; }
  .section--lg { padding: var(--space-11) 0; }
}

.section--paper { background: var(--c-paper-2); }
.section--muted { background: var(--bg-muted); }
.section--ink {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .lead { color: var(--text-on-dark-m); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-9) auto; }
.section-head--left { text-align: left; margin-left: 0; }

/* ── Utility ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-strong { color: var(--text-strong); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-authority { color: var(--c-authority-d); }
.text-danger { color: var(--c-danger); }
.text-success { color: var(--c-success); }

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.stack > * + * { margin-top: var(--space-4); }
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-8 > * + * { margin-top: var(--space-8); }

.row { display: flex; align-items: center; gap: var(--space-3); }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.column { display: flex; flex-direction: column; gap: var(--space-3); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.hide-mobile { }
@media (max-width: 640px) { .hide-mobile { display: none !important; } }
.show-mobile { display: none !important; }
@media (max-width: 640px) { .show-mobile { display: initial !important; } }

.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;
}

/* ── Decorative paper rule — gives the document feel ─ */
.rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
  border: 0; margin: var(--space-9) 0;
}
.rule--short { width: 60px; height: 2px; background: var(--c-authority); margin: var(--space-4) 0; }
.rule--center { margin-left: auto; margin-right: auto; }
