h1 {
    font-size: 2.75rem;
    font-weight: 650;
}
h2 {
    font-size: 2.25rem;
    font-weight: 600;
}
h3 {
    font-size: 2rem;
    font-weight: 500;
}
h4 {
    font-size: 1.75rem;
    font-weight: 500;
}
h5 {
    font-size: 1.5rem;
}
h6 {
    font-size: 1.25rem;
}
p, a, li, span {
    font-size: 1rem;
}

p {
    line-height: 1.5rem;
}
@font-face {
    font-family: "Inter";
    src:    url("/fonts/Inter.ttf") format("truetype"),
            url("/fonts/Inter-Italic.ttf") format("truetype");
    font-weight: 100 1000;
}
:root {
    --primary: #222a34;
    --primary-rgb: 34, 42, 52;
    --accent: #f4a024;
    --accent-rgb: 244, 160, 36;
    --accent-2: #266ea8;
    --white: #f2f2f1;
    --black: #131418;
    --black-rgb: 19, 20, 24;
    --grey: #262626;
    --grey-2: #b0b1b2;
    --gap: 3px;
    --header: 4rem;
}
    
body {
    &:has(.header-button-container.selected) {
        /* overflow: hidden; */
    }
}

html {
    /* scrollbar-gutter: stable; */
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--black);
    color: var(--black);
    padding-bottom: var(--header);

    & > * {
        background-color: var(--white);
    }
}

#header-menus {
    translate: 0 var(--header);
    position: fixed;
    z-index: -3;
}
    
    
/* smartphones, portrait iPhone, portrait phones (Android) */ 
@media (min-width:0px)  {
    :root {
        --edge: 20px;
    }

    html {
        font-size: 13px;
    }
    
    body {
        margin: 0;
        min-height: calc(100vh - var(--header));
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    hr {
        border-top: 2px solid var(--black);
        margin: 30px 0;
    }
    
    a, a:link, a:visited, a:hover, a:active {
        color: inherit !important;
    }
    
    p, li, a, span {
        font-size: 1em;
    }
    
    a.anchor {
        display: block;
        position: relative;
        /* top: calc(-1 * var(--header)); */

        visibility: hidden;
    }
    
    .grid {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: var(--gap);
        margin: 0 auto;
    }
    
    .dark {
        background-color: var(--primary);
        color: var(--white);
    }
    
    button.button {
        border: none;
        padding: 10px 15px;
        margin: 10px 0;
        font-family: inherit;
        font-size: inherit;
        font-weight: 500;
        cursor: pointer;
    
        &.dark {
            background-color: var(--black);
        }
    
        &:active, &:hover {
            background-color: var(--accent);
        }
    }

    .edges {
        padding-left: var(--edge);
        padding-right: var(--edge);
    }
    
    span.avoidwrap {
        display: inline-block;
    }
    
    .foreground {
        overflow: hidden;
        img {
            object-fit: cover;
            object-position: center center;
            width: 100%;
            height: 100%;
        }
    }
    
    /* HEADER */
    header {
        position: fixed;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        bottom: 0;
        left: 0;
        z-index: 10;
        height: var(--header);
        display: flex;
        background-color: var(--black) !important;
    
        & #header-container {
            height: 100%;
            width: 100%;
            align-items: center;
            background-color: inherit;
            grid-template-columns: max-content 1fr 1fr;
            gap: 0;
        }
    
        & #header-left {
            display: flex;
            align-items: center;
            width: 100%;
            grid-column: 1;
        }
    
        & #header-title {
            display: block;
            text-decoration: none;
            z-index: 2;
    
            h1 {
                margin: 0;
                font-size: 10pt;
                line-height: 0.95;
            }
        }
    
        & #header-info {
            display: none;
        }
    
        & #header-menu {
            grid-column: 2 / span 2;
            display: grid;
            grid-template-columns: subgrid;
            height: 100%;
        }
    }

    .header-button-container {
        display: flex;
        gap: 0px;
        align-items: center;
        justify-content: center;
        border: 2px white;
        border-style: none none;
        cursor: pointer;
        padding: 0 20px;
        transition: all 0.3s ease;
    
        &.selected {
            background-color: var(--primary);
    
            &:after {
                rotate: 0deg;
            }
        }
    
        &:not(.selected) {
            &:active, &:hover {
                background-color: #ffffff22;
            }
        }

        --size: 1rem;
    
        & .header-button {
            background: none;
            border: none;
            padding: 0;
            margin: 0;
            font-size: var(--size);
            font-family: inherit;
            font-weight: inherit;
            color: inherit;
            pointer-events: none;
            display: inline;
            margin-right: var(--size);
        }
    
        &:after {
            content: '';
            transition: rotate 0.2s ease;
            rotate: -180deg;
            height: var(--size);
            flex: 1;
            aspect-ratio: 1;
            background-image: url('/img/icons/expand-white.svg');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }
    }
    
    #students-menu, #about-menu {
        position: absolute;
        width: 100%;
        background-color: var(--primary);
        padding: 20px var(--edge);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        gap: 20px;
        box-sizing: border-box;
    
        transition: all 0.3s ease;
        opacity: 0;
    
        a {
            font-size: 20pt;
            text-decoration-color: transparent;
    
            &:active, &:hover {
                text-decoration-color: var(--accent);
            }
        }
    }
    
    header:has(#students-button.selected) {
        #students-menu {
            translate: 0 calc(-100% - var(--header));
            opacity: unset;
            box-shadow: 0 0 30px #00000055;
        }
    }
    header:has(#about-button.selected) {
        #about-menu {
            translate: 0 calc(-100% - var(--header));
            opacity: unset;
            box-shadow: 0 0 30px #00000055;
        }
    }
    
    header:has(.header-button-container.selected) {
        #header-click-blocker {
            height: 1000vh;
            background-color: #00000066;
        }
    }
    
    #header-click-blocker {
        position: fixed;
        height: 0;
        top: 0;
        background-color: transparent;
        transition: background-color 0.3s ease;
        width: 100vw;
        z-index: -4;
        margin-bottom: var(--header);
    }
    
    /* FOOTER */
    footer {
        background-color: var(--black);
        color: var(--white);
        padding: 3rem 10px;
        box-sizing: border-box;
    
        h1 {
            width: 100%;
            text-align: center;
            font-size: 10pt;
        }
    
        p {
            margin: 0;
        }

        #footer-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5em;
            box-sizing: border-box;
        }

        #copyright {
            padding-top: 30px;
            width: 100%;
            text-align: center;
            font-size: 10px;
            opacity: 0.5;
        }
    }
    
    /* MISCELLANEOUS */
    .external {
        display: flex;
        align-items: center;
        cursor: pointer;
        
        &:active, &:hover {
            text-decoration: underline;
            text-decoration-color: var(--accent);
        }
    }
    
    .external::after {
        margin-left: 5px;
    
        content: '';
        background-image: url('/img/icons/open_in_new_accent.svg');
        display: inline-block;
        width: 1em;
        height: 1em;
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .internal {
        display: flex;
        align-items: center;
        cursor: pointer;
        text-decoration: none;
        box-sizing: border-box;
        text-decoration: underline;
        text-decoration-color: transparent;
        transition: text-decoration-color 0.2s ease;
        /* font-size: 18pt; */
        font-weight: 500;
    
        &:active, &:hover {
            text-decoration-color: var(--accent);
    
            &:after {
                translate: 30% -30%;
            }
        }
    
        &:after {
            margin-right: 10px;
            content: '';
            background-image: url('/img/icons/arrow-accent.svg');
            display: inline;
            width: 1em;
            height: 1em;
            background-size: contain;
            background-repeat: no-repeat;
            transition: all 0.3s ease;
        }
    }
    
    .page-title {
        margin-top: 30px;
    }
    
    .background-hover {
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100%;
        transition: background-size 0.3s ease,
                    box-shadow 0.3s ease;
        box-shadow: inset 0 0 0 max(100vw, 100vh) rgba(0, 0, 0, 0.5);
    
        &:active, &:hover {
            background-size: 101%;
            box-shadow: inset 0 0 0 max(100vw, 100vh) rgba(0, 0, 0, 0.65);
        }
    }
}
/* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ 
@media (min-width:600px)  {
    :root {
        --edge: 50px;
    }

    .grid {
        box-sizing: border-box;
        grid-template-columns: 50% 50%;
    }

    .page-title {
        margin-top: 80px;
        font-size: 3.75rem;
    }

    /* HEADER */
    header {
        --padding-left: 20px;

        #header-container {
            grid-template-columns: 50% 50%;
        }

        #header-left {
            margin: 0;
            grid-column: 1;
        }

        #header-menu {
            grid-column: 2;
            grid-template-columns: 50% 50%;
        }

        .header-button-container {
            margin-left: 0;
            padding-left: var(--padding-left);
            box-sizing: content-box;
            /* padding-right: var(--padding-left); */
            /* translate: calc(-1 * var(--padding-left)) 0; */
            justify-content: left;
        }

        #header-container {
            gap: var(--gap);
        }

        #students-menu, #about-menu {
            grid-column: 2;
            padding-left: var(--padding-left);
        }
    }

    /* FOOTER */
    footer {
        padding: 3rem 0;
    
        h1 {
            text-align: left;
            font-size: 15pt;
        }
    
        p {
            width: 100%;
        }

        #copyright {
            padding-top: 0;
            text-align: left;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: end;
        }
    }
    
}
/* tablet, landscape iPad, lo-res laptops ands desktops 
@media (min-width:801px)  {
} */
/* big landscape tablets, laptops, and desktops */ 
@media (min-width:1025px) {
    html {
        font-size: 12pt;
    }
    :root {
        --edge: 25%;
        --body-width: 1000px;
    }

    body {
        background-color: var(--white);
    }

    .grid {
        width: var(--body-width);
        grid-template-columns: repeat(3, 1fr);
        margin: 0 auto;
    }

    .edges {
        padding-left: unset;
        padding-right: unset;
    }

    a.anchor {
        top: calc(-1 * var(--header));
    }

    body {
       padding-bottom: 0;
       padding-top: var(--header); 
    }

    header {
        top: 0;
        bottom: unset;

        #header-menus {
            left: 0; right: 0;
        }

        #students-menu, #about-menu {
            grid-column: 3;
            translate: 0 -100%;
        }

        &:has(#students-button.selected) {
            #students-menu {
                translate: 0 0;
            }
        }
        &:has(#about-button.selected) {
            #about-menu {
                translate: 0 0;
            }
        }

        #header-container {
            grid-template-columns: repeat(3, 1fr);
            width: var(--body-width);
            margin: auto;
        }

        #header-menu {
            grid-column: 3;
        }

        #header-info {
            display: unset;
        }

        #header-left {
            display: grid;
            grid-template-rows: repeat(3, 1fr);
            grid-template-columns: min-content auto;

            & > * {
                grid-row: 1 / -1;
                display: grid;
                grid-template-rows: subgrid;
                width: fit-content;
                padding-right: 10px;

                &:not(:first-child) {
                    border-left: 1px solid var(--white);
                    padding-left: 10px;
                }

                & * {
                    display: block;
                    font-size: 9.5pt;
                    align-self: baseline;
                }
                h1 {
                    font-size: 11pt;
                }
            }

        }

    }

    #header-click-blocker {
        margin-bottom: 0;
        margin-top: var(--header);
    }

    .header-button-container {
        &.selected {
            &:after {
                rotate: 180deg;
            }
        }
        &:after {
            rotate: 0deg;
        }
    }
}
/* hi-res laptops and desktops */ 
@media (min-width:1281px) {
}