@font-face {
    font-family: AN;
    src: url(/fonts/ArialNarrow.ttf);
}

:root {
    --bg-dark: #6d7387;
    --indigo: rgba(26, 25, 98, 0.505);
    --shadow-white: 0 0 1px white;
    --glow-text: 0 0 2.5rem rgba(255, 255, 255, 0.35), 0 0 0.4rem rgba(255, 255, 255, 0.25);
    --shadow-h1: 0 0 1rem purple;
    --blur-subtle: 0.035rem;
    --blur-med: 0.285rem;
    --blur-heavy: 3rem;
}

* {
    font-family: 'AN', Arial Narrow, Arial, sans-serif;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: white;
    text-shadow: var(--glow-text);
}

::selection {
    color: yellowgreen;
}

h1 {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) scale(5, 15);
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    font-size: 1rem;
    color: white;
    text-shadow: var(--shadow-h1);
    filter: blur(var(--blur-med));
    mix-blend-mode: multiply;
    z-index: -2;
}

.pylon {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80vh;
    width: 90vw;
    object-fit: contain;
    filter: blur(var(--blur-heavy));
    opacity: 75%;
    mix-blend-mode: color-dodge;
    z-index: -1;
}

#middle {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 88vw;
    height: 76vh;
    margin-top: -38vh;
    margin-left: -44vw;
    text-align: center;
    background-color: var(--indigo);
    border-radius: 100%;
    box-shadow: 0 0 3rem rgba(255, 255, 255, 0.25), inset 0 0 4rem rgba(255, 255, 255, 0.15);
    transform: rotate(var(--tilt, -14deg));
    filter: blur(var(--blur-subtle));
    mix-blend-mode: screen;
    touch-action: none;
}

/* safari won't round off the bubbles without the mask */
.clip {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 0 0);
    mask-image: linear-gradient(#000 0 0);
}

.thot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64%;
    will-change: transform;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 5em;
    padding: 1.5vh 7%;
    box-shadow: var(--shadow-white), 0 0 1.5rem rgba(255, 255, 255, 0.2);
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.4;
    overflow-wrap: anywhere;
    opacity: 0;
}

.thot.seam {
    height: 36vh;
    padding: 0;
    background: none;
    box-shadow: none;
}

.thot p {
    margin: 1em 0;
    white-space: pre-line;
}

.date {
    color: rgba(255, 255, 255, 0.55);
}

.thot.year {
    width: 22%;
    padding: 0.5vh 0;
    background-color: yellowgreen;
    text-shadow: none;
    box-shadow: none;
    mix-blend-mode: exclusion;
}

.thot.year p {
    margin: 0.3em 0;
}

a {
    color: white;
}

a[href^="http"]::after {
    content: " ↗";
}

@media (max-width: 700px) {
    h1 {
        transform: translate(-50%, -50%) scale(4, 16);
    }

    .pylon {
        width: 100vw;
    }

    #middle {
        width: 96vw;
        height: 84vh;
        margin-top: -42vh;
        margin-left: -48vw;
        border-radius: 40%;
        --tilt: -8deg;
    }

    .thot {
        width: 84%;
        padding: 1vh 7%;
        border-radius: 2.5em;
    }

    .thot.year {
        width: 34%;
    }
}
