/*
Theme Name: cmartens_2025
Author: Chip Martens & Gemini
Description: A minimalist, typography-focused theme.
Version: 1.0.0
Text Domain: cmartens_2025
*/

/* --- Basic Reset & Typography --- */
html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #000000;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    clear: both;
}

a {
    color: #000000;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

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

/* --- Layout --- */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.site-title a {
    font-size: 1.1rem;
    color: #000000;
    font-weight: 500;
}

.menu-toggle {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
    position: relative;
}

/* --- Full Screen Menu --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.full-screen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    padding-top: 150px;
    overflow-y: auto;
}

body.menu-open .menu-overlay,
body.menu-open .full-screen-menu {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    text-align: left;
    max-width: 640px;
    width: 100%;
    padding: 0 20px;
}

.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f5f5f5;
}

.menu-content li {
    border-bottom: 1px solid #e0e0e0;
}

.menu-content li:first-child {
     border-top: 1px solid #e0e0e0;
}

.menu-content a {
    font-size: 3rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.2;
    display: block;
    padding: 15px 20px;
}
.menu-content a:hover {
    background-color: #e9e9e9;
}


/* --- Homepage Intro (H1) --- */
.site-intro {
    margin-bottom: 80px;
}

.intro-headline {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
    letter-spacing: -0.04em;
}

.site-description {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* --- Post Card Layout (H2) --- */
.post-card {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.post-card-image {
    flex: 0 0 30%;
}

.post-card-image img {
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.post-card:hover .post-card-image img {
    filter: grayscale(0%);
}

.post-card-content {
    flex: 1;
}

.post-card-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.post-card-title a:hover {
    text-decoration: underline;
}

.post-card-excerpt p {
    font-size: 1rem;
    margin: 0;
    color: #000000;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* --- Load More Button --- */
.load-more-container {
    text-align: center;
    margin: 40px 0 60px;
}

#load-more-posts {
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#load-more-posts:hover {
    background-color: #000000;
    color: #f5f5f5;
}

/* --- Single Post Styles --- */
.entry-header {
    margin-bottom: 40px;
}
.entry-title {
    font-size: 3rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}
.entry-meta-item {
    background: #e9e9e9;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.entry-meta-item .price,
.entry-meta-item .location {
    font-size: 1.1rem;
    font-weight: 500;
}
.entry-meta-item .buy-now-button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
}
.entry-meta-item .buy-now-button:hover {
    background-color: #333;
}
.entry-content {
    font-size: 1.1rem;
}
.entry-content p, 
.entry-content ul, 
.entry-content ol,
.entry-content blockquote {
    margin-bottom: 1.5em;
}
.entry-content h2 {
    font-size: 1.8rem;
    margin: 2em 0 1em;
}
.entry-content h3 {
    font-size: 1.4rem;
    margin: 2em 0 1em;
}
.entry-content strong {
    font-weight: 600;
}
.entry-content em {
    font-style: italic;
}
.entry-content a {
    text-decoration: underline;
}
.entry-content a:hover {
    background-color: rgba(255, 235, 59, 0.5);
    text-decoration: none;
}
.entry-content blockquote {
    border-left: 3px solid #000;
    padding-left: 1.5em;
    font-style: italic;
    font-size: 1.2rem;
}
.entry-content pre {
    background-color: #e9e9e9;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
}
.entry-content .alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}
.entry-content .alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}
.entry-content .aligncenter {
    display: block;
    margin: 1.5em auto;
    text-align: center;
}
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}
.wp-caption img {
    margin: 0;
}
.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5em;
    text-align: center;
}
.gear-guide-section {
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding-top: 40px;
}
.gear-guide-section h2 {
    margin-top: 0;
}
.gear-guide-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.gear-guide-item:last-child {
    border-bottom: none;
}
.gear-guide-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: underline;
}

/* --- Post Navigation --- */
.post-navigation {
    margin: 60px 0;
    border-top: 1px solid #ddd;
    padding-top: 40px;
}
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.post-navigation .nav-links > div {
    flex: 1;
    max-width: 50%;
}
.post-navigation .nav-previous {
    text-align: left;
}
.post-navigation .nav-next {
    text-align: right;
}
.post-navigation .nav-subtitle {
    font-size: 0.9rem;
    color: #666;
    display: block;
}
.post-navigation a {
    font-weight: 500;
}


/* --- Footer --- */
.site-footer {
    padding: 40px 0;
}

.footer-grid-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}
.footer-col a:hover {
    background-color: rgba(255, 235, 59, 0.5);
    text-decoration: none;
}

.site-info {
    text-align: center;
    padding-top: 40px;
    color: #888888;
    font-size: 0.9rem;
    border-top: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
     .site-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }
    .post-card {
        flex-direction: column;
    }
    .post-card-image {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 20px;
    }
    .intro-headline, .entry-title {
        font-size: 2.5rem;
    }
    .menu-content a {
        font-size: 2.5rem;
    }
    .footer-grid-simple {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}



