/** CSS RESET **/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
    font-size: 100%;
}

@font-face {
    font-family: "AltroGrotesk-Regular";
    src: url("../fonts/Altro-Grotesk-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    font-size: 16px;
    line-height: 1.1em;
    font-family: "AltroGrotesk-Regular", "Altro Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica", "Arial", sans-serif;
}

body {
    padding: 2vh;
    color: #111;
    background: #FAFAF5;
}


form {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    
    input,
    button {
        font: inherit;
        font-size: 1rem;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
        outline: none;
        
        &:focus {
            outline: none;
        }
    }
    
    button {
        padding: 1rem 2rem;
        min-width: 20ch;
        border: none;
        color: #fff;
        background: #111;
        text-align: center;
        border-radius: 3px;
        cursor: pointer;
        transition: all 0.15s;
        
        &:hover,
        &:active {
            background-color: #fed500;
            color: #111;
        }
    }
    
    input[type="text"],
    input[type="email"] {
        padding: 0.75rem;
        border: 1px solid #111;
        background: transparent;
        color: #111;
        transition: border-color 0.2s, background 0.2s;
        
        &:focus {
            border-color: #111;
        }
    }
    
    ul li {    
        font-size: clamp(0.5rem, 3vw, 1rem);
        line-height: 1.3em;
        display: flex;
        gap: 1ch;
        margin-bottom: 5px;
    }
    
    input[type="checkbox"] {
        flex: 0 0 2ch;
        width: 2ch;
        height: 2ch;
        accent-color: #fed500;
        cursor: pointer;
        border: 1px solid #111;

        
        &:checked {
            background-color: #fed500;
        }
    }
    
    label {
        font-size: clamp(0.5rem, 3vw, 1rem);
    }
    
    @media (max-width: 480px) and (orientation: portrait) {
        label, ul li {
            font-size: 1rem;
        }
    }
}

.indent {
    padding-left: 5ch;
}

ul {
    list-style: none;
}

p {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.1em;
    max-width: 60vw;
    margin-bottom: .5em;
}

a {
    color: #111;
    text-decoration: none;
    
    &.underline {
        text-decoration: underline;
        
        &:hover {
            text-decoration: none;
        }
    }
    
    &:hover {
        text-decoration: none;
        color: #fed500;
    }
}

small {
    font-size: clamp(0.5rem, 3vw, 1rem);
}

p a,
li a {
    transition: all 0.2s;
}

.ls {
    letter-spacing: 1.5px;
}

@media (max-width: 1100px) {
    p {
        max-width: 75vw;
    }
    
    small {
        font-size: 1rem;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    body {
        padding: 1vh;
    }
        
    .indent {
        padding-left: 2ch;
    }
    
    p {
        max-width: 80vw;
    }
}


/**
SECTION 1: HERO
**/


.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 5vh;

    img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        z-index: -1;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        width: 100%;
        padding: 0 5vw;

        .hero-top {
            padding-top: 5vh;
            display: flex;
            flex-direction: column;
        }

        h1,
        h2 {
            font-size: 4vw;
            line-height: 1.05em;
            font-size: clamp(2rem, 4vw, 4rem);
        }

        h2 {
            margin-bottom: .33em;
        }
    }
}

@media (min-width: 1600px) {
    .hero-text {
        max-width: 100ch;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .hero-subline {
        font-size: clamp(1.5rem, 2vw, 2rem);
    }
    
    .hero-content {
        h1 {
            margin-bottom: .15em;
        }
        
        h2 {
            margin-bottom: .65em;
        }
        
        span {
            max-width: 24ch;
            line-height: 1.3em;
            
            &:first-of-type {
                margin-bottom: .5em;
            }
        }    
    }
}

@media (orientation: portrait) {
    .hero {
        min-height: 80vh;
        
        img {
            object-position: 70% top;
        }
    }
}



/**
SECTION 2: CONTENT
**/


main {
    padding: 0 5vw;

    .section {
        margin-bottom: 15vh;
    }
    
    .address + .address {
        margin-top: 1.5em;
    }

    .brand {
        padding: 35vh 0 8vh 0;
        display: flex;
        justify-content: center;
        align-items: center;

        svg {
            max-width: 30vw;
            height: auto;
        }
    }
}

@media (max-width: 1080px) and (min-width: 481px) {
    main .brand {
        svg {
            max-width: 42vw;
        }
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    main {
        padding: 0 2vh;
        
        .brand {
            svg {
                max-width: 65vw;
            }
        }
    }   
}

/** 
REGISTRATION FORM
**/

.signup-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.field {
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
 
.checkbox {
    display: flex;
    max-width: 26ch;
    gap: 1ch;
} 

@media (max-width: 480px) and (orientation: portrait) {
    .field {
        min-width: 23ch;
    }
    
    .checkbox {
        max-width: 24ch;
    }
}

/**
VIMEO VIDEO EMBED
**/

iframe {
    max-width: 80%;
    height: auto;
    aspect-ratio: 16 / 9;
    &.video-portrait { display: none; }
    &.video-landscape { display: block; }
    
    @media (orientation: portrait) {
        max-width: none;
        width: 90%;
        aspect-ratio: 9 / 16;
        &.video-portrait { display: block; }
        &.video-landscape { display: none; }
    }
}

/** 
GALLERY
**/

.gallery {
    
    > .slider {
        height: 72dvh;
        box-sizing: border-box;
    }
    
    > .videos {
        margin-top: 3vh;
    }

    figure {
        position: absolute;
        left: 0;
        right: 0;
        display: flex;
        padding: 0 calc(2vh + 5vw) 0 calc(2vh + 5vw + 5ch);
        gap: 1ch;
        height: 71.5dvh;
        width: 100%;
        overflow: scroll;
        
        img {
            height: 70dvh;
            width: auto;
        }
    }
    
    @media (max-width: 480px) and (orientation: portrait) {
        small.indent {
            display: block;
        }
        
        figure {
            padding: 0 3vh;
        } 
    }
}


/**
SECTION 3: FOOTER
**/

footer {
    display: flex;
    justify-content: space-between;
    
    ul,
    p {
        font-size: clamp(0.5rem, 2vw, 0.75rem);
        line-height: 1.2em;
    }
    
    p {
        opacity: 0.5;
    }

    ul {
        display: flex;
        column-gap: 5px;
    }

    a {
        color: inherit;
        text-decoration: none;
        opacity: 0.5;

        &:hover {
            opacity: 1;
            color: #111;
        }
    }
}

@media (max-width: 1080px) {
    footer {
        flex-direction: column;
        
        ul,
        p {
            font-size: clamp(.75rem, 1vw, 1rem);
            line-height: 1.2em;
        }

        ul {
            flex-wrap: wrap;
            margin-bottom: .5em;
        }
    }
}