* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* outline: 1px solid red; */
    text-underline-offset: 0.2em;
}

html {
    background-color: white;
    overflow: hidden;
}

body {
    margin: 0;
    font-weight: 400;
    background-color: white;
    overflow: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    min-height: 100svh;
    gap: 1rem;
    display: grid;
}

@media screen and (min-width: 768px) {
    body {
        display: grid;
        grid-template-columns: 1fr 3fr;
        grid-template-rows: auto 1fr auto;
        height: 100svh;
    }
}

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

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

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

button.expand-target::after,
a.expand-target::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

a.link:hover {
    opacity: 0.7;
}

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 li,
ul dt,
ul dd,
dl li,
dl dt,
dl dd {
    margin: 0;
    display: block;
    height: fit-content;
}

dl dd {
    margin-bottom: 1em;
}

table th,
table tr,
table td {
    text-align: left;
}

small {
    font-size: 60%;
}

strong {
    font-weight: 500;
}

address {
    font-style: normal;
}

figure {
    margin: 0;
}

picture {
    display: block;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

video {
    width: 100%;
    height: auto;
    border: 0;
}

caption {
    text-align: left;
}

::selection {
    background-color: rgb(50, 50, 50);
    color: white;
}


/* 
    Colors (c)
*/
.c-primary {
    color: var(--primaryColor);
}

.c-secondary {
    color: var(--secondaryColor);
}

.c-darkgray {
    color: rgb(163, 163, 163);
}

.c-gray {
    color: rgb(163, 163, 163);
}

.c-lightgray {
    color: rgb(163, 163, 163);
}

/* 
    Display 
*/

.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;
}


/* 
    Padding 
*/

.pad-xs {
    padding: 16px;
}

.pad-s {
    padding: 20px;
}

.pad-m {
    padding: 32px;
}

.pad-l {
    padding: 48px;
}

.pad-xl {
    padding: 64px;
}

/* 
    Margins 
*/

.mar-xs {
    margin: 12px;
}

.mar-s {
    margin: 16px;
}

.mar-m {
    margin: 32px;
}

.mar-l {
    margin: 48px;
}

.mar-xl {
    margin: 64px;
}

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

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

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

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

/* 
    Utilities 
*/

.no-scroll {
    overflow: hidden;
}


/* 
    Animations 
*/

.fade-in {
    animation: fade-in var(--duration, 400ms) var(--delay, 0s) both;
}

@keyframes fade-in {
    from { opacity: 0 }
    to { opacity: 1}
}

/* 
    Kirby Text 
*/

.kt p:not(:last-child) {
    margin-bottom: 0.75em;
}

.kt a {
    text-decoration: underline;
}

.kt a:hover {
    opacity: 0.7;
}