/* --- Variables & Reset --- */
:root {
    --bg-color: #f9f7f2;
    --text-main: #333333;
    --text-muted: #555555;
    --accent-sage: #d4e2d9;
    --accent-peach: #fce4d6;
    --border-soft: #e5e0d8;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Futura', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, .logo {
    font-family: var(--font-serif);
    font-weight: 400;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
}

/* --- Layout --- */
.nav-container, .hero, .intro-text, .card-grid, .bio-section, .comparison-grid, .footer-nav {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header & Nav --- */
.site-header {
    padding: 40px 0;
}

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

.logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a, .footer-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
}

.hero-content {
    flex: 1.2;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-tagline {
    font-style: italic;
    color: var(--text-muted);
}

.hero-image {
    flex: 0.8;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* --- Intro Text --- */
.intro-text {
    text-align: center;
    padding: 80px 20px;
}

.highlight {
    font-size: 1.3rem;
    margin-top: 20px;
    padding: 0 50px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-soft);
    display: inline-block;
    padding-bottom: 10px;
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.card {
    background: #fff;
    border: 1px solid var(--border-soft);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.card-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-soft);
    background-color: #fafaf9;
}

.card-body {
    padding: 30px 20px;
}

.card-body img {
    width: 200px;
    margin-bottom: 20px;
}

.card-link {
    display: block;
    margin-top: 20px;
    color: #4a6670;
    text-decoration: none;
    font-size: 0.9rem;
    font-style: italic;
}

/* --- Bio Section --- */
.bio-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 20px;
    background-image: linear-gradient(to right, transparent, rgba(212, 226, 217, 0.2), transparent);
}

.bio-image img {
    width: 250px;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bio-text {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.bio-text p {
    font-size: 1.2rem;
    padding-bottom: 12px;
    color: var(--text-muted);
}

/* --- Comparison Grid --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 100px;
}

.comparison-card {
    border: 1px solid var(--border-soft);
}

.comparison-card h4 {
    padding: 15px;
    text-align: center;
    font-size: 1.4rem;
}

.comparison-card.for h4 { background-color: var(--accent-sage); }
.comparison-card.not-for h4 { background-color: var(--accent-peach); }

.comparison-card ul {
    list-style: none;
    padding: 30px;
}

.comparison-card li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

/* Checkmark icons */
.comparison-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #88a090;
}

/* The "X" Marks for the 'Not For' card */
.comparison-card.not-for li::before {
    content: "\2715"; /* Unicode for a clean 'X' cross */
    position: absolute;
    left: 0;
    color: #a98467; /* A soft clay/muted brown color */
    font-weight: bold;
    font-size: 0.9rem;
}

.comparison-card.not-for {
    background-color: #f9f6f4; /* A slightly warmer, sand-like tint */
    border-color: #e2d7d0;
}

/* --- Footer --- */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-soft);
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* --- Responsive Styling --- */
@media (max-width: 768px) {
    .hero, .card-grid, .comparison-grid, .bio-section {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        display: none; /* Usually you'd add a hamburger menu here */
    }
}

/* --- Archive Specifics --- */
.section-divider {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    line-height: 0.1em;
    margin: 40px 0 30px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.section-divider span {
    background: var(--bg-color);
    padding-right: 20px;
}

.horizontal-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-soft);
    margin-bottom: 20px;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

.card-thumb { flex: 0 0 150px; }
.card-thumb img { width: 100%; border-radius: 4px; }

.card-info { flex: 1; }
.card-info h3 { margin-bottom: 10px; font-size: 1.4rem; }

.btn-sage {
    display: inline-block;
    background-color: #6b8e7d; /* Muted sage green from your button */
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    float: right;
}

.btn-sage:hover { background-color: #5a7a6a; }

/* --- Post Layout Styling --- */
.post-container {
    max-width: 700px; /* Narrower width for better readability */
    margin: 60px auto;
    padding: 0 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-meta {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.post-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.post-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-muted);
}

.post-featured-image {
    margin-bottom: 40px;
}

.post-featured-image img {
    height: 100%;
    border-radius: 4px;
}

/* --- Content Typography --- */
.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-sage);
    padding-left: 20px;
    font-style: italic;
    margin: 30px 0;
    color: var(--text-muted);
}

.post-footer {
    margin-top: 60px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #4a6670;
    font-style: italic;
}

/* --- About Page Specifics --- */
.about-container {
    padding-bottom: 80px;
}

.about-hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-soft);
}

.bio-section.reverse {
    flex-direction: row-reverse; /* Put the photo on the right for variety */
    background-image: none;
    border-bottom: 1px solid var(--border-soft);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #6b8e7d; /* Using your sage accent */
}

/* Mobile tweak for the reverse layout */
@media (max-width: 768px) {
    .bio-section.reverse {
        flex-direction: column;
    }
}

/* --- Contact Page Styling --- */
.contact-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-soft);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-soft);
    background: var(--bg-color);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #6b8e7d;
}

.form-submit {
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    padding: 15px;
}

#result {
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* Centering the Archive content */
.archive-container {
    max-width: 1000px; /* Matches your homepage width */
    margin: 0 auto;    /* Centers the block */
    padding: 0 20px;   /* Adds a little breathing room on mobile */
}

/* Ensure the horizontal cards don't look too stretched */
.horizontal-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-soft);
    margin-bottom: 25px;
    align-items: center;
    padding: 30px; /* Increased padding for a more premium feel */
    gap: 40px;
    width: 100%;   /* Fills the 1000px container */
}

/* --- Post Navigation --- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-soft);
}

.nav-box {
    flex: 1;
    width: 50%;
}

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

.nav-box a {
    text-decoration: none;
    display: block;
    padding: 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-box a:hover {
    background-color: #fff;
    border-color: var(--border-soft);
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-main);
}

.reading-time {
    color: #888;
    font-variant: small-caps;
    letter-spacing: 0.5px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-sage);
    color: white;
    border-color: #6b8e7d;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.topic-link {
    text-decoration: none;
    color: var(--text-main);
    display: block;
    padding: 10px;
    border-bottom: 1px solid var(--border-soft);
    transition: padding-left 0.3s;
}

.topic-link:hover {
    padding-left: 15px;
    color: #6b8e7d;
}

.topic-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 10px;
    text-transform: uppercase;
}

/* --- Filter Animation --- */
.filter-item {
    display: none; /* Hidden by default */
    animation: fadeUp 0.4s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Make the button transition smooth too */
.filter-btn {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s active;
}

.filter-btn:active {
    transform: scale(0.95); /* Subtle "click" feel */
}

/* --- Support Section --- */
.support-box {
    margin-top: 60px;
    padding: 30px;
    text-align: center;
    background-color: #fcfaf8; /* A very soft cream/off-white */
    border: 1px dashed var(--border-soft);
    border-radius: 8px;
}

.support-box p {
    margin: 5px 0;
    color: var(--text-muted);
    font-style: italic;
}

.kofi-link {
    color: #6b8e7d; /* Your sage green */
    text-decoration: underline;
    font-weight: bold;
    font-style: normal;
}

.kofi-link:hover {
    color: #5a7a6a;
}

/* --- Use Page Layout --- */
.use-hero { text-align: center; padding: 60px 20px; }
.use-main-title { font-size: 2.5rem; font-family: var(--font-serif); }
.use-hero-text { color: var(--text-muted); margin-bottom: 30px; }

.etsy-nudge {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-image img {
    width: 100%;
    margin-bottom: 20px;
}

.product-info h3 { font-size: 1.4rem; margin-bottom: 10px; }
.price { display: block; font-size: 1.2rem; margin-bottom: 15px; font-weight: bold; }

.description { font-size: 0.95rem; line-height: 1.5; margin-bottom: 15px; }
.best-for { font-size: 0.9rem; font-style: italic; margin-bottom: 25px; color: var(--text-muted); }

.btn-product {
    background: #6b8e7d;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: auto; /* Pushes button to bottom */
}

/* The 3rd card style (Browse Collection) */
.alt-card .btn-product {
    background: #f4ece4; /* Peach/Cream color from your design */
    color: #4a3a2a;
}

.price-footer {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: 1fr; }
}

.footer-socials {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-socials a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-sage); /* Your signature green */
}

.copyright {
    font-size: 0.7rem;
    color: #ccc;
    margin-top: 20px;
}

.share-actions {
    margin-top: 40px;
    text-align: center;
}

.pin-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.pin-link:hover {
    color: var(--accent-sage);
    border-bottom: 1px solid var(--accent-sage);
}

.faq-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-item {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 20px;
}

.faq-item h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Logo Styling --- */
.site-logo {
    font-family: var(--font-serif); /* Using your elegant serif font */
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main); /* Deep charcoal/grey instead of blue */
    text-decoration: none; /* Removes the underline */
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    mix-blend-mode: multiply; /* Helps the text sit naturally "into" the background color */
}



/* Make it look like the image: "Timeless" in bold, "Guide" in italic */
.site-logo span {
    font-style: italic;
    font-weight: 400;
    margin-left: 5px;
    color: var(--text-muted); /* Slightly lighter for "Guide" */
}

.site-logo:hover {
    color: var(--accent-sage); /* Subtle color shift on hover */
    text-decoration: none;
}


/* --- Page Transition --- */
main, .archive-container, .product-grid {
    animation: pageFadeIn 0.9s ease-out forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px); /* Very subtle upward drift */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Color Themes --- */

/* Default / Read: Warm Paper */
.theme-read {
    background-color: #fdfaf6; 
    transition: background-color 1s ease;
}

/* Prepare: Soft Sage */
.theme-prepare {
    background-color: #f4f7f4; 
    transition: background-color 1s ease;
}

/* Use: Light Stone/Linen */
.theme-use {
    background-color: #f5f5f7; 
    transition: background-color 1s ease;
}

/* Ensure the header/footer stay transparent to show the theme */
header, footer {
    background: transparent;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    
    /* The "Hidden" State */
    opacity: 0;
    visibility: hidden;
    
    /* Styling */
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

/* The "Show" State (controlled by JS) */
#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--accent-sage);
    color: white;
}


/* --- Global List Alignment --- */
article ul, 
article ol, 
.faq-list ul, 
.faq-list ol {
    margin-left: 0;
    padding-left: 1.5rem; /* Moves the whole list inward */
    list-style-position: outside; /* Keeps text aligned if it wraps to a second line */
}

article li, 
.faq-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem; /* Space between the bullet and the text */
}

/* Specific fix for numbered lists to ensure double digits don't bleed out */
article ol {
    padding-left: 2rem;
}