/* ===== Reset / Base ===== */
/* style.css와 sub.css에서 공통으로 사용하던 요소 레벨 스타일 */
/* 로드 순서: variables.css → reset.css → 나머지 CSS */

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-pretendard);
  background: #fff;
  width: 100%;
  min-width: 360px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.body-loaded {
  opacity: 1;
}

#app {
  width: 100%;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}
