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

html {
  min-width: 320px;
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  flex-direction: column;
  color: var(--ink);
  background: var(--page-bg);
}

main {
  flex: 1 0 auto;
}

body,
button,
select {
  font: inherit;
}

button,
select {
  color: inherit;
}

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

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

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

button {
  border: 0;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.pixel-text,
.pixel-heading {
  font-family: var(--font-pixel);
  font-weight: 400;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.body-cn {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.85;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.page-enter {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.is-ready .page-enter {
  opacity: 1;
  transform: translateY(0);
}

.is-page-leaving-down .page-enter {
  opacity: 0;
  transform: translateY(-16px);
}

.is-page-leaving-up .page-enter {
  opacity: 0;
  transform: translateY(16px);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

::selection {
  color: var(--surface);
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-iteration-count: 1 !important;
  }

  .page-enter,
  .is-page-leaving-down .page-enter,
  .is-page-leaving-up .page-enter {
    transform: none;
    transition: opacity 160ms ease-out;
  }
}
