/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

* {
    font-family: "Roboto Mono", monospace;
    scroll-behavior: smooth;
}

body {
    padding-bottom: 6rem;
}

a {
    text-decoration: underline;
    color: #000;
}

.MaskedHeadline {
    color: #000;
    font-family: "League Spartan", "Roboto Mono", monospace;
    font-weight: 900;
    text-transform: uppercase;
}

.DisplayHeading {
    font-family: "League Spartan", "Roboto Mono", monospace;
    font-weight: 900;
    text-transform: uppercase;
}

.WarRoomHeadline {
    font-size: 4rem;
}

.HomeHeadline {
    font-size: 3.35rem;
    line-height: 0.9;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .MaskedHeadline {
        background-image: url("/assets/circuitboard_headline_flat-27129d8b.webp");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .MaskedHeadline--light {
        position: relative;
        background-image: none;
        color: #fff;
        -webkit-text-fill-color: transparent;
    }

    .MaskedHeadline--light::before {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        display: block;
        background-image: url("/assets/circuitboard_headline_flat-27129d8b.webp");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        filter: invert(1) brightness(1.45) contrast(1.25);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

@media screen and (min-width: 60em) and (max-width: 120em) {
    @supports ((background-clip: text) or (-webkit-background-clip: text)) {
        .MaskedHeadline {
            background-size: min(120vw, 112rem) auto;
        }

        .MaskedHeadline--light::before {
            background-size: min(120vw, 112rem) auto;
        }
    }
}

@media screen and (min-width: 60em) {
    .HomeHeadline {
        font-size: 13rem;
        line-height: 0.82;
    }

    .WarRoomHeadline {
        font-size: 18rem;
        line-height: 0.78;
    }
}

@media screen and (min-width: 60em) and (hover: hover) and (pointer: fine) {
    .CircuitCard,
    .SectionDivider--fixedBg,
    .MaskedHeadline,
    .MaskedHeadline--light::before {
        background-attachment: fixed;
    }
}

.PageFrameContent {
    position: relative;
    z-index: 1;
    background-color: #fff;
    padding-right: 0.875rem;
    padding-left: 0.875rem;
}

.FrameRail {
    position: fixed;
    top: 3rem;
    bottom: 3.5rem;
    z-index: 997;
    width: 0.875rem;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    pointer-events: none;
}

.FrameRail--left {
    left: 0;
}

.FrameRail--right {
    right: 0;
}

.FrameRail__track {
    position: absolute;
    top: -260vh;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    transform: translate3d(-50%, var(--rail-offset, 0), 0);
    will-change: transform;
}

.FrameRail__track span {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.FrameRail--left .FrameRail__track span {
    transform: rotate(180deg);
}

.PageFrame--inverted .PageFrameContent {
    background-color: #000;
}

body.PageFrame--inverted {
    background-color: #000;
}

.PageFrame--inverted .FrameRail {
    background-color: #fff;
    color: #000;
}

.PageFrame--inverted .ScrollEqualizer span {
    background:
        repeating-linear-gradient(
            0deg,
            #fff 0,
            #fff 12px,
            transparent 12px,
            transparent 17px
        );
}

.PageScanlines {
    position: fixed;
    inset: 0;
    z-index: 998;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.045),
            rgba(0, 0, 0, 0.045) 1px,
            transparent 1px,
            transparent 8px
        );
    mix-blend-mode: multiply;
    opacity: 0.22;
    animation: page-scanlines 9s linear infinite;
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll var(--marquee-duration, 20s) linear infinite;
}

.marquee-inner {
    display: flex;
    flex-shrink: 0;
}

.SectionDivider {
    border-bottom: 1px solid #000;
}

.SectionDivider--frosted {
    position: relative;
}

.SectionDivider--frosted::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    background-color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.SectionDivider--frosted > * {
    position: relative;
    z-index: 1;
}

.SectionDivider--fixedBg {
    background-attachment: scroll;
}

.CircuitCard {
    position: relative;
    overflow: hidden;
    background-image: url("/assets/circuitboard_headline_flat-27129d8b.webp");
    background-position: center;
    background-size: cover;
}

.CircuitCard::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    background-color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.CircuitCard--dark::before {
    background-color: rgba(0, 0, 0, 0.8);
}

.CircuitCard > * {
    position: relative;
    z-index: 1;
}

.BrutalistLink {
    display: inline-block;
    color: #000;
    transition: color 120ms linear;
}

.BrutalistLink > span {
    position: relative;
    display: inline-block;
}

.BrutalistLink > span::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    display: block;
    width: 0;
    background-color: #000;
    transition: width 200ms linear;
}

.BrutalistLink:hover {
    color: #fff;
}

.BrutalistLink:hover > span::after {
    width: 100%;
}

.BrutalistLink > span > span {
    position: relative;
    z-index: 1;
}

.PlusList {
    list-style: none;
}

.PlusList li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.PlusList li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 700;
}

.ScrollEqualizer {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 3.5rem;
    left: 0;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 3rem;
    padding: 0 0.35rem;
    pointer-events: none;
}

.ScrollEqualizer span {
    flex: 1;
    min-width: 3px;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            #000 0,
            #000 12px,
            transparent 12px,
            transparent 17px
        );
    transform: scaleY(var(--level, 0));
    transform-origin: bottom;
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--marquee-width, -50%));
    }
}

@keyframes page-scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(8px);
    }
}

@keyframes upside-down-glitch-scan {
    0% {
        background-position: 0 -65vh, 0 0;
    }
    100% {
        background-position: 0 165vh, 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .PageScanlines,
    .marquee {
        animation: none !important;
    }

    .ScrollEqualizer span {
        transition: none;
    }

    .FrameRail__track {
        transform: translate3d(-50%, 0, 0) !important;
        will-change: auto;
    }
}

.NoBullShitCta {
    position: fixed;
    z-index: 1001;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
}

.NoBullShitCta__link {
    padding-right: 4.5rem;
    padding-left: 4.5rem;
}

.NoBullShitCta__themeToggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid currentColor;
    border-radius: 0;
    background-color: #000;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.NoBullShitCta__themeToggle i {
    font-size: 1.25rem;
    line-height: 1;
}

.NoBullShitCta__themeToggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

html.Theme--upsideDown {
    background-color: #000;
}

html.Theme--upsideDown body {
    background-color: #000;
    color: #39ff14;
    text-shadow: 0 0 0.35rem rgba(57, 255, 20, 0.42);
}

html.Theme--upsideDown a,
html.Theme--upsideDown .black,
html.Theme--upsideDown .white {
    color: #39ff14;
}

html.Theme--upsideDown .bg-black,
html.Theme--upsideDown .bg-white,
html.Theme--upsideDown .bg-white-70 {
    background-color: #000;
}

html.Theme--upsideDown a.bg-black,
html.Theme--upsideDown button.bg-black,
html.Theme--upsideDown input[type="button"].bg-black,
html.Theme--upsideDown input[type="submit"].bg-black,
html.Theme--upsideDown a.bg-white,
html.Theme--upsideDown button.bg-white,
html.Theme--upsideDown input[type="button"].bg-white,
html.Theme--upsideDown input[type="submit"].bg-white,
body.Theme--upsideDown a.bg-black,
body.Theme--upsideDown button.bg-black,
body.Theme--upsideDown input[type="button"].bg-black,
body.Theme--upsideDown input[type="submit"].bg-black,
body.Theme--upsideDown a.bg-white,
body.Theme--upsideDown button.bg-white,
body.Theme--upsideDown input[type="button"].bg-white,
body.Theme--upsideDown input[type="submit"].bg-white {
    background-color: #39ff14;
    color: #000;
    border-color: #39ff14;
    text-shadow: none;
}

html.Theme--upsideDown .b--black,
html.Theme--upsideDown .b--white,
html.Theme--upsideDown .b--white-20,
html.Theme--upsideDown .b--light-gray,
body.Theme--upsideDown .b--light-gray {
    border-color: #39ff14;
}

html.Theme--upsideDown hr,
body.Theme--upsideDown hr {
    border-color: #39ff14;
}

html.Theme--upsideDown header,
html.Theme--upsideDown header.bg-black,
html.Theme--upsideDown header.bg-white,
html.Theme--upsideDown .Menu nav ul,
html.Theme--upsideDown .Menu nav ul.bg-black,
html.Theme--upsideDown .Menu nav ul.bg-white,
html.Theme--upsideDown .FrameRail,
html.Theme--upsideDown .NoBullShitCta__link,
html.Theme--upsideDown .NoBullShitCta__themeToggle,
body.Theme--upsideDown header,
body.Theme--upsideDown header.bg-black,
body.Theme--upsideDown header.bg-white,
body.Theme--upsideDown .Menu nav ul,
body.Theme--upsideDown .Menu nav ul.bg-black,
body.Theme--upsideDown .Menu nav ul.bg-white,
body.Theme--upsideDown .FrameRail,
body.Theme--upsideDown .NoBullShitCta__link,
body.Theme--upsideDown .NoBullShitCta__themeToggle {
    background-color: #39ff14;
    color: #000;
    border-color: #39ff14;
    box-shadow:
        0 0 0.75rem rgba(57, 255, 20, 0.52),
        inset 0 0 0.85rem rgba(57, 255, 20, 0.18);
    text-shadow: none;
}

html.Theme--upsideDown header img,
body.Theme--upsideDown header img {
    filter: none !important;
}

html.Theme--upsideDown .PageFrameContent,
html.Theme--upsideDown body.PageFrame--inverted,
html.Theme--upsideDown .PageFrame--inverted .PageFrameContent {
    background-color: #000;
}

html.Theme--upsideDown .PageScanlines {
    background:
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 42%,
            rgba(57, 255, 20, 0.2) 43%,
            rgba(57, 255, 20, 0.04) 45%,
            transparent 48%,
            transparent 100%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(57, 255, 20, 0.08),
            rgba(57, 255, 20, 0.08) 1px,
            transparent 1px,
            transparent 8px
        );
    background-size: 100% 65vh, auto;
    mix-blend-mode: screen;
    opacity: 0.42;
    animation:
        page-scanlines 9s linear infinite,
        upside-down-glitch-scan 14s linear infinite;
}

html.Theme--upsideDown .FrameRail__track span,
body.Theme--upsideDown .FrameRail__track span {
    color: #000;
    text-shadow: none;
}

html.Theme--upsideDown .PlusList li::before,
body.Theme--upsideDown .PlusList li::before {
    color: #39ff14;
    text-shadow: 0 0 0.35rem rgba(57, 255, 20, 0.65);
}

html.Theme--upsideDown .ScrollEqualizer span,
html.Theme--upsideDown .PageFrame--inverted .ScrollEqualizer span {
    background:
        repeating-linear-gradient(
            0deg,
            #39ff14 0,
            #39ff14 12px,
            transparent 12px,
            transparent 17px
        );
    filter: drop-shadow(0 0 0.4rem rgba(57, 255, 20, 0.85));
}

html.Theme--upsideDown .Menu__navToggleBar,
body.Theme--upsideDown .Menu__navToggleBar {
    background-color: #000;
    box-shadow: none;
}

html.Theme--upsideDown .Menu nav a,
body.Theme--upsideDown .Menu nav a {
    display: inline-block;
    padding: 0.125rem 0.25rem;
    color: #000 !important;
    text-decoration: underline;
    text-shadow: none;
}

html.Theme--upsideDown .Menu nav a::before,
html.Theme--upsideDown header.bg-black .Menu nav a::before,
body.Theme--upsideDown .Menu nav a::before,
body.Theme--upsideDown header.bg-black .Menu nav a::before {
    background-color: #000 !important;
    box-shadow: none;
}

html.Theme--upsideDown .Menu nav a:hover,
html.Theme--upsideDown header.bg-black .Menu nav a:hover,
body.Theme--upsideDown .Menu nav a:hover,
body.Theme--upsideDown header.bg-black .Menu nav a:hover {
    color: #39ff14 !important;
    text-shadow: none;
}

html.Theme--upsideDown .SectionDivider {
    border-color: #39ff14;
}

html.Theme--upsideDown .post__title span,
html.Theme--upsideDown .article__title span,
body.Theme--upsideDown .post__title span,
body.Theme--upsideDown .article__title span {
    background-color: #000 !important;
    color: #39ff14 !important;
    text-shadow: 0 0 0.55rem rgba(57, 255, 20, 0.75);
}

html.Theme--upsideDown .post__content a,
html.Theme--upsideDown .article__content a,
body.Theme--upsideDown .post__content a,
body.Theme--upsideDown .article__content a {
    background-color: transparent !important;
    color: #39ff14 !important;
    text-shadow: 0 0 0.35rem rgba(57, 255, 20, 0.42);
}

html.Theme--upsideDown .post__content a:hover,
html.Theme--upsideDown .article__content a:hover,
body.Theme--upsideDown .post__content a:hover,
body.Theme--upsideDown .article__content a:hover {
    background-color: #39ff14 !important;
    color: #000 !important;
    text-shadow: none;
}

html.Theme--upsideDown .article__inner,
body.Theme--upsideDown .article__inner {
    background-color: #39ff14 !important;
    color: #000 !important;
    text-shadow: none;
}

html.Theme--upsideDown .article__inner:hover,
body.Theme--upsideDown .article__inner:hover {
    box-shadow: 0 0 0.75rem rgba(57, 255, 20, 0.65);
}

html.Theme--upsideDown .post__content small,
html.Theme--upsideDown .article__content small,
body.Theme--upsideDown .post__content small,
body.Theme--upsideDown .article__content small {
    border-color: #39ff14;
}

html.Theme--upsideDown .post__content small::before,
html.Theme--upsideDown .article__content small::before,
body.Theme--upsideDown .post__content small::before,
body.Theme--upsideDown .article__content small::before {
    border-bottom-color: #39ff14;
}

html.Theme--upsideDown .post__content small::after,
html.Theme--upsideDown .article__content small::after,
body.Theme--upsideDown .post__content small::after,
body.Theme--upsideDown .article__content small::after {
    border-bottom-color: #000;
}

html.Theme--upsideDown .post__content blockquote::before,
html.Theme--upsideDown .article__content blockquote::before,
body.Theme--upsideDown .post__content blockquote::before,
body.Theme--upsideDown .article__content blockquote::before {
    border-top-color: #39ff14;
    border-left-color: #39ff14;
}

html.Theme--upsideDown .post__content blockquote::after,
html.Theme--upsideDown .article__content blockquote::after,
body.Theme--upsideDown .post__content blockquote::after,
body.Theme--upsideDown .article__content blockquote::after {
    border-bottom-color: #39ff14;
    border-right-color: #39ff14;
}

html.Theme--upsideDown .SectionDivider--frosted::before,
html.Theme--upsideDown .CircuitCard::before,
html.Theme--upsideDown .CircuitCard--dark::before {
    background-color: rgba(0, 24, 0, 0.78);
    box-shadow: inset 0 0 3rem rgba(57, 255, 20, 0.2);
}

html.Theme--upsideDown .SectionDivider--fixedBg,
html.Theme--upsideDown .CircuitCard {
    background-blend-mode: screen;
    filter: saturate(1.3);
}

html.Theme--upsideDown .CircuitCard {
    border-color: #39ff14;
    box-shadow: inset 0 0 1.5rem rgba(57, 255, 20, 0.16);
}

html.Theme--upsideDown .MaskedHeadline {
    color: #39ff14;
    -webkit-text-fill-color: #39ff14;
    text-shadow:
        0 0 0.22rem rgba(57, 255, 20, 0.48),
        0 0 0.75rem rgba(57, 255, 20, 0.2);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    html.Theme--upsideDown .MaskedHeadline {
        background-image:
            linear-gradient(rgba(57, 255, 20, 0.34), rgba(57, 255, 20, 0.34)),
            url("/assets/circuitboard_headline_flat-27129d8b.webp");
        background-blend-mode: color;
        filter: brightness(1) contrast(1.7) saturate(1.1);
        -webkit-text-fill-color: transparent;
    }

    html.Theme--upsideDown .MaskedHeadline--light::before {
        background-image:
            linear-gradient(rgba(57, 255, 20, 0.34), rgba(57, 255, 20, 0.34)),
            url("/assets/circuitboard_headline_flat-27129d8b.webp");
        background-blend-mode: color;
        filter: brightness(1) contrast(1.7) saturate(1.1);
    }
}

html.Theme--upsideDown .BrutalistLink {
    color: #39ff14;
}

html.Theme--upsideDown .BrutalistLink > span::after {
    background-color: #39ff14;
}

html.Theme--upsideDown .BrutalistLink:hover {
    color: #000;
    text-shadow: none;
}

html.Theme--upsideDown input,
html.Theme--upsideDown textarea,
html.Theme--upsideDown select {
    background-color: #000;
    color: #39ff14;
    border-color: #39ff14;
    caret-color: #39ff14;
    box-shadow: inset 0 0 0.8rem rgba(57, 255, 20, 0.12);
}

html.Theme--upsideDown input::placeholder,
html.Theme--upsideDown textarea::placeholder {
    color: rgba(57, 255, 20, 0.58);
}

html.Theme--upsideDown input:focus,
html.Theme--upsideDown textarea:focus,
html.Theme--upsideDown select:focus,
html.Theme--upsideDown button:focus-visible,
html.Theme--upsideDown a:focus-visible {
    outline: 2px solid #39ff14;
    outline-offset: 3px;
}

html.Theme--upsideDown svg,
html.Theme--upsideDown .marquee img {
    filter: sepia(1) saturate(4) hue-rotate(54deg) brightness(1.15) drop-shadow(0 0 0.35rem rgba(57, 255, 20, 0.45));
}

html.Theme--upsideDown .NoBullShitCta__themeToggle[aria-pressed="true"] {
    background-color: #39ff14;
    color: #000;
    text-shadow: none;
}

@media screen and (max-width: 60em), (hover: none), (pointer: coarse) {
    html.Theme--upsideDown .PageScanlines {
        background:
            repeating-linear-gradient(
                0deg,
                rgba(57, 255, 20, 0.07),
                rgba(57, 255, 20, 0.07) 1px,
                transparent 1px,
                transparent 8px
            );
        background-size: auto;
        mix-blend-mode: normal;
        opacity: 0.24;
        animation: none;
    }

    html.Theme--upsideDown .ScrollEqualizer span,
    html.Theme--upsideDown .PageFrame--inverted .ScrollEqualizer span {
        filter: none;
    }

    html.Theme--upsideDown .MaskedHeadline,
    body.Theme--upsideDown .MaskedHeadline {
        text-shadow: 0 0 0.18rem rgba(57, 255, 20, 0.45);
    }
}

@media screen and (min-width: 30em) {
    .PageFrameContent {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .FrameRail {
        width: 1.5rem;
    }

    .FrameRail__track span {
        font-size: 0.625rem;
    }
}

@media screen and (min-width: 60em) {
    .PageFrameContent {
        padding-right: 3rem;
        padding-left: 3rem;
    }

    .FrameRail {
        width: 3rem;
    }

    .FrameRail__track {
        gap: 2rem;
    }

    .FrameRail__track span {
        font-size: 0.75rem;
    }
}
