/* ============================================================
   NIRVANA ARCHIVE
   Black stage, smiley yellow, tape-hiss texture.
   ============================================================ */

:root {
    --bg: #0c0b09;
    --bg-2: #14120e;
    --paper: #191612;
    --paper-2: #201c16;
    --ink: #e9e4d8;
    --muted: #9a927f;
    --yellow: #f2d02e;
    --yellow-dim: #c7aa22;
    --red: #c22b26;
    --line: #2e2921;
    --font-display: 'Rubik Dirt', system-ui, sans-serif;
    --font-type: 'Special Elite', 'Courier New', monospace;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    /* subtle tape-hiss noise */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

a { color: var(--yellow); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; text-decoration-style: wavy; text-decoration-thickness: 1px; }

img { max-width: 100%; height: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--yellow); color: #000; padding: .5rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 9, 7, .96);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .6);
}

.header-inner {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding-top: .55rem; padding-bottom: .55rem;
}

.brand {
    display: flex; align-items: center; gap: .55rem;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: .06em;
    line-height: 1;
}
.brand:hover { color: var(--yellow); text-decoration: none; }
.brand-text em { font-style: normal; color: var(--ink); font-size: .72em; margin-left: .3rem; }

.smiley { width: 2.1rem; height: 2.1rem; color: var(--yellow); transform: rotate(-8deg); transition: transform .3s; }
.brand:hover .smiley { transform: rotate(8deg) scale(1.08); }
.smiley.small { width: 2.6rem; height: 2.6rem; }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none; border: 1px solid var(--line); border-radius: 3px;
    color: var(--ink); font-family: var(--font-type); font-size: 1rem;
    padding: .35rem .7rem; cursor: pointer;
}
.nav-toggle .bars {
    display: inline-block; width: 18px; height: 2px; background: var(--yellow);
    position: relative; vertical-align: middle; margin-right: .4rem;
}
.nav-toggle .bars::before, .nav-toggle .bars::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--yellow);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.site-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; flex-wrap: wrap; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; flex-wrap: wrap; }
.site-nav a {
    display: block; padding: .35rem .55rem;
    color: var(--ink); font-family: var(--font-type); font-size: .95rem;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--yellow); text-decoration: none; border-bottom-color: var(--yellow); }
.site-nav a.active { color: var(--yellow); border-bottom-color: var(--red); }

.search-form { display: flex; gap: .3rem; }
.search-form input {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px;
    color: var(--ink); font-family: var(--font-type); font-size: .9rem;
    padding: .35rem .6rem; width: 11rem;
}
.search-form input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.search-form button {
    background: var(--yellow); color: #141209; border: none; border-radius: 2px;
    font-family: var(--font-type); font-weight: bold; padding: .35rem .7rem; cursor: pointer;
}
.search-form button:hover { background: #fff; }

/* ---------- typography ---------- */

h1, .h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 1.6rem 0 .8rem;
    transform: rotate(-.6deg);
    text-shadow: 3px 3px 0 rgba(194, 43, 38, .25);
}
h1 .accent, .accent { color: var(--yellow); }

h2 {
    font-family: var(--font-type);
    font-weight: 400;
    color: var(--yellow);
    font-size: 1.35rem;
    margin: 2rem 0 .6rem;
    border-bottom: 1px dashed var(--line);
    padding-bottom: .25rem;
}

h3 { font-family: var(--font-type); font-weight: 400; color: var(--ink); font-size: 1.1rem; margin: 1.2rem 0 .4rem; }

.lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

.kicker {
    font-family: var(--font-type); color: var(--red);
    text-transform: uppercase; letter-spacing: .2em; font-size: .8rem;
    margin: 1.5rem 0 -0.7rem;
}

.muted { color: var(--muted); }
.small { font-size: .85rem; }

.breadcrumbs { font-family: var(--font-type); font-size: .85rem; color: var(--muted); margin: 1rem 0 -0.5rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--yellow); }

/* ---------- components ---------- */

.badge {
    display: inline-block; font-family: var(--font-type); font-size: .72rem;
    background: var(--paper-2); color: var(--yellow);
    border: 1px solid var(--line); border-radius: 2px;
    padding: .05rem .5rem; text-transform: uppercase; letter-spacing: .08em;
    vertical-align: middle;
}
.badge.red { color: #ff8a80; border-color: #5c221f; }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
}

.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

/* cover grid */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .9rem;
    margin: 1.2rem 0;
}
.cover-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: .5rem;
    text-align: center;
    transition: transform .18s, border-color .18s;
}
.cover-card:hover { transform: rotate(-1.4deg) scale(1.03); border-color: var(--yellow); text-decoration: none; }
.cover-card img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: contrast(1.04) saturate(.94); display: block; }
.cover-card .title {
    display: block; font-family: var(--font-type); font-size: .78rem;
    color: var(--ink); margin-top: .45rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin: 1.4rem 0; }
.stat-tile {
    background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
    padding: .9rem .6rem; text-align: center;
}
.stat-tile b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--yellow); font-weight: 400; }
.stat-tile span { font-family: var(--font-type); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table.list {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
}
table.list th {
    font-family: var(--font-type); font-weight: 400; text-align: left;
    color: var(--red); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem;
    border-bottom: 2px solid var(--line); padding: .45rem .6rem;
    white-space: nowrap;
}
table.list td { padding: .4rem .6rem; border-bottom: 1px solid #1d1a14; vertical-align: top; }
table.list tr:hover td { background: var(--bg-2); }
table.list td.num { text-align: right; color: var(--muted); white-space: nowrap; }

/* track list */
.tracklist { list-style: none; margin: .6rem 0; padding: 0; counter-reset: none; }
.tracklist li {
    display: flex; gap: .6rem; align-items: baseline;
    padding: .3rem .4rem; border-bottom: 1px dotted #221e17;
}
.tracklist li:hover { background: var(--bg-2); }
.tracklist .no { color: var(--muted); font-family: var(--font-type); min-width: 2rem; text-align: right; }
.tracklist .len { margin-left: auto; color: var(--muted); font-family: var(--font-type); font-size: .85rem; white-space: nowrap; }
.tracklist .mislabel { color: var(--muted); font-style: italic; font-size: .85rem; }
.tracklist .date { color: var(--muted); font-size: .82rem; white-space: nowrap; }

.disc-header {
    font-family: var(--font-type); color: var(--red); text-align: center;
    margin: 1rem 0 .3rem; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem;
}

/* detail spec sheet */
.spec { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; font-size: .92rem; margin: .8rem 0; }
.spec dt { font-family: var(--font-type); color: var(--muted); }
.spec dd { margin: 0; }

/* bootleg detail two-column */
.detail-cols { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.6rem; align-items: start; }
@media (max-width: 800px) { .detail-cols { grid-template-columns: 1fr; } }

.cover-frame { text-align: center; }
.cover-frame img {
    border: 1px solid var(--line); background: var(--paper);
    padding: .4rem; max-width: 380px; width: 100%;
    box-shadow: 6px 6px 0 rgba(194, 43, 38, .12);
}
.cover-frame .hint { font-family: var(--font-type); font-size: .8rem; color: var(--muted); margin-top: .4rem; }

/* prose blocks (about, lyrics, banter, moreinfo) */
.prose {
    background: var(--paper); border-left: 3px solid var(--yellow-dim);
    padding: .9rem 1.1rem; margin: 1rem 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.prose.typewriter { font-family: var(--font-type); font-size: .92rem; line-height: 1.75; }

.lyrics {
    font-family: var(--font-type);
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    padding: 1rem 1.3rem;
    line-height: 1.8;
    column-width: 22rem;
    column-gap: 3rem;
}

/* track audio buttons + now-playing bar */
.audio-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.45rem; height: 1.45rem; padding: 0; margin-left: .35rem;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 50%;
    color: var(--yellow); cursor: pointer; vertical-align: text-bottom;
    transition: border-color .15s, transform .15s;
}
.audio-btn:hover { border-color: var(--yellow); transform: scale(1.12); }
.audio-btn svg { width: .75rem; height: .75rem; fill: currentColor; }
.audio-btn .icon-pause { display: none; }
.audio-btn.playing { border-color: var(--yellow); background: var(--yellow); color: #141209; }
.audio-btn.playing .icon-play { display: none; }
.audio-btn.playing .icon-pause { display: block; }

.audio-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    display: none; align-items: center; gap: .9rem;
    background: rgba(8, 7, 6, .97);
    border-top: 2px solid var(--yellow);
    padding: .45rem .9rem;
    font-family: var(--font-type); font-size: .9rem;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .6);
}
.audio-bar.open { display: flex; }
.audio-bar .yt-holder { flex: 0 0 auto; width: 96px; height: 54px; overflow: hidden; border: 1px solid var(--line); }
.audio-bar .yt-holder iframe { display: block; }
.audio-bar-label { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-bar-title { color: var(--yellow); }
.audio-bar-close {
    margin-left: auto; flex: 0 0 auto;
    background: none; border: 1px solid var(--line); border-radius: 2px;
    color: var(--ink); font-size: .9rem; padding: .2rem .6rem; cursor: pointer;
}
.audio-bar-close:hover { border-color: var(--red); color: #ff8a80; }

/* video embed */
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1rem 0; max-width: 760px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 1px solid var(--line); }

.stills { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.stills img { border: 1px solid var(--line); }
.stills a:hover img { border-color: var(--yellow); }

/* year timeline (gigs index) */
.year-block { margin: 1.6rem 0; }
.year-block > h2 {
    font-family: var(--font-display); color: var(--yellow); font-size: 1.8rem;
    border: none; transform: rotate(-1deg);
}
.gig-list { list-style: none; margin: 0; padding: 0; }
.gig-list li {
    display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline;
    padding: .38rem .5rem; border-bottom: 1px dotted #221e17;
}
.gig-list li:hover { background: var(--bg-2); }
.gig-list .date { font-family: var(--font-type); color: var(--muted); min-width: 6.6rem; font-size: .9rem; }
.gig-list .place { color: var(--ink); }
.gig-list .live { margin-left: auto; }

/* columns of links (songs, venues) */
.link-columns { column-width: 16rem; column-gap: 2.5rem; margin: 1rem 0; }
.link-columns ul { list-style: none; margin: 0; padding: 0; }
.link-columns li { break-inside: avoid; padding: .18rem 0; border-bottom: 1px dotted #1d1a14; }

/* tabs (in-page anchors) */
.tab-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tab-row a {
    font-family: var(--font-type); font-size: .9rem;
    border: 1px solid var(--line); border-radius: 2px;
    padding: .3rem .8rem; color: var(--ink); background: var(--paper);
}
.tab-row a:hover, .tab-row a.on { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 1.5rem 0; font-family: var(--font-type); }
.pagination li a, .pagination li span {
    display: block; padding: .3rem .7rem; border: 1px solid var(--line); color: var(--ink);
}
.pagination li span[aria-current] { background: var(--yellow); color: #141209; border-color: var(--yellow); }
.pagination li a:hover { border-color: var(--yellow); text-decoration: none; }

/* home hero */
.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero h1 {
    font-size: clamp(2.3rem, 8vw, 4.2rem);
    color: var(--yellow);
    text-shadow: 4px 4px 0 rgba(194, 43, 38, .35);
    margin-bottom: .4rem;
}
.hero .sub { font-family: var(--font-type); color: var(--ink); font-size: 1.1rem; }
.hero .smiley { width: 4.2rem; height: 4.2rem; margin-bottom: .6rem; }

.divider {
    border: none; height: 14px; margin: 2rem 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='14' viewBox='0 0 240 14'%3E%3Cpath d='M0 8 q10 -7 22 -2 t26 1 t22 -4 t28 3 t24 -1 t26 2 t23 -3 t25 2 t22 -1 t22 1' fill='none' stroke='%232e2921' stroke-width='2'/%3E%3C/svg%3E") repeat-x center;
}

/* footer */
.site-footer {
    margin-top: 3.5rem;
    border-top: 2px solid var(--line);
    background: #080706;
    color: var(--muted);
    font-size: .9rem;
}
.footer-inner { text-align: center; padding: 2.2rem 1rem 2.6rem; }
.site-footer .smiley { color: var(--yellow-dim); }
.site-footer .tagline { font-family: var(--font-display); color: var(--ink); font-size: 1.3rem; margin: .4rem 0; transform: rotate(-1deg); }
.site-footer nav { margin: .8rem 0; font-family: var(--font-type); }
.fineprint { font-size: .78rem; color: #6b6455; }

/* search results */
.result-block { margin: 1.6rem 0; }
mark { background: var(--yellow); color: #141209; padding: 0 .15em; }

/* ---------- mobile ---------- */

@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .4rem;
        padding: .6rem 0 .8rem;
        border-top: 1px dashed var(--line);
        margin-top: .5rem;
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav a { font-size: 1.05rem; padding: .5rem .4rem; }
    .search-form { width: 100%; }
    .search-form input { flex: 1; width: auto; }
    .detail-cols { grid-template-columns: 1fr; }
    .gig-list .live { margin-left: 0; }
}

@media (max-width: 480px) {
    .cover-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
    .brand { font-size: 1.2rem; }
    body { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cover-card, .smiley { transition: none; }
}
