/*
Theme Name: ReadingBook
Theme URI: https://readingbook.co.uk
Author: ReadingBook
Description: Fast local platform theme for ReadingBook.co.uk.
Version: 0.1.0
Text Domain: readingbook
*/

:root {
    --rb-bg: #f7faf9;
    --rb-surface: #ffffff;
    --rb-text: #102421;
    --rb-muted: #58706b;
    --rb-border: #dfe7e4;
    --rb-accent: #087f6f;
    --rb-accent-dark: #065f54;
    --rb-warm: #f1ab3d;
    --rb-shadow: 0 18px 48px rgba(10, 31, 28, 0.08);
    --rb-radius: 8px;
    --rb-max: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--rb-bg);
    color: var(--rb-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

a {
    color: var(--rb-accent);
}

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

.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--rb-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner,
.site-footer__inner,
.site-main {
    margin: 0 auto;
    max-width: var(--rb-max);
    padding: 0 24px;
}

.site-header__inner {
    align-items: center;
    display: flex;
    gap: 24px;
    min-height: 74px;
}

.brand {
    align-items: center;
    color: var(--rb-text);
    display: inline-flex;
    font-size: 1.24rem;
    font-weight: 900;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    background: var(--rb-accent);
    border-radius: 8px;
    color: #fff;
    display: grid;
    font-weight: 900;
    height: 36px;
    place-items: center;
    width: 36px;
}

.main-nav {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 18px;
    justify-content: flex-end;
}

.main-nav a {
    color: var(--rb-text);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.nav-cta,
.button-primary {
    background: var(--rb-accent);
    border-radius: var(--rb-radius);
    color: #fff !important;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    padding: 11px 15px;
    text-decoration: none;
}

.site-main {
    padding-bottom: 56px;
    padding-top: 38px;
}

.hero {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    min-height: 540px;
}

.hero-copy {
    align-self: center;
}

.hero h1 {
    font-size: clamp(2.55rem, 6vw, 5.4rem);
    letter-spacing: 0;
    line-height: 0.96;
    margin: 0 0 22px;
}

.hero p {
    color: var(--rb-muted);
    font-size: 1.12rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-secondary {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    color: var(--rb-text);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    padding: 11px 15px;
    text-decoration: none;
}

.hero-panel {
    align-self: center;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    display: grid;
    gap: 14px;
    padding: 18px;
}

.search-preview {
    background: #f2f7f5;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    display: grid;
    gap: 10px;
    padding: 14px;
}

.search-preview input {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    font: inherit;
    padding: 13px 14px;
}

.preview-listing {
    align-items: center;
    border-bottom: 1px solid var(--rb-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 0;
}

.preview-listing:last-child {
    border-bottom: 0;
}

.preview-listing strong,
.preview-listing span {
    display: block;
}

.preview-listing span {
    color: var(--rb-muted);
    font-size: 0.92rem;
}

.rating-pill {
    background: #fff7e8;
    border: 1px solid #f5d39a;
    border-radius: 999px;
    color: #9b5600;
    font-weight: 900;
    padding: 6px 9px;
}

.section {
    margin-top: 58px;
}

.section h2,
.entry-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0 0 16px;
}

.section-lead {
    color: var(--rb-muted);
    max-width: 760px;
}

.feature-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
}

.feature {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    padding: 20px;
}

.feature h3 {
    margin-top: 0;
}

.content-area {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    padding: 28px;
}

.listing-details {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 24px 0;
}

.detail-box {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    padding: 16px;
}

.detail-box span {
    color: var(--rb-muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-footer {
    background: #102421;
    color: #d7e5e1;
    margin-top: 70px;
}

.site-footer__inner {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto;
    padding-bottom: 34px;
    padding-top: 34px;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 900px) {
    .site-header__inner,
    .main-nav,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header {
        position: static;
    }

    .site-header__inner {
        padding-bottom: 16px;
        padding-top: 16px;
    }

    .main-nav {
        gap: 10px;
    }

    .hero,
    .feature-grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

