/* Shared by the public layouts (first, content_page, books): reset, typography, header/nav, back button. Loaded before main.css / books.css. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Serif Pro', serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background: linear-gradient(135deg, #fafaf8 0%, #ffffff 50%, #f1f5f9 100%);
    color: #292524;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}
a {
    text-decoration: none;
    color: inherit;
}
/* Header */
header {
    border-bottom: 1px solid rgba(120, 113, 108, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.8);
}
nav {
    max-width: 70rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
}
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #292524;
}
nav a {
    color: #78706c;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}
nav a:hover {
    color: #292524;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* Phones: logo on its own line, menu links wrap below it. */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    nav .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
        padding-left: 0;
        margin: 0;
    }
}
/* Back Button */
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0;
            background: none;
            border: none;
            color: #d97706;
            cursor: pointer;
            font-family: 'Source Serif Pro', serif;
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.3s ease;
            margin-bottom: 2rem;
        }

        .back-button:hover {
            transform: translateX(-0.25rem);
            color: #b45309;
        }
