/**
 * Main pages (page-templates/rr-*.php). Enqueued only on those templates, after the child
 * style.css. Colours and fonts come from carbonate's theme variables (--primary, --secondary,
 * --text, --headline), so the pages follow the theme settings.
 */

.rr-page {
    color: var(--text);
}

.rr-page h1 {
    margin-bottom: 1.25rem;
}

.rr-page p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.rr-page .rr-narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Prose links: dark text with an orange underline; the theme's cyan is too faint on white. */
.rr-page p a:not(.btn),
.rr-elsewhere a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rr-page p a:not(.btn):hover,
.rr-elsewhere a:hover {
    color: var(--black);
    text-decoration-color: var(--black);
}

/* ---------- Sections ---------- */
.rr-section {
    padding: 56px 0;
    scroll-margin-top: 88px; /* the fixed header is 72px tall */
}

.rr-tint {
    background: #fafaf5;
}

.rr-band {
    background: var(--primary);
    text-align: center;
}

.rr-band p:last-child {
    margin-bottom: 0;
}

.rr-intro,
.rr-more {
    text-align: center;
}

.rr-more {
    margin-top: 1.5rem;
    font-family: var(--headline);
    font-size: 1rem;
}

/* ---------- Hero ---------- */
.rr-hero {
    padding: 56px 0 48px;
}

.rr-lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

.rr-actions .btn {
    margin: 0 0.5rem 0.75rem 0;
}

.rr-page .rr-btn-ghost {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--secondary);
}

.rr-page .rr-btn-ghost:hover {
    color: var(--button-text);
}

.rr-hero-photo {
    text-align: center;
}

.rr-hero-photo img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ---------- Cards ---------- */
.rr-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rr-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 10px;
    overflow: hidden;
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rr-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.rr-card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.rr-card-title {
    padding: 14px 16px 16px;
    font-family: var(--headline);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
}

/* ---------- Genre chips ---------- */
.rr-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.rr-chips a {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    font-family: var(--headline);
    font-size: 0.95rem;
}

.rr-chips a:hover {
    background: var(--primary);
    border-color: var(--secondary);
}

/* ---------- About: ideas ---------- */
.rr-ideas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rr-ideas li {
    padding: 24px;
    border-top: 4px solid var(--secondary);
    background: #fafaf5;
    border-radius: 0 0 10px 10px;
}

.rr-ideas h3 {
    text-align: left;
    font-size: 1.3rem;
    letter-spacing: 0;
    margin: 0 0 0.75rem;
}

.rr-ideas p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.rr-contact h2 {
    font-size: 1.5rem;
    letter-spacing: 0;
    text-align: left;
    margin: 2.5rem 0 1rem;
}

.rr-form {
    margin-top: 1.5rem;
}

.rr-elsewhere {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--headline);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .rr-cards,
    .rr-ideas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .rr-section {
        padding: 40px 0;
        scroll-margin-top: 76px; /* the fixed header is 60px tall here */
    }

    .rr-hero {
        padding: 32px 0 24px;
    }

    .rr-hero-photo img {
        max-width: 200px;
        aspect-ratio: 1;
        object-fit: cover;
        object-position: top;
        border-radius: 50%;
        margin-bottom: 1.5rem;
    }

    .rr-page h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .rr-page h2 {
        font-size: 1.9rem;
        letter-spacing: -1px;
        margin-bottom: 24px;
    }

    .rr-lead {
        font-size: 1.15rem;
    }

    .rr-cards {
        gap: 14px;
    }

    .rr-card-title {
        padding: 10px 12px 12px;
        font-size: 0.95rem;
    }

    .rr-ideas {
        grid-template-columns: 1fr;
    }
}
