/* BASE */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    width: 100vw;
}

/* LAYOUT */

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: normal;
    font-optical-sizing: auto;
    color: var(--text-clr);
    background-color: var(--bg-clr1);
    width: 100vw;
    overflow-x: hidden;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
    scrollbar-width: 0;
    -ms-overflow-style: none;
}

.layout-element {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.layout-container {
    width: var(--full-width);
}

section {
    padding: var(--spacer);
}
section:first-of-type, section:nth-of-type(2n+1) {
    background-color: var(--bg-clr2);
}
section:nth-of-type(2n){
    background-color: var(--bg-clr1);
}
.section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
}
.section-row-element {
    width: 100%;
}
section img {
    width: 100%;
}

@media (max-width:600px) {
    .section-row {
        flex-direction: column;
    }
}

/* BASE ELEMENTS */

h1 {
    font-size: var(--h1-size);
    line-height: var(--h1-size);
}
h2 {
    font-size: var(--h2-size);
    line-height: var(--h2-size);
}
h3 {
    font-size: var(--h3-size);
    line-height: var(--h3-size);
}
h4 {
    font-size: var(--h4-size);
    line-height: var(--h4-size);
}
h1, h2, h3, h4 {
    padding-block: .5em;
}

p {
    line-height: var(--font-size);
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: underline;
    transition: var(--transition);
    line-height: var(--font-size);
}
a:hover {
    color: var(--secondary-clr);
}
a:active {
    color: var(--secondary-clr-light);
}

::selection {
    background-color: var(--selection-clr);
}

blockquote {
    background-color: var(--bg-clr2);
    padding: 1em;
    margin-bottom: 1em;
    border-left: 5px solid var(--secondary-clr-light);
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
    display: block;
    width: 100%;
    line-height: var(--font-size);
}
blockquote p {
    margin-bottom: 0;
}
blockquote cite {
    line-height: var(--font-size);
    text-align: right;
    width: 100%;
    display: block;
    color: var(--secondary-clr-light);
}

.primary-button, .secondary-button {
    font-weight: bold;
    text-decoration: none;
    padding: .6em 1.2em;
    border-radius: .5em;
    transition: var(--transition);
    white-space: nowrap;
    line-height: var(--font-size);
    width: fit-content;
    display: block;
    border: none;
}
.primary-button {
    background-color: var(--primary-clr);
    color: var(--text-clr);
}
.secondary-button {
    background-color: var(--secondary-clr-light2);
    color: var(--secondary-clr);
}
section .secondary-button, section .primary-button {
    margin-top: 2em;
}
.primary-button:hover {
    scale: 1.1;
    color: var(--text-clr);
}
.secondary-button:hover {
    scale: 1.1;
}
.primary-button:active, .secondary-button:active {
    background-color: var(--secondary-clr-dark);
    border-color: var(--secondary-clr-dark);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1em;
}
li {
    line-height: 100%;
}
li li {
    margin-left: 1rem;
}

/* NAV */

nav {
    padding: 1em 0;
    box-shadow: 0 10px 10px 0 var(--shadow-clr);
}
.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center
}
.nav-logo a {
    text-decoration: none;
}
.nav-logo img {
    width: 120px;
}
.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.3em;
}
.nav-link {
    color: var(--text-clr);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--secondary-clr);
}

@media (max-width: 600px) {
    .nav-logo img {
        width: 90px;
    }
    nav .primary-button {
        display: none;
    }
}

/* MAIN */

main {
    flex: 1;
}

#title {
    --s: 50px;
    --c1: var(--secondary-clr);
    --c2: var(--secondary-clr-dark);
    --c3: var(--secondary-clr-light);
    
    --_g: conic-gradient(at 50% 25%,#0000 75%,var(--secondary-clr) 0);
    background:
        var(--_g),var(--_g) var(--s) var(--s),
        var(--_g) calc(2*var(--s)) calc(2*var(--s)),
        var(--_g) calc(3*var(--s)) calc(3*var(--s)),
        repeating-linear-gradient(135deg,var(--secondary-clr-dark) 0 12.5%,var(--secondary-clr-light) 0 25%);
    background-size: calc(4*var(--s)) calc(4*var(--s));
    color: var(--bg-clr1);
}
#title h1 {
    padding: 0;
}

/* FOOTER */

footer {
    padding: 4em 0 1em 0;
    box-shadow: 10px 0 10px 0 var(--shadow-clr);
    background-color: var(--text-clr);
    color: var(--bg-clr1);
}
.footer-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2em;
}
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1em;
    max-width: 35%;
}
.footer-logo a {
    text-decoration: none;
}
.footer-logo img {
    width: 120px;
}
.footer-columns {
    display: flex;
    flex-direction: row;
    gap: 1.5em;
    max-width: 65%;
}
.footer-column-links {
    display: flex;
    flex-direction: column;
    gap: .4em;
}
.footer-column-link {
    white-space: nowrap;
    width: fit-content;
}
.footer-column-link i {
    margin-right: .5em;
    font-size: var(--tiny-size);
    color: var(--secondary-clr);
}
footer p {
    margin: 0;
}
#subfooter {
    color: var(--text-clr-light);
    margin-top: 2em;
    flex-wrap: nowrap;
}
.subfooter-copy {
    max-width: 50%;
    line-height: var(--font-size);
}
.subfooter-signature {
    white-space: nowrap;
}

@media (max-width: 930px) {
    .footer-container {
        flex-direction: column;
    }
    #subfooter {
        flex-direction: row;
    }
    .footer-logo {
        max-width: 100%;
    }
    .footer-columns {
        min-width: 100%;
        flex-wrap: wrap;
    }
}