@font-face {
    font-family: "zPix";
    src: url("zpix.ttf") format("truetype");
    font-display: swap;
}

:root {
    --background: #000;
    --foreground: #fff;
    --accent: #fff;
    font-family: "Newsreader", Georgia, serif;
    color: var(--foreground);
    background: var(--background);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--background);
}

.page {
    min-height: 100vh;
}

.header-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.header-image > img {
    display: block;
    width: 100%;
    height: auto;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    color: var(--accent);
    text-align: center;
}

.header-text h1 {
    margin: 0;
    font-family: "zPix", "Courier New", monospace;
    font-size: clamp(3rem, 12vw, 8rem);
}

.header-text p {
    margin: 0;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
}

.content {
    width: min(900px, 92%);
    margin: 3rem auto;
}

.content h2 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-family: "zPix", "Courier New", monospace;
    font-size: clamp(2rem, 5vw, 3rem);
}

.content p,
.content blockquote {
    line-height: 1.7;
}

.news-post {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--accent);
}

.news-post h3 {
    margin: 0;
    color: var(--accent);
    font-family: "zPix", "Courier New", monospace;
}

.news-post p {
    margin: 0.75rem 0 0;
}

.news-post .post-date {
    color: var(--accent);
    font-family: "Courier New", monospace;
    font-size: 0.9em;
}

/* Show post: warm off-white yellow with dark text. */
.content[aria-labelledby="news-heading"] .news-post:first-of-type {
    background-color: #f3edc9;
    color: #282414;
    border-color: #f3edc9;
}

.content[aria-labelledby="news-heading"] .news-post:first-of-type h3,
.content[aria-labelledby="news-heading"] .news-post:first-of-type .post-date {
    color: #282414;
}

/* EP post: lavender with dark text. */
.content[aria-labelledby="news-heading"] .news-post:nth-of-type(2) {
    background-color: #e6d9f3;
    color: #281c35;
    border-color: #e6d9f3;
}

.content[aria-labelledby="news-heading"] .news-post:nth-of-type(2) h3,
.content[aria-labelledby="news-heading"] .news-post:nth-of-type(2) .post-date {
    color: #281c35;
}

/* Right-to-left spread: image 1 on the right, 3 in the center, 2 on the left. */
.show-spread {
    display: grid;
    direction: rtl;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0.75rem;
    width: 100%;
    margin: 1rem 0 0;
}

.show-spread img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* The middle image is rectangular; the two outer images remain square. */
.show-spread img:nth-child(2) {
    aspect-ratio: 2 / 1;
}

.bandcamp-player {
    display: block;
    width: 350px;
    max-width: 100%;
    height: 470px;
    margin-top: 1rem;
    border: 0;
}

.about blockquote {
    margin: 2rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.about cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
}

.about-image {
    display: block;
    max-width: 100%;
    height: 15em;
    object-fit: contain;
    margin: 2rem auto 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 4%;
    border-top: 1px solid var(--accent);
    color: var(--foreground);
}

.site-footer a {
    color: inherit;
}

@media (max-width: 600px) {
    .show-spread {
        gap: 0.4rem;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        height: auto;
    }
}
