:root {
    --app-background: #061c0f;
    --app-text-primary: #f0e5d8;
    --app-text-secondary: #a8d5ba;
    --app-text-secondary-faded: #a8d5ba20;
    --app-text-secondary-shadow: #a8d5ba10;
    --app-text-tertiary: #f9d36a;
    --app-text-tertiary-faded: #bb9e50;
    --app-text-tertiary-shadow: #f9d36a55;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--app-background);
    color: var(--app-text-primary);
    font-family: "Inter", sans-serif;
}

body {
    margin: 0;
    padding: 1rem;
}

h1 {
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

h4 {
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    color: var(--app-text-secondary);
}

h5 {
    font-family: "Raleway", sans-serif;
    margin: 0.25rem 0 1rem 0;
    color: var(--app-text-secondary);
}

#main-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#main-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 3rem;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--app-text-tertiary-faded);
    transition:
        color 0.5s ease,
        text-shadow 0.5s ease;
}

a:hover,
a:focus-visible,
a[aria-current] {
    color: var(--app-text-tertiary);
    text-shadow: 0.1rem 0.1rem 2rem var(--app-text-tertiary-shadow);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 0.12rem solid var(--app-text-tertiary);
    outline-offset: 0.2rem;
}

#main-app {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

#main-app.is-transitioning {
    opacity: 0;
    transform: translateY(0.35rem);
}

.page-wrap {
    width: min(100%, 58rem);
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.live-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    width: min(100%, 42rem);
    margin: 1rem auto 0 auto;
    padding: 0.65rem 0.9rem;
    border: 0.05rem solid rgba(168, 213, 186, 0.45);
    border-radius: 0.35rem;
    color: var(--app-text-secondary);
    text-align: center;
}

.live-banner__item {
    font-size: 0.9rem;
    font-weight: 700;
}

.live-banner__item + .live-banner__item::before {
    content: "•";
    margin-right: 1rem;
    color: var(--app-text-tertiary-faded);
}

.home-page-image-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-page-image {
    width: min(25rem, 100%);
    height: auto;
    display: block;
}

.home-page-content {
    max-width: 42rem;
    margin: 1rem auto 0 auto;
    text-align: center;
}

.home-page-content h4 {
    color: var(--app-text-primary);
}

.home-page-tagline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    color: var(--app-text-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
}

.home-page-tagline strong {
    color: var(--app-text-tertiary);
    font-weight: 800;
    text-transform: uppercase;
}

.project-page-content {
    text-align: justify;
    width: min(100%, 48rem);
    margin: 0 auto;
}

.project-page-content p {
    color: var(--app-text-primary);
    text-transform: none;
    font-style: normal;
}

.github-widgets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.github-widget {
    background: var(--app-text-secondary-shadow);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 1s ease;
}

.github-widget:hover {
    background: var(--app-text-secondary-faded);
}

.github-widget__date {
    float: right;
    font-family: "Inter", sans-serif;
    text-transform: none;
    font-weight: 700;
    color: var(--app-text-primary);
    font-size: 0.75rem;
}

.github-widget__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    color: var(--app-text-primary);
}

.github-widget__language::before {
    content: "● ";
    font-weight: 400;
    color: var(--app-text-secondary);
}

.github-widget__stars {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-page-content {
    width: min(100%, 48rem);
    margin: 0 auto;
    text-align: justify;
}

.contact-page-content-container {
    display: flex;
    align-items: flex-start;
    column-gap: 3rem;
}

.contact-page-form {
    flex: 1 1 18rem;
}

.contact-page-form-field {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    padding: 0.5rem;
}

.contact-page-form-field > input {
    border-radius: 0.2rem;
    min-height: 2rem;
    width: 100%;
}

.contact-page-form-field > textarea {
    border-radius: 0.2rem;
    min-height: 7rem;
    width: 100%;
    resize: vertical;
}

.contact-page-form-button {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    padding: 0.5rem;
    justify-content: center;
}

.contact-page-form-button > button {
    width: 7rem;
    background: none;
    border: 0.1rem var(--app-text-tertiary-faded) solid;
    border-radius: 0.3rem;
    text-transform: uppercase;
    color: var(--app-text-tertiary-faded);
    font-weight: 700;
    height: 2rem;
    transition:
        color 0.5s ease,
        border 0.5s ease,
        text-shadow 0.5s ease;
}

.contact-page-form-button > button:hover {
    border: 0.1rem var(--app-text-tertiary) solid;
    color: var(--app-text-tertiary);
    text-shadow: 0.1rem 0.1rem 2rem var(--app-text-tertiary-shadow);
    cursor: pointer;
}

.contact-page-socials-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 2rem;
    padding: 0.5rem;
}

.contact-page-socials {
    flex: 1 1 12rem;
}

svg {
    color: var(--app-text-tertiary-faded);
    transition:
        color 0.5s ease,
        text-shadow 0.5s ease;
}

svg:hover {
    color: var(--app-text-tertiary);
    text-shadow: 0.1rem 0.1rem 2rem var(--app-text-tertiary-shadow);
}

.vertical-divider {
    align-self: stretch;
    border-left: 0.05rem solid var(--app-text-secondary);
}

.about-page-section {
    text-align: justify;
    width: min(100%, 48rem);
    margin: 0 auto;
}

.noscript-message {
    max-width: 36rem;
    margin: 1rem auto;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 42rem) {
    body {
        padding: 0.75rem;
    }

    #main-nav ul {
        gap: 0.75rem 1.25rem;
    }

    .page-wrap {
        padding: 1.5rem 0;
    }

    .live-banner {
        gap: 0.35rem;
        margin-bottom: 1rem;
    }

    .live-banner__item {
        width: 100%;
    }

    .live-banner__item + .live-banner__item::before {
        content: "";
        margin-right: 0;
    }

    .contact-page-content,
    .about-page-section {
        text-align: left;
    }

    .contact-page-content-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-page-form,
    .contact-page-socials {
        width: 100%;
    }

    .vertical-divider {
        width: 100%;
        border-left: 0;
        border-top: 0.05rem solid var(--app-text-secondary);
    }
}
