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

html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul[role='list'], ol[role='list'] { list-style: none; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans), sans-serif;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, var(--color-bg-elevated) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, var(--color-bg-deep) 0%, transparent 70%);
  z-index: 0;
}

/*body::after {*/
/*  content: '';*/
/*  position: fixed;*/
/*  inset: 0;*/
/*  pointer-events: none;*/
/*  opacity: 0.06;*/
/*  mix-blend-mode: overlay;*/
/*  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");*/
/*  z-index: 1;*/
/*}*/

h1, h2, h3, h4 {
  font-family: var(--font-serif), serif;
  font-weight: var(--fw-regular);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

p { color: var(--color-text-muted); }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.page { position: relative; z-index: 2; }
