/* wasiq — base layer: fonts, reset, type roles, focus, motion safety. Consumes tokens.css only. */

@font-face {
  font-family: 'Geist Wght';
  src: url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geistmono Wght';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'alphalyrae';
  src: url('../fonts/AlphaLyrae-Medium.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; }
body {
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  font-weight: var(--text-body-weight);
  transition: background-color var(--duration-fast) var(--ease-out-quint), color var(--duration-fast) var(--ease-out-quint);
}
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---- type roles ---- */
.t-display { font-family: var(--font-display); font-size: var(--text-display-size); line-height: var(--text-display-line); font-weight: var(--text-display-weight); color: var(--color-text-emphasis); }
.t-h1 { font-family: var(--font-display); font-size: var(--text-h1-size); line-height: var(--text-h1-line); font-weight: var(--text-h1-weight); color: var(--color-text-emphasis); }
.t-h2 { font-family: var(--font-display); font-size: var(--text-h2-size); line-height: var(--text-h2-line); font-weight: var(--text-h2-weight); color: var(--color-text-emphasis); }
.t-h3 { font-family: var(--font-mono); font-size: var(--text-h3-size); line-height: var(--text-h3-line); font-weight: var(--text-h3-weight); color: var(--color-text-emphasis); }
.t-quote { font-family: var(--font-display); font-size: var(--text-quote-size); line-height: var(--text-quote-line); font-weight: var(--text-quote-weight); color: var(--color-text-emphasis); }
.t-link-lg { font-size: var(--text-link-lg-size); line-height: var(--text-link-lg-line); font-weight: var(--text-link-lg-weight); }
.t-body-lg { font-size: var(--text-body-lg-size); line-height: var(--text-body-lg-line); font-weight: var(--text-body-lg-weight); }
.t-body { font-size: var(--text-body-size); line-height: var(--text-body-line); font-weight: var(--text-body-weight); }
.t-body-sm { font-size: var(--text-body-sm-size); line-height: var(--text-body-sm-line); font-weight: var(--text-body-sm-weight); }
.t-caption { font-family: var(--font-mono); font-size: var(--text-caption-size); line-height: var(--text-caption-line); font-weight: var(--text-caption-weight); letter-spacing: var(--text-caption-tracking); color: var(--color-text-muted); }
.t-code { font-family: var(--font-mono); font-size: var(--text-code-size); line-height: var(--text-code-line); font-weight: var(--text-code-weight); }
.t-button {
  font-family: var(--font-sans);
  font-size: var(--text-button-label-size);
  line-height: var(--text-button-label-line);
  font-weight: var(--text-button-label-weight);
}

/* ---- focus (platform convention: :focus-visible, never removed) ---- */
:focus-visible {
  outline: var(--border-strong) solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* ---- reduced motion gate ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* canvas glyph face for the ASCII scene engine */
@font-face {
  font-family: 'GeistMono-Light';
  src: url('../fonts/GeistMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
