/* A photocopied show flyer: black ink on cheap paper, with one spot colour. */

@font-face {
    font-family: "Rubik Dirt";
    src: url("fonts/rubik-dirt-400.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Anton";
    src: url("fonts/anton-400.woff2") format("woff2");
    font-display: swap;
}

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

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

@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: dark;

    --black: #0b0a0a;
    --paper: #e8e2d4;
    --ink: #121010;
    --ink-faded: #4d4842;
    --chalk: #f1ece1;
    --chalk-faded: #b9b3a8;
    --red: #c8102e;       /* For use on paper, and behind light text. */
    --red-bright: #ff4638; /* For use on black. */

    --grain: url("grain.svg");
    --checker: repeating-conic-gradient(var(--paper) 0 25%, var(--black) 0 50%);

    --distressed: "Rubik Dirt", Impact, "Arial Black", sans-serif;
    --poster: "Anton", Impact, "Arial Narrow", sans-serif;
    --typewriter: "Special Elite", "Courier New", monospace;
    --marker: "Permanent Marker", "Comic Sans MS", cursive;
    --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--black);
    color: var(--chalk);
    font: 400 1rem/1.5 var(--body);
}

h1,
h2,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:focus-visible,
.shorts-row:focus-visible {
    outline: 3px solid var(--red-bright);
    outline-offset: 3px;
}

.wrap {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

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

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 8px 12px;
    background: var(--red);
    color: #fff;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* The flyer */

.poster {
    position: relative;
    z-index: 1;
    padding-block: 44px 20px;
    background: var(--grain), var(--paper);
    color: var(--ink);
}

/* Checkerboard along the top, torn paper along the bottom. */
.poster::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 20px;
    background: var(--checker) 0 0 / 20px 20px;
}

.poster::after {
    content: "";
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    width: 100%;
    height: 28px;
    /* The same paper as the flyer, with torn.svg cutting out its shape. */
    background: var(--grain), var(--paper);
    -webkit-mask: url("torn.svg") repeat-x 0 0 / 1200px 28px;
    mask: url("torn.svg") repeat-x 0 0 / 1200px 28px;
}

/* The name and the photo are two squares of exactly the same size. */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    gap: clamp(16px, 4vw, 40px);
    justify-content: center;
}

.masthead {
    min-width: 0;
    container-type: inline-size;
}

/* Each word is sized to fill the same width, and spread to fill the square. */
.wordmark {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1;
    font-family: var(--distressed);
    font-weight: 400;
    line-height: 0.74;
    text-transform: uppercase;
}

.wordmark span {
    display: block;
}

.wordmark span:nth-child(1) {
    font-size: 33cqi;
}

.wordmark span:nth-child(2) {
    color: var(--red);
    font-size: 26cqi;
}

.wordmark span:nth-child(3) {
    font-size: 44cqi;
}

.tagline {
    grid-column: 1 / -1;
    font: 400 clamp(1rem, 2.2vw, 1.3rem)/1.3 var(--typewriter);
    text-align: center;
}

.portrait {
    position: relative;
    padding: clamp(4px, 1vw, 7px);
    background: #fff;
    box-shadow: 2px 3px 0 rgb(0 0 0 / 35%);
    transform: rotate(1.5deg);
}

/* Strip of tape holding the photo on. */
.portrait::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    z-index: 1;
    width: 42%;
    height: 24px;
    background: rgb(214 201 160 / 78%);
    transform: translateX(-50%) rotate(-3deg);
}

.portrait img {
    width: 100%;
    filter: grayscale(1) contrast(1.12) brightness(1.12);
}

/* Links */

.links {
    grid-column: 1 / -1;
}

.links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.link-button {
    display: block;
    padding: 12px 18px 10px;
    background: var(--ink);
    color: var(--paper);
    font: 400 1.125rem/1.1 var(--poster);
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 var(--red);
}

.link-button:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 1px 1px 0 var(--ink);
    transform: translate(2px, 2px);
}

/* Sections */

main {
    padding-top: 28px;
}

.section {
    padding-block: clamp(36px, 6vw, 60px) 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

/* A headline cut out and stuck on. */
.section-head h2,
.empty h2 {
    padding: 6px 14px 4px;
    background: var(--chalk);
    color: var(--ink);
    font: 400 clamp(1.6rem, 4vw, 2.25rem)/1.1 var(--poster);
    text-transform: uppercase;
    transform: rotate(-1.2deg);
}

.empty h2 {
    display: inline-block;
}

.section-head a {
    flex: none;
    color: var(--chalk-faded);
    font-family: var(--typewriter);
    text-underline-offset: 0.2em;
}

.section-head a:hover {
    color: var(--chalk);
}

.kicker {
    color: var(--red-bright);
    font: 400 1.5rem/1.2 var(--marker);
    transform: rotate(-2deg);
    transform-origin: left;
}

.meta {
    color: var(--chalk-faded);
    font: 400 0.875rem/1.3 var(--typewriter);
}

.button {
    display: inline-block;
    padding: 12px 20px 10px;
    background: var(--red);
    color: #fff;
    font: 400 1.25rem/1.1 var(--poster);
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--chalk);
}

.button:hover {
    box-shadow: 2px 2px 0 var(--chalk);
    transform: translate(2px, 2px);
}

.empty p {
    margin-block: 14px 22px;
    color: var(--chalk-faded);
}

/* Latest video */

.latest {
    display: grid;
    gap: 24px;
}

.player {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 8px solid var(--paper);
}

.player img,
.player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(58px, 9vw, 84px);
    aspect-ratio: 7 / 6;
    background: var(--black);
    outline: 3px solid var(--paper);
    transform: translate(-50%, -50%) rotate(-3deg);
    transition: background 0.12s ease;
}

.play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    border-block: 13px solid transparent;
    border-left: 22px solid var(--paper);
    transform: translate(-50%, -50%);
}

.player:hover .play {
    background: var(--red);
}

.latest-copy {
    min-width: 0;
}

.latest-copy h2 {
    margin-top: 8px;
    font: 400 clamp(1.75rem, 3.4vw, 2.5rem)/1.12 var(--poster);
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.latest-copy h2 a {
    text-decoration: none;
}

.latest-copy h2 a:hover {
    color: var(--red-bright);
}

.latest-copy .meta {
    margin-top: 10px;
}

.summary {
    margin-top: 12px;
    color: var(--chalk-faded);
}

.latest-copy .button {
    margin-top: 22px;
}

@media (min-width: 900px) {
    .latest {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 40px;
        align-items: center;
    }
}

/* Video cards: smaller flyers stuck to the wall, slightly out of line. */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 26px 22px;
}

.shorts-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(158px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 16px;
    scroll-snap-type: x proximity;
}

.shorts-row li {
    scroll-snap-align: start;
}

.video-card,
.short-card {
    display: block;
    height: 100%;
    padding: 8px 8px 12px;
    background: var(--grain), var(--paper);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.12s ease;
}

li:nth-child(3n + 1) > .video-card,
li:nth-child(3n + 1) > .short-card {
    transform: rotate(-0.7deg);
}

li:nth-child(3n + 2) > .video-card,
li:nth-child(3n + 2) > .short-card {
    transform: rotate(0.5deg);
}

li:nth-child(3n) > .video-card,
li:nth-child(3n) > .short-card {
    transform: rotate(-0.25deg);
}

li > .video-card:hover,
li > .short-card:hover,
li > .video-card:focus-visible,
li > .short-card:focus-visible {
    transform: rotate(0) scale(1.015);
}

.video-card img,
.short-card img {
    width: 100%;
    object-fit: cover;
    background: var(--ink);
}

.video-card img {
    aspect-ratio: 16 / 9;
}

.short-card img {
    aspect-ratio: 9 / 16;
}

.video-title {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.video-card:hover .video-title,
.short-card:hover .video-title {
    color: var(--red);
}

.video-card .meta {
    display: block;
    margin-top: 6px;
    color: var(--ink-faded);
}

.short-card .video-title {
    font-size: 0.9375rem;
}

/* Footer */

.footer {
    width: 100%;
    max-width: none;
    margin-top: clamp(48px, 7vw, 80px);
    padding: 0;
    color: var(--chalk-faded);
    font: 400 0.875rem/1.3 var(--typewriter);
    text-align: center;
}

.footer::before {
    content: "";
    display: block;
    height: 40px;
    background: var(--checker) 0 0 / 40px 40px;
}

.footer p {
    padding-block: 20px 28px;
}

@media (prefers-reduced-motion: reduce) {
    .play,
    .video-card,
    .short-card {
        transition: none;
    }
}
