@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;1,600&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Premium Earth & Cream */
    --bg-color: #FAF9F6; /* Off-white cream */
    --surface-color: #FFFFFF;
    --text-main: #2C2C2C;
    --text-muted: #666666;
    
    /* Accents */
    --accent-primary: #D35400; /* Deep Terracotta */
    --accent-secondary: #E67E22; /* Burnt Orange */
    --accent-tertiary: #A04000; /* Darker Rust */
    
    /* Nature Tones */
    --sage-green: #8F9779;
    --olive-green: #5D6D56;
    --deep-forest: #2E4033;
    
    /* UI Elements */
    --border-subtle: rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif; /* Modern, clean sans */
    
    /* Layout */
    --container-width: 1240px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1A1A1A;
        --surface-color: #242424;
        --text-main: #EAEAEA;
        --text-muted: #A0A0A0;
        --border-subtle: rgba(255,255,255,0.08);
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
        --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-secondary);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.4);
}

.btn-outline {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

/* --- Header --- */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.85); /* Matches bg-color with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--accent-primary);
}

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

.nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- Hero Section --- */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--accent-primary);
    font-style: italic;
    padding-right: 0.2em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-img {
    transform: rotate(0deg) scale(1.02);
}

.hero-decoration {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(211, 84, 0, 0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- Featured Recipes Grid --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sage-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.recipe-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-container {
    height: 260px;
    overflow: hidden;
    position: relative;
}

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

.recipe-card:hover .card-img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.recipe-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--sage-green);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.recipe-card:hover .card-title {
    color: var(--accent-primary);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes footer down */
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.time-icon {
    margin-right: 0.4rem;
}

/* --- Post Page Styles --- */
.post-header-section {
    padding-top: calc(var(--header-height) + 3rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.post-title-main {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.post-meta-detailed {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.post-hero-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-md);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem; /* Larger readable text */
    line-height: 1.8;
}

.content-wrapper p {
    margin-bottom: 2rem;
}

.content-wrapper h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.dropcap {
    float: left;
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 0.8;
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.recipe-box {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-sm);
}

.ingredients-list, .steps-list {
    list-style: none;
    margin-top: 1.5rem;
}

.ingredients-list li, .steps-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 1rem;
}

.steps-list {
    counter-reset: step-counter;
}

.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    background: var(--sage-green);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
    background: #1e1e1e; /* Almost black */
    color: #f0f0f0;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #a0a0a0;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #a0a0a0;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin: 0 auto 2rem; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links { display: none; } /* Mobile menu needed */
    .recipe-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hero-text h1 { font-size: 2.5rem; }
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0; 
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }