/* ========================================
   EyeChartPro - CSS Reset
   브라우저 기본 스타일 리셋
   ======================================== */

/* Box Sizing */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML & Body */
html,
body {
    height: 100%;
    overflow-x: hidden; /* 모바일 좌우 넘침 방지 */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height);
    background: var(--color-bg);
    color: var(--color-text);

    /* Font Smoothing - 폰트 부드럽게 렌더링 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Text Rendering - 가독성 최적화 */
    text-rendering: optimizeLegibility;

    /* Font Feature Settings - OpenType 기능 활성화 */
    font-feature-settings: "kern" 1, "liga" 1;

    /* Letter Spacing - 약간의 자간 추가로 선명도 향상 */
    letter-spacing: 0.01em;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Lists */
ul,
ol {
    list-style: none;
}

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

/* Inputs */
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}
