/* Public album and genre pages (rendered by lib/render.js). Builds on style.css. */

.seo-page {
    color: var(--ink-strong);
}

.page-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 16px 40px;
    flex: 1;
}

.pager a {
    color: var(--accent-ink);
}


.album-card .result-cover {
    height: auto;
}

/* Breadcrumbs */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    color: var(--faint);
    font-size: 0.76em;
}
.crumbs a {
    color: var(--faint);
    text-decoration: none;
}
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current] {
    color: var(--muted);
    max-width: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crumb-sep { color: var(--line-strong); }

/* Album card: same look as the result screen in the app */
.album-card .result-title {
    font-size: 1.6em;
    color: var(--ink-strong);
}
.album-card .result-source a {
    color: var(--accent-ink);
    text-decoration: none;
}
.album-card .result-source a:hover { text-decoration: underline; }
.album-card .spotify-embed {
    max-width: 100%;
}
.album-card .spotify-embed iframe {
    border-radius: 12px;
    display: block;
}

.buy-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted) !important;
    font-size: 0.82em;
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 1px;
}
.buy-link:hover {
    color: var(--ink-strong) !important;
    border-color: var(--ink-strong);
}

/* Text sections */
.page-section {
    margin: 48px auto 0;
}
.page-section h2,
.page-intro h1 {
    font-family: "Jockey One", serif;
    font-weight: normal;
    margin: 0 0 16px;
}
.page-section h2 {
    color: var(--ink-strong);
    font-size: 1.35em;
}
.page-intro {
    max-width: 640px;
    margin: 28px auto 32px;
}
.page-intro h1 {
    color: var(--ink-strong);
    font-size: 2.1em;
    line-height: 1.15;
}
.page-intro p,
.about-album p {
    color: var(--muted);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0;
}
.about-album {
    max-width: 560px;
}

/* Calls to action */
.page-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.cta-primary,
.cta-secondary {
    font-family: "Jockey One", serif;
    font-size: 17px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.seo-page .cta-primary {
    background: #8281FE;
    border: 2px solid #8281FE;
    color: #fff;
}
.seo-page .cta-primary:hover { background: #6d6cf0; border-color: #6d6cf0; }
.seo-page .cta-secondary {
    border: 2px solid var(--line-strong);
    color: var(--text);
}
.seo-page .cta-secondary:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* Album grid */
.album-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px 16px;
    text-align: left;
}
.album-grid > li { min-width: 0; } /* long names truncate instead of widening the grid */
.grid-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
}
.grid-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-2);
    margin-bottom: 6px;
    transition: transform 0.2s ease;
}
.grid-card:hover img { transform: translateY(-2px); }
.grid-title {
    color: var(--ink-strong);
    font-size: 0.92em;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.grid-card:hover .grid-title { color: var(--accent-ink); }
.seo-page .grid-artist {
    color: var(--accent-ink);
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grid-meta {
    color: var(--faint);
    font-size: 0.74em;
}
/* Pagination */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    color: var(--muted);
    font-size: 0.85em;
}
.pager a { text-decoration: none; }

/* Footer */
.site-footer {
    color: var(--muted);
    padding: 40px 16px 24px;
    font-size: 13px;
}
.site-footer a { color: var(--ink-strong); }
@media (max-width: 768px) {
    .page-main { padding-top: 4px; }
    .seo-page .page-intro h1 { font-size: 1.6em; }
    .seo-page .album-card .result-title { font-size: 1.35em; }
    .seo-page .page-section h2 { font-size: 1.2em; }
    .album-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}

/* ===== Magazine ===== */
.coming-soon {
    margin-top: 16px !important;
    color: var(--muted) !important;
}
.section-heading a { color: inherit; text-decoration: none; }
.section-heading a:hover { color: var(--accent-ink); }
.section-more { margin-top: 20px; }
.section-more a { color: var(--accent-ink); text-decoration: none; }

/* Newest issue, shown large */
.issue-feature {
    display: grid;
    grid-template-columns: minmax(0, 360px) 1fr;
    gap: 36px;
    align-items: center;
    text-align: left;
    text-decoration: none;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line);
}
.issue-feature-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: var(--surface-2);
    box-shadow: 0 14px 34px var(--shadow);
    transition: transform 0.4s var(--ease-out, ease);
}
.issue-feature:hover .issue-feature-cover { transform: translateY(-3px); }
.issue-feature-text { display: flex; flex-direction: column; gap: 10px; }
.issue-feature-title {
    color: var(--ink-strong);
    font-size: 2em;
    line-height: 1.08;
    text-wrap: balance;
}
.issue-feature:hover .issue-feature-title { color: var(--accent-ink); }
.issue-feature-desc {
    color: var(--muted);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 52ch;
}
.issue-strip { display: flex; gap: 10px; margin-top: 8px; }
.issue-strip img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--surface-2);
}

/* Older issues: one cover each */
.issue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 36px 24px;
    text-align: left;
}
.issue-list > li { min-width: 0; }
.issue-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
}
.issue-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-2);
    margin-bottom: 8px;
    transition: transform 0.3s var(--ease-out, ease);
}
.issue-card:hover .issue-cover { transform: translateY(-3px); }
.issue-number {
    color: var(--faint);
    font-size: 0.8em;
}
.issue-title {
    color: var(--ink);
    font-size: 1.08em;
    line-height: 1.2;
}
.issue-card:hover .issue-title { color: var(--accent-ink); }

@media (max-width: 768px) {
    .issue-feature { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; margin-bottom: 28px; }
    .issue-feature-title { font-size: 1.5em; }
    .issue-strip img { width: 52px; height: 52px; }
    .issue-list { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
    .issue-title { font-size: 0.98em; }
}

/* Issue page */
.mag-article {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}
.mag-head {
    margin: 28px 0 8px;
}
.mag-head h1 {
    font-family: "Jockey One", serif;
    font-weight: normal;
    color: var(--ink-strong);
    font-size: 2.3em;
    line-height: 1.1;
    margin: 0 0 12px;
    text-wrap: balance;
}
.mag-meta {
    color: var(--faint);
    font-size: 0.85em;
    margin: 0 0 24px;
}

.prose p {
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.04rem;
    line-height: 1.75;
    margin: 0 0 1em;
}
.mag-lede p {
    color: var(--ink);
    font-size: 1.14rem;
}

.mag-section {
    margin-top: 56px;
}
.mag-section > h2 {
    font-family: "Jockey One", serif;
    font-weight: normal;
    color: var(--ink-strong);
    font-size: 1.5em;
    margin: 0 0 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.pick,
.more-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.pick:last-child,
.more-item:last-child { border-bottom: 0; }
.pick-head {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.pick-cover img {
    display: block;
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-2);
    box-shadow: 0 8px 20px var(--shadow);
}
.pick-titles h3,
.more-item h3 {
    font-family: "Jockey One", serif;
    font-weight: normal;
    font-size: 1.6em;
    line-height: 1.1;
    margin: 0 0 4px;
}
.more-item h3 { font-size: 1.3em; margin-bottom: 12px; }
.pick-titles h3 a,
.more-item h3 a { color: var(--ink-strong); text-decoration: none; }
.pick-titles h3 a:hover,
.more-item h3 a:hover { color: var(--accent-ink); }
.more-item h3 { color: var(--ink-strong); }
.pick-artist {
    color: var(--accent-ink);
    font-size: 1.05em;
    margin: 0 0 4px;
}
.pick-meta {
    color: var(--muted);
    font-size: 0.82em;
    margin: 0;
}
.pick-embed iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    margin-top: 6px;
}
.video-embed {
    margin-top: 8px;
    aspect-ratio: 16 / 9;
}
.video-embed + .video-embed { margin-top: 16px; }
.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}
.more-link a {
    color: var(--accent-ink);
    font-size: 0.9em;
    text-decoration: none;
}

.issue-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.issue-nav a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--ink-strong);
    text-decoration: none;
    font-size: 1.05em;
}
.issue-nav a span { color: var(--muted); font-size: 0.75em; }
.issue-nav-newer { text-align: right; margin-left: auto; }
.issue-nav a:hover { color: var(--accent-ink); }

.featured-in {
    margin-top: 14px !important;
}
.featured-in a {
    color: var(--accent-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-line);
}
.featured-in a:hover { color: var(--ink-strong); border-color: var(--ink-strong); }

@media (max-width: 768px) {
    .mag-head h1 { font-size: 1.75em; }
    .pick-cover img { width: 96px; height: 96px; }
    .pick-titles h3 { font-size: 1.3em; }
    .prose p { font-size: 1rem; }
    .mag-lede p { font-size: 1.06rem; }
}

/* Magazine articles */
.article-dek {
    color: var(--muted);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
}
.mag-list { margin-top: 32px; }
.pick-num {
    font-family: "Jockey One", serif;
    color: var(--accent);
    font-size: 1.1em;
    margin: 0 0 2px;
}
.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.related-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.related-list li:last-child { border-bottom: 0; }
.related-list a {
    color: var(--ink-strong);
    font-size: 1.15em;
    text-decoration: none;
}
.related-list a:hover { color: var(--accent-ink); }
.related-list span {
    color: var(--muted);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}
.article-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 768px) {
    .article-list { grid-template-columns: 1fr; }
}

/* Artist Picks */
.issue-cover.is-photo { border-radius: 50%; }
.artist-photo {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 8px 0 20px;
    background: var(--surface-2);
}
.artist-link {
    font-family: "Jockey One", serif;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.artist-link:hover { border-color: var(--accent); color: var(--ink-strong); }
.artist-head .artist-links { margin: 0 0 22px; }
.pick.is-coverless .pick-head { margin-bottom: 10px; }
.artist-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* Share your picks form */
.submit-form { margin-top: 8px; }
.submit-form h2 {
    font-family: "Jockey One", serif;
    font-weight: normal;
    color: #fff;
    font-size: 1.4em;
    margin: 40px 0 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.form-note, .form-hint {
    color: var(--muted);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    margin: 6px 0 14px;
}
.form-hint { margin: 0 0 6px; font-size: 0.84rem; }
.form-field { display: flex; flex-direction: column; gap: 4px; margin: 16px 0; }
.form-label { color: var(--ink); font-size: 1.02em; }
.form-label em, .album-row legend em { color: #7c7c84; font-style: normal; font-size: 0.85em; }
.submit-form input[type="text"],
.submit-form input[type="email"],
.submit-form input[type="url"],
.submit-form textarea {
    box-sizing: border-box;
    width: 100%;
    background: #2c2c30;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #fff;
    font: 1rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
    padding: 11px 12px;
    transition: border-color 0.2s ease;
}
.submit-form textarea { resize: vertical; }
.submit-form input::placeholder, .submit-form textarea::placeholder { color: #75757d; }
.submit-form input:focus, .submit-form textarea:focus { outline: none; border-color: var(--accent); }
.album-row {
    border: 0;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.album-row legend { color: var(--ink); font-size: 1.02em; padding: 0; margin-bottom: 8px; float: left; grid-column: 1 / -1; }
.album-row textarea { grid-column: 1 / -1; }
.form-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 28px 0 24px;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}
.form-check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.submit-form button.cta-primary { cursor: pointer; font-size: 19px; padding: 12px 28px; }
.form-honey { position: absolute; left: -9999px; }
@media (max-width: 480px) {
    .album-row { grid-template-columns: 1fr; }
}

/* Light page (the artists' form): black on white for easy reading and typing */
body.light-page {
    --bg: #ffffff;
    --ink: #1b1b1f;
    --muted: #5c5c66;
    --line: #dcdce2;
    background: #fff;
    color: var(--ink);
}
.light-page #logo { filter: invert(1); }
.light-page .site-nav a { color: #5c5c66; }
.light-page .site-nav a:hover { color: #1b1b1f; }
.light-page .crumbs, .light-page .crumbs a { color: #6b6b75; }
.light-page .site-footer, .light-page footer { color: #5c5c66; }
.light-page .site-footer a, .light-page footer a { color: #1b1b1f; }
.light-page .mag-head h1,
.light-page .page-intro h1,
.light-page .submit-form h2 { color: #1b1b1f; }
.light-page .mag-lede p,
.light-page .page-intro p { color: #2e2e35; }
.light-page .submit-page { max-width: 640px; }
.light-page .form-label,
.light-page .album-row legend { color: #1b1b1f; font-size: 1.1em; }
.light-page .form-label em,
.light-page .album-row legend em { color: #6b6b75; }
.light-page .submit-form input[type="text"],
.light-page .submit-form input[type="email"],
.light-page .submit-form input[type="url"],
.light-page .submit-form textarea {
    background: #fff;
    border: 1.5px solid #c9c9d1;
    color: #1b1b1f;
    font-size: 1.05rem;
    padding: 13px 14px;
}
.light-page .submit-form input::placeholder,
.light-page .submit-form textarea::placeholder { color: #8a8a94; }
.light-page .submit-form input:focus,
.light-page .submit-form textarea:focus { border-color: #5b5af0; box-shadow: 0 0 0 3px rgba(130, 129, 254, 0.25); }
.light-page .form-check { color: #1b1b1f; }
.light-page .seo-page .cta-primary, .light-page .cta-primary { background: #5b5af0; border-color: #5b5af0; color: #fff; }
.light-page .cta-primary:hover { background: #4847d8; border-color: #4847d8; }
.light-page .form-label,
.light-page .album-row legend {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 1rem;
}
.light-page .form-label em,
.light-page .album-row legend em { font-weight: 400; }
.light-page .form-hint,
.light-page .form-note { color: #55555f; font-size: 0.92rem; }
.form-status {
    margin: 14px 0 0;
    color: #b42318;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.95rem;
}
.submit-form button[disabled] { opacity: 0.6; cursor: wait; }
.form-done h2 {
    font-family: "Jockey One", serif;
    font-weight: normal;
    font-size: 2em;
    margin: 8px 0 10px;
}
.form-done p {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 10px;
}
.form-done .page-cta { justify-content: flex-start; margin-top: 24px; }
.form-done-status { color: #55555f; font-size: 0.95rem !important; }
.form-done-status.is-sent { color: #1f7a3d; }

/* ===== Reading type ===== */
.prose p,
.mag-lede p,
.page-intro p,
.about-album p,
.issue-feature-desc,
.article-dek,
.related-list span {
    font-family: var(--serif);
    font-size: 1.14rem;
    line-height: 1.65;
}
.mag-lede p { font-size: 1.24rem; color: var(--ink); }
.issue-feature-desc, .article-dek { font-size: 1.02rem; }
.mag-meta,
.pick-meta,
.issue-number,
.grid-meta,
.crumbs,
.issue-nav a span,
.coming-soon {
    font-family: var(--sans);
    letter-spacing: 0.01em;
}
.crumbs { font-size: 0.8rem; }
.mag-meta, .pick-meta { font-size: 0.86rem; }
.issue-number, .grid-meta { font-size: 0.8rem; }
@media (max-width: 768px) {
    .prose p, .page-intro p, .about-album p { font-size: 1.08rem; }
    .mag-lede p { font-size: 1.14rem; }
}
/* The light form page keeps its plain sans text */
.light-page .mag-lede p { font-family: var(--sans); font-size: 1.05rem; }

/* One Bandcamp player per theme */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
    .only-dark { display: block !important; }
    .only-light { display: none !important; }
}
.light-page .only-dark { display: none !important; }

/* "Listen on" links under each album in Editor's Picks, the Magazine and Artist Picks */
.pick-listen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin: 12px 0 0;
    font-family: var(--sans);
    font-size: 0.86rem;
    color: var(--muted);
}
.pick-listen a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.pick-listen a:hover { color: var(--accent-ink); border-color: var(--accent-line); }
.pick-listen .listen-icon { width: 18px; height: 18px; }
.pick-listen .listen-icon {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.pick-listen a:hover .listen-icon,
.pick-listen a:focus-visible .listen-icon,
.pick-listen a:active .listen-icon { opacity: 1; }

/* Album page write-up from Editor's Picks / Magazine / Artist Picks */
.about-album { text-align: left; }
.about-album h2 { text-align: center; }
.album-story p { margin: 0 0 1em; }
.about-album .album-facts {
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 4px;
}
/* Article section headings (featured album, the list) */
.mag-featured > h2, .mag-list > h2 { margin-bottom: 4px; }
