/* ── VARIABLES ── */
:root {
    --bg: #141413;
    --text: #f0ede8;
    --text-soft: rgba(240, 237, 232, 0.92);
    --text-faint: rgba(240, 237, 232, 0.72);
    --rule: rgba(240, 237, 232, 0.14);
    --rule-mid: rgba(240, 237, 232, 0.28);
    --btn-fill: #f0ede8;
    --btn-text: #0d0d0d;

    /* Spotify accent — used sparingly */
    --spotify: #1db954;
    --spotify-bright: #1ed760;
    --cover-bg: rgba(240, 237, 232, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "EB Garamond", Georgia, serif;
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 500;
}

/* Dot grid, clipped at the hero actions */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    clip-path: inset(0 0 var(--grid-clip-bottom, 100vh) 0);
    background-image: radial-gradient(
        circle,
        rgba(240, 237, 232, 0.2) 1px,
        transparent 1.2px
    );
    background-size: 24px 24px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(
        ellipse 85% 65% at 50% 12%,
        #000 0%,
        rgba(0, 0, 0, 0.72) 42%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 85% 65% at 50% 12%,
        #000 0%,
        rgba(0, 0, 0, 0.72) 42%,
        transparent 100%
    );
}

body > .hero,
body > .content-wrapper,
body > footer {
    position: relative;
    z-index: 1;
}

/* ── NAVIGATION ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.4s ease,
        background 0.4s ease;
}

nav.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--rule);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.nav-links a:not(.nav-cta) {
    font-family: "Inter", sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--text);
}

.nav-cta {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--btn-text);
    background: var(--spotify);
    border: 1px solid var(--spotify);
    padding: 0.38rem 1.1rem;
    border-radius: 10px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.nav-cta:hover {
    background: var(--spotify-bright);
    border-color: var(--spotify-bright);
}

/* ── HERO ── */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8rem 2rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--spotify);
}

.hero h1 {
    font-family: "EB Garamond", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--text-soft);
}

.hero-sub {
    max-width: 520px;
    font-size: 1.3rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    transition:
        opacity 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex: 0 0 auto;
}

.btn-spotify {
    background: var(--spotify);
    color: var(--btn-text);
    border: 1px solid var(--spotify);
}

.btn-spotify:hover {
    background: var(--spotify-bright);
    border-color: var(--spotify-bright);
    color: var(--btn-text);
}

.btn-primary {
    background: var(--btn-fill);
    color: var(--btn-text);
    border: 1px solid var(--btn-fill);
}

.btn-primary:hover {
    opacity: 0.88;
}

/* ── CONTENT WRAPPER (TOC + MAIN) ── */
.content-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 0;
}

/* ── TOC SIDEBAR ── */
.toc-sidebar {
    padding-right: 2rem;
}

.toc-inner {
    position: sticky;
    top: 5rem;
    padding: 3rem 0;
}

.toc-label {
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 1.25rem;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.toc-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.toc-list a {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--text-faint);
    padding: 0.45rem 0;
    display: block;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.toc-list li.active a {
    color: var(--text);
}

.toc-list a:hover {
    color: var(--text-soft);
}

/* ── MAIN CONTENT ── */
.main-content {
    border-left: 1px solid var(--rule);
    padding-left: 4rem;
}

/* ── SECTION ── */
section {
    scroll-margin-top: 6rem;
    padding: 6rem 0;
    border-bottom: 1px solid var(--rule);
}

section:last-child {
    border-bottom: none;
}

/* ── SECTION HEADER ── */
.section-heading {
    margin-bottom: 3.5rem;
}

.section-heading h2 {
    font-family: "EB Garamond", serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.section-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.75rem;
}

.section-intro {
    font-size: 1.15rem;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 560px;
    margin-top: 1.25rem;
}

/* ── PLACEHOLDER TEXT (auto-detected "[ ... ]" values) ── */
.is-empty {
    font-style: italic;
    color: var(--text-faint);
}

/* ── ABOUT TEXT ── */
.about-text {
    font-size: 1.25rem;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 620px;
}

.about-text.is-empty {
    color: var(--text-faint);
}

/* ── SPEC TABLE (playlist details) ── */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2.75rem;
}

.spec-table tr {
    border-bottom: 1px solid var(--rule);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 1.25rem 0;
    vertical-align: top;
}

.spec-label {
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    width: 150px;
    padding-right: 2rem;
    padding-top: 0.15rem;
}

.spec-items {
    font-family: "EB Garamond", serif;
    font-size: 1.15rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.spec-items span::after {
    content: " ·";
    color: var(--text-faint);
    margin: 0 0.35rem;
}

.spec-items span:last-child::after {
    content: "";
}

.spec-items.is-empty {
    color: var(--text-faint);
}

/* ── PLAYLISTS ── */
.playlists-list {
    display: flex;
    flex-direction: column;
}

.playlist {
    --cover: 132px;
    display: grid;
    grid-template-columns: var(--cover) 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}

.playlist:first-child {
    padding-top: 0.5rem;
}

.playlist:last-child {
    border-bottom: none;
}

.playlist-cover {
    position: relative;
    width: var(--cover);
    height: var(--cover);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--cover-bg);
}

.playlist-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(
        circle,
        rgba(240, 237, 232, 0.18) 1px,
        transparent 1.2px
    );
    background-size: 12px 12px;
    background-position: center;
    opacity: 0.55;
}

.playlist-cover.has-image::before {
    opacity: 0;
}

.cover-index {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-faint);
}

.playlist-cover.has-image .cover-index {
    visibility: hidden;
}

.playlist-cover img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.playlist-body {
    min-width: 0;
}

.playlist-title {
    font-family: "EB Garamond", serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 0.65rem;
}

.playlist-title.is-empty {
    color: var(--text-faint);
}

.playlist-desc {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.65;
    max-width: 60ch;
    margin-bottom: 1rem;
}

.playlist-desc.is-empty {
    color: var(--text-faint);
}

.playlist-stats {
    font-family: "DM Mono", monospace;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

.playlist-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.4rem;
}

.playlist-tags li {
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-soft);
}

.playlist-tags li:not(:last-child)::after {
    content: "·";
    margin: 0 0.5rem;
    color: var(--rule-mid);
}

.playlist-tags li.is-empty {
    font-style: italic;
    letter-spacing: 0.06em;
}

.playlist-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--btn-text);
    background: var(--spotify);
    border: 1px solid var(--spotify);
    padding: 0.42rem 1.1rem;
    border-radius: 10px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.playlist-link:hover {
    background: var(--spotify-bright);
    border-color: var(--spotify-bright);
}

.playlist-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.1rem;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--rule);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem calc(2rem + 260px + 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-note {
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}

.footer-note a {
    color: var(--text-faint);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.footer-note a:hover {
    color: var(--text-soft);
    border-color: var(--rule-mid);
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
    .nav-links {
        gap: 1.4rem;
    }
    .nav-links li:not(:last-child) {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1.25rem;
    }

    .toc-sidebar {
        display: none;
    }

    .main-content {
        border-left: none;
        padding-left: 0;
    }

    .hero {
        padding: 8rem 1.25rem 2rem;
    }

    .spec-label {
        width: 110px;
        padding-right: 1rem;
    }

    .playlist {
        --cover: 96px;
        grid-template-columns: var(--cover) 1fr;
        gap: 1.25rem;
    }

    .footer-inner {
        padding: 2rem 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .playlist {
        --cover: 84px;
        gap: 1rem;
    }

    .spec-label {
        display: block;
        width: auto;
        padding: 0 0 0.4rem;
    }

    .spec-table td {
        display: block;
        padding: 0.5rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}
        