@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap");

:root {
    --accent-color: #50d9c4;
    /*
    --accent-color-light: hsl(from var(--accent-color) h s calc(l + 10));
    --accent-color-dark: hsl(from var(--accent-color) h s calc(l - 10));
    */
}

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

    font-family: "Merriweather", monospace;
}

html {
    color: black;
    font-size: clamp(0.25rem, calc(0.25rem + 2vw), 1rem);

    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: white;

    display: flex;
    flex-direction: column;
}

main {
    margin: 1rem auto;
    width: 75%;

    flex: 1;
}

p {
    margin: 1rem 0;
}

h1 {
    font-size: clamp(1.25rem, calc(0.5rem + 1vw), 2rem);
}

ul {
    margin: 1rem;
}

article > p:first-of-type {
    margin-top: 0.25rem;
}

iframe {
    width: 100%;
    aspect-ratio: 1920 / 1080;
    border-radius: 1rem;
}

#skip-link {
    opacity: 1;

    padding: 0 20px;
    display: block;
    top: -10%;
    left: 50%;
    transform: translate(-50%, 0);
    position: absolute;

    text-wrap-mode: nowrap;
    width: min-content;
    text-align: center;

    display: block;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 128px;

    z-index: 1000;
}
#skip-link:focus {
    top: 1%;

    opacity: 1;
    outline: none;
}

/*
    ------------------------------------------------
    |                     Hero                     |
    ------------------------------------------------
*/

.hero {
    height: calc(25dvh + 10dvw);
    height: calc(25dvh + 10vw);

    width: 100%;
    position: relative;

    background-color: black;

    border-bottom: 0.25rem solid var(--accent-color);
}
.hero img {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.7;

    z-index: 0;
}
.hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;
    font-size: clamp(1.5rem, calc(0.75rem + 1.5vw), 3rem);
    text-align: center;

    z-index: 1;
}

/*
    ------------------------------------------------
    |                    Footer                    |
    ------------------------------------------------
*/

footer {
    width: 100%;
    position: relative;

    background-color: rgb(24, 24, 28);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 1rem;
    padding: 1rem;
    margin: 0;

    border-top: 0.25rem solid var(--accent-color);
}

footer h1,
footer p {
    color: white;
    margin: auto;

    width: 100%;
    height: auto;

    text-align: center;
    white-space: nowrap;
}

#footer-info,
#footer-branding {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: row;
}

#footer-branding {
    flex-direction: column;
}

#footer-branding p {
    font-style: italic;
}

#footer-copyright {
    text-align: center;

    width: 100%;
    height: 100%;
}

#footer-socials {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 1rem;
}

#footer-socials a {
    padding: 0.5rem;
    border-radius: 50%;

    background-color: white;

    align-items: center;
    justify-content: center;

    transition: transform 150ms ease;
}

#footer-socials svg {
    display: block;

    width: auto;
    height: 1.75rem;

    fill: rgb(24, 24, 28);
}

#footer-socials a:focus-visible,
#footer-socials a:hover {
    outline: none;
    background-color: var(--accent-color);

    transform: translateY(-0.25rem);
}

#footer-socials a:focus-visible svg,
#footer-socials a:hover svg {
    fill: white;
}

/*
    ------------------------------------------------
    |                    Header                    |
    ------------------------------------------------
*/

header {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.75);

    height: 4rem;

    width: 100vw;
    width: 100dvw;

    display: flex;
    flex-direction: row;

    align-items: center;
    align-content: center;

    padding: 0;
    margin: 0;

    z-index: 2;
}

/*
    --------------------------------
    |         Title & Logo         |
    --------------------------------
*/

.title {
    display: flex;
    flex-direction: row;

    align-items: center;
    align-content: center;

    margin-right: auto;
    margin-left: 1em;

    z-index: 3;
}

.title a:focus-visible {
    outline: 2px solid var(--accent-color);
}

.title img {
    display: block;
    border-radius: 50%;
    border: 2px solid white;

    height: 3em;
    width: 3em;

    aspect-ratio: 1 / 1;
}

.title h1 {
    display: flex;
    text-decoration: none;
    color: white;
    font-size: clamp(1em, 4vw, 1.5em);
    padding: 0 0.5em;
    height: 100%;

    align-items: center;
    align-content: center;

    text-wrap-mode: nowrap;
}

/*
    --------------------------------
    |       Nav & Link List        |
    --------------------------------
*/

nav {
    height: 100%;

    display: block;
}

nav ul {
    list-style: none;
    display: flex;

    height: 100%;
    padding: 0;
    margin: 0;
}

nav li {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
}

/*
    --------------------------------
    |          Nav Links           |
    --------------------------------
*/

/* Link/Button Baseline */
nav button,
nav a {
    padding: 0 1.5em;
    height: 100%;
    width: 100%;

    text-decoration: none;
    color: white;
    transition: 250ms ease;
    font: inherit;

    display: flex;
    position: relative;
    align-items: center;

    text-wrap-mode: nowrap;
    z-index: 3;
}

/* Button Specific */
nav button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Focus/Hover Feedback */
nav a:focus-visible,
nav a:hover,
nav button:focus-visible,
nav button:hover {
    color: var(--accent-color);
    outline: none;
}

/* Bottom Bar */
nav button::before,
nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 100%;
    border-bottom: 2px solid var(--accent-color);

    transform: scaleX(0);
    transform-origin: center;
    transition: 250ms ease;
    z-index: 3;
}
nav button:focus-visible::before,
nav button:hover::before,
nav a:focus-visible::before,
nav a:hover::before {
    transform: scaleX(1);
}

/*
    --------------------------------
    |          Drop Down           |
    --------------------------------
*/

#about-toggle::after {
    content: "";
    background-color: transparent;

    position: relative;

    margin-left: 0.375em;
    width: 0.375em;
    height: 0.375em;

    border-color: white;
    border-right: 0.2em solid white;
    border-bottom: 0.2em solid white;

    transform-origin: center;
    transform: rotate(45deg);
    transition: 150ms ease;
}
#about-toggle:focus-visible::after,
#about-toggle:hover::after {
    border-color: var(--accent-color);
}
#about-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

.dropdown {
    display: block;
    position: relative;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 0;
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translate(-50%, 0);

    background-color: rgba(0, 0, 0, 0.75);
    overflow: hidden;

    padding: 0;
    margin: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.dropdown-menu.dropdown-open {
    height: auto;
    padding: 0.5em;
}

.dropdown-menu a {
    display: block;
    box-sizing: border-box;
    text-align: center;

    height: 100%;
    width: 100%;

    padding: 0.25em 0.5em;
}

.dropdown-menu li {
    padding: 0 1em;
    width: fit-content;
    transform: translateX(3rem);

    opacity: 0;
    transition: 250ms ease;
}

.dropdown-menu.dropdown-open li {
    opacity: 1;
    transform: translate(0, 0);
}
.dropdown-menu.dropdown-open li:nth-child(2) {
    transition-delay: 50ms;
}
.dropdown-menu.dropdown-open li:nth-child(3) {
    transition-delay: 100ms;
}
.dropdown-menu.dropdown-open li:nth-child(4) {
    transition-delay: 150ms;
}

/*
    --------------------------------
    |        Sidebar Button        |
    --------------------------------
*/

#open-sidebar-button {
    background-color: transparent;
    margin-right: 1rem;
    z-index: 4;

    border: 2px solid white;
    border-radius: 50%;
    transition: 250ms ease;

    height: 3rem;
    width: 3rem;

    cursor: pointer;
    display: none;
}
#open-sidebar-button:focus-visible,
#open-sidebar-button:hover {
    background-color: white;
    outline: none;
}
#open-sidebar-button svg {
    width: 100%;
    height: 100%;

    transition: 250ms ease;
}
#open-sidebar-button:focus-visible svg,
#open-sidebar-button:hover svg {
    fill: black;
}

/* 1120 break point */
@media screen and (max-width: 1120px) {
    #open-sidebar-button {
        display: block;
    }

    nav {
        display: block;
        position: fixed;
        top: 4rem;
        right: 0;

        height: calc(100vh - 4rem);

        background-color: rgba(0, 0, 0, 0.75);

        transform: translateX(100%);
        transition: transform 250ms ease;

        z-index: 2;
    }

    nav.nav-open {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        height: auto;
        padding: 0 2.5rem;
    }
    nav a,
    nav button {
        justify-content: right;
        padding: 1em 0.25rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: none;
        border-radius: 0;

        align-items: end;
    }
    .dropdown-menu.dropdown-open {
        padding: 0;
    }

    .dropdown-menu a {
        padding: 0.5em 0.25rem;
        font-size: 0.75em;

        text-align: right;

        border-right: 2px solid var(--accent-color);
    }
    .dropdown-menu li {
        padding: 0.25em 0;
        width: 100%;
        transform: translateY(-2.5em);
    }
    .dropdown-menu.dropdown-open li:nth-child(1) {
        transition-delay: 150ms;
    }
    .dropdown-menu.dropdown-open li:nth-child(2) {
        transition-delay: 100ms;
    }
    .dropdown-menu.dropdown-open li:nth-child(3) {
        transition-delay: 50ms;
    }
    .dropdown-menu.dropdown-open li:nth-child(4) {
        transition-delay: 0ms;
    }
}

/*
    ------------------------------------------------
    |                User Settings                 |
    ------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
