/* ============================================================
   Prototype base layer — reset + primitives on top of tokens.css
   Import order:  tokens.css  ->  base.css  ->  prototype styles
   Shared by the gateway (login/portal) and every prototype that
   opts in. Keep it minimal: a normalize, sane defaults, nothing
   opinionated enough to fight a prototype's own look.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--ice-font-sans);
  font-size: var(--ice-text-base);
  line-height: var(--ice-leading-body);
  color: var(--ice-text);
  background: var(--ice-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: var(--ice-leading-snug);
  font-weight: var(--ice-weight-semibold);
  color: var(--ice-text);
}

a {
  color: var(--ice-link);
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--ice-focus-width) var(--ice-focus-ring);
  border-radius: var(--ice-radius-sm);
}

*:focus:not(:focus-visible) {
  outline: none;
}
