* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  background: var(--bg-gradient);
  background-attachment: fixed;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(80, 71, 183, 0.4);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

html:lang(zh-CN) body,
html:lang(zh-TW) body {
  line-height: 1.68;
}

html:lang(zh-CN) :is(h1, h2, h3),
html:lang(zh-TW) :is(h1, h2, h3) {
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
