/*
 * pages.css - styles for the generated artist and album pages,
 * plus the "Browse artists" block on the homepage.
 * Everything is scoped so it can't affect the game's own styles.
 */

/* ---------- Generated pages ---------- */

.seo-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #171717;
    background: #f4f4f4;
}

.seo-page *,
.seo-page *::before,
.seo-page *::after {
    box-sizing: border-box;
}

.seo-page a {
    color: #0b57d0;
}

.seo-page a:focus-visible,
.browse-artists a:focus-visible {
    outline: 3px solid #0b57d0;
    outline-offset: 2px;
}

.seo-page .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 14px 20px;
    background: #171717;
}

.seo-page .brand {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.seo-page .site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.seo-page .site-header nav a {
    color: #d8d8d8;
    font-size: 0.95rem;
    text-decoration: none;
}

.seo-page .site-header nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.seo-page main {
    max-width: 820px;
    margin: 0 auto;
    padding: 22px 20px 48px;
}

.seo-page h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.2;
}

.seo-page h2 {
    margin: 36px 0 10px;
    font-size: 1.35rem;
    line-height: 1.3;
}

.seo-page h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.seo-page p {
    margin: 0 0 14px;
}

.seo-page .subtitle {
    color: #555555;
}

/* Breadcrumbs */

.seo-page .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #555555;
}

.seo-page .breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: #999999;
}

/* Buttons */

.seo-page .button {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 8px;
    background: #171717;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.seo-page .button:hover {
    background: #333333;
}

/* Album page */

.seo-page .album-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    margin-bottom: 8px;
}

.seo-page .album-hero-cover {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    background: #dddddd;
}

.seo-page .tracklist {
    margin: 0;
    padding: 0 0 0 2.2em;
    columns: 1;
}

.seo-page .tracklist li {
    padding: 5px 0 5px 4px;
    border-bottom: 1px solid #dcdcdc;
}

.seo-page .faq dt {
    margin-top: 14px;
    font-weight: 700;
}

.seo-page .faq dd {
    margin: 2px 0 0;
}

.seo-page .sibling-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.seo-page .link-list {
    margin: 0 0 14px;
    padding-left: 1.2em;
}

/* Artist page */

.seo-page .album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-page .album-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #ffffff;
}

.seo-page .album-card-cover {
    flex: none;
    width: 84px;
    height: 84px;
    border-radius: 6px;
    object-fit: cover;
    background: #dddddd;
}

.seo-page .album-card p {
    margin: 0 0 4px;
    font-size: 0.92rem;
}

.seo-page .album-card .opens {
    color: #555555;
}

/* Artist directory */

.seo-page .artist-directory {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.seo-page .artist-directory li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 16px;
    padding: 9px 0;
    border-bottom: 1px solid #dcdcdc;
}

.seo-page .artist-directory span {
    color: #555555;
    font-size: 0.92rem;
}

/* Footer */

.seo-page .site-footer {
    padding: 28px 20px 36px;
    background: #171717;
    color: #bdbdbd;
    font-size: 0.92rem;
    text-align: center;
}

.seo-page .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 14px;
}

.seo-page .site-footer a {
    color: #e6e6e6;
}

.seo-page .site-footer strong {
    width: 100%;
    color: #ffffff;
}

.seo-page .site-footer p {
    margin: 0;
}

@media (max-width: 520px) {
    .seo-page {
        font-size: 16px;
    }

    .seo-page h1 {
        font-size: 1.65rem;
    }

    .seo-page .album-hero-cover {
        width: 140px;
        height: 140px;
    }
}


/* ---------- Homepage "Browse artists" block ---------- */

.browse-artists {
    max-width: 820px;
    margin: 40px auto 0;
    padding: 0 16px;
    color: inherit;
    text-align: left;
    line-height: 1.6;
}

.browse-artists h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.browse-artists p {
    margin: 0 0 14px;
}

.browse-artists-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.browse-artists a {
    color: inherit;
    text-decoration: underline;
}


/* ---------- Guides (articles) ---------- */

.seo-page .article p,
.seo-page .article li {
    max-width: 68ch;
}

.seo-page .article ul,
.seo-page .article ol {
    margin: 0 0 16px;
    padding-left: 1.4em;
}

.seo-page .article li {
    margin-bottom: 6px;
}

.seo-page .article-cta {
    margin-top: 32px;
}

.seo-page .guide-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.seo-page .guide-card {
    padding: 16px 0;
    border-bottom: 1px solid #dcdcdc;
}

.seo-page .guide-card h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.seo-page .guide-card p {
    margin: 0;
    color: #444444;
}
