@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=JetBrains+Mono:ital,wght@0,400;1,400&display=swap");

:root {
    --paper: #f5f2eb;
    --paper-dark: #ebe7dc;
    --ink: #1a1a1a;
    --ink-light: #6b6b6b;
    --rule: rgba(26, 26, 26, 0.12);
}

body {
    max-width: 1280px;
    margin: 60px auto 80px;
    padding: 0 40px;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

body > section.section > .container > h1 {
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: -0.015em;
    margin: 0 0 4rem;
}

.gallery h3 {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin: 5rem 0 1.5rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.gallery h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
    transform: translateY(-0.25em);
}

.gallery h3:first-of-type {
    margin-top: 0;
}

.gallery .grid {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.gallery .grid > li {
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gallery .cell {
    aspect-ratio: 4 / 3;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
}

.gallery .cell img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 400ms ease;
}

.gallery .grid > li:hover .cell img {
    transform: scale(1.03);
}

.gallery .meta {
    border-top: 1px solid var(--rule);
    padding: 16px 24px 20px;
}

.gallery .meta .title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink);
}

.gallery .meta .sub {
    margin: 6px 0 0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-style: italic;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    color: var(--ink-light);
    line-height: 1.4;
}

@media (max-width: 640px) {
    body {
        margin: 30px auto 50px;
        padding: 0 16px;
    }
    body > section.section > .container > h1 {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .gallery h3 {
        margin: 3rem 0 1rem;
    }
    .gallery .grid {
        grid-template-columns: 1fr;
    }
    .gallery .cell {
        aspect-ratio: 4 / 3;
        padding: 20px;
    }
    .gallery .meta {
        padding: 12px 16px 16px;
    }
}

footer {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-top: 4rem;
}

footer hr {
    border: none;
    border-top: 1px solid var(--rule);
}

footer a {
    color: var(--ink-light);
    text-decoration: none;
}

footer a:hover {
    color: var(--ink);
}
