@import url("/css/variables.css");

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

html,
body {
    height: 100%;
}

body {
    background: linear-gradient(to bottom, var(--pt-blue) 0%, var(--pt-blue) var(--sp-250), var(--pt-white) var(--sp-250)) no-repeat;
    background: url("/img/banner.webp") no-repeat center top var(--pt-white);
    background-size: auto var(--sp-250);
    font-family: "Nunito Sans", "Open Sans", "Verdana", "sans-serif";
    font-size: 18px;
}

#banner {
    position: absolute;
    top: 0;
    height: var(--sp-250);
    z-index: -1;
}

#page {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 950px;
    height: 100%;
}

header {
    align-items: center;
    display: grid;
    height: var(--sp-250);
    gap: var(--sp-large);
    padding-bottom: var(--sp-normal);
    text-shadow: 0 0 8px var(--pt-brown);
    grid-template-areas: "headline nav";
    align-items: end;
    justify-items: stretch;
    flex: 0 0 var(--sp-250);
    grid-auto-flow: row dense;
    #headline {
        grid-area: headline;
        color: var(--pt-white);
        display: grid;
        gap: var(--sp-small);
        height: var(--sp-58);
        line-height: 1;
        grid-template-areas: "logo title" "logo tagline";
        justify-content: start;
        .cups-logo {
            grid-area: logo;
            grid-row-end: span 2;
            height: var(--sp-58);
            width: var(--sp-58);
            grid-template-columns: var(--sp-58) auto;
        }
        h1 {
            white-space: nowrap;
            font-size: 2em;
        }
        p.tagline {
            font-style: italic;
            white-space: nowrap;
            font-size: 1em;
        }
    }
    nav {
        display: none !important; /* remove navbar */
        grid-area: nav;
        color: var(--pt-white);
        display: flex;
        flex: 1 1 100%;
        gap: var(--sp-large);
        justify-content: end;
        ul {
            list-style: none;
        }
        li {
            display: inline-block;
            text-transform: uppercase;
            &:not(:last-child):after {
                display: inherit;
                content: "·";
                width: var(--sp-large);
                text-align: center;
            }
        }
        a {
            color: var(--pt-white);
            text-decoration: none;
            &:hover {
                text-decoration: underline;
            }
        }
    }
}

main {
    padding-top: var(--sp-normal);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xlarge);
    .welcome {
        font-family: "Times", "serif";
        font-size: 1.7em;
        padding: var(--sp-xxlarge) 25%;
        font-style: italic;
        font-weight: 400;
    }
}

footer {
    padding: var(--sp-large) var(--sp-normal);
    display: flex;
    flex: 0 0 var(--sp-58);
    justify-content: center;
    align-items: center;
}

.modal-shade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;

    .modal {
        height: 85vh;
        max-height: 750px;

        img {
            max-width: 100%;
            max-height: 100%;
            shadow: 0 0 var(--sp-large) var(--pt-black);
        }
    }
}

@media (max-width: 999px) {
    #page {
        padding: 0 var(--sp-normal);
    }
    main .welcome {
        padding: var(--sp-xlarge) 20%;
        font-size: 1.8em;
    }
}

@media (max-width: 799px) {
    main .welcome {
        padding: var(--sp-xlarge) 15%;
        font-size: 1.65em;
    }
}

@media (max-width: 699px) or (min-width: 700px) /* remove navbar */ {
    header {
        margin-top: 0;
        grid-template-areas: "headline" "nav";
        justify-items: center;
        & #headline {
            grid-template-areas: "logo title" "tagline tagline";
            h1 {
                font-size: 4em;
            }
            p.tagline {
                font-size: 1.5em;
                grid-column: span 2;
                text-align: center;
            }
        }
    }
}

@media (max-width: 599px) {
    header {
        & #headline {
            h1 {
                font-size: 3em;
            }
            p.tagline {
                font-size: 1.2em;
            }
        }
    }
    main .welcome {
        padding: var(--sp-large);
        font-size: 1.5em;
    }
}

@media (max-width: 449px) {
    header {
        & #headline {
            h1 {
                font-size: 2.5em;
            }
            p.tagline {
                font-size: 1em;
            }
        }
    }
    main .welcome {
        padding: var(--sp-normal);
        font-size: 1.3em;
    }
}

@media (max-width: 399px) {
    header {
        nav {
            font-size: 0.8em;
        }
    }
}

@media (max-width: 374px) {
    header {
        & #headline {
            h1 {
                font-size: 2em;
            }
        }
    }
    main .welcome {
        padding: var(--sp-small);
        font-size: 1.2em;
    }
}
