/* ================================================================
   PROJECTKART — RESET
   Global browser normalization
================================================================ */


/* ================================================================
   BOX SIZING
================================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ================================================================
   DOCUMENT
================================================================ */

html {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    overflow-x: hidden;
}


/* ================================================================
   TYPOGRAPHY
================================================================ */

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
pre {
    margin: 0;
    padding: 0;
}


p {
    overflow-wrap: break-word;
}


/* ================================================================
   LINKS
================================================================ */

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


a:hover {
    text-decoration: none;
}


/* ================================================================
   LISTS
================================================================ */

ul,
ol {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* ================================================================
   MEDIA
================================================================ */

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


img {
    height: auto;
}


/* Prevent inline image whitespace issues */

img,
svg {
    vertical-align: middle;
}


/* ================================================================
   FORMS
================================================================ */

button,
input,
textarea,
select {
    margin: 0;
    padding: 0;

    font: inherit;
    color: inherit;
}


button,
input,
textarea,
select {
    border: 0;
}


button {
    background: none;
    cursor: pointer;
}


button:disabled {
    cursor: not-allowed;
}


input,
textarea,
select {
    outline: none;
}


textarea {
    resize: vertical;
}


input::placeholder,
textarea::placeholder {
    color: inherit;
    opacity: 1;
}


/* ================================================================
   TABLES
================================================================ */

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

    width: 100%;
}


/* ================================================================
   FIELDSETS
================================================================ */

fieldset {
    margin: 0;
    padding: 0;

    border: 0;
}


/* ================================================================
   QUOTATIONS
================================================================ */

blockquote,
q {
    quotes: none;
}


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


/* ================================================================
   HIDDEN
================================================================ */

[hidden] {
    display: none !important;
}


/* ================================================================
   FOCUS
================================================================ */

/*
   We don't remove focus completely.
   Keyboard users retain a visible focus state.
*/

:focus {
    outline: none;
}


:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}


/* ================================================================
   ACCESSIBILITY
================================================================ */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


/* ================================================================
   WEBKIT TAP HIGHLIGHT
================================================================ */

* {
    -webkit-tap-highlight-color: transparent;
}


/* ================================================================
   SAFER TEXT RENDERING
================================================================ */

body,
button,
input,
textarea,
select {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ================================================================
   REDUCED MOTION
================================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}