:root {
    /* Colors */
    --color-cream: #F9F7F2;
    --color-sage: #81B29A;
    --color-sage-dark: #6B9680;
    --color-terra: #E07A5F;
    --color-terra-dark: #C66045;
    --color-charcoal: #2D2D2D;
    --color-sand: #EAE0D5;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Container */
    --container-width: 1200px;
    --border-radius: 12px;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--color-terra-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-charcoal);
    color: var(--color-charcoal);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-sage);
    color: var(--color-sage-dark);
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--color-sage);
    color: var(--color-white);
}

.btn.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-terra);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--color-charcoal);
    opacity: 0.8;
}

.nav-links a:not(.btn):hover {
    opacity: 1;
    color: var(--color-terra);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--color-charcoal);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: var(--spacing-md);
    max-width: 90%;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--color-white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

.floating-badge .icon {
    font-size: 2rem;
    background: var(--color-sand);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.floating-badge .text {
    display: flex;
    flex-direction: column;
}

.floating-badge .text strong {
    font-size: 1.1rem;
    color: var(--color-charcoal);
}

.floating-badge .text span {
    font-size: 0.9rem;
    color: #777;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Catalog Section */
.catalog {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.book-card {
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
}

.book-cover {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 1 / 1;
    /* Creates a square container */
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.5rem;
    color: var(--color-terra);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    /* Visual center for play icon */
}

.book-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.book-info .author {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background-color: var(--color-sand);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-charcoal);
    font-weight: 500;
}

/* Clubs Section */
.clubs {
    padding: var(--spacing-xl) 0;
}

.clubs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.clubs-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.clubs-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: var(--spacing-md);
}

.feature-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.feature-list {
    margin-bottom: var(--spacing-md);
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.check {
    background-color: var(--color-sage);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}


/* Footer */
.footer {
    background-color: var(--color-charcoal);
    color: var(--color-sand);
    padding: var(--spacing-lg) 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-terra);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
    max-width: 300px;
}

.link-group h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.link-group a:hover {
    opacity: 1;
    color: var(--color-terra);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {

    .hero-container,
    .clubs-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .floating-badge {
        display: none;
        /* Hide for simpler mobile view */
    }

    .clubs-image {
        order: -1;
        /* Image first on mobile */
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        /* In a real app, I'd code the JS toggle */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-cream);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 2rem;
    }
}

/* Waitlist Section */
.waitlist {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-sage);
    color: var(--color-white);
    text-align: center;
}

.waitlist-content h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
}

.waitlist-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto var(--spacing-sm);
}

.waitlist-form input {
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    flex-grow: 1;
    font-size: 1rem;
    font-family: var(--font-body);
}

.waitlist-form input:focus {
    outline: 2px solid var(--color-terra);
}

.waitlist-form button {
    white-space: nowrap;
}

.small-text {
    font-size: 0.9rem !important;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form button {
        width: 100%;
    }
}