/* Base Styles */
:root {
    --parchment: #f2eecb;
    --dark-ink: #333;
    --aged-paper: #e8e0cb;
    --wood-brown: #6d4c3d;
    --wood-light: #a67c52;
    --accent: #8e3b31;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--parchment);
    color: var(--dark-ink);
    line-height: 1.6;
    padding-bottom: 2rem;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4zIo9AAAACH0lEQVR4nO3V2ZKkIBBGYREQUFlkUZD//8tGtlZFAZ3pupgL6y70+UjymAzL/jfs/VdA9eczdPLz92K0LKeaqmrOGwnVtJyGz4/EaJ4qIEAIUDXN/NgTNVsVERzA8Rs4Mz/yxLof8uC+a3qiO4nP17R7CTcOJ/HRuSf8Ik6J8Bta/YOjQyKm4UU0+ZMjhwSlsD8SS/2GQII++L1F63eESBw+1GH9lhCJw3na+y0hE+5ZvnyPLBGHs1jftqVMHN6T921byYRTW0+2VcTpLfm2rSSir+K9RyNRxxLpRMISsYDPFukIWMJncfSpZ0ouER+Y9raNEudNy69tu0MiYQl3ZWfbLhI5S7grO9t2jciOInVl27aTRMWO4txZK/rETBI7is9tsyZmkfgmZr+JSS/qJkhMfBOjX8TAEzFNTH4T/V7ETBKz38TgFzHrRA6bGGmkG+gidn/xdpGunmWRbk9kVcSu2G9i94uoK4mYJ7KSJnKeiLkiM+0PfaK8icx7+v7HHzkTNU3U3v80kdFEfRMR0ASfyByxq+9LNBE1xJvbRW4iIr9+5Uy8qYFGgCe4JnpFDC7RKaI4iVgTNUsAAVHFe9umE1m8JzpNlCyR70TNEmm8O5GLRMkS+U1UmihIouSJKw9C7jNxON9UqgaSXWJ12eH/sy3Vjhi/t5UiMXzfFprYvrdlIrGHwP9t//F//AciUwQUNx1kNwAAAABJRU5ErkJggg==');
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    color: var(--wood-brown);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
    border-bottom: 2px solid var(--wood-light);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin: 1.2rem 0 0.8rem;
}

.subtitle {
    font-style: italic;
    color: var(--wood-light);
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--wood-brown);
    text-decoration: underline;
}

/* Layout */
header,
footer {
    background-color: rgba(109, 76, 61, 0.1);
    border-bottom: 3px solid var(--wood-brown);
    padding: 1.5rem 0;
    text-align: center;
}

footer {
    border-top: 3px solid var(--wood-brown);
    border-bottom: none;
    margin-top: 3rem;
}

.header-content {
    margin-bottom: 1.5rem;
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    font-weight: bold;
    position: relative;
    transition: color 0.3s, transform 0.2s;
}

nav a:hover {
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: 60vh;
}

/* Recipe Category Pages */
.category-header {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.category-header:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100px;
    background-color: var(--wood-brown);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recipe-card {
    background-color: var(--aged-paper);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease;
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.recipe-card-image {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--wood-light);
}

.recipe-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wood-light);
    color: var(--parchment);
    font-style: italic;
}

.recipe-card-content {
    padding: 1.5rem;
}

.recipe-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.recipe-meta {
    margin-top: 1rem;
    font-style: italic;
    color: var(--wood-brown);
    font-size: 0.9rem;
}

/* Recipe Detail Page */
.recipe-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .recipe-header {
        grid-template-columns: 1fr;
    }
}

.recipe-image {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.recipe-image.no-image {
    height: 300px;
    background-color: var(--wood-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--parchment);
    font-style: italic;
}

.recipe-details {
    background-color: var(--aged-paper);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(109, 76, 61, 0.15);
}

.recipe-meta-detail {
    margin: 1rem 0;
    font-style: italic;
}

.recipe-section {
    margin-top: 2rem;
    max-width: 800px;
    margin: 2.5rem auto;
}

.ingredient-list,
.instruction-list,
.tip-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.ingredient-list li,
.instruction-list li,
.tip-list li {
    margin-bottom: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(109, 76, 61, 0.2);
}

.pdf-download {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: var(--wood-brown);
    color: var(--parchment);
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.pdf-download:hover {
    background-color: var(--accent);
    text-decoration: none;
}

/* Home Page */
.hero {
    background-color: var(--aged-paper);
    padding: 3rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 3rem;
}

.featured-title {
    text-align: center;
    margin-bottom: 2rem;
}

.featured-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--wood-brown);
    margin: 0.5rem auto 0;
}

/* Utilities */
.hidden {
    display: none;
}

/* Mobile Menu Toggle (visible only on mobile) */
.mobile-menu-toggle {
    display: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: more) {
    :root {
        --dark-ink: #000;
        --wood-brown: #4a2c1d;
        --accent: #6b1f17;
    }
}

/* Keyboard focus styles */
*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}