/*
  base.css
  Reset + global typography + accessibility defaults.
*/
*, *::before, *::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 19px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a{
  color: var(--accent-calm);
  text-decoration: none;
}
a:hover, a:focus-visible{
  text-decoration: underline;
}

button{
  font-family: inherit;
  cursor: pointer;
}

textarea, input{
  font-family: var(--font-mono);
}

/* visible, deliberate focus state everywhere on the site */
:focus-visible{
  outline: 2px dashed var(--accent-warn);
  outline-offset: 2px;
}

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

/* respect reduced-motion at the lowest level */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.blink{
  animation: blink-caret 1.1s steps(1) infinite;
}
@keyframes blink-caret{
  0%, 49%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}
