/* =========================================================
   TalNXT base: reset, typography, layout primitives, utilities
   Requires tokens.css
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: var(--fs-h1); line-height: 1.22; }
h2 { font-size: var(--fs-h2); line-height: 1.28; }
h3 { font-size: var(--fs-h3); line-height: 1.32; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #9bbcf0; outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: 12px; top: -48px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.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; }

/* ---- layout ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 42px 0; }
.sec.tight { padding: 24px 0; }
.sec.loose { padding: 64px 0; }
.row-flex { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }   /* wraps instead of overflowing on tablets */
.row-flex.top { align-items: flex-start; }
.stack > * + * { margin-top: var(--sp-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* ---- type helpers ---- */
.eyebrow { font-size: var(--fs-eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.eyebrow.on-dark { color: var(--accent-on-dark); }
.muted { color: var(--muted); }
.copy { font-size: var(--fs-body); line-height: 1.7; color: var(--text); }
.copy.sm { font-size: 13.5px; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text); }
.measure { max-width: 640px; }
.center { text-align: center; }

/* ---- responsive breakpoints (mobile-last; see SKILL.md) ---- */
@media (max-width: 1080px) { :root { --gutter: 32px; } }
@media (max-width: 900px)  { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  {
  :root { --gutter: 20px; }
  .sec { padding: 30px 0; }
  .sec.loose { padding: 44px 0; }
  .row-flex { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 24px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px)  { .grid-4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
