@charset "utf-8";

/* ===========================================================================
   reset.css — 프로젝트 공통 CSS 리셋 / 베이스 스타일
   - 전역 box-sizing: border-box
   - 기본 margin / padding 초기화
   - 폰트 / 색상 inherit
   - 모든 페이지에서 가장 먼저 로드
=========================================================================== */

/* =========================================
   [1] 전역 박스 모델 / 마진·패딩 초기화
========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   [2] HTML / Body 기본
========================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main, #111827);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
}

/* =========================================
   [3] 시맨틱 블록 요소
========================================= */
main,
header,
footer,
nav,
section,
article,
aside,
figure,
figcaption {
    display: block;
}

/* =========================================
   [4] 헤딩 / 단락
========================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: inherit;
}

p {
    margin: 0;
}

/* =========================================
   [5] 리스트
========================================= */
ul,
ol,
li {
    list-style: none;
}

/* =========================================
   [6] 링크
========================================= */
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

a:focus-visible {
    outline: 2px solid var(--color-main, #0267FF);
    outline-offset: 2px;
}

/* =========================================
   [7] 폼 요소
========================================= */
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

button:disabled {
    cursor: not-allowed;
}

input,
textarea,
select {
    border: 1px solid var(--border-light, #E9E9E9);
    background: #FFFFFF;
}

textarea {
    resize: vertical;
}

/* iOS Safari 기본 스타일 제거 */
input,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* =========================================
   [8] 미디어 요소
========================================= */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

iframe {
    border: 0;
}

/* =========================================
   [9] 테이블
========================================= */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

th,
td {
    text-align: left;
    vertical-align: top;
}

/* =========================================
   [10] 기타
========================================= */
hr {
    border: 0;
    height: 1px;
    background: var(--border-light, #E9E9E9);
    margin: 0;
}

address {
    font-style: normal;
}

/* 모션 줄이기 환경설정 존중 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
