@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800;900&family=Permanent+Marker&display=swap");

:root {
    --ink: #151312;
    --paper: #e8d7bc;
    --white: #f5f0e7;
    --red: #c62d27;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: "DM Sans",sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.skip {
    position: absolute;
    top: -100px;
    left: 12px;
    background: white;
    color: black;
    padding: 12px;
    z-index: 100;
}

.skip:focus {
    top: 10px;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: .10;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px clamp(22px,6vw,100px);
    border-bottom: 1px solid #ffffff33;
    gap: 20px;
}

header a {
    text-decoration: none;
}

.logo {
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -2px;
    transform: rotate(-4deg);
}

.logo span {
    font-size: 12px;
    color: var(--red);
    vertical-align: top;
}

.back,.eyebrow,.kicker,.section-head>span,.note small,figcaption,.end>span,footer,.links a {
    font-family: "DM Mono",monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.back:hover,.links a:hover {
    color: #f0776b;
}

.intro,.gallery,.end {
    padding: 90px clamp(22px,7vw,120px);
    max-width: 1700px;
    margin: auto;
}

.eyebrow {
    border-top: 1px solid #ffffff55;
    padding-top: 20px;
    color: #f0776b;
}

.hero {
    display: grid;
    grid-template-columns: 1.5fr .5fr;
    align-items: center;
    gap: 50px;
    padding-top: 30px;
}

h1,h2 {
    font-weight: 900;
    letter-spacing: -.075em;
    line-height: .92;
    margin: 24px 0;
}

h1 {
    font-size: clamp(70px,11vw,190px);
}

h2 {
    font-size: clamp(45px,7vw,100px);
}

h1 em,h2 em {
    font-style: normal;
    color: var(--red);
}

.kicker {
    color: var(--paper);
}

.lead {
    font-size: clamp(18px,2vw,25px);
    line-height: 1.5;
    max-width: 650px;
}

.note {
    background: var(--paper);
    color: var(--ink);
    padding: 35px;
    transform: rotate(7deg);
    box-shadow: 15px 15px 0 var(--red);
    clip-path: polygon(1% 2%,100% 0,98% 98%,0 100%);
}

.note>span {
    font-size: 45px;
    color: var(--red);
}

.note p {
    font: clamp(25px,3vw,44px)/1.1 "Permanent Marker",cursive;
}

.gallery {
    padding-top: 25px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #ffffff55;
}

.section-head>span {
    color: var(--paper);
    padding-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 26px;
}

.piece {
    min-width: 0;
    margin: 0;
    background: #292320;
    padding: 12px 12px 16px;
    transform: rotate(1deg);
    border: 1px solid #ffffff33;
    transition: transform .25s;
}

.piece:nth-child(3n/**/+2) {
    transform: rotate(-2deg);
}

.piece:nth-child(4n) {
    transform: rotate(2deg);
}

.piece:hover {
    transform: rotate(0) translateY(-6px);
}

.piece img {
    display: block;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: contain;
    background: #171412;
}

.piece figcaption {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 14px 4px 2px;
    color: var(--paper);
}

.piece figcaption span {
    color: #a69c91;
}

.end {
    background: var(--paper);
    color: var(--ink);
    max-width: none;
}

.end h2 em {
    color: var(--red);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.links a {
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 7px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 7vw;
    border-top: 1px solid #ffffff44;
}

footer a {
    text-decoration: none;
}

@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .note {
        max-width: 330px;
        margin: 0 20px 25px auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:600px) {
    .intro,.gallery,.end {
        padding: 65px 22px;
    }

    .hero {
        gap: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .section-head>span {
        display: block;
        margin-bottom: 25px;
    }

    .note {
        max-width: 240px;
        padding: 22px;
    }

    .back {
        font-size: 10px;
    }

    .piece img {
        aspect-ratio: 1/1;
        object-fit: contain;
    }
}

@media (prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
