/* fonts */
@font-face {
    font-family: "Argesta Hairline";
    font-style: normal;
    font-weight: normal;
    src:
        url("ArgestaHairline-Regular.woff2") format("woff2"),
        url("ArgestaHairline-Regular.woff") format("woff"),
        url("ArgestaHairline-Regular.otf") format("opentype");
}

@font-face {
    font-family: "Argesta Hairline";
    font-style: italic;
    font-weight: normal;
    src:
        url("ArgestaHairline-RegularItalic.woff2") format("woff2"),
        url("ArgestaHairline-RegularItalic.woff") format("woff"),
        url("ArgestaHairline-RegularItalic.otf") format("opentype");
}

@font-face {
    font-family: "Wotfard";
    font-style: normal;
    font-weight: normal;
    src:
        url("Wotfard-Regular.woff2") format("woff2"),
        url("Wotfard-Regular.woff") format("woff"),
        url("Wotfard-Regular.otf") format("opentype");
}

@font-face {
    font-family: "Wotfard";
    font-style: normal;
    font-weight: normal;
    src:
        url("Wotfard-Light.woff2") format("woff2"),
        url("Wotfard-Light.woff") format("woff"),
        url("Wotfard-Light.otf") format("opentype");
}

@font-face {
    font-family: "Wotfard";
    font-style: italic;
    font-weight: normal;
    src:
        url("Wotfard-LightItalic.woff2") format("woff2"),
        url("Wotfard-LightItalic.woff") format("woff"),
        url("Wotfard-LightItalic.otf") format("opentype");
}

/* styles */

:root {
    background-color: #000;
    color: #fefefe;
    font-size: 16px;
    --bgrid: 0.25rem;
    --lh: calc(var(--bgrid) * 6);
    --font-body: "Wotfard", sans-serif;
    --font-display: "Argesta Hairline", sans-serif;
    --t-headline-size: 6rem;
    --t-headline-lh: calc((var(--bgrid) * 23));
    --sp-gutter: 4rem;
    font-family: var(--font-body);
    text-shadow: 0px 2px 4px 4px #000;
}

@media only screen and (max-width: 600px) {
    :root {
        font-size: 90%;
        --sp-gutter: 2rem;
        --t-headline-size: 4.5rem;
        --t-headline-lh: calc((var(--bgrid) * 18));
    }

    .scribble {
        position: static !important;
        transform: none !important;
    }

    .image-set {
        display: flex;
        align-items: center;
    }
}

body {
    line-height: var(--lh);
    margin: 0;
    padding-top: 0;
    padding-bottom: calc((var(--lh) * 16));
    background-image: url(noise.svg);
}

body:after {
    content: "";
    background-image: url(noise-top.svg);
    display: block;
    width: 100vw;
    top: 0;
    bottom: 0;
    opacity: 0.2;
    pointer-events: none;
    position: fixed;
    /* mix-blend-mode: screen; */
}

body > * {
    max-width: 36rem;
    padding: 0 var(--sp-gutter) var(--lh) var(--sp-gutter);
    margin: 0 auto;
}

p {
    padding-bottom: var(--lh);
}

h1,
h2,
h3,
h4,
h5 {
    font-size: 1rem;
    font-weight: normal;
    padding-bottom: var(--lh);
    padding-top: calc((var(--lh) * 3));
    font-family: var(--font-display);
}

h1 {
    line-height: var(--t-headline-lh);
    font-size: var(--t-headline-size);
    font-style: italic;
    padding-top: 0;

    & .subtitle {
        font-size: 1.5rem;
    }
}

h2 {
    font-size: 2.5rem;
    line-height: calc((var(--bgrid) * 12));
}

h3 {
    font-size: 1.75rem;
    line-height: calc((var(--bgrid) * 8));
}

h4 {
    font-size: 1.25rem;
    font-style: italic;
    line-height: calc((var(--bgrid) * 8));
    padding-bottom: var(--bgrid);
    margin-bottom: 0;
    padding-top: calc((var(--bgrid) * 1));
}

.t-uc {
    text-transform: uppercase;
    font-family: var(--font-display);
    letter-spacing: 10%;
}

.t-ar {
    text-align: right;
}

.t-lede {
    font-size: 1.5rem;
}

@keyframes pulseblur {
    from {
        filter: blur(8rem);
    }

    to {
        filter: blur(4.5rem);
    }
}

.highlight-box {
    border: 1px solid #ccc;
    display: block;
    text-align: center;
    padding: calc((var(--bgrid) * 4));
    font-style: italic;
    margin: calc((var(--bgrid) * 4)) auto;
    position: relative;
    z-index: 2;

    &:hover {
        background: #000;
    }

    &:hover::after {
        filter: blur(3.8rem);
        transition: filter 0.8s;
        animation-name: none;
    }

    &::after {
        --vibrance: 50%;
        content: " ";
        margin: calc((var(--bgrid) * 4)) auto;
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: calc(100% - 2rem);

        filter: blur(8rem);
        animation-duration: 2s;
        animation-name: pulseblur;
        animation-iteration-count: infinite;
        animation-direction: alternate;

        transition: filter 0.8s;
        background: linear-gradient(
            to right in oklch longer hue,
            oklch(95% var(--vibrance) 0) 0 100%
        );
    }
}

a {
    color: inherit;
}

#hero-image img {
    width: 100%;
    display: block;
    mask-image: linear-gradient(black 45%, transparent 80%);
}

#masthead {
    margin-top: -8rem;
}

figure.full-bleed {
    padding: 0;
    max-width: none;
}

.scribble {
    width: 50%;
    max-width: 20rem;
    margin: 0 auto;
    display: block;
    mix-blend-mode: screen;
    pointer-events: none;
}

hr {
    border: none;
    border-bottom: 1px solid #fff;
    margin: calc((var(--bgrid) * 16)) auto;
    max-width: 90%;
    opacity: 0.3;
    mask-image: linear-gradient(
        to right,
        transparent 20%,
        black 45%,
        transparent 80%
    );
    padding: 0;
}
