@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes hero-img-fade-in {
    from {
        opacity: 0;
        transform: rotate(1deg) translateY(3rem);;
    }

    to {
        opacity: 1;
        transform: rotate(3deg);
    }
}

:root {
    --red: #ff1616;
    --black: #000;
    --white: #fff;
    --font: Work Sans, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    margin: 0;
    overflow-x: hidden;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    margin: 0;
    overflow-x: hidden;
    padding: 0;
}

.sr {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 10px;
}

nav ul {
    align-items: center;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

header.page {
    background: var(--black);
    border-bottom: 10px solid var(--red);
    border-top: 10px solid var(--red);
    color: var(--white);
    height: 120px;
}

header.page .container {
    align-items: center;
    justify-content: space-between;
    height: 100px;
    flex-wrap: nowrap;
}

header.page .logo {
    display: block;
    position: relative;
}

header.page .logo img {
    display: block;
    height: 90px;
    width: auto;
}

header.page button {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: currentColor;
    margin: 0 1rem;
    padding: 0;
}

header.page button svg {
    height: 3rem;
    width: auto;
}

header.page nav {
    background: var(--black);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 120px;
    width: 100vw;
    z-index: 999;
}

header.page nav ul {
    flex-direction: column;
    gap: 3.5rem;
    padding-top: 10vh;
}

header.page nav ul li a {
    color: currentColor;
    font-size: 2.5rem;
    font-weight: 900;
    text-decoration: none;
}

header.page nav ul li a:hover {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
}

footer.page {
    border-top: 2rem solid var(--red);
    background: var(--black);
    color: var(--white);
    padding: 2rem 1rem;
}

footer.page .container {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

footer.page .logo img {
    height: auto;
    width: 140px;
}

footer.page .disclosure {
    padding: 1rem;
    border: 1px solid currentColor;
}

.hero {
    background: var(--black);
    color: var(--white);
    border-bottom: 2rem solid var(--red);
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
    position: relative;
}

.hero .container {
    align-items: center;
    height: 100%;
}

.hero .text {
    animation: fade-in .5s ease-out forwards;
    animation-delay: .25s;
    opacity: 0;
    order: 2;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin: 0 0 .5rem;
}

.hero h1 + p {
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 1.5rem;
}

.hero h1 + p + p {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
}

.hero img {
    animation: hero-img-fade-in .5s ease-out forwards;
    animation-delay: .5s;
    height: auto;
    opacity: 0;
    transform: rotate(1deg) translateY(3rem);
    transform-origin: center center;
    order: 1;
    margin: 0 auto 2rem;
    max-width: 450px;
    width: 100%;
}

.content {
    padding: 4rem 10px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content .container {
    max-width: 35em;
}

.content .container > *:first-child,
.content .container section > *:first-child {
    margin-top: 0;
}

.content .container > *:last-child,
.content .container section > *:last-child {
    margin-bottom: 0;
}

.content .container section {
    padding: 1.5rem 0;
}

.content .container section h2 {
    line-height: 1.1;
    margin-bottom: 1rem;
}

.content .container section:first-child {
    padding-top: 0;
}

.content .container section:last-child {
    padding-bottom: 0;
}

.content h1 {
    font-size: 2.5rem;
    text-align: center;
    width: 100%;
}

.content h2 {
    font-size: 2rem;
}

.content strong {
    font-weight: 700;
}

#candidates {
    border-top: 3rem solid var(--red);
    padding: 4rem 0;
}

#candidates h2 {
    font-size: 3rem;
    text-align: center;
    margin: 0 10px 2rem;
    width: 100%;
}

#candidates section {
    align-items: center;
    display: flex;
    position: relative;
    width: 100%;
    margin: 1rem 0;
}

#candidates section img {
    flex: 0 0 auto;
    display: block;
    width: 50%;
    height: auto;
}

#candidates section > div {
    padding: 1rem;
}

#candidates section > div h3 {
    font-size: 1.75rem;
    margin: 0 0 .5rem;
}

#candidates section .fb img {
    display: block;
    height: auto;
    width: 1.85rem;
}

#candidates section:nth-child(odd) img {
    order: 2;
}

#candidates section .learn {
    align-items: center;
    display: inline-flex;
    color: currentColor;
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
    margin-top: 2rem;
    transition: color 300ms ease;
}

#candidates section .learn img {
    height: auto;
    width: 1.5rem;
    margin-left: 5px;
    transition: margin-left 300ms ease;
}

#candidates section .learn:hover {
    color: var(--red);
}

#candidates section .learn:hover img {
    margin-left: 10px;
}

.cta {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta .container {
    flex-direction: column;
}

.cta h2 {
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
    width: 100%;
}

.cta p {
    margin: 1rem auto 2rem;
    max-width: 31em;
    font-size: 1.2rem;
}

.cta a {
    align-items: center;
    background: var(--red);
    box-shadow: rgba(255, 255, 255, .15) 8px 8px 1rem;
    color: var(--white);
    display: inline-flex;
    height: 60px;
    padding: 0 2rem;
    margin: 0 auto;
    text-decoration: none;
    transition-property: background-color, color;
    transition-duration: 120ms;
    transition-timing-function: ease-in-out;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 10px;
}

.cta a:hover {
    background-color: var(--white);
    color: var(--red);
}

.bio-header {
    background: var(--black);
    border-bottom: 10px solid var(--red);
    color: var(--white);
    padding: 1rem 0;
}

.bio-header h1 {
    font-size: 3.5rem;
}

.bio-header .container {
    align-items: center;
    justify-content: space-around;
}

.bio-header img {
    height: auto;
    width: 250px;
}

.simple-intro {
    background: var(--black);
    color: var(--white);
    border-bottom: 10px solid var(--red);
}

.simple-intro h1 {
    margin: 0 auto;
    padding: 2rem 0 1rem;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
}

.simple-intro nav {
    padding: 1rem 0 2rem;
    margin: 0 auto;
}

.simple-intro nav ul {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 2rem;
}

.simple-intro nav ul li {
    text-align: center;
}

.simple-intro nav ul li a {
    color: var(--white);
    text-decoration: none;
}

.simple-intro nav ul li a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

@media (prefers-reduced-motion) {
    .hero img {
        animation: none;
        transform: rotate(3deg);
        opacity: 1;
    }
}

@media screen and (max-width: 49.999rem) {
    header.page {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }

    header.page + * {
        margin-top: 120px;
    }

    header.page.open button svg {
        fill: var(--red);
    }

    header.page nav {
        display: none;
    }

    header.page.open nav {
        display: block;
    }

    #candidates .container {
        padding: 0;
    }
}

@media screen and (min-width: 50rem) {
    html {
        font-size: 20px;
    }

    header.page button {
        display: none;
    }

    header.page nav {
        display: flex;
        justify-content: flex-end;
        position: static;
        flex: 1 1 auto;
    }

    header.page nav ul {
        flex-direction: row;
        gap: 2rem;
        padding-top: 0;
    }

    header.page nav ul li a {
        font-size: 1.5rem;
    }

    .hero {
        height: calc(100vh - 120px);
        min-height: 550px;
        padding: 0;
    }

    .hero .container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .hero .text {
        width: 50%;
        order: 1;
    }

    .hero img {
        margin: 0;
        width: 48%;
        order: 2;
    }

    #candidates {
        padding: 4rem 1rem;
    }

    #candidates .container {
        gap: 3rem 2rem;
    }

    #candidates section {
        flex-direction: column;
        font-weight: 400;
        margin: 0;
        width: calc(50% - 1rem);
    }

    #candidates section img {
        width: 55%;
    }

    #candidates section:nth-child(odd) img {
        order: unset;
    }

    #candidates section > div h3 {
        font-size: 1.25rem;
    }

    #candidates section .learn {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    footer.page .container {
        flex-direction: row;
    }
}

@media screen and (min-width: 65rem) {
    #candidates section {
        flex-direction: row;
    }

    #candidates section img {
        width: 40%;
    }
}
