:root {
    --bg-dark: #07090f;
    --text-light: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent: #a5d8ff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body.splash {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url('assets/merit_bg.png');
    background-size: cover;
    background-position: center;
}

body.main {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('assets/merit_bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Splash Page Styling */
.splash-hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.splash-box {
    padding: 3rem 6rem;
    text-align: center;
    max-width: 850px;
    width: 100%;
}

.splash-box h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.splash-box h2 {
    font-size: 1.1rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.splash-box p {
    font-style: normal;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.enter-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--text-light);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.enter-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Inner Page Styling */
.main-content {
    min-height: 100vh;
    padding: 0 2rem 5rem;
}

.content-header {
    height: 90vh;
    /* Centering vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 5vh;
}

.content-header h1 {
    font-size: 4.5rem;
    margin-bottom: 2.5rem;
}

.content-header p {
    font-size: 1.8rem;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

.content-header small {
    display: block;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0.6;
    font-family: var(--font-main);
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.book-section {
    padding: 3rem 4rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6rem;
    align-items: center;
}

.book-cover {
    width: 180px;
    /* Approximately half of the previous visual scale */
    margin: 0 auto;
    aspect-ratio: 2/3;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

nav {
    padding: 2.5rem;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

body.splash footer {
    display: none;
}

body.main footer {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .splash-content h1 {
        font-size: 2.5rem;
    }

    .content-header h1 {
        font-size: 3rem;
    }

    .content-header p {
        font-size: 1.2rem;
    }
}