/*
|--------------------------------------------------------------------------
| WeddingUI Reset CSS
|--------------------------------------------------------------------------
| Version : 1.0.0
| Author  : WeddingUI
|--------------------------------------------------------------------------
| Modern CSS Reset
| Inspired by Normalize.css, Andy Bell & Josh Comeau
|--------------------------------------------------------------------------
*/

/* ==========================================================
   BOX MODEL
========================================================== */

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

/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
}

/* ==========================================================
   HTML
========================================================== */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ==========================================================
   BODY
========================================================== */

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

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

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

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

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

/* ==========================================================
   BUTTONS
========================================================== */

button {
    cursor: pointer;
    user-select: none;
}

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

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

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

ul,
ol {
    list-style: none;
}

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

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

/* ==========================================================
   HEADINGS
========================================================== */

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

/* ==========================================================
   PARAGRAPHS
========================================================== */

p {
    line-height: 1.6;
}

/* ==========================================================
   TEXT
========================================================== */

small {
    font-size: 0.875em;
}

strong {
    font-weight: 700;
}

/* ==========================================================
   HR
========================================================== */

hr {
    border: 0;
    height: 1px;
    background: currentColor;
    opacity: .15;
}

/* ==========================================================
   DISABLED ELEMENTS
========================================================== */

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
}

/* ==========================================================
   TEXTAREA
========================================================== */

textarea {
    resize: vertical;
}

/* ==========================================================
   INPUT SEARCH
========================================================== */

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

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

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

/* ==========================================================
   SELECTION
========================================================== */

::selection {
    background: var(--color-accent);
    color: var(--color-white);
}

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

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

    html:focus-within {
        scroll-behavior: auto;
    }

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

}