/*
Theme Name: 2manybooks
Description: Custom minimal theme for 2manybooks - We craft libraries with rare books
Author: Your Name
Version: 1.0.0
Text Domain: 2manybooks
*/

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0,0,0,0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0,0,0,0.01) 0%, transparent 50%),
        #ffffff;
    color: #000000;
}

/* Container for the main content */
.site-container {
    min-height: 100vh;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

/* Main content area */
.main-content {
    max-width: 800px;
    width: 100%;
}

/* Typography */
.site-title {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    margin: 0;
    z-index: 10;
}

.site-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: #666;
    position: fixed;
    top: 2rem;
    left: 2rem;
    margin: 0;
    max-width: 300px;
    z-index: 10;
}

/* Navigation */
.main-navigation {
    position: fixed;
    top: 2rem;
    right: 2rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.main-navigation a:hover {
    opacity: 1;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 4rem;
        bottom: 1rem;
        left: 1rem;
    }
    
    .site-tagline {
        font-size: 1.1rem;
        top: 1rem;
        left: 1rem;
        max-width: 250px;
    }
    
    .main-navigation {
        top: auto;
        bottom: 1rem;
        right: 1rem;
    }
    
    .main-navigation ul {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .site-footer {
        position: static;
        transform: none;
        margin-top: 3rem;
    }
    
    .site-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 3rem;
        bottom: 0.5rem;
        left: 0.5rem;
    }
    
    .site-tagline {
        font-size: 1rem;
        top: 0.5rem;
        left: 0.5rem;
        max-width: 200px;
    }
    
    .main-navigation {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .site-container {
        padding: 0.5rem;
    }
}

/* Blog styles for when content is added */
.post {
    margin-bottom: 3rem;
    text-align: left;
}

.post-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    opacity: 0.7;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

/* Form styles */
input, textarea, select {
    border: 1px solid #ddd;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0;
    font-family: inherit;
    width: 100%;
    max-width: 400px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #000;
}

button, .button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

button:hover, .button:hover {
    opacity: 0.8;
}

/* Search form */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
}

.search-form label {
    width: 100%;
    max-width: 400px;
}

.search-field {
    margin: 0;
}

/* Post navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 500;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 3rem 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-decoration: none;
    color: #000;
    border: 1px solid #ddd;
}

.pagination a:hover, .pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Post tags and categories */
.post-tags, .post-categories {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.post-tags a, .post-categories a {
    color: #666;
    text-decoration: none;
    margin-right: 0.5rem;
}

.post-tags a:hover, .post-categories a:hover {
    color: #000;
}

/* WordPress specific classes */
.alignwide {
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: auto;
    max-width: 1000%;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Hide WordPress default widgets and sidebar elements */
.widget,
.wp-block-archives,
.wp-block-categories,
#secondary,
.sidebar,
.widget-area,
.archive-list,
.category-list {
    display: none !important;
}

/* Animated Books Styles - Matching Philip Cronerud's beautiful design */

/* Homepage body override for animated design */
.homepage body {
    margin: 0;
    padding: 0;
    font-weight: 400;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 13px;
    letter-spacing: 0px;
    background-color: #f2f2f2;
    height: 100vh;
    overflow: hidden;
}

/* Main elements */
.big-two {
    position: fixed;
    font-size: 1200%;
    bottom: 0px;
    left: 20px;
    z-index: 10;
    line-height: 1;
    font-weight: 400;
    color: #000;
}

.centered-div {
    display: flex;
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 10;
}

.centered-div a {
    color: black;
    text-decoration: none;
    font-size: 13px;
}

.centered-div a:hover {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Image container */
.img-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #f2f2f2;
}

/* Animated image containers */
.animated-image-container {
    position: absolute;
    top: 100%;
    animation: animateUp 120s linear infinite;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Animation keyframes */
@keyframes animateUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-300%);
    }
}

/* Image styling */
.animated-image-container img {
    height: 300px;
    width: auto;
    display: block;
    object-fit: contain;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .big-two {
        font-size: 800%;
        left: 15px;
        bottom: 5px;
    }
    
    .centered-div {
        top: 15px;
        left: 20px;
        font-size: 12px;
    }
    
    .animated-image-container img {
        height: 200px;
    }
    
    @keyframes animateUp {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-250%);
        }
    }
}

@media (max-width: 480px) {
    .big-two {
        font-size: 600%;
        left: 10px;
        bottom: 5px;
    }
    
    .centered-div {
        top: 10px;
        left: 15px;
        font-size: 11px;
    }
    
    .animated-image-container img {
        height: 150px;
    }
}
