/* base.css — reset, typography, layout primitives */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { background: var(--surface-2); }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* Headings */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { max-width: var(--measure); }
p, li { text-wrap: pretty; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }

strong { font-weight: 700; color: var(--text); }

/* Layout primitives */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.stack > * + * { margin-top: var(--flow, 1.25em); }
.grid { display: grid; gap: var(--sp-6); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-6); }
@media (max-width: 860px) { .grid-12 { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 520px) { .grid-12 { grid-template-columns: repeat(2, 1fr); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.lead { font-size: var(--step-1); color: var(--text-2); line-height: 1.6; max-width: 60ch; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-sm);
  transition: top var(--dur-1) var(--ease);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
