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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background-color: var(--c-body);
  color: var(--c-text);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--c-text);
  background-color: var(--c-body);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--dur-slow) var(--ease-out);
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul, ol {
  list-style: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--c-gold);
  color: var(--c-dusk);
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-md);
  z-index: var(--z-modal);
  padding: var(--space-sm) var(--space-md);
  background: var(--c-surface);
  color: var(--c-text-head);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  border: 1px solid var(--c-border);
  border-radius: 0 0 4px 4px;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--c-dusk);
}
::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-bronze);
}
