/* ========================================
   Hard CSS Reset
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

html {
    font-size: 100%;
    color-scheme: light;
    line-height: 1.5;
    color-scheme: light;
    hanging-punctuation: first allow-end last;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html[data-theme="light"],
 html[data-theme="dark"] {
    color-scheme: only light;
}

body {
    min-height: 100vh;
    font-size:var(--default-font-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

ul,
ol {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption,
th,
td {
    text-align: left;
    font-weight: normal;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    flex-shrink: 0;
}

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

button,
input,
optgroup,
select,
textarea {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    background: none;
    border: none;
    border-radius: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

textarea {
    resize: vertical;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
    cursor: not-allowed;
}

/* 체크/라디오는 appearance 유지가 필요할 수 있음 → 필요 시 예외 */
input[type="checkbox"],
input[type="checkbox"],
input[type="radio"] {
    appearance: auto;
    -webkit-appearance: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: inherit;
}

hr {
    height: 0;
    border-top: 1px solid;
    color: inherit;
}

[hidden] {
    display: none !important;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

::selection {
    background-color: var(--theme-color-primary);
    color: var(--theme-color-on-primary);
}

@media (prefers-reduced-motion: no-preference) {
    html:focus-within {
        scroll-behavior: smooth;
    }
}

@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;
    }
}