:root {
    --column: calc(calc(100vw - 17rem) / 16) ;
    --column-t: calc(calc(100vw - 9rem) / 8) ;
    --top-margin: 10rem;
    --top-margin-t: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: Untitled-Sans, sans-serif;
    text-decoration: none !important;
    color: black;
}
html {
    min-height: 100%;
    position: relative;
    font-size: 8px;
}

body {
    margin: 0 !important;
    min-width: 100%;
    min-height: 100%;
    background-color: white;
    color: black;
    padding: 0 1rem;
    font-family: Untitled-Sans, sans-serif;
    overflow-x: hidden;
}

body.dark {
    background-color: black;
    color: white !important;
}

#main {
    grid-column: 4/-1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page {
    margin-bottom: 50rem;
}

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

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

a,
a:active,
a:focus,
a:focus-within,
a:focus-visible,
a:visited {
    display: block;
    width: fit-content;
    color: black;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

a.active,
a:hover {
    color: black !important;
}

body.dark a.active,
body.dark a:hover {
    color: white !important;
}

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

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

span {
    display: block;
}

figure {
    margin: 0;
}

img {
    width: 100%;
    height: auto;
}

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

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

caption {
    text-align: left;
}



/* TABLET */
@media only screen and (max-width: 1024px) {
    #main {
        grid-column: 1/-1;
    }

    .page {
        margin-bottom: 30rem;
    }
}