@font-face {
    font-family: "Urban Jungle";
    src: url("../public/fonts/UrbanJungle.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #eee9de;
    --paper-dark: #d8d0c1;
    --ink: #111111;
    --ink-soft: rgba(17, 17, 17, 0.68);
    --accent: #ff6500;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #111111;
    color: var(--ink);
    font-family: "Courier New", Courier, monospace;
}

/* Main sheet of photocopied paper */

.page {
    position: relative;
    isolation: isolate;

    min-height: 100svh;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: clamp(2rem, 5vw, 5rem);

    background:
        /* Large diagonal paper crease */
        linear-gradient(
            102deg,
            transparent 0 46%,
            rgba(0, 0, 0, 0.035) 47%,
            rgba(255, 255, 255, 0.18) 48%,
            transparent 49.5%
        ),

        /* Secondary crease */
        linear-gradient(
            78deg,
            transparent 0 74%,
            rgba(0, 0, 0, 0.025) 74.5%,
            rgba(255, 255, 255, 0.1) 75%,
            transparent 76%
        ),

        /* Uneven copier shadows */
        radial-gradient(
            circle at 12% 18%,
            rgba(0, 0, 0, 0.065),
            transparent 25%
        ),
        radial-gradient(
            circle at 84% 68%,
            rgba(0, 0, 0, 0.045),
            transparent 31%
        ),

        var(--paper);
}

/* Copier scan lines */

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 2px,
            rgba(0, 0, 0, 0.026) 2px 3px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 8px,
            rgba(0, 0, 0, 0.01) 8px 9px
        );

    mix-blend-mode: multiply;
    opacity: 0.72;
}

/* Rough lower paper edge */

.page::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;

    left: -2%;
    right: -2%;
    bottom: -12px;
    height: 28px;

    background:
        linear-gradient(
            135deg,
            transparent 0 8px,
            var(--paper-dark) 8px 16px,
            transparent 16px 24px
        );

    background-size: 24px 28px;
    opacity: 0.88;
}

/* Speckled photocopy texture */

.photocopy-noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(0, 0, 0, 0.2) 0 0.65px,
            transparent 0.9px
        ),
        radial-gradient(
            circle,
            rgba(0, 0, 0, 0.12) 0 0.5px,
            transparent 0.8px
        );

    background-position:
        0 0,
        4px 5px;

    background-size:
        8px 8px,
        13px 13px;

    mix-blend-mode: multiply;
    opacity: 0.35;
}

.poster {
    width: min(100%, 1040px);
}

/* Small issue text */

.issue-label {
    width: fit-content;
    margin-bottom: 1.2rem;

    font-size: clamp(0.62rem, 1vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;

    transform: rotate(-0.7deg);
}

/* Main title */

.title-block {
    position: relative;
    width: fit-content;
}

.title {
    display: flex;
    flex-direction: column;

    font-family: "Urban Jungle", Impact, sans-serif;
    font-size: clamp(5rem, 14vw, 11rem);
    font-weight: 400;
    line-height: 0.76;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.title span {
    position: relative;
    display: block;
    width: fit-content;
}

/*
    Urban Jungle already contains its own distress.
    Do not apply another texture overlay to the letters.
*/

.title__misfit {
    z-index: 2;
    transform: rotate(-0.45deg);
}

.title__planet {
    z-index: 1;

    margin-left: clamp(1rem, 4vw, 4rem);

    transform: rotate(-1deg);
}

/* Orange screen-printed swipe behind PLANET */

.title__planet::before {
    content: "";
    position: absolute;
    z-index: -1;

    left: -0.13em;
    right: -0.12em;
    top: 53%;

    height: 0.3em;

    background: var(--accent);

    transform:
        translateY(-50%)
        rotate(-1.4deg);
}

/* Two orange marker strokes beside title */

.orange-mark {
    position: absolute;

    right: -2.2rem;
    top: 14%;

    width: 1.25rem;
    height: 5.3rem;

    border-left: 5px solid var(--accent);
    border-right: 5px solid var(--accent);

    transform: rotate(8deg);
}

/* Three-line manifesto */

.manifesto {
    margin-top: clamp(3rem, 8vh, 6rem);

    font-family: "Courier New", Courier, monospace;
    font-size: clamp(1.05rem, 2.35vw, 1.85rem);
    font-weight: 700;
    line-height: 1.48;
}

.manifesto p:nth-child(1) {
    transform: rotate(-0.25deg);
}

.manifesto p:nth-child(2) {
    width: fit-content;
    margin-left: clamp(1rem, 4vw, 3.5rem);

    transform: rotate(0.35deg);
}

.manifesto p:nth-child(3) {
    position: relative;
    width: fit-content;

    margin-top: 0.25rem;
    margin-left: clamp(0.25rem, 2vw, 1.5rem);

    transform: rotate(-0.3deg);
}

/* Rough orange underline */

.manifesto p:nth-child(3)::after {
    content: "";
    position: absolute;

    left: 0;
    right: 4%;
    bottom: -0.18rem;

    height: 5px;

    background: var(--accent);

    transform: rotate(-0.8deg);
}

/* Black note taped onto page */

.status-note {
    position: relative;

    width: fit-content;
    margin-top: clamp(3.5rem, 8vh, 6rem);
    margin-left: clamp(1rem, 10vw, 8rem);

    padding: 1.05rem 1.5rem 0.9rem;

    background: #111111;
    color: var(--paper);

    box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.14);

    transform: rotate(1deg);
}

.status-note p {
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(1rem, 2.1vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

/* Translucent orange tape */

.tape {
    position: absolute;
    top: -0.75rem;

    width: 4.5rem;
    height: 1.45rem;

    background:
        linear-gradient(
            90deg,
            rgba(255, 101, 0, 0.46),
            rgba(255, 133, 55, 0.24),
            rgba(255, 101, 0, 0.4)
        );

    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(105, 40, 0, 0.08);

    clip-path: polygon(
        2% 8%,
        98% 0,
        96% 92%,
        4% 100%
    );

    mix-blend-mode: multiply;
    opacity: 0.7;
}

.tape--left {
    left: -1.75rem;
    transform: rotate(-12deg);
}

.tape--right {
    right: -1.55rem;
    transform: rotate(10deg);
}

/* Footer */

.footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;

    margin-top: 4rem;

    color: var(--ink-soft);

    font-family: "Courier New", Courier, monospace;
    font-size: clamp(0.7rem, 1vw, 0.86rem);
    line-height: 1.5;
}

.footer__stamp {
    padding: 0.38rem 0.58rem;

    border: 3px solid var(--accent);

    color: var(--accent);

    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(0.72rem, 1.1vw, 0.94rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transform: rotate(-4deg);
}

/* Staples */

.staple {
    position: absolute;

    width: 4px;
    height: 28px;

    border: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 2px;

    background: rgba(255, 255, 255, 0.25);

    box-shadow:
        2px 1px 2px rgba(0, 0, 0, 0.12);
}

.staple--one {
    top: 2rem;
    right: 2.3rem;

    transform: rotate(8deg);
}

.staple--two {
    right: 3rem;
    bottom: 2.8rem;

    transform: rotate(-11deg);
}

/* Mobile */

@media (max-width: 700px) {
    .page {
        padding: 2rem 1.25rem 2.5rem;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .title {
        font-size: clamp(4rem, 23vw, 7rem);
        line-height: 0.78;
    }

    .title__planet {
        margin-left: 0.5rem;
    }

    .orange-mark {
        display: none;
    }

    .manifesto {
        font-size: clamp(1rem, 5.2vw, 1.4rem);
    }

    .manifesto p:nth-child(2),
    .manifesto p:nth-child(3) {
        margin-left: 0;
    }

    .status-note {
        margin-left: 0.7rem;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer__stamp {
        align-self: flex-end;
    }
}

/* Small, optional interaction */

@media (prefers-reduced-motion: no-preference) {
    .status-note {
        transition:
            transform 180ms ease,
            box-shadow 180ms ease;
    }

    .status-note:hover {
        transform: rotate(-0.3deg) translateY(-3px);
        box-shadow: 11px 14px 0 rgba(0, 0, 0, 0.16);
    }
}