* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--oz-font-family-sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--oz-font-size-body);
  line-height: var(--oz-line-height-body);
}

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

a { color: var(--primary); }

h1, h2, h3, p { margin-top: 0; }

h1 { font-size: var(--oz-font-size-h1); line-height: var(--oz-line-height-heading); color: var(--primary-dark); font-weight: 700; }
h2 { font-size: var(--oz-font-size-h2); line-height: var(--oz-line-height-heading); color: var(--primary-dark); font-weight: 700; }
h3 { font-size: var(--oz-font-size-h3); line-height: 1.3; font-weight: 700; }

code, pre {
  font-family: var(--oz-font-family-mono);
}

pre {
  white-space: pre-wrap;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--oz-radius-md);
  padding: var(--oz-space-3);
  max-height: 520px;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sub { color: var(--muted); font-size: var(--oz-font-size-label); line-height: 1.45; }
.mono { font-family: var(--oz-font-family-mono); }
.nowrap { white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--oz-color-brand-active);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(var(--oz-color-brand-rgb), 0.22);
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}
