:root {
    --color-cream: #f9f7f2;
    --color-paper: #ffffff;
    --color-charcoal: #0f2e35;
    --color-stone: #536a70;
    --color-taupe: #8fa0a5;
    --color-border: #e1e8ea;
    --color-primary: #0f4c5c;
    --color-primary-dark: #09343f;
    --color-accent: #d4a017;
    --color-accent-dark: #b0850d;
    --color-warm: #f1ece1;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --max-width: 1200px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-charcoal);
    background: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin: 0 0 1em;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 1000;
    background: var(--color-charcoal);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--color-charcoal);
    font-weight: 600;
}

.brand:hover {
    color: var(--color-charcoal);
}

.brand img {
    width: auto;
    height: 40px;
    display: block;
}

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

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--color-stone);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-charcoal);
    background: var(--color-warm);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-charcoal);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--color-accent);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-charcoal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-small {
    padding: 9px 18px;
    font-size: 0.9rem;
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-ghost:hover {
    background: var(--color-primary);
    color: #fff;
}

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-charcoal);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    text-align: center;
    padding: 40px 24px;
    color: #fff;
}

.hero-content h1 {
    margin-bottom: 0.4em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 1.6em;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.hero-actions .btn-ghost:hover {
    background: rgba(255,255,255,0.15);
}

.badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-dark);
    margin-bottom: 12px;
}

.section-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 40px;
    text-align: center;
}

.section-header p {
    color: var(--color-stone);
    max-width: 620px;
    margin: 0 auto;
}

.recipe-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.recipe-card {
    background: var(--color-paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.recipe-card figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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

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

.recipe-card > div {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card .category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.recipe-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5em;
}

.recipe-card h3 a {
    color: var(--color-charcoal);
}

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

.recipe-card p {
    color: var(--color-stone);
    font-size: 0.95rem;
    margin-bottom: 1em;
    flex: 1;
}

.recipe-card .meta {
    font-size: 0.85rem;
    color: var(--color-taupe);
    margin: 0;
}

.featured-band {
    background: var(--color-warm);
    padding: 80px 24px;
}

.featured-band .band-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.featured-band .band-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-band .band-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.featured-band p {
    color: var(--color-stone);
    font-size: 1.05rem;
}

.category-band {
    background: var(--color-primary);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
}

.category-band h2 {
    margin-bottom: 32px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list a {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.25);
}

.category-list a:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.newsletter-band {
    background: var(--color-charcoal);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}

.newsletter-band h2 {
    margin-bottom: 0.4em;
}

.newsletter-band p {
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto 28px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1 1 240px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 1rem;
    background: #fff;
    color: var(--color-charcoal);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

.ad-unit {
    max-width: var(--max-width);
    margin: 0 auto 64px;
    padding: 0 24px;
    text-align: center;
    min-height: 90px;
}

.ad-unit-inner {
    background: var(--color-paper);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: 24px;
    color: var(--color-taupe);
    font-size: 0.85rem;
}

.site-footer {
    background: var(--color-paper);
    border-top: 1px solid var(--color-border);
    padding: 64px 24px 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--color-stone);
    max-width: 280px;
}

.footer-nav h3,
.footer-newsletter h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    color: var(--color-charcoal);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--color-stone);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-newsletter p {
    color: var(--color-stone);
    font-size: 0.95rem;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 64px auto 0;
    padding: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-taupe);
}

.footer-disclaimer {
    max-width: 520px;
    text-align: right;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-paper);
    border-top: 1px solid var(--color-border);
    padding: 18px 24px;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-inner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-stone);
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

/* Recipe detail */
.recipe-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
}

.recipe-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.recipe-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
    z-index: 1;
}

.recipe-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
    color: #fff;
}

.recipe-hero-content h1 {
    max-width: 800px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.recipe-meta-bar {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.95rem;
}

.recipe-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.recipe-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
}

.recipe-intro {
    font-size: 1.15rem;
    color: var(--color-stone);
    margin-bottom: 32px;
}

.recipe-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.ingredients-card {
    background: var(--color-paper);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.ingredients-card h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.ingredients-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.ingredients-card li:last-child {
    border-bottom: none;
}

.method-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.method-list li {
    position: relative;
    padding-left: 64px;
    margin-bottom: 28px;
    min-height: 44px;
}

.method-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.tip-box {
    background: var(--color-warm);
    border-left: 4px solid var(--color-accent);
    padding: 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tip-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tip-box p {
    margin: 0;
    color: var(--color-stone);
}

/* Page layouts */
.page-header {
    background: var(--color-warm);
    padding: 100px 24px 60px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.3em;
}

.page-header p {
    color: var(--color-stone);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.content-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px;
}

.content-container h2 {
    margin-top: 40px;
}

.content-container ul,
.content-container ol {
    padding-left: 24px;
    margin-bottom: 1.2em;
}

.content-container li {
    margin-bottom: 8px;
}

.filter-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar a {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    color: var(--color-stone);
    font-size: 0.9rem;
}

.filter-bar a:hover,
.filter-bar a.active {
    background: var(--color-charcoal);
    color: #fff;
    border-color: var(--color-charcoal);
}

/* Forms */
.contact-form {
    display: grid;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* 404 */
.error-page {
    text-align: center;
    padding: 120px 24px;
}

.error-page h1 {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: 0.1em;
}

/* Responsive */
@media (max-width: 960px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .recipe-body {
        grid-template-columns: 1fr;
    }

    .recipe-sidebar {
        position: static;
    }

    .featured-band .band-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-paper);
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
        max-width: 100%;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }
}
