@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-color: #FDFBF7;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --accent-color: #D35400;
    /* Terracotta-ish */
    --secondary-color: #8F9779;
    /* Sage Green */
    --surface-color: #FFFFFF;
    --border-color: #EAECEF;

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

    --spacing-unit: 1rem;
    --radius-md: 12px;
    --radius-lg: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    /* Improve readability */
    -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-top: 2rem;
    /* More spacing for headers */
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    margin-top: 0;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
.site-header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

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

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

.site-nav a:hover {
    color: var(--accent-color);
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--surface-color);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 85vh;
    /* Large impactful hero */
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    background: #E67E22;
}

/* --- Posts Grid --- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.post-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s;
    cursor: pointer;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.post-card-img-wrapper {
    height: 280px;
    overflow: hidden;
    display: block;
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.post-content {
    padding: 2rem;
}

.post-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.post-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.post-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}


/* --- Single Post Styles --- */
.post-single {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.post-hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-body {
    font-size: 1.1rem;
    color: #4A4A4A;
}

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

.post-body img {
    margin: 2rem 0;
    border-radius: var(--radius-md);
    width: 100%;
}

.ingredients,
.steps {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.ingredients h3,
.steps h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

ul,
ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-main);
    background: linear-gradient(to right, rgba(211, 84, 0, 0.05), transparent);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* --- Footer --- */
.site-footer {
    background: #2D3436;
    color: #dfe6e9;
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.site-footer p {
    opacity: 0.6;
}

/* --- Utilities --- */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* --- Animations --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 1rem 0;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .site-nav {
        display: none;
    }
}

/* --- Form Styles --- */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(143, 151, 121, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #dfe6e9;
    /* Light grey matching footer text */
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}