/* ── Reset & tokens ───────────────────────────────────── */

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

:root {
    --ink: #1a1a18;
    --ink-soft: #3a3a38;
    --paper: #ffffff;
    --mid: #6b6b68;
    --rule: #c8c6be;

    --content-width: 680px;

    /* Typography */
    --font-serif: 'IM Fell English', Georgia, serif;
    --font-mono: 'Courier Prime', 'Courier New', monospace;

    /* Text page styles */
    --text-body-size: 1.05rem;
    --text-body-line-height: 1.75;
    --text-body-color: var(--ink);
    --text-body-max-width: 58ch;

    /* Table styles */
    --table-meta-size: 10px;
    --table-meta-color: var(--mid);
    --table-title-size: 1.02rem;
    --table-title-color: var(--ink);
    --table-row-padding: 0.85rem 0;
    --table-col-gap: 1rem;

    /* Accordion body padding */
    --accordion-body-padding: 1.8rem 0 2.2rem;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Sections ─────────────────────────────────────────── */

section {
    display: none;
}

section.active {
    display: block;
    padding-top: 2rem;
}

/* ── Header ───────────────────────────────────────────── */

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem 0;
}

.logo-wrap {
    width: 260px;
    margin-bottom: 2.5rem;
}

.logo-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Rules ────────────────────────────────────────────── */

hr.rule,
hr.rule-thin {
    width: 100%;
    max-width: var(--content-width);
    border: none;
    margin: 0 auto;
}

hr.rule      { border-top: 1px solid var(--ink); }
hr.rule-thin { border-top: 1px solid var(--rule); }

/* ── Navigation ───────────────────────────────────────── */

nav {
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 1.1rem 2rem;
    max-width: var(--content-width);
    margin: 0 auto;
    width: 100%;
}

nav a {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding: 0;
    transition: color 0.2s ease;
    border-right: 1px solid var(--rule);
}

nav a:first-child { text-align: left; }
nav a:last-child  { border-right: none; text-align: right; }

nav a:hover { color: var(--mid); }

nav a.active {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ── Main ─────────────────────────────────────────────── */

main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem 8rem;
    flex: 1;
    width: 100%;
}

/* ── Text pages (About, News) ─────────────────────────── */

.page-text {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink-soft);
    max-width: var(--text-body-max-width);
}

#about .page-text {
    text-align: right;
    margin-left: auto;
}

.page-text + .page-text {
    margin-top: 1.2rem;
}

/* ── Shared table styles (Releases, Mixes, Gigs) ─────── */

.accordion-item {
    border-bottom: 1px solid var(--rule);
}

.accordion-item.open .table-row {
    border-bottom: 1px solid var(--rule);
}

.accordion-item.open .col-toggle {
    transform: rotate(45deg);
}

.table-row {
    display: grid;
    gap: 0 var(--table-col-gap);
    align-items: baseline;
    padding: var(--table-row-padding);
    width: 100%;
    background: var(--paper);
    border: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-row:hover .col-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.col-key {
    font-size: var(--table-meta-size);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--mid);
    text-transform: uppercase;
    white-space: nowrap;
}

.col-title {
    font-size: var(--table-title-size);
    font-style: normal;
    color: var(--ink);
}

.col-meta {
    font-size: var(--table-meta-size);
    letter-spacing: 0.08em;
    color: var(--mid);
    white-space: nowrap;
}

.col-toggle {
    font-size: 13px;
    color: var(--mid);
    transition: transform 0.3s ease;
    display: inline-block;
    text-align: right;
}

/* ── Accordion body ───────────────────────────────────── */

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-item.open .accordion-body { max-height: 3000px; }

.accordion-body-inner {
    padding: var(--accordion-body-padding);
    font-size: 12px;
    line-height: 1.85;
    color: var(--ink-soft);
}

/* ── Releases ─────────────────────────────────────────── */

.release-cols {
    grid-template-columns: 5.5rem 1fr 3.5rem 3rem 1.4rem;
}

.col-format {
    font-size: var(--table-meta-size);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--mid);
    text-transform: uppercase;
}

.release-body-inner {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 2.5rem;
    padding: var(--accordion-body-padding);
    align-items: start;
}

.release-info p {
    font-size: 12px;
    line-height: 1.85;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 1.6rem;
}

.tracklist {
    list-style: none;
    padding-left: 0;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    line-height: 2;
    margin-bottom: 1.6rem;
}

.track-num {
    color: var(--mid);
    margin-right: 0.5em;
}

.release-player iframe {
    width: 100%;
    height: 274px;
    border: 0;
    display: block;
}

.release-covers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.release-cover {
    width: 100%;
    display: block;
}

/* ── Mixes & Gigs ─────────────────────────────────────── */

.mix-cols {
    grid-template-columns: 5.5rem 1fr auto 1.4rem;
}

.gig-cols {
    grid-template-columns: 5.5rem 1fr auto auto 1.4rem;
}

.col-venue {
    font-size: var(--table-meta-size);
    letter-spacing: 0.08em;
    color: var(--mid);
    white-space: nowrap;
}

.accordion-item.past .col-key,
.accordion-item.past .col-title,
.accordion-item.past .col-meta { color: var(--rule); }

/* ── Footer ───────────────────────────────────────────── */

footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ── Mobile ───────────────────────────────────────────── */

@media (max-width: 520px) {
    header { padding-top: 3rem; }

    .logo-wrap { width: 180px; }

    nav {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0.7rem 1rem;
        gap: 0;
    }

    nav a {
        flex: 1;
        text-align: center;
        padding: 0;
        font-size: 9px;
        letter-spacing: 0.12em;
        border-right: 1px solid var(--rule);
    }

    nav a:first-child,
    nav a:last-child { text-align: center; }

    nav a:last-child { border-right: none; }

    .release-cols,
    .mix-cols,
    .gig-cols { grid-template-columns: 4.5rem 1fr 1.4rem; }

    .col-format,
    .col-venue,
    .col-meta { display: none; }

    .release-body-inner { grid-template-columns: 1fr; }

    .release-covers {
        flex-direction: row;
        gap: 0.5rem;
    }

    .release-cover { max-width: 200px; }

    footer { flex-direction: column; gap: 1rem; text-align: center; }
}
