/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
    --bg:       #faf7f2;
    --surface:  #ffffff;
    --text:     #1a1510;
    --muted:    #6b6560;
    --accent:   #c4622d;
    --border:   #e8e3db;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, .serif {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; }

/* ── Site header / banner ──────────────────────────────────────────────── */
.site-header {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.banner-covers {
    position: absolute;
    inset: 0;
    display: flex;
}

.banner-covers .cover-slot {
    flex: 1;
    overflow: hidden;
}

.banner-covers .cover-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.banner-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1.6px);
    background: rgba(196, 98, 45, 0.18);
}

/* top gradient sits above the tint */
.site-header::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 0; height: 90px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), transparent);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

/* ── Nav (overlaid on banner) ──────────────────────────────────────────── */
.banner-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

.banner-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
}

.banner-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.banner-nav a:hover,
.banner-nav a.active {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: rgba(0,0,0,0.38);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    color: #fff;
}

@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .banner-nav .nav-links { display: none; }
}

/* ── Mobile menu overlay (direct child of body, escapes header clipping) ── */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    background: rgba(10, 6, 2, 0.95);
    padding: 3rem 0 2rem;
}

.mobile-menu-overlay.open { display: flex; }

.mobile-menu-overlay a {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.9rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-overlay a:first-of-type { border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-menu-overlay a:hover         { color: #fff; text-decoration: none; }
.mobile-menu-overlay a.active        { color: #fff; }

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
}

.mobile-menu-close:hover { color: #fff; }

/* ── Site name on banner ───────────────────────────────────────────────── */
.site-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.05em;
    line-height: 1;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.4rem 0.4rem 0.05rem;
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 0;
    user-select: none;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 6rem;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    color: var(--muted);
    font-size: 0.82rem;
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-muted { color: var(--muted) !important; }

/* ── Book card ─────────────────────────────────────────────────────────── */
.book-card {
    background: var(--surface);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.book-card .cover-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--border);
}

.book-card .cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-card .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2.5rem;
}

.coming-soon-ribbon {
    position: absolute;
    top: 20px;
    right: -36px;
    background: var(--accent);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 7px 44px 7px 60px;
    transform: rotate(45deg);
}

.book-card .card-info {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card .card-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.book-card .card-credits {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: auto;
    letter-spacing: 0.01em;
}

.book-card .card-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}

/* ── Home: Statement ───────────────────────────────────────────────────── */
.accent-rule {
    border: none;
    border-top: 2px solid var(--accent);
    opacity: 1;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.author-statement {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    line-height: 1.5;
    color: var(--text);
    max-width: 620px;
    margin: 0 auto;
}

.author-statement-wrap {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.author-quote-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
    border: 3px solid var(--border);
}

.author-statement-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    line-height: 1.5;
    color: var(--text);
    position: relative;
    margin: 0;
    padding-left: 1.75rem;
    border: none;
}

.author-statement-quote::before {
    content: '\201C';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    position: absolute;
    left: 0;
    top: -0.6rem;
    color: var(--accent);
    opacity: 0.25;
}

/* ── Home: Next appearance card ────────────────────────────────────────── */
.next-appearance-card {
    display: block;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 1rem 1.5rem 1.25rem;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    margin-bottom: 2.5rem;
}

.next-appearance-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.next-appearance-card .nac-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.next-appearance-card .nac-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.next-appearance-card .nac-meta {
    font-size: 0.82rem;
    color: var(--muted);
}

.next-appearance-card .nac-all {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
}

/* ── Home: Featured book ───────────────────────────────────────────────── */
.featured-card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 2rem;
}

.featured-book { display: flex; gap: 2.5rem; align-items: flex-start; }

.featured-cover {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.featured-cover img { width: 100%; display: block; }
.featured-detail { min-width: 0; }

.featured-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.featured-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.featured-tagline {
    font-style: italic;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.featured-description {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.featured-description p { margin-bottom: 0.9em; }
.featured-description p:last-child { margin-bottom: 0; }

.featured-credits {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

.buy-wrap {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 0.25rem;
}

.buy-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1.4rem;
    text-decoration: none;
    transition: opacity 0.15s;
}

.buy-btn:hover { opacity: 0.85; color: #fff; text-decoration: none; }

/* ── Home: Reviews sidebar ─────────────────────────────────────────────── */
.praise-label {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.site-review { margin: 0; }

.site-review p {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.site-review cite {
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
}

.site-review cite a { color: var(--muted); }
.site-review cite a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 575px) {
    .featured-book { flex-direction: column; }
    .featured-cover { width: 180px; }
}

/* ── Books: Modal description ──────────────────────────────────────────── */
.modal-description p { margin-bottom: 0.9em; }
.modal-description p:last-child { margin-bottom: 0; }
#modal-buy:hover { opacity: 0.85; text-decoration: none; color: #fff; }

/* ── Appearances list ──────────────────────────────────────────────────── */
.appearance-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--surface);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.appearance-row:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.appearance-date {
    flex-shrink: 0;
    width: 4rem;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
    line-height: 1.15;
}

.appearance-date .date-month {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.appearance-date .date-day {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    line-height: 1;
}

.appearance-date .date-year {
    font-size: 0.65rem;
    opacity: 0.85;
}

.appearance-info .appearance-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.appearance-info .appearance-meta {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ── About: Bio content ────────────────────────────────────────────────── */
.bio-content p { margin-bottom: 1.2em; }
.bio-content a { color: var(--accent); }
.bio-content a:hover { color: var(--text); }
.bio-content em { font-style: italic; }
.bio-content strong { font-weight: 600; }
