@charset "utf-8";

*,
::before,
::after {
    box-sizing: border-box;
}

* {
    min-height: 0;
    min-width: 0;
    margin: unset;
    padding: unset;
}

:root {
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    min-height: 100vh;
    overflow-x: clip;
}

/*
 * links
 */

:any-link {
    color: unset;
    text-decoration-line: unset;
    text-decoration-thickness: 1px;
    text-underline-position: from-font;
}

/*
 * focus styles
 */

:focus-visible {
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

[tabindex="-1"]:focus-visible {
    outline: none !important;
}

/*
 * grouping contents, interactive elements
 */

dt {
    font-weight: bold;
}

ul,
ol {
    list-style-type: "";
}

summary {
    list-style-type: "";
    cursor: pointer;

    &::-webkit-details-marker {
        display: none;
    }
}


/*
 * embedded contents
 */

img,
svg,
picture,
video,
canvas,
iframe {
    display: block;
    height: auto;
    max-width: 100%;
}

/*
 * forms
 */

button,
input,
select,
textarea,
::file-selector-button {
    border-width: 1px;
    border-style: solid;
    border-color: unset;
    border-radius: unset;
    color: unset;
    font: unset;
    text-align: unset;
}


input:focus-visible:not([type="button"], [type="submit"], [type="reset"], [type="file"], [type="range"]),
select:focus-visible,
textarea:focus-visible {
    outline-offset: 0px;
}

button,
input:is([type="button"], [type="submit"], [type="reset"]),
::file-selector-button {
    background-color: unset;
    touch-action: manipulation;
}

button,
select,
input:is([type="button"], [type="submit"], [type="reset"], [type="radio"], [type="checkbox"]) {
    &:not(:disabled, [aria-disabled="true"]) {
        cursor: pointer;
    }
}

label[for],
:not(:disabled, [aria-disabled="true"])::file-selector-button {
    cursor: pointer;
}

:disabled,
[aria-disabled="true"] {
    cursor: default;
}