/* Variables for easy customization */
:root {
    --bg: #0d0d0d;
    --card-bg: #161616;
    --text-main: #e0e0e0;
    --text-muted: #999;
    --accent: #c9a86a;
    /* Brass/Gold tone */
    --border: #2a2a2a;
    --hero-gradient: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-gradient);
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
}

.cta-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.cta-link:hover {
    letter-spacing: 5px;
    color: #fff;
    border-color: #fff;
}

/* Main Collection Layout */
.container {
    padding: 40px 2%;
    max-width: 1000px;
    margin: auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* The Rectangle Component */
.book-rectangle {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.book-rectangle:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.book-image-container {
    flex: 0 0 200px;
    /* Fixed width for the book cover */
    height: 300px;
}

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

.book-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.author-note {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    border-left: 2px solid var(--accent);
    padding-left: 15px;
}

/* Contact Form Section */
.contact-section {
    background: #080808;
    padding: 100px 5%;
    border-top: 1px solid var(--border);
}

.contact-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.contact-form {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--border);
    padding: 18px;
    color: #fff;
    font-family: inherit;
    border-radius: 4px;
}

.submit-btn {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    padding: 20px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #fff;
}

.footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: #444;
}

/* Responsive Tablet/Mobile Adjustment */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }

    .book-rectangle {
        flex-direction: column;
        /* Stack image on top */
    }

    .book-image-container {
        flex: none;
        width: 100%;
        height: 350px;
        /* Taller cover view on mobile */
    }

    .book-content {
        padding: 30px;
    }
}