*,*::before,*::after{ box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure, blockquote{ margin: 0; }
ul, ol{ padding: 0; list-style: none; }
figure{ margin: 0; }
img, svg, video, iframe{ max-width: 100%; display: block; }
button{ font: inherit; cursor: pointer; }
a{ color: inherit; }
[hidden]{ display: none !important; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 12px);
  text-size-adjust: 100%;
}
@media (min-width: 768px){
  html{ scroll-padding-top: calc(var(--header-h) + 16px); }
}

html, body{
  overflow-x: hidden;
  max-width: 100vw;
}

body{
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 5%, var(--bg)) 0%, var(--bg) 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4{
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -.005em;
}

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

a{ text-decoration: none; transition: color var(--t-fast); }
a:hover{ color: var(--accent); }

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