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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background-color: var(--page);
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 36%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 36%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--font-ticmiro-display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--motion-panel), color var(--motion-panel);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--pixel-black) 7%, transparent) 3px 4px);
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-ticmiro-display);
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

code,
pre,
kbd,
samp,
.eyebrow {
  font-family: var(--font-ticmiro-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button,
[role="button"],
a,
input,
textarea,
select {
  outline: 2px solid transparent;
  outline-offset: 3px;
}

:focus-visible {
  outline-color: var(--bag-teal);
}

::selection {
  background: var(--star-orange);
  color: var(--pixel-black);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--night-950);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--night-950);
  border-radius: 0;
  background: var(--night-700);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
