/* SCL UI — reset, font and base typography. */
@layer scl.reset, scl.tokens, scl.base, scl.layout, scl.components, scl.utilities;

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/scl-ui/instrument-sans-wght-570a9648.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@layer scl.reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, video { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }
}

@layer scl.base {
  html { background: var(--color-canvas); }
  body {
    background: var(--color-canvas);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: var(--leading-body);
    font-feature-settings: "ss01" on, "cv11" on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 { font-weight: var(--weight-semibold); line-height: var(--leading-snug); color: var(--color-text); text-wrap: balance; }
  h1 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
  h2 { font-size: var(--text-lg); letter-spacing: var(--tracking-snug); }
  h3 { font-size: var(--text-md); letter-spacing: var(--tracking-snug); }
  h4 { font-size: var(--text-base); }
  p { text-wrap: pretty; }
  small { font-size: var(--text-sm); }
  strong, b { font-weight: var(--weight-semibold); }
  a { color: var(--color-brand-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  a:hover { text-decoration-thickness: 2px; }
  code, kbd { font-family: var(--font-mono); font-size: 0.86em; background: var(--color-surface-raised); border-radius: var(--radius-xs); padding: 0.1em 0.35em; }
  hr { border: 0; border-top: 1px solid var(--color-border); }
  ::selection { background: var(--color-accent-soft); color: var(--color-text); }

  /* one focus treatment everywhere: visible, branded, never on mouse click */
  :focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-xs); }
}
