/* ============================================================
   기본 리셋 및 타이포그래피 베이스
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: var(--fs-base);
  color: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 커스텀 브랜드 커서 (수도꼭지) ---------- */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor-active,
  .custom-cursor-active a,
  .custom-cursor-active button,
  .custom-cursor-active input,
  .custom-cursor-active textarea,
  .custom-cursor-active select,
  .custom-cursor-active .btn {
    cursor: none;
  }
}
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 19px;
  height: 19px;
  color: var(--color-brand);
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.custom-cursor.show {
  opacity: 1;
}
.custom-cursor svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cursor-drop {
  position: fixed;
  width: 5px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
  z-index: 100000;
  animation: cursor-drop-fall 0.5s ease-out forwards;
}
@keyframes cursor-drop-fall {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) rotate(45deg) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) translateY(16px) scale(0.4);
  }
}
