/* ========================================
 * 0 . VARIABLES                          * *
 * ======================================== */
:root {
    --color-background: #f5f6f7;
    --color-text: #1b1b32;
    --color-primary: #bd3a73;

    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    --font-size-h1: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
    --font-size-h2: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    --font-size-h3: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
    --font-size-h4: clamp(1.25rem, 1.1rem + 0.5vw, 1.75rem);
    --font-size-h5: clamp(1.125rem, 1rem + 0.3vw, 1.375rem);
    --font-size-h6: 1rem;

    --font-size-body: 1rem;
    --font-size-small: clamp(0.775rem, 0.7rem + 0.2vw, 1rem);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
 * 1 . RESET & BASE STYLES                  *
 * ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-background);
    color: var(--color-text);

    font-size: var(--font-size-body);
    line-height: 1.6;

    font-family: "averia-regular", Verdana, serif;
}

#bgVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

/* ========================================
 * 2 . TYPOGRAPHY                           *
 * ======================================== */

@font-face {
    font-family: "averia-regular";
    src: url("assets/fonts/averia/AveriaSerifLibre-Regular.ttf");
}

@font-face {
    font-family: "averia-regular-italic";
    src: url("assets/fonts/averia/AveriaSerifLibre-Italic.ttf");
}

@font-face {
    font-family: "averia-bold";
    src: url("assets/fonts/averia/AveriaSerifLibre-Bold.ttf");
}

@font-face {
    font-family: "averia-bold-italic";
    src: url("assets/fonts/averia/AveriaSerifLibre-BoldItalic.ttf");
}

@font-face {
    font-family: "averia-light";
    src: url("assets/fonts/averia/AveriaSerifLibre-Light.ttf");
}

@font-face {
    font-family: "averia-light-italic";
    src: url("assets/fonts/averia/AveriaSerifLibre-LightItalic.ttf");
}

@font-face {
    font-family: "hack-regular";
    src: url("assets/fonts/hack/Hack-Regular.ttf");
}

@font-face {
    font-family: "hack-italic";
    src: url("assets/fonts/hack/Hack-Italic.ttf");
}

@font-face {
    font-family: "hack-bold";
    src: url("assets/fonts/hack/Hack-Bold.ttf");
}

@font-face {
    font-family: "hack-bold-italic";
    src: url("assets/fonts/hack/Hack-BoldItalic.ttf");
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    text-wrap: balance;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

h6 {
    font-size: var(--font-size-h6);
}

/* ========================================
 * 3 . LAYOUT UTILITIES                     *
 * ======================================== */

.container {
    width: min(80%, 1200px);
}

.centerX {
    margin: var(--space-md) auto;
}

/* ========================================
 * 4 . HEADER & NAVIGATION                  *
 * ======================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}


nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

nav ul {
    list-style: none;
}

/* ========================================
 * 5 . HERO                                 *
 * ======================================== */

.hero {
    display: flex;
    align-items: center;
    margin: var(--space-md) 0;
}

.hero-image {
    max-width: 800px;
    width: 90%;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(80%, 70ch);
}

/* ========================================
 * 6 . CONTENT                              *
 * ======================================== */

main {
    font-size: var(--font-size-h4);
}

.content {
    width: min(80%, 70ch);
    display: flex;
    justify-content: center;
}

.content p + p {
    margin-top: 1rem;
}

.content h2,
.content h3 {
    margin-block: 2rem 1rem;
}

#services {
    list-style: none;
}

#services li::before {
    content: '';
    display: inline-block;
    height: var(--font-size-h4);
    width: var(--font-size-h4);
    background-image: url("assets/sparkle.svg");
    background-repeat: none;
    background-size: cover;
}

/* ========================================
 * 7 . FOOTER                               *
 * ======================================== */

footer {
    font-family: "hack-regular", monospace;
    font-size: var(--font-size-small);
    display: flex;
    justify-content: space-between;
    flex-flow: column wrap;
    text-align: center;
}

.contact {
    padding-bottom: var(--space-md);
}

#footer-melm {
    height: var(--font-size-h5);
    vertical-align: center;
}

footer p + p {
    margin-top: var(--space-sm);
}

footer a {
    color: var(--color-text);
    text-decoration: none;
    padding: .3rem .4rem;
    border-radius: 6px;
    transition: background-color 500ms ease;
}

footer a:hover {
    background-color: var(--color-text);
    color: var(--color-background);
}

/* ========================================
 *   TABLET
 *   640px and wider
 * ======================================== */

@media (min-width: 640px) {

}


/* ========================================
 *   DESKTOP
 *   1024px and wider
 * ======================================== */

@media (min-width: 1024px) {
    .hero-image {
        width: 80%;
    }

    footer {
        justify-content: space-between;
        flex-flow: row wrap;
        align-items: flex-end;
        text-align: left;
    }

    .contact {
        padding-bottom: 0;
    }
}


/* ========================================
 *   LARGE DESKTOP
 *   1440px and wider
 * ======================================== */

@media (min-width: 1440px) {

}
