/* Deep Waters Press - Calm Clarity Theme (v3) */

:root {
    /* Color Palette - Warm & Organic */
    --bg-deep: #FAFAF9;
    /* Warm Alabaster/Stone - Natural Paper Feel */
    --bg-surface: #FFFFFF;
    /* Pure White */
    --bg-glass: rgba(255, 255, 255, 0.7);
    /* Frosted White Glass */

    /* Gradients - Subtle & Airy */
    /* Dawn Intuition: Soft Teal to Warm Sand */
    --primary-gradient: linear-gradient(135deg, #0F766E 0%, #2DD4BF 100%);
    --accent-glow: rgba(15, 118, 110, 0.1);

    /* Typography Colors */
    --text-main: #1E293B;
    /* Slate 800 - Softer than black */
    --text-muted: #64748B;
    /* Slate 500 */
    --text-gold: #B45309;
    /* Amber 700 - Earthy Gold */

    /* Borders & Shadows */
    --border-glass: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 10px 40px -10px rgba(15, 118, 110, 0.15);
    /* Teal glow */

    /* 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;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    /* Subtle paper texture/grain perception via noise or gradient */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.03), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.03), transparent 40%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Gradient Text for Headlines */
    background: linear-gradient(to right, #0F766E, #1E293B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: #1E293B;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.text-gold {
    color: var(--text-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(15, 118, 110, 0.3);
    color: #0F766E;
}

.btn-outline:hover {
    border-color: #0F766E;
    background-color: rgba(15, 118, 110, 0.05);
}

/* Glassmorphism Cards (Light) */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.glass-card:hover {
    border-color: rgba(15, 118, 110, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(250, 250, 249, 0.9);
    /* Warm White Translucent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.logo a {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0F766E;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Offset for fixed header */
    position: relative;
    overflow: hidden;
}

/* Glowing Orb Background - Lighter */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Books Grid */
.books-section {
    padding: var(--spacing-xl) 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    /* Clean Slate/Navy Gradient for covers to pop against light bg */
    background: linear-gradient(to bottom right, #334155, #1e293b);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.9rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-card:hover .book-cover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.book-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.book-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(15, 118, 110, 0.05));
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-soft);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    outline: none;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    border-radius: 40px;
}

/* Footer */
footer {
    background: #f1f5f9;
    /* Slate 100 */
    padding: 4rem 0;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    text-align: center;
}

footer a:hover {
    color: #0F766E;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}