/* Reset & Global Styles */
@font-face {
    font-family: 'Pretendard';
    src: url('../../assets/fonts/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../../../assets/fonts/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../../../assets/fonts/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../../../assets/fonts/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../../../assets/fonts/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../../../assets/fonts/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../../../assets/fonts/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../../../assets/fonts/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../../../assets/fonts/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* 1. 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. HTML, Body 기본 설정 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: #333;
    word-break: keep-all;
    word-wrap: break-word;
}

/* 3. 링크 및 버튼 리셋 */
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

button {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: normal;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;
    -webkit-appearance: none;
    cursor: pointer;
}

/* 4. 이미지 및 미디어 요소 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

video, 
canvas, 
audio, 
iframe, 
embed, 
object {
    display: block;
    max-width: 100%;
}

/* 5. 폼 요소 리셋 */
input, 
textarea, 
select, 
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 6. 리스트 스타일 리셋 */
ul, 
ol {
    list-style: none;
}

/* 7. 테이블 리셋 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 8. 인용구 리셋 */
blockquote, 
q {
    quotes: none;
}

blockquote:before, 
blockquote:after, 
q:before, 
q:after {
    content: '';
    content: none;
}

/* 9. 접근성 관련 */
[hidden] {
    display: none !important;
}

[disabled] {
    cursor: not-allowed;
}

/* 10. 스크린리더 전용 클래스 */
.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 11. 모바일 터치 최적화 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 12. 선택 영역 스타일 */
::selection {
    background-color: #b3d4fc;
    text-shadow: none;
}

/* layout 스타일 */
.wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* PC, 모바일 노출 스타일 */
.mobile-page {
    display: none;
}

.pc-page {
    display: block;
}

/* 모바일 */
@media screen and (max-width: 767px) {
    .mobile-page {
        display: block;
    }

    .pc-page {
        display: none;
    }
}