@font-face {
    font-family: 'Tiempos Headline';
    src: url('fonts/TiemposHeadline-Light.woff2') format('woff2'),
        url('fonts/TiemposHeadline-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HelveticaNowDisplay';
    src: url('fonts/HelveticaNowDisplay-Bold.woff2') format('woff2'),
        url('fonts/HelveticaNowDisplay-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --app-height: 100svh;
    --background-color: #fff;
    --text-color: #333;
    --links: #0000FF;
    --font-family: 'Tiempos Headline', sans-serif;
    --content-width: 1024px;
    --font-size: 20px;
    --footer-font-size: 14px;
    --content-min-v-padding: 6svh;
    --v-gap: 80px;
}

[data-theme="dark"] {
    --background-color: #505256;
    --text-color: #FFF;
    --links: #4EF286;
}

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-content: center;
    place-items: center;
    font-family: var(--font-family);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: var(--app-height);
    padding: var(--content-min-v-padding);
    gap: var(--v-gap);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--links);
    text-decoration: underline;
}

ul {
    list-style-type: disc;
    margin-left: 1rem;
}

ul ul {
    list-style-type: circle;
    margin-left: 2rem;
}

header {
    display: flex;
    width: 100%;
    margin: auto;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}
.logo {
    display: inline-flex;
    width: 350px;
}
.logo svg {
    display: block;
    width: 100%;
    fill: var(--text-color);
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 24px;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-color);
    border-radius: 24px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    right: 2px;
    bottom: 2px;
    background-color: var(--background-color);
    border-radius: 50%;
    transition: 0.4s;
}

.icon-sun,
.icon-moon {
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.4s;
    z-index: 1000;
}

.theme-toggle svg {
    fill: var(--background-color);
}

.icon-sun {
    left: 12px;
    opacity: 1;
    z-index: 1;
}

.icon-moon {
    right: 12px;
    opacity: 0;
    z-index: 1;
}

.theme-toggle input:checked + .slider:before {
    right: 38px;
}

.theme-toggle input:checked + .slider .icon-sun {
    opacity: 0;
}

.theme-toggle input:checked + .slider .icon-moon {
    opacity: 1;
}

main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    align-content: flex-start;
    width: 100%;
    margin: auto;
    gap: calc(var(--v-gap) / 2);
}

footer {
    display: flex;
    width: 100%;
    margin: auto;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    font-family: 'HelveticaNowDisplay';
    font-weight: bold;
    font-size: var(--footer-font-size);
}

@media (max-width: 780px) {
    :root {
        --font-size: 18px;
        --footer-font-size: 12px;
        --content-min-v-padding: 20px;
        --v-gap: 40px;
    }
    ul {
        margin-left: 0.8rem;
    }
    ul ul {
        margin-left: 1.3rem;
    }
    .logo {
        width: 50vw;
    }
    footer {
        justify-content: flex-start;
    }
}