/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; }

main {
  min-width: 0;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }

:root { color-scheme: light; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: var(--line-normal);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-semibold);
}

h1 {
  font-size: var(--heading-1);
  font-weight: var(--weight-bold);
}

h2 {
  font-size: var(--heading-2);
}

h3 {
  font-size: var(--heading-3);
  font-weight: var(--weight-medium);
}

h4 {
  font-size: var(--heading-4);
  font-weight: var(--weight-medium);
}

p, li {
  line-height: var(--line-copy);
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Links */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Selection */
::selection {
  background: rgba(201, 164, 107, 0.35);
}
