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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-width: thin;
}

::selection { background: var(--color-pink-soft); }
::-moz-selection { background: var(--color-pink-soft); }

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover { color: var(--color-pink); }

ul,
ol { list-style: none; }

button,
input,
select,
textarea { font: inherit; }

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

p { line-height: var(--line-height-normal); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-orange), white 15%);
  outline-offset: 2px;
}

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