/* InfernoPC shared base — v1。需要先載入 tokens.css */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ui-bg);
  background-image: radial-gradient(var(--ui-dot) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--ui-text);
  font-family: var(--ui-font);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

.ui-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
