@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Courier+Prime:wght@400;700&display=swap');

:root {
    --bg: #f4f1ea;
    --black: #1a1a1a;
    --red: #e63946;
    --blue: #457b9d;
    --yellow: #f4a261;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--black);
    font-family: 'Courier Prime', monospace;
    overflow-x: hidden;
    padding-left: 100px;
    /* Vertical Sidebar Space */
}

.archivo {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
}

/* Rotating Sidebar Header */
.sidebar-title {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100px;
    background: var(--black);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-right: 8px solid var(--red);
}

.sidebar-title h2 {
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 3rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px;
}

header {
    padding: 40px 0 100px;
    border-bottom: 8px solid var(--black);
    margin-bottom: 80px;
}

.logo {
    font-size: 8rem;
    line-height: 0.8;
    letter-spacing: -5px;
}

/* The Bauhaus Poster Mesh */
.poster-mesh {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
}

.art-tile {
    flex: 1 1 300px;
    border: 8px solid var(--black);
    background: #fff;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
}

.art-tile:nth-child(even) {
    flex: 1 1 500px;
    border-color: var(--blue);
}

.art-tile:nth-child(3n) {
    border-color: var(--yellow);
    transform: translateY(40px);
}

.art-tile:nth-child(5n) {
    background: var(--red);
    color: #fff;
}

.art-tile:hover {
    transform: scale(1.05) rotate(1deg);
    z-index: 10;
    box-shadow: 20px 20px 0 var(--black);
}

.img-frame {
    width: 100%;
    height: 250px;
    border-bottom: 8px solid var(--black);
    overflow: hidden;
}

.art-tile:nth-child(even) .img-frame {
    height: 400px;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.5s;
}

.art-tile:hover img {
    filter: grayscale(0) contrast(1.2);
}

.tile-content {
    padding: 30px;
}

.tile-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
}

.tile-meta {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--black);
    color: #fff;
    display: inline-block;
    padding: 5px 10px;
}

/* Pagination Asymmetry */
.pagination {
    margin: 150px 0;
    display: flex;
    border-top: 15px solid var(--black);
    padding-top: 40px;
}

.pagination a {
    text-decoration: none;
    color: var(--black);
    font-size: 4rem;
    font-weight: 900;
    margin-right: 60px;
    transition: 0.3s;
}

.pagination a:hover {
    color: var(--red);
    transform: translateX(20px);
}

footer {
    padding: 150px 60px;
    background: var(--black);
    color: var(--bg);
}

.footer-logo {
    font-size: 5rem;
    margin-bottom: 40px;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legal-links a {
    color: var(--yellow);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
}

@media (max-width: 1000px) {
    body {
        padding-left: 0;
    }

    .sidebar-title {
        position: static;
        width: 100%;
        height: 80px;
        border-right: 0;
        border-bottom: 8px solid var(--red);
    }

    .sidebar-title h2 {
        transform: rotate(0);
        font-size: 2rem;
    }

    .logo {
        font-size: 4rem;
    }
}