:root {
    --primary-light: #8000FF;
    --primary: #4D0891;
    --primary-dark: #330F57;

    --font-heading: "Barlow Condensed", sans-serif;
    --font-body: "Archivo", sans-serif;
    --font-body-narrow: "Archivo Narrow", sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--primary-dark);
}

@property --bg-from {
    syntax: "<color>";
    inherits: true;
    initial-value: #8000FF;
}

@property --bg-to {
    syntax: "<color>";
    inherits: true;
    initial-value: #430D79;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at center, var(--bg-from), var(--bg-to));
    transition: --bg-from 500ms, --bg-to 500ms;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("../img/base/pattern.png") center / cover no-repeat;
    opacity: 0.2;
}

body.bg-dark {
    --bg-from: #430D79;
    --bg-to: #330F57;
}

body,
h4,
.caption {
    color: #FFF;
    font-family: var(--font-body);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 1px;
}

.caption {
    font-size: 12px;
}

a {
    color: #FFF;
    font-family: var(--font-body-narrow);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1px;
    text-decoration: none;
}

.caption a,
a.caption {
    font-family: var(--font-body);
    font-size: 12px;
}

h1,
h2,
h3 {
    color: #FFF;
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 800;
    line-height: 0.8em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(62px, 12vw, 140px);
    margin-bottom: 0.5em;
}

h2 {
    font-size: clamp(56px, 8vw, 72px);
}

h3 {
    font-size: clamp(24px, 4vw, 36px);
}

/* Footer */

footer {
    background-color: var(--primary-light);
    padding: 50px 20px;
    display: flex;
    justify-content: stretch;
}

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

footer .footer-logo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer .footer-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer .footer-content .footer-links {
    display: flex;
}

footer .footer-content .footer-links>* {
    flex: 1;
}

footer .footer-content .footer-links li {
    margin-bottom: 10px;
}

footer .footer-info {
    display: flex;
    justify-content: space-between;
}

footer .social svg {
    width: 16px;
    height: 16px;
    fill: white;
}

footer .footer-copyright {
    text-align: right;
}

footer .footer-copyright p {
    margin-top: 10px;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 40px;
    }

    footer .footer-content {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    footer .footer-content .footer-links {
        flex-direction: column;
    }

    footer .footer-content .footer-info {
        flex-direction: column;
        gap: 40px;
    }
}

/* Download buttons */

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
    }
}

.download-buttons a img {
    height: 60px;
    width: auto;
}

/* Social icons */

.social {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.social svg {
    display: block;
    width: 24px;
    height: 24px;
}

.social-facebook svg {
    fill: #0866FF;
}

.social-instagram svg {
    fill: #FF0069;
}

/* Chevron */

.chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.4em;
    height: 2.4em;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    transition: opacity 500ms var(--ease-out-3), transform 500ms var(--ease-out-3);
}

/* Reveal on scroll */

.js .reveal .reveal-item {
    opacity: 0;
}

.js .reveal.is-visible .reveal-item {
    animation: rise-in 0.6s var(--ease-out-3) both;
    animation-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger, 120ms));
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(0.4em);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
