:root {
    --bg-color: #fcfaf5; 
    --text-color: #1a1a1a; 
    --accent-color: #8c3d2b; 
    --sidebar-bg: #f5f2eb;
    --font-serif: 'Cormorant Garamond', serif; 
    --font-geom: 'Hanken Grotesk', sans-serif; 
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

.site-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    padding: 3rem 2rem;
    background-color: var(--sidebar-bg);
    border-right: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.sticky-content { position: sticky; top: 0; }

h1 {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 2.4rem;
    margin: 0;
    line-height: 0.85;
    letter-spacing: -1px;
}

.sidebar-sub {
    font-family: var(--font-geom);
    font-weight: 600;
    font-size: 0.5rem;
    margin-top: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 3rem;
}

.side-nav a {
    font-family: var(--font-geom);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

/* MAIN CONTENT */
.main-content {
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.tula-layout {
    display: flex;
    height: 100vh;
    align-items: center;
    background-color: var(--bg-color);
}

.book-card-container {
    flex: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.playing-card {
    max-width: 400px; 
    max-height: 80vh; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.playing-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.book-details {
    flex: 1;
    padding: 0 8% 0 4%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status {
    font-family: var(--font-geom);
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.title {
    font-family: var(--font-geom);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.genre {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    margin: 0.2rem 0 1.2rem;
    color: var(--accent-color);
}

.copy {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 380px;
}

.manuscript-quote {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: #999;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 0.8rem;
    font-style: italic;
}

.inquire-link {
    display: inline-block;
    margin-top: 1.8rem;
    font-family: var(--font-geom);
    font-weight: 600;
    text-transform: uppercase;
    color: black;
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent-color);
    padding-bottom: 2px;
    font-size: 0.65rem;
    align-self: flex-start;
}

/* SECTION PAGES */
.content-section { display: none; }
.content-section.active { display: block; animation: fadeIn 0.4s ease; }
.section-padding { padding: 5rem 10%; }

.section-label {
    font-family: var(--font-geom);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.featured-link {
    font-family: var(--font-geom);
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.featured-desc {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    max-width: 600px;
}

.big-contact-link {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-style: italic;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
}

.copyright { font-family: var(--font-geom); font-size: 0.6rem; margin-top: 4rem; color: #aaa; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    body, html { overflow: auto; }
    .site-grid { grid-template-columns: 1fr; height: auto; }
    .tula-layout { flex-direction: column; height: auto; }
    .main-content { height: auto; }
    .book-card-container { height: auto; padding: 4rem 2rem; }
    .book-details { padding: 4rem 10%; }
}

/* AUDIO SPECIFIC STYLING - REVISED */
.audio-block {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    max-width: 600px; /* Limits the total width of the entry */
}

.audio-poster {
    width: 120px; /* Small, sharp thumbnail size */
    height: 120px;
    flex-shrink: 0;
    background-color: #eee; /* Light gray placeholder while loading */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    display: block;
}

.audio-info {
    flex: 1;
}

/* Adjusting the text for the smaller layout */
.audio-info .featured-link {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .audio-block { 
        flex-direction: row; /* Keeps them side-by-side even on small screens */
        align-items: center;
    }
    .audio-poster {
        width: 80px;
        height: 80px;
    }
}

.big-contact-text {
    font-family: var(--font-geom); /* Switches to Hanken Grotesk */
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Large, but slightly smaller to stay elegant */
    font-weight: 700;
    text-transform: uppercase; /* Matches your navigation and titles */
    letter-spacing: 1px;
    color: var(--text-color);
    display: block;
    margin-bottom: 1.5rem;
    word-break: break-all; /* Ensures it doesn't break on small phone screens */
}

/* PLACEHOLDER STYLING */
.placeholder-box {
    text-align: left;
    margin-top: 2rem;
    padding-left: 5px;

.jester-icon {
    width: 32px;
    height: 32px;
    display: block;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.placeholder-box {
    text-align: left;
    margin-top: 1rem;
    border-left: 1px solid rgba(0,0,0,0.05); /* Optional: adds a subtle "legal margin" line */
    padding-left: 1.5rem;
}

.placeholder-title {
    font-family: var(--font-geom);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
}

/* REVISED ZINE THUMBNAIL STYLING */
.zine-block {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 5rem;
    max-width: 900px; /* Keeps the text from stretching too far */
}

.zine-thumb {
    width: 220px; /* Strict width to stay smaller than the home page cover */
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); /* Mimics the home page "playing card" shadow */
    border: 1px solid rgba(0,0,0,0.03); /* Subtle edge definition */
}

.zine-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.zine-info {
    flex: 1;
    padding-top: 0.5rem;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .zine-block { 
        flex-direction: column; 
        gap: 1.5rem; 
    }
    .zine-thumb { 
        width: 180px; /* Even smaller on mobile */
    }
}

/* EDITORIAL SPECIFIC STYLING - MATCHING ZINE SCALE */
.editorial-block {
    display: flex;
    gap: 1.5rem; /* Tightened gap to match the smaller image */
    align-items: flex-start;
    margin-bottom: 3rem;
}

.editorial-poster {
    width: 100px; /* Strict width to match Nihilist Benediction scale */
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.03); /* Very faint border for paper effect */
}

.editorial-art {
    width: 100%;
    height: auto;
    display: block;
    /* This ensures no strange scaling occurs */
    image-rendering: -webkit-optimize-contrast; 
}

@media (max-width: 600px) {
    .editorial-block { 
        gap: 1rem;
    }
    .editorial-poster { 
        width: 80px; /* Scales down slightly for mobile */
    }
}

/* UNIVERSAL MEDIA BLOCK (Zines & Editorial) */
.zine-block, .editorial-block {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

/* This forces both containers to be the same small size */
.zine-thumb, .editorial-poster {
    width: 110px; 
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* This ensures the images fill that small container perfectly */
.zine-thumb img, .editorial-art {
    width: 100%;
    height: auto;
    display: block;
}

.zine-info, .editorial-block .project-block {
    flex: 1;
}

@media (max-width: 600px) {
    .zine-block, .editorial-block { 
        gap: 1.2rem; 
    }
    .zine-thumb, .editorial-poster { 
        width: 85px; 
    }
}
