/* ═══════════════════════════════════════════════════════════
   Aeneas Press — Modern Classics Library
   Classical monochrome aesthetic · Elegant minimalism
   ═══════════════════════════════════════════════════════════ */

:root {
    --ap-black:   #111111;
    --ap-dark:    #222222;
    --ap-text:    #333333;
    --ap-muted:   #888888;
    --ap-light:   #f8f8f8;
    --ap-border:  #e0e0e0;
    --ap-white:   #ffffff;
    --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body:    'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
}

/* ── Base ──────────────────────────────────────────────── */

body {
    font-family: var(--font-body);
    color: var(--ap-text);
    background: var(--ap-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--ap-black);
    font-weight: 600;
}

a {
    color: var(--ap-black);
    transition: color 0.2s, opacity 0.2s;
}

a:hover {
    color: var(--ap-muted);
}

::selection {
    background: var(--ap-black);
    color: var(--ap-white);
}

/* ── Navbar ────────────────────────────────────────────── */

.navbar {
    background: var(--ap-white);
    border-bottom: 1px solid var(--ap-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ap-black) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--ap-black);
    color: var(--ap-white);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--ap-text) !important;
    padding: 0.5rem 1.2rem !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--ap-muted) !important;
}

/* ── Hero ──────────────────────────────────────────────── */

.hero-section {
    background: var(--ap-light);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--ap-border);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--ap-black);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--ap-muted);
    font-weight: 400;
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
}

.hero-ornament {
    display: block;
    color: var(--ap-muted);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    margin-top: 1.5rem;
    opacity: 0.4;
}

/* ── Book catalog grid ─────────────────────────────────── */

.catalog-section {
    padding: 3.5rem 0 5rem;
}

.book-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.book-cover-wrap {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--ap-border);
    background: var(--ap-light);
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(0%);
}

.book-card:hover .book-cover-img {
    transform: scale(1.02);
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-light);
    color: var(--ap-border);
    font-size: 3rem;
}

.book-cover-placeholder.large {
    aspect-ratio: 2 / 3;
    font-size: 5rem;
    border: 1px solid var(--ap-border);
}

.book-card-info {
    padding: 1rem 0.1rem 0.5rem;
}

.book-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    color: var(--ap-black);
}

.book-card-author {
    font-size: 0.85rem;
    color: var(--ap-muted);
    margin-bottom: 0.2rem;
}

.book-card-year {
    font-size: 0.75rem;
    color: var(--ap-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.empty-icon {
    font-size: 4rem;
    color: var(--ap-border);
}

/* ── Book detail ───────────────────────────────────────── */

.book-detail-section {
    padding: 3rem 0 4rem;
}

.book-detail-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--ap-black);
}

.book-detail-author {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--ap-muted);
    font-style: italic;
    margin-bottom: 1.2rem;
}

.book-annotation {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ap-text);
}

.badge.bg-accent {
    background: transparent !important;
    color: var(--ap-black);
    border: 1px solid var(--ap-black);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.badge.bg-secondary {
    background: transparent !important;
    color: var(--ap-muted);
    border: 1px solid var(--ap-border);
    font-weight: 500;
}

/* ── Store links ───────────────────────────────────────── */

.store-links-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ap-black);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.store-link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--ap-border);
    text-decoration: none;
    color: var(--ap-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.store-link-btn:hover {
    border-color: var(--ap-black);
    color: var(--ap-black);
    background: var(--ap-light);
}

.store-link-btn .ms-auto {
    font-size: 0.8rem;
    color: var(--ap-muted);
}

/* ── About ─────────────────────────────────────────────── */

.about-section {
    padding: 3.5rem 0 4rem;
}

.about-section .section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.85;
}

.about-text hr {
    border-color: var(--ap-border);
    opacity: 0.5;
}

.about-icon {
    font-size: 2rem;
    color: var(--ap-black);
    margin-bottom: 0.8rem;
    display: block;
}

.about-section h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
    background: var(--ap-light);
    border-top: 1px solid var(--ap-border);
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.site-footer p {
    margin: 0;
    color: var(--ap-muted);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* ── Breadcrumb ────────────────────────────────────────── */

.breadcrumb-item a {
    color: var(--ap-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.breadcrumb-item a:hover {
    color: var(--ap-black);
}

.breadcrumb-item.active {
    color: var(--ap-muted);
    font-size: 0.85rem;
}

/* ── Buttons ───────────────────────────────────────────── */

.btn-dark {
    background: var(--ap-black);
    border-color: var(--ap-black);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
}

.btn-dark:hover {
    background: var(--ap-dark);
    border-color: var(--ap-dark);
}

.btn-outline-dark {
    color: var(--ap-black);
    border-color: var(--ap-black);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
}

.btn-outline-dark:hover {
    background: var(--ap-black);
    border-color: var(--ap-black);
    color: var(--ap-white);
}

/* ── Decorative elements ──────────────────────────────── */

.divider-ornament {
    text-align: center;
    color: var(--ap-muted);
    font-size: 0.9rem;
    letter-spacing: 0.8em;
    opacity: 0.3;
    margin: 2rem 0;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .book-detail-title {
        font-size: 1.8rem;
    }

    .catalog-section {
        padding: 2rem 0 3rem;
    }

    .about-section .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }

    .book-card-title {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}
