/* =============================================
 *  ROOK & RUNE PRESS - MASTER STYLESHEET
 *  ============================================= */

:root {
    /* Core Palette */
    --color-black: #1a1a1a;
    --color-off-white: #f4f1ea;
    --color-burgundy: #6b2737;
    --color-burgundy-dark: #4e1b27;
    --color-gray: #757575;

    /* Typography */
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Helvetica Neue', 'Arial', sans-serif;

    /* Spacing & Layout */
    --max-width: 1200px;
    --padding-standard: 2rem;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-off-white);
    color: var(--color-black);
    line-height: 1.7;
    font-size: 18px;
}

a {
    color: var(--color-burgundy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-burgundy-dark);
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: normal;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; }

/* Layout Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem; /* Ensures left/right spacing */
}

.section {
    padding: 4rem 2rem; /* Changed from 4rem 0 to keep horizontal padding */
    border-bottom: 1px solid #e0dccf;
}

/* Header & Navigation */
header {
    background-color: var(--color-black);
    color: var(--color-off-white);
    padding: 0.1rem 0; /* Drastically reduced padding to kill the empty space */
    border-bottom: 4px solid var(--color-burgundy);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-area a:hover {
    text-decoration: none;
}

/* LOGO FIX: Inverts colors and scales up */
.logo-area img {
    height: 160px; /* Kept it large, but tightened the container */
    width: auto;
    filter: invert(1);
}

/* Mobile responsiveness for the logo */
@media (max-width: 768px) {
    .logo-area img {
        height: 90px; /* Shrinks on smaller screens */
    }
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

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

nav a {
    color: var(--color-off-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--color-burgundy);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-color: var(--color-black);
    color: var(--color-off-white);
    text-align: center;
    padding: 6rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #ccc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-burgundy);
    color: var(--color-off-white);
}

.btn-primary:hover {
    background-color: var(--color-burgundy-dark);
    color: var(--color-off-white);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-off-white);
    border: 2px solid var(--color-off-white);
}

.btn-outline:hover {
    background-color: var(--color-off-white);
    color: var(--color-black);
    text-decoration: none;
}

/* The Forks (Target Markets) */
.forks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.fork-card {
    background: white;
    padding: 2rem;
    border-top: 4px solid var(--color-burgundy);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.fork-card h3 {
    color: var(--color-burgundy);
}

/* Reader Titles */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.book-card {
    background: white;
    border-top: 4px solid var(--color-black);
    padding: 1.5rem;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.book-card h3 {
    color: var(--color-burgundy);
    font-size: 1.35rem;
}

.book-meta {
    color: var(--color-gray);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.book-cover-link {
    display: block;
    margin: 0 auto 1rem auto;
    width: min(100%, 160px);
}

.book-cover-link:hover {
    text-decoration: none;
}

.book-cover {
    aspect-ratio: 2 / 3;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

/* MVP Wedge Section */
.wedge {
    background-color: white;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.wedge-content {
    flex: 1;
    min-width: 300px;
}

.wedge-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--color-black);
    color: var(--color-gray);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--color-off-white);
}
