:root {
    /* Gumleaf Books core palette - standardised 19 September 2026 */
    --gumleaf-green: #7b8680;
    --action-green:#5B7065;
    --deep-green:#17342d;
    --soft-green:#e9f0e5;
    --cream:#f6f2e8;
    --paper:#fffdf8;
    --line:#d9dccf;
    --muted:#758177;
    --shadow:0 18px 45px rgba(49,68,54,.08)
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    background:var(--cream);
    color:var(--deep-green);
    font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

a {
    color:inherit
}

.site-header {
    position:sticky;
    top:0;
    z-index:20;
    background:rgba(246,242,232,.96);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line)
}

.site-header-inner {
    max-width:1240px;
    margin:auto;
    display:grid;
    grid-template-columns:auto 1fr minmax(260px,420px);
    gap:24px;
    align-items:center;
    padding:14px 22px
}

.brand {
    display:flex;
    gap:10px;
    align-items:center;
    text-decoration:none
}

.brand-leaf {
    font-size:1.9rem
}

.brand strong {
    display:block;
    font-size:1.05rem
}

.brand small {
    display:block;
    color:var(--muted);
    font-size:.72rem;
    white-space:nowrap
}

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

.main-nav a {
    text-decoration:none;
    font-weight:650
}

.header-search {
    display:flex;
    gap:8px
}

.header-search input {
    width:100%;
    padding:11px 13px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff
}

button,.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:12px;
    background:var(--action-green);
    color:#fff;
    padding:11px 16px;
    font-weight:750;
    text-decoration:none;
    cursor:pointer
}

.btn.secondary {
    background:var(--soft-green);
    color:var(--deep-green);
    border:1px solid var(--line)
}

.page-shell {
    max-width:1240px;
    margin:auto;
    padding:30px 22px 60px
}

.hero {
    display:grid;
    grid-template-columns:0.9fr 1.1fr;
    gap:28px;
    align-items:center;
    padding:36px;
    border:1px solid var(--line);
    border-radius:26px;
    background:linear-gradient(145deg,#fffdf8,#eef2e8);
    box-shadow:var(--shadow);
    overflow:hidden
}

.hero h1 {
    font-size:clamp(2.3rem,3.6vw,3.5rem);
    line-height:1.02;
    margin:.2rem 0 1rem;
    letter-spacing:-.04em
}

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

.hero-art {
    min-height:500px;
    border-radius:22px;
    background:url('/images/page-header.png?v=1') center/contain no-repeat
}

.kicker {
    text-transform:uppercase;
    letter-spacing:.14em;
    font-weight:800;
    font-size:.76rem;
    color:var(--action-green)
}

.section {
    margin-top:34px
}

.section-head {
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:end;
    margin-bottom:16px
}

.section h2 {
    font-size:1.8rem;
    margin:0
}

.muted {
    color:var(--muted)
}

.book-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(230px,280px));
    gap:18px;
    justify-content:start
}

.book-card {
    display:flex;
    flex-direction:column;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    text-decoration:none
}

.book-cover {
    aspect-ratio:2/3;
    background:#ecece5;
    display:grid;
    place-items:center;
    overflow:hidden
}

.book-cover img {
    width:100%;
    height:100%;
    object-fit:contain
}

.book-cover .placeholder {
    font-size:3rem
}

.book-card-body {
    padding:18px
}

.book-card h3 {
    margin:0 0 5px;
    font-size:1.15rem
}

.meta {
    font-size:.92rem;
    color:var(--muted)
}

.collection-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:18px
}

.collection-card {
    padding:22px;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:18px;
    text-decoration:none;
    box-shadow:var(--shadow)
}

.collection-card h3 {
    margin:0 0 8px
}

.search-summary {
    padding:18px 20px;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:16px;
    margin-bottom:18px
}

.book-page {
    display:grid;
    grid-template-columns:minmax(240px,330px) 1fr;
    gap:34px
}

.book-page .cover-panel {
    position:sticky;
    top:100px;
    align-self:start
}

.large-cover {
    aspect-ratio: 2 / 3;
    background: #ecece5;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
}

.large-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-info h1 {
    font-size:clamp(2.1rem,4vw,3.8rem);
    line-height:1.05;
    margin:.2rem 0 .5rem;
    letter-spacing:-.03em
}

.subtitle {
    font-size:1.45rem;
    color:var(--muted);
    margin-bottom:12px
}

.byline {
    margin:0 0 24px
}

.byline a {
    font-weight:750
}

.description {
    font-size:1.05rem;
    max-width:780px
}

.editions {
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:30px
}

.edition-card {
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:20px;
    padding:22px;
    box-shadow:var(--shadow)
}

.edition-head {
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:start;
    flex-wrap:wrap
}

.edition-head h2 {
    margin:0;
    font-size:1.35rem
}

.edition-facts {
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    color:var(--muted);
    font-size:.9rem;
    margin-top:5px
}

.offer-table {
    width:100%;
    border-collapse:collapse;
    margin-top:18px
}

.offer-table th,.offer-table td {
    padding:13px 10px;
    border-top:1px solid var(--line);
    text-align:left;
    vertical-align:middle
}

.offer-table th {
    font-size:.76rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--muted)
}

.offer-price {
    font-weight:800
}

.offer-actions {
    display:flex;
    gap:8px;
    justify-content:flex-end;
    flex-wrap:wrap
}

.buy-btn {
    display:inline-flex;
    padding:9px 13px;
    border-radius:10px;
    background:var(--action-green);
    color:#fff;
    text-decoration:none;
    font-weight:750
}

.offer-note {
    font-size:.85rem;
    color:var(--muted)
}

.author-head,.collection-head {
    padding:28px;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow);
    margin-bottom:24px
}

.author-head h1,.collection-head h1 {
    margin:.2rem 0 .5rem;
    font-size:2.5rem
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 22px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1240px;
    margin: auto;
    color: var(--muted);
}

.site-footer strong {
    display: block;
    color: var(--deep-green);
}

.site-footer > div:first-child {
    flex-shrink: 0;
}

.footer-note {
    width:100%;
    max-width: none;
    font-size:.84rem;
    text-align:right;
    white-space:normal;
}

.empty {
    padding:26px;
    border:1px dashed var(--line);
    border-radius:18px;
    color:var(--muted);
    background:rgba(255,255,255,.45)
}

@media(max-width:900px) {
    .site-header-inner {
        grid-template-columns:1fr auto
    }
    .header-search {
        grid-column:1/-1
    }
    .main-nav {
        justify-content:flex-end
    }
    .hero {
        grid-template-columns:1fr
    }
    .hero-art {
        min-height:180px
    }
    .book-page {
        grid-template-columns:1fr
    }
    .book-page .cover-panel {
        position:static
    }
    .large-cover {
        max-width:320px
    }
}

@media(max-width:620px) {
    .site-header-inner {
        grid-template-columns:1fr
    }
    .main-nav {
        justify-content:flex-start;
        overflow:auto
    }
    .header-search {
        grid-column:auto
    }
    .brand small {
        white-space:normal
    }
    .page-shell {
        padding:20px 14px 45px
    }
    .hero {
        padding:24px
    }
    .hero-art {
        display: block;
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        margin-top: 20px;
    }    
    .offer-table thead {
        display:none
    }
    .offer-table,.offer-table tbody,.offer-table tr,.offer-table td {
        display:block;
        width:100%
    }
    .offer-table tr {
        border-top:1px solid var(--line);
        padding:10px 0
    }
    .offer-table td {
        border:0;
        padding:4px 0
    }
    .offer-actions {
        justify-content:flex-start
    }
    .site-footer {
        flex-direction:column
    }
    .footer-note {
        text-align:left
    }
}
