﻿:root {
    --bg: #f5f2eb;
    --bg-alt: #ece6db;
    --text: #22201d;
    --muted: #6f665d;
    --accent: #6f1d2a;
    --accent-2: #b38b3d;
    --card: #fffdf9;
    --border: #ddd4c7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header, .site-footer {
    background: #f8f5ef;
    border-bottom: 1px solid var(--border);
}

.site-footer {
    border-top: 1px solid var(--border);
    border-bottom: 0;
    padding: 24px 0;
    color: var(--muted);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-tag {
    color: var(--muted);
    font-size: .95rem;
}

.site-nav {
    display: flex;
    gap: 22px;
}

    .site-nav a {
        font-size: 1rem;
    }

.section {
    padding: 56px 0;
}

    .section.alt {
        background: var(--bg-alt);
    }

.hero-grid, .promo-grid, .detail-grid {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: 1.2fr .8fr;
}

.promo-grid {
    grid-template-columns: 1fr 1fr;
}

.detail-grid {
    grid-template-columns: 1fr 1fr;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    font-size: .8rem;
}
.hero-home {
    position: relative;
    min-height: 78vh;
    background: linear-gradient( rgba(5,10,18,0.55), rgba(5,10,18,0.72) ), url("/static/img/hero_img.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    width: 100%;
    padding: 80px 40px;
}

.hero-copy {
    max-width: 720px;
    color: #fff;
}

.hero-kicker {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.78);
}

.hero-home h1 {
    font-size: 4rem;
    line-height: 1.02;
    margin-bottom: 22px;
    font-weight: 700;
}

.hero-home p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-primary {
    background: #d4af37;
    color: #111;
}

    .btn-primary:hover {
        background: #e7c65a;
    }

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
}

    .btn-secondary:hover {
        background: rgba(255,255,255,0.08);
    }
.hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    margin: 0 0 14px;
}

.hero-copy {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.hero-card, .promo-card, .book-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.hero-card {
    min-height: 300px;
    display: grid;
    place-items: center;
}

.hero-art {
    font-size: 2rem;
    color: var(--accent);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.book-card-body, .promo-card {
    padding: 18px;
}

.book-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.muted {
    color: var(--muted);
}

.price-row, .price-large {
    color: var(--accent);
    font-weight: 700;
}

.price-large {
    font-size: 1.8rem;
    margin: 16px 0 8px;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
}

.detail-main-image, .thumb {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: white;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.detail-author {
    font-size: 1.15rem;
    margin-top: 0;
}

.detail-meta > div {
    margin: 6px 0;
}

.sold-badge {
    display: inline-block;
    padding: 10px 14px;
    background: #ddd;
    border-radius: 999px;
}

.prose {
    max-width: 70ch;
}

.notes-box {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #faf7f1;
    color: #333;
    font-size: .95rem;
    line-height: 1.45;
}

    .notes-box div + div {
        margin-top: 6px;
    }

.debug-box {
    margin-top: 10px;
    font-size: .85rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero-grid, .promo-grid, .detail-grid, .card-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
