/* === Reset / Normalize === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

body {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

button,
input,
optgroup,
select,
textarea {
    font: inherit;
    color: inherit;
    margin: 0;
    background: transparent;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

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

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

caption {
    text-align: left;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: var(--space-4) 0;
}

strong {
    font-weight: 600;
}

code,
pre,
kbd,
samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.875em;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
}

abbr[title] {
    text-decoration: underline dotted;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

textarea {
    resize: vertical;
}

[hidden] {
    display: none !important;
}
