:root {
    --primary: #0C0A09;
    --secondary: #44403C;
    --gold: #CA8A04;
    --bg: #FAFAF9;
    --text: #0C0A09;
}

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..72,400..900;1,6..72,400..900&family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Jost', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.08;
    pointer-events: none;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    padding: 2rem 4rem;
    z-index: 900;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

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

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

header {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-family: 'Bodoni Moda', serif;
    line-height: 1;
    margin-bottom: 2rem;
}

.italic { font-style: italic; font-weight: 400; }

.subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--secondary);
}

.masterpieces {
    padding: 8rem 4rem;
    background: #0C0A09;
    color: white;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

/* Landscape Optimized Card */
.book-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.book-card.reverse {
    grid-template-columns: 1fr 1.4fr;
}

.book-card.reverse .book-visual {
    order: 2;
}

.book-visual {
    aspect-ratio: 16/9;
    background: #141414;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 60px 100px -30px rgba(0,0,0,0.9);
}

/* The fix: object-fit contain to see the whole title/placeholder */
.book-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full visibility of placeholders */
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem; /* Add some breathing room */
}

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

.book-info h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.category {
    color: var(--gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    display: block;
}

.desc {
    font-weight: 300;
    font-size: 1.1rem;
    color: #A8A29E;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.4s;
}

.cta-button:hover {
    background: white;
    color: black;
}

.lang-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-fixed a { color: inherit; text-decoration: none; font-size: 0.7rem; }

footer {
    padding: 8rem 4rem;
    background: #0C0A09;
    color: white;
    text-align: center;
}

.footer-email {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.5rem;
    color: var(--gold);
    text-decoration: none;
    display: block;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .book-card, .book-card.reverse { grid-template-columns: 1fr; gap: 4rem; }
    .book-card.reverse .book-visual { order: 0; }
    .masterpieces { padding: 4rem 2rem; }
}
