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

:root {
    --primary-red: #a81c23;
    --dark-red: #7d1519;
    --light-cream: #faf8f5;
    --cream: #f5f1eb;
    --text-dark: #2c2826;
    --text-medium: #5a5654;
    --text-light: #8a8583;
    --border-light: #e8e4df;
}

body {
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--light-cream);
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

p {
    margin-bottom: 1.25rem;
}

em, i {
    font-style: italic;
}

strong, b {
    font-weight: 600;
}

a {
    color: var(--primary-red);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-red);
}

/* Header */
header {
    background-color: var(--primary-red);
    color: var(--light-cream);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    border-bottom: 4px solid var(--dark-red);
}

header h1 {
    font-family: 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif;
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    color: var(--light-cream) !important;
}

header h1 a {
    color: var(--light-cream) !important;
    text-decoration: none;
}

.tagline {
    font-family: 'Iowan Old Style', 'Palatino Linotype', serif;
    font-size: 1.15rem;
    opacity: 0.92;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-style: italic;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--light-cream);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

nav a:hover {
    border-bottom-color: var(--light-cream);
}

/* Main Content */
main {
    padding: 4.5rem 0 5rem;
}

.intro {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 2rem;
}

.intro h2 {
    font-family: 'Bookman Old Style', 'URW Bookman', Georgia, serif;
    font-size: 2.75rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.intro p {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.9;
}

.content {
    max-width: 750px;
    margin: 2rem auto;
    line-height: 2;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.content h2 {
    font-family: 'Bookman Old Style', 'URW Bookman', Georgia, serif;
    color: var(--primary-red);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content h3 {
    font-family: 'Bookman Old Style', 'URW Bookman', Georgia, serif;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content ul,
.content ol {
    margin-left: 2.5rem;
    margin-bottom: 2rem;
}

.content li {
    margin-bottom: 0.75rem;
}

/* Recipes Section */
.recipes h2 {
    font-family: 'Bookman Old Style', 'URW Bookman', Georgia, serif;
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.recipe-card {
    background: white;
    padding: 2.5rem 2.25rem;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-card:hover {
    box-shadow: 0 6px 20px rgba(168, 28, 35, 0.08);
    border-color: var(--primary-red);
}

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

.recipe-card h3 {
    font-family: 'Bookman Old Style', 'URW Bookman', Georgia, serif;
    font-size: 1.65rem;
    color: var(--primary-red);
    margin-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.recipe-card h3 a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recipe-card h3 a:hover {
    color: var(--dark-red);
}

.recipe-card p {
    color: var(--text-medium);
    margin-bottom: 1.75rem;
    line-height: 1.85;
    font-size: 1.02rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--light-cream);
    padding: 0.7rem 1.75rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border: none;
}

.btn:hover {
    background-color: var(--dark-red);
}

/* Single Recipe Page */
.recipe-single {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    padding: 4rem 4.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.recipe-header {
    background-color: var(--primary-red);
    border-bottom: 1px solid var(--dark-red);
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light-cream);
}

.recipe-header h1 {
    font-family: 'Bookman Old Style', 'URW Bookman', Georgia, serif;
    font-size: 3rem;
    color: var(--light-cream);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.recipe-description {
    font-size: 1.25rem;
    color: var(--light-cream);
    margin-bottom: 1.75rem;
    line-height: 1.8;
    font-style: italic;
    opacity: 0.95;
}

.recipe-meta {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    color: var(--light-cream);
    font-size: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(250, 248, 245, 0.2);
    opacity: 0.9;
}

.recipe-meta span {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.recipe-content {
    line-height: 2;
    font-size: 1.05rem;
}

.recipe-content h2 {
    font-family: 'Bookman Old Style', 'URW Bookman', Georgia, serif;
    color: var(--primary-red);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.recipe-content h3 {
    font-family: 'Bookman Old Style', 'URW Bookman', Georgia, serif;
    color: var(--text-dark);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.recipe-content ul,
.recipe-content ol {
    margin-left: 2.5rem;
    margin-bottom: 2rem;
}

.recipe-content li {
    margin-bottom: 0.75rem;
    line-height: 1.9;
}

.recipe-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.recipe-content strong {
    font-weight: 600;
    color: var(--primary-red);
}

/* Recipe Tags */
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.recipe-tag {
    display: inline-block;
    background-color: rgba(250, 248, 245, 0.15);
    color: var(--light-cream);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(250, 248, 245, 0.3);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.recipe-tag:hover {
    background-color: rgba(250, 248, 245, 0.25);
    border-color: rgba(250, 248, 245, 0.5);
    color: var(--light-cream);
}

/* Tags on recipe cards */
.recipe-card .recipe-tags {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.recipe-card .recipe-tag {
    background-color: var(--cream);
    color: var(--primary-red);
    border: 1px solid var(--border-light);
}

.recipe-card .recipe-tag:hover {
    background-color: var(--primary-red);
    color: var(--light-cream);
    border-color: var(--primary-red);
}

/* Tags Cloud Page */
.tags-cloud {
    margin-bottom: 4rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(168, 28, 35, 0.1);
    transform: translateY(-2px);
}

.tag-name {
    color: var(--primary-red);
    font-weight: 500;
    font-size: 1.05rem;
}

.tag-count {
    background-color: var(--cream);
    color: var(--text-medium);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--cream);
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
    border-top: 3px solid var(--primary-red);
}

footer p {
    opacity: 0.85;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 968px) {
    body {
        font-size: 17px;
    }

    .container {
        padding: 0 1.5rem;
    }

    header h1 {
        font-size: 2.75rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .recipe-single {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 2.5rem 0 2rem;
    }

    header h1 {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    main {
        padding: 3rem 0;
    }

    .intro {
        margin-bottom: 3.5rem;
        padding: 0 1rem;
    }

    .intro h2 {
        font-size: 2rem;
    }

    .intro p {
        font-size: 1.1rem;
    }

    .recipes h2 {
        font-size: 1.85rem;
        margin-bottom: 2rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .recipe-card {
        padding: 2rem 1.75rem;
    }

    .recipe-single {
        padding: 2.5rem 2rem;
    }

    .recipe-header {
        padding-bottom: 2rem;
        margin-bottom: 2.5rem;
    }

    .recipe-header h1 {
        font-size: 2.25rem;
    }

    .recipe-description {
        font-size: 1.1rem;
    }

    .recipe-meta {
        gap: 1.5rem;
    }

    .recipe-content h2 {
        font-size: 1.75rem;
        margin-top: 2.5rem;
    }

    .recipe-content h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.85rem;
    }

    .recipe-single {
        padding: 2rem 1.5rem;
    }

    .recipe-header h1 {
        font-size: 1.95rem;
    }

    nav ul {
        gap: 1.25rem;
    }
}
