/* NO REMORSE link page — a xeroxed show flyer.
   Ink on paper, the "Split" sleeve art along the bottom, links slapped on
   like stickers, one red spot colour. "Side B" swaps ink and paper. */

@font-face {
    font-family: "Permanent Marker";
    src: url("/fonts/permanent-marker.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Special Elite";
    src: url("/fonts/special-elite.woff2") format("woff2");
    font-display: swap;
}

:root {
    --paper: #efece3;
    --ink: #121212;
    --spot: #e3261b;
    --marker: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
    --typed: "Special Elite", "Courier New", Courier, monospace;
    --edge: 8px;
    color-scheme: light;
}

:root.side-b {
    --paper: #121212;
    --ink: #efece3;
    --spot: #ff3b2f;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html {
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--typed);
    font-size: 16px;
    line-height: 1.4;
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Backdrop: the sleeve art, fading up into blank paper ---------- */

.bg {
    position: fixed;
    inset: var(--edge);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.5;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, #000 50%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, #000 50%);
}

.side-b .bg-photo {
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.42;
}

/* A band of halftone dots where the art thins out. */
.bg-dots {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--ink) 1.1px, transparent 1.5px) 0 0 / 7px 7px;
    opacity: 0.14;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 34%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 34%);
}

/* Photocopier speckle over everything. */
.grain {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: url("/images/grain.svg") 0 0 / 240px 240px;
    opacity: 0.08;
}

.side-b .grain { filter: invert(1); opacity: 0.06; }

/* The comic-panel border from the sleeve. */
.frame {
    position: fixed;
    inset: var(--edge);
    z-index: 4;
    border: 4px solid var(--ink);
    pointer-events: none;
}

/* ---------- Layout ---------- */

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 472px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: calc(var(--edge) + 30px) 28px calc(var(--edge) + 26px);
}

.hero {
    width: 100%;
    text-align: center;
}

.logo {
    margin: 0;
    line-height: 0;
}

.logo img {
    width: min(100%, 400px);
    height: auto;
    animation: stamp 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both, boil 0.6s steps(1) 0.5s infinite;
}

.side-b .logo img { filter: invert(1); }

.tagline {
    margin: 6px 0 0;
}

.tagline span {
    display: inline-block;
    padding: 6px 12px 3px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transform: rotate(-1.6deg);
}

/* ---------- Announcement: a strip that scrolls ---------- */

.tape {
    display: block;
    width: calc(100% + 20px);
    margin: 22px -10px 0;
    padding: 9px 0 7px;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--marker);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transform: rotate(-1.2deg);
    box-shadow: 5px 5px 0 var(--spot);
}

a.tape:hover,
a.tape:focus-visible { background: var(--spot); color: #fff; box-shadow: 5px 5px 0 var(--ink); }

.tape-track {
    display: inline-flex;
    animation: scroll 22s linear infinite;
}

.tape-chunk { padding-left: 0.9em; }
.tape-chunk i {
    padding-left: 0.9em;
    font-style: normal;
    color: var(--spot);
}

a.tape:hover .tape-chunk i,
a.tape:focus-visible .tape-chunk i { color: var(--ink); }

/* ---------- Links: stickers ---------- */

.links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.links a {
    --r: -1.1deg;
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px 8px;
    background: var(--paper);
    color: var(--ink);
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    text-decoration: none;
    transform: rotate(var(--r));
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s, color 0.12s;
    animation: slap 0.34s cubic-bezier(0.2, 1.3, 0.4, 1) both;
    animation-delay: calc(var(--i, 0) * 80ms + 220ms);
}

.links a:nth-child(4n + 2) { --r: 0.9deg; }
.links a:nth-child(4n + 3) { --r: -0.5deg; }
.links a:nth-child(4n + 4) { --r: 1.3deg; }

.links .num {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding-top: 3px;
    opacity: 0.75;
}

.links .mid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-width: 0;
    font-family: var(--marker);
    font-size: clamp(1.2rem, 5.6vw, 1.6rem);
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
}

.links .mid i { font-size: 0.82em; }
.links .label { overflow-wrap: anywhere; }

.links .go {
    font-family: var(--marker);
    font-size: 1.5rem;
    text-align: right;
    transition: transform 0.12s ease-out;
}

.links a:hover,
.links a:focus-visible {
    background: var(--ink);
    color: var(--paper);
    transform: rotate(0deg) translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--spot);
}

.links a:hover .go,
.links a:focus-visible .go { transform: translateX(4px); }

.links a:active {
    transform: rotate(0deg) translate(4px, 4px);
    box-shadow: 2px 2px 0 var(--spot);
}

/* ---------- Social icons ---------- */

.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.media {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    background: var(--paper);
    color: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 1.35rem;
    text-decoration: none;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s, color 0.12s;
}

.media:hover,
.media:focus-visible {
    background: var(--ink);
    color: var(--paper);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--spot);
}

.media:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--spot); }

/* ---------- Rubber stamp ---------- */

.stamp {
    align-self: flex-end;
    margin: 30px 4px 34px 0;
    padding: 7px 14px 3px;
    background: var(--paper);
    color: var(--spot);
    border: 3px solid var(--spot);
    outline: 1.5px solid var(--spot);
    outline-offset: 3px;
    font-family: var(--marker);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-7deg);
    user-select: none;
}

/* ---------- Footer ---------- */

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    margin-top: auto;
    padding: 8px 14px 5px;
    background: var(--paper);
    border: 2px solid var(--ink);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


#flip {
    padding: 0;
    background: none;
    border: none;
    border-bottom: 2px solid var(--spot);
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

#flip:hover { color: var(--spot); }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--spot);
    outline-offset: 4px;
}

::selection { background: var(--spot); color: #fff; }

/* ---------- Motion ---------- */

@keyframes stamp {
    from { opacity: 0; transform: scale(1.35) rotate(-4deg); }
    to { opacity: 1; transform: none; }
}

/* Hand-drawn "line boil": the logo never sits quite still. */
@keyframes boil {
    0% { transform: none; }
    33% { transform: translate(0.6px, -0.5px) rotate(0.25deg); }
    66% { transform: translate(-0.5px, 0.6px) rotate(-0.2deg); }
}

@keyframes slap {
    from { opacity: 0; transform: scale(1.5) rotate(calc(var(--r) * 7)); }
    to { opacity: 1; transform: rotate(var(--r)); }
}

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

@keyframes slam {
    0% { transform: none; }
    25% { transform: translate(-5px, 3px) rotate(-0.5deg); }
    55% { transform: translate(4px, -2px) rotate(0.4deg); }
    80% { transform: translate(-2px, 1px); }
    100% { transform: none; }
}

.slam .content { animation: slam 0.26s linear; }

@media (prefers-reduced-motion: reduce) {
    .logo img,
    .links a,
    .slam .content { animation: none; }
    .links a,
    .links .go,
    .media { transition: none; }
    .tape { white-space: normal; text-align: center; padding-left: 12px; padding-right: 12px; }
    .tape-track { display: inline; animation: none; }
    .tape-run[aria-hidden="true"],
    .tape-chunk:not(:first-child),
    .tape-chunk i { display: none; }
    .tape-chunk { padding-left: 0; }
}

@media (max-width: 380px) {
    .content { padding-left: 22px; padding-right: 22px; }
    .links a { grid-template-columns: 2.1rem 1fr 2.1rem; }
}
