/**
 * Base Styles
 *
 * Foundational styles and browser normalization.
 *
 * @package TATC
 */


/* -----------------------------------------
   Box Sizing
   ----------------------------------------- */

html {
    box-sizing: border-box;
}

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


/* -----------------------------------------
   Document
   ----------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-text);
}


/* -----------------------------------------
   Body / WordPress
   ----------------------------------------- */

body {
    overflow-x: hidden;
}

.site {
    min-height: 100vh;
}


/* -----------------------------------------
   Media
   ----------------------------------------- */

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

img {
    height: auto;
}


/* -----------------------------------------
   Links
   ----------------------------------------- */

a {
    color: var(--color-link);
}

a:hover,
a:focus {
    color: var(--color-link-hover);
}


/* -----------------------------------------
   Buttons
   ----------------------------------------- */

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    font: inherit;
}


/* -----------------------------------------
   Forms
   ----------------------------------------- */

input,
button,
textarea,
select {
    font: inherit;
}

textarea {
    resize: vertical;
}


/* -----------------------------------------
   Tables
   ----------------------------------------- */

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


/* -----------------------------------------
   Lists
   ----------------------------------------- */

ul,
ol {
    margin-top: 0;
}


/* -----------------------------------------
   Selection
   ----------------------------------------- */

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


/* -----------------------------------------
   WordPress
   ----------------------------------------- */

.wp-caption {
    max-width: 100%;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}


/* -----------------------------------------
   Accessibility
   ----------------------------------------- */

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


/* -----------------------------------------
   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;
    }
}