/* ============================================================
   LAVENDER COUNSELING CENTER
   CSS RESET
============================================================ */


/* ============================================================
   BOX SIZING
============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ============================================================
   DOCUMENT
============================================================ */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
}


/* ============================================================
   TYPOGRAPHY RESET
============================================================ */

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font: inherit;
}

p,
li,
blockquote,
figcaption {
    text-wrap: pretty;
}


/* ============================================================
   LISTS
============================================================ */

ul,
ol {
    margin: 0;
    padding: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}


/* ============================================================
   LINKS
============================================================ */

a {
    color: inherit;
    text-decoration: none;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}


/* ============================================================
   MEDIA
============================================================ */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

svg {
    overflow: visible;
}


/* ============================================================
   FORMS
============================================================ */

button,
input,
textarea,
select {
    margin: 0;
    font: inherit;
    color: inherit;
}

button,
select {
    text-transform: none;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    appearance: button;
    cursor: pointer;
}

button {
    padding: 0;
    border: 0;
    background: transparent;
}

textarea {
    resize: vertical;
}

input,
textarea,
select {
    border-radius: 0;
}

input::placeholder,
textarea::placeholder {
    color: inherit;
    opacity: 1;
}


/* ============================================================
   TABLES
============================================================ */

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* ============================================================
   DETAILS
============================================================ */

summary {
    cursor: pointer;
}


/* ============================================================
   HIDDEN CONTENT
============================================================ */

[hidden] {
    display: none !important;
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

:focus-visible {
    outline: 3px solid var(--lavender-primary);
    outline-offset: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}