/* 
    Elements 
*/

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

* {
    box-sizing: border-box;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-margin-top: 3rem;
}

:root {
    --white: 255, 255, 255;
    --black: 0, 0, 0;
}

html {
    min-height: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: rgba(var(--white), 1);
    color: rgba(var(--black), 1);
    font-family: Standard, Arial, Helvetica, sans-serif;
    opacity: 1;
}

/* Home Page Only */
body.fade-in {
    opacity: 0;
}

body.page-loaded {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
caption,
a {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

a {
    color: inherit;
    cursor: pointer;
    transition: color 300ms;
    text-decoration: unset;
}

a.t-gray:hover {
    color: rgba(var(--black), 1);
}

a.expand-target::after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-decoration-skip-ink: auto;
}

button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

ul.no-style {
    list-style: none;
}

small {
    font-size: 60%;
}

strong, b {
    font-weight: 600;
}


address {
    font-style: normal;
}

figure {
    margin: 0;
}

img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: 0 0;
    background-color: transparent;
}

img.expand {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

video {
    width: 100%;
    height: auto;
    background-color: black;
}

iframe {
    overflow-clip-margin: content-box;
    overflow: none;
    border-width: 0;
    border-style: none;
    border-color: none;
    border-image: none;
}

caption {
    text-align: left;
}

::selection {
    background-color: rgba(var(--black), 0.25);
}

.no-scroll {
    overflow: hidden; 
    height: 100%;
}

hr {
    width: 100%;
    border: 0;
    background-color: black;
    height: 1px;
    margin: 0;
}

/* 
    Display 
*/

.hidden {
    display: none;
}

.inline {
    display: inline;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.justify-space-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Position */
.sticky {
    position: sticky;
}


/* Hide mobile */
.hide-mobile {
    display: none;
}

.hide-desktop {
    display: block;
}

.hide-only-mobile {
    display: none;
}

/* Tablet (> 768px) */
@media (min-width: 48em) {
    .hide-only-mobile {
        display: block;
    }

    .hide-desktop {
        display: block;
    }
    
}

@media (min-width: 64em) {
    .hide-mobile {
        display: block;
    }

    .hide-desktop {
        display: none;
    }
}


/* Laptop (> 1024px) */
@media (min-width: 64em) {
    .hide-mobile {
        display: block;
    }
}

@media (min-width: 64rem) {
    .hide-desktop {
        display: none;
    }
}


/* Margins Sizes */

.mar-top-xxs {
    margin-top: 0.2rem;
}

.mar-top-xs {
    margin-top: 0.4rem;
}

.mar-top-s {
    margin-top: 1rem;
}

.mar-top-m {
    margin-top: 2rem;
}

.mar-top-l {
    margin-top: 3rem;
}

.mar-top-xl {
    margin-top: 5rem;
}

.mar-top-xxl {
    margin-top: 9rem;
}

.mar-bot-xxs {
    margin-bottom: 0.5rem;
}

.mar-bot-xs {
    margin-bottom: 0.75rem;
}

.mar-bot-s {
    margin-bottom: 1rem;
}

.mar-bot-m {
    margin-bottom: 2rem;
}

.mar-bot-l {
    margin-bottom: 3rem;
}

.mar-bot-xl {
    margin-bottom: 5rem;
}

.mar-bot-xxl {
    margin-bottom: 9rem;
}

.mar-right-xs {
    margin-right: 0.5rem;
}

.mar-right-s {
    margin-right: 1rem;
}

.mar-right-m {
    margin-right: 2rem;
}

.mar-right-l {
    margin-right: 3rem;
}

.mar-right-xl {
    margin-right: 4rem;
}

.mar-left-xs {
    margin-left: 0.5rem;
}

.mar-left-s {
    margin-left: 1rem;
}

.mar-left-m {
    margin-left: 2rem;
}

.mar-left-l {
    margin-left: 3rem;
}

.mar-left-xl {
    margin-left: 4rem;
}


/* Blockquote */

blockquote {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 1rem;
    margin-inline-end: 0rem;
}

/* Laptop (> 1024px) */
@media only screen and (min-width: 48rem){
    blockquote {
        display: block;
        margin-block-start: 1em;
        margin-block-end: 2.5em;
        margin-inline-start: 2rem;
        margin-inline-end: 3rem;
    }
}


/* Kirby Text */

.kt p {
    margin-bottom: 0.625rem;
}

.kt p:last-child {
    margin-bottom: 0;
}

.kt a {
    text-decoration: underline;
    transition: 300ms;
}

.kt a:hover {
    opacity: 0.6;
}

.kt ul {
    list-style-type: square;
}

.kt ol,
.kt ul  {
    margin: 1rem 0;
    padding: 0;
}

.kt ol li,
.kt ul li  {
    margin: 0.2rem 2rem 0 1.5rem;
}

/* Tablet */
@media only screen and (min-width: 48rem) {
    .kt ol,
    .kt ul  {
        margin: 1.5rem 0;
        padding: 0;
    }

    .kt ol li,
    .kt ul li  {
        margin: 0.2rem 2rem 0 3rem;
    }
}


/*
    Align
*/

.align-center {
    align-items: center;
}

/* 
    Accessibility 
*/

.sr-only {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    /* 1 */
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    /* 2 */
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
    /* 3 */
}

/* Buttons and Links */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #4D4D4D;
    border-radius: var(--rounded);
}


/* 
    Animations 
*/

/* Fade-In */
.fade-in {
    animation: fadeIn 400ms ease 100ms both;
}

.fade-in-translation {
    animation: fadeInTranslation 500ms ease 150ms both;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInTranslation {
    0% {
        opacity: 0;
        transform: translateY(-16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
