@media (max-width: 480px) {
    body {
        font-size: 1.15rem;
    }

    .content {
        padding: 15vh 1.5rem 1.5rem 1.5rem;
    }

    header h1 {
        font-size: 2.75rem;
        margin: 0 0 1.5rem 0;
    }

    main {
        margin-bottom: 3rem;
    }

    main::after {
        bottom: -1.5rem;
    }

    footer {
        font-size: 0.95rem;
    }
}

@font-face {
    font-family: 'BiroScript';
    src: url('/files/BiroScript-BoldUS.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BiroScript';
    src: url('/files/BiroScript-RegularUS.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BiroScript';
    src: url('/files/BiroScript-SloppyUS.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

html {
    --morning: #8ba3b3;
    --day: #fff8f0;
    --dusk: #7e9db3;
    --evening: #f9a159;
    position: relative;
}

html::before, html::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

html::before {
    background: linear-gradient(135deg, var(--morning), var(--day)) fixed;
}

html::after {
    background: linear-gradient(135deg, var(--dusk), var(--evening)) fixed;
    opacity: 0;
    animation: fadeGradient 45s ease-in-out infinite;
}

@keyframes fadeGradient {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

html, body {
    margin: 0;
    overflow-x: hidden;
}

body {
    position: relative;
    color: #24333f;
    font-family: mencken-std-text, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.4rem;
    line-height: 1.4;
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    padding: 20vh 2rem 2rem 2rem;
}

.container {
    max-width: 38rem;
    width: 100%;
    text-align: left;
}

header h1 {
    font-family: mencken-std-head-compress, sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 3.75rem;
    margin: 0 0 2rem 0;
    letter-spacing: -0.01em;
    line-height: 1;
}

main {
    margin-bottom: 4rem;
    position: relative;
}

main::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: -5%;
    width: 110%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        currentColor 20%,
        currentColor 90%,
        transparent
    );
    opacity: 0.15;
}

main p {
    margin: 0 0 2rem 0;
}

footer {
    margin-top: 0;
    font-size: 1.10rem;
    text-align: left;
}

footer a {
    font-style: normal;
    color: #24333f;
    text-decoration: none;
    border-bottom: 1px solid rgba(36, 51, 63, 0.3);
    padding: 0;
    opacity: 0.8;
    position: relative;
    display: inline-block;
    transition: all 0.1s ease;
    line-height: 1.2;
}

footer a::before {
    content: '';
    position: absolute;
    left: -0.6em;
    right: -0.3em;
    top: -0.4em;
    bottom: -0.4em;
    background: url(highlight.svg) no-repeat;
    background-size: auto 100%;
    transform-origin: left center;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 0.2s ease;
    z-index: -1;
    will-change: clip-path;
}

footer a:hover {
    opacity: 1;
    border-bottom-color: transparent;
}

footer a:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

footer .separator {
    margin: 0 0.5em;
    opacity: 0.4;
    user-select: none;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(noise.svg);
    background-repeat: repeat;
    background-size: 200px 200px;
    background-attachment: fixed;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

::selection {
    background: rgba(255, 220, 70, 0.35);
    color: inherit;
    text-shadow: none;
}

::-moz-selection {
    background: rgba(255, 220, 70, 0.35);
    color: inherit;
    text-shadow: none;
}

ul {
    padding-left: 1.5rem;
    margin: 0 0 2rem 0;
}

main a {
    font-style: normal;
    color: #24333f;
    text-decoration: none;
    border-bottom: 1px solid rgba(36, 51, 63, 0.3);
    padding: 0;
    opacity: 0.8;
    position: relative;
    display: inline-block;
    transition: all 0.1s ease;
    line-height: 1.2;
}

main a::before {
    content: '';
    position: absolute;
    left: -0.6em;
    right: -0.3em;
    top: -0.4em;
    bottom: -0.4em;
    background: url(highlight.svg) no-repeat;
    background-size: auto 100%;
    transform-origin: left center;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 0.2s ease;
    z-index: -1;
    will-change: clip-path;
}

main a:hover {
    opacity: 1;
    border-bottom-color: transparent;
}

main a:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Utility */ 

.dimmed {
    opacity: 0.5;
}

.mono {
    font-family: ui-monospace, monospace;
    display: inline;
    font-size: 0.9em;
}

.script-regular {
    font-family: "BiroScript", mencken-std-text, serif;
    display: inline;
    font-size: 1em;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    text-shadow: 0.1px 0 0 currentColor;
    letter-spacing: -0.01em;
}

.script-bold {
    font-family: "BiroScript", mencken-std-text, serif;
    display: inline;
    font-size: 1em;
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.script-sloppy {
    font-family: "BiroScript", mencken-std-text, serif;
    display: inline-block;
    font-size: 1em;
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    line-height: 1.6;
    padding-bottom: 0.2em;
    vertical-align: top;
    position: relative;
}