/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x: hidden 会导致 position: sticky 失效，改用 clip */
  overflow-x: clip;
}

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

body {
  font-family: var(--font-family-primary);
  font-weight: 400;
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.5;
  /* overflow-x: hidden 会导致 position: sticky 失效，改用 clip */
  overflow-x: clip;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-section-padding);
  width: 100%;
}

/* Utility Classes */
.section {
  width: 100%;
  position: relative;
  /* overflow: hidden 会导致子元素的 sticky 失效，改用 clip */
  overflow: clip;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}
