/**
 * axsysTek Sandbox — Base Reset & Typography
 * Depends on: tokens.css
 */

/* ── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography — Base ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); font-family: var(--font-body); font-weight: var(--fw-bold); letter-spacing: var(--ls-normal); }
h5 { font-size: var(--text-xl);  font-family: var(--font-body); font-weight: var(--fw-semibold); letter-spacing: var(--ls-normal); }
h6 { font-size: var(--text-lg);  font-family: var(--font-body); font-weight: var(--fw-semibold); letter-spacing: var(--ls-normal); }

/* Slalom-pattern: one word in italic for emphasis */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: inherit;
}

p {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
  max-width: 68ch; /* readable measure */
}

/* Lead paragraph */
.lead {
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-regular);
  color: var(--color-text-primary);
}

/* Section overline label */
.label-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-orange);
  display: block;
  margin-bottom: var(--space-3);
}

/* Data/stat label */
.label-mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: var(--color-mid);
  text-transform: uppercase;
}

a {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: var(--transition-color);
}

a:hover {
  color: var(--color-blue-dk);
  text-decoration-color: currentColor;
}

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

ul, ol {
  list-style: none;
}

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

/* ── Focus Ring ─────────────────────────────────────────────────────────── */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-sm);
}

/* ── Skip to Content ────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Selection ──────────────────────────────────────────────────────────── */
::selection {
  background-color: rgba(25, 80, 215, 0.18);
  color: var(--color-ink);
}

/* ── Scrollbar (WebKit) ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-linen); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-mid); }
