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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--glow);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--brand-ring); }

h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: var(--tr-snug); text-wrap: balance; }
h1 { font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: var(--tr-tight); }
h2 { font-size: var(--fs-xl); line-height: 1.25; }
h3 { font-size: var(--fs-l); font-weight: 600; line-height: 1.35; }
h4 { font-size: var(--fs-s); font-weight: 600; }
p { margin: 0 0 12px; }
b, strong { font-weight: 600; }

a { color: var(--brand-text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-text-hover); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }

code, kbd, pre, .mono { font-family: var(--mono); }
code {
  font-size: .88em; padding: 1px 5px; border-radius: var(--r-xs);
  background: var(--panel-3); color: var(--ink-2);
}

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