/* Base styles */
body {
    font-family: sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    line-height: 1.5;
    color: #4a4a4a; /* warm gray */
    background-color: #faf5f0; /* creamy background */
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    max-width: 300px;
    border-bottom: 1px solid #d7ccc8;
    padding-bottom: 1rem;
}

header img {
    height: 300px;
    margin-bottom: 1rem;
    width: auto;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
    text-align: center;
}

/* Responsive logo scaling */
@media (max-width: 500px) {
    header img {
        height: 150px;
    }

    header h1 {
        font-size: 1.8rem;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
}

nav a {
    margin-right: 1rem;
    text-decoration: none;
    color: #b45a33;
    font-weight: 600;
}

nav a:hover {
    color: #8a9a5b;
    text-decoration: underline;
}

.admin-link {
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.admin-link a {
    font-size: 0.85rem;
    color: #777;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.admin-link a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Section titles */
section h3 {
    color: #b45a33; /* rustic clay red */
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* Sections general style - card style */
section {
    margin-bottom: 1.5rem;

    /* Subtle background blocks and border */
    background-color: #f9f7f1; /* soft cream background */
    border: 1px solid #e4ddd7; /* light warm border */
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Article styles */
article {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Date style */
.date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Images */
img.entry-photo {
    max-width: 100%;
    margin: 0.5rem 0;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* YouTube video embed */
iframe.youtube-video {
    width: 100%;
    height: 315px;
    margin: 1rem 0;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Center Instagram embed block */
section.instagram-embed {
    display: flex;
    flex-direction: column;
    align-items: center; /* center horizontally */
    text-align: center; /* center caption if any */
}

/* Limit Instagram embed width */
section.instagram-embed > div {
    max-width: 500px;
    width: 100%;
}

/* Ingredients and Instructions cards stacked vertically with margin */
section.recipe-card,
section.instructions-card {
    /* Reuse same card styling */
    margin-bottom: 1.5rem;
}

/* Ingredients list padding */
section.recipe-card ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

/* Instructions paragraph spacing */
section.instructions-card p {
    margin-top: 0.5rem;
    white-space: pre-line; /* preserve newlines */
    max-height: 300px; /* limit height */
    overflow-y: auto; /* scroll if content is too tall */

    /* Hide scrollbar but keep scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

section.instructions-card p::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Paragraph spacing */
section p {
    margin-top: 0.5rem;
}

/* About Page Styling */
main.about-text {
    background-color: #f9f7f1;
    border: 1px solid #e4ddd7;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 700px;
    margin: 2rem auto;
}

.about-photo {
    max-width: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2rem;
    color: #b45a33;
    margin-bottom: 0.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}
