/* Variables */
:root {
    --red-light: #bf1a2f;
    --red-dark: #52000c;
    /*--purple: #774c60;
    --pink: #b75d69;
    --green: #697268;*/
    --black-blue: #10141f;
    --black-grey: #141414;
    --grey: #7e6c6c;
    --white: #ebe5dd;
}

/* Defaults */
:root {
    background-color: var(--black-grey);
    padding: 0;
    margin: 0;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
a {
    color: var(--white);
    text-decoration: none;
}
body {
    padding: 0;
    margin: 0;
}
h1 {
    font-weight: 400;
}
button {
    padding: 0;
    margin: 0;
    border: none;
    background-color: transparent;
}

/* Style */

body {
    width: 100vw;
    height: 100vh;
    background: radial-gradient(var(--black-blue), var(--black-grey));
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}
main {
    width: 100%;
    height: 100%;
    display: flex;
}
.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Crimson Text", serif;
}
h1 {
    color: var(--white);
    position: relative;
    display: inline-block;
}
a::after,
h1::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 500ms;
}
a:hover::after,
h1:hover::after {
    transform: scaleX(1);
}
h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px);
    animation: DropIn 1000ms ease forwards;
    animation-delay: calc(1750ms + var(--i) * 100ms);
}
p {
    letter-spacing: 0.1rem;
    width: 10rem;
    color: var(--grey);
    overflow: hidden;
    border-right: 0.25rem solid transparent;
    white-space: nowrap;
    width: 0;
    animation:
        blink 750ms step-end infinite 4000ms,
        typing 3000ms steps(32, end) forwards 6000ms;
}
/*@keyframes Underline {
    100% {
    }
}*/
@keyframes DropIn {
    25% {
        opacity: 0;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 32ch;
    }
}
@keyframes blink {
    from,
    to {
        border-color: var(--white);
    }
    50% {
        border-color: transparent;
    }
}
nav {
    width: 100%;
    display: flex;
}
.navtop {
    align-self: flex-start;
    height: 15%;
}
.navbottom {
    align-self: flex-end;
    height: 10%;
}
ul {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.navtop ul {
    justify-content: center;
    column-gap: 10%;
}
.navbottom ul {
    width: 94%;
    padding-left: 3%;
    padding-right: 3%;
    justify-content: space-between;
}
li {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navtop li {
    width: 12rem;
}
.navbottom li {
    width: 4.5rem;
}
.logo {
    font-size: 4rem;
}
.logo:hover {
    color: var(--red-dark);
}
a {
    opacity: 0;
    transform: translateY(-50px);
    animation: DropIn 1500ms ease forwards;
    transition: color 250ms;
    font-size: 2rem;
    font-family: "Crimson Text", serif;
    letter-spacing: 0.25rem;
}
.navtop a {
    color: var(--white);
    animation-delay: 250ms;
}
.navbottom a {
    color: var(--grey);
    animation-delay: 3250ms;
}
a:hover {
    color: var(--grey);
    transition: color 250ms;
}
