/* Dwelltero base styles (COMPONENT_SPECIFICATIONS.md §0.4, DESIGN_SYSTEM.md §3, §9).
   Loaded after tokens.css. Everything here is in @layer base, so the legacy layer still wins while screens migrate. */
@layer base {
  /* Inter 4 variable, Latin subset, weights 400–800 with optical sizes 14–32: headings get the display cut automatically (DS-TYP-01/02).
     Manrope stays first in --dw-font-display; it's used when its WOFF2 is added to /fonts (see IMPLEMENTATION_ROADMAP.md, Phase 1). */
  @font-face {
    font-family: "Inter";
    src: url(/fonts/InterVariable-latin.woff2) format("woff2-variations"), url(/fonts/InterVariable-latin.woff2) format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--dw-shell-topbar) + var(--dw-space-4)); /* DS-LAY-03 */
    background: var(--dw-color-surface-page);
    color: var(--dw-color-text-primary);
  }
  body {
    margin: 0;
    font: var(--dw-text-body);
    font-optical-sizing: auto;
    background: var(--dw-color-surface-page);
    color: var(--dw-color-text-primary);
  }
  h1, h2, h3, h4 { margin: 0; }
  a { color: var(--dw-color-text-link); }
  button, input, select, textarea { font: inherit; color: inherit; }
  img, svg, video { max-width: 100%; }

  :focus-visible {
    outline: var(--dw-focus-ring-width) solid var(--dw-focus-ring-color);
    outline-offset: var(--dw-focus-ring-offset);
  }
  :focus:not(:focus-visible) { outline: none; }

  .dw-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;
  }
  .dw-num { font-feature-settings: var(--dw-font-numeric); }
  .dw-id { font-family: var(--dw-font-mono); font-size: var(--dw-font-size-xs); color: var(--dw-color-text-secondary); }

}

/* icons (DS-ICN-01): sized by token, colored by currentColor */
@layer base {
  .dw-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; width: var(--dw-size-icon-md); height: var(--dw-size-icon-md); }
  .dw-icon--sm { width: var(--dw-size-icon-sm); height: var(--dw-size-icon-sm); }
  .dw-icon--lg { width: var(--dw-size-icon-lg); height: var(--dw-size-icon-lg); }
}
