@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --capybara-brown: #8c6a4a;
    --leafy-green: #6a9a6b;
    --river-blue: #5aa0b4;
    --sand-beige: #f7f3e9;
    --warm-cream: #fffdf8;
    --dark-text: #2f2a26;
    --muted-text: #6b5f57;
    --card-bg: #ffffff;
    --border: #e3ddd5;
    --radius-lg: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 10%, rgba(90, 160, 180, 0.14), transparent 40%),
        radial-gradient(circle at 15% 90%, rgba(106, 154, 107, 0.12), transparent 45%),
        linear-gradient(180deg, var(--warm-cream) 0%, var(--sand-beige) 100%);
    background-attachment: fixed;
    color: var(--dark-text);
    font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--river-blue);
    text-decoration: none;
    transition: color 120ms ease;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
#content {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 24px;
    width: 100%;
}

main>* {
    animation: fade-up 280ms ease both;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(6px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(47, 42, 38, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--capybara-brown) 0%, var(--river-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    transition: opacity 120ms ease;
}

.brand:hover {
    opacity: 0.8;
    text-decoration: none;
}

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(140, 106, 74, 0.25);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--dark-text);
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-search {
    display: none;
}

.main-nav a {
    margin-left: 16px;
    color: var(--dark-text);
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.main-nav a:hover {
    color: var(--capybara-brown);
    background: rgba(140, 106, 74, 0.08);
    transform: translateY(-1px);
}

.nav-inline-form {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-link-button {
    margin-left: 16px;
    color: var(--dark-text);
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease;
    background: transparent;
    border: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.nav-link-button:hover {
    color: var(--capybara-brown);
    background: rgba(140, 106, 74, 0.08);
    transform: translateY(-1px);
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 243, 233, 0.6) 100%);
    backdrop-filter: blur(2px);
}

.footer-bar {
    height: 4px;
    width: 100%;
    background-image: linear-gradient(90deg, var(--river-blue), var(--leafy-green), var(--capybara-brown));
}

.footer-inner {
    padding: 48px 24px 32px 24px;
    text-align: center;
    color: var(--muted-text);
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    align-items: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--capybara-brown);
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--muted-text);
    font-size: 0.9rem;
    transition: color 120ms ease, transform 120ms ease;
}

.footer-links a:hover {
    color: var(--capybara-brown);
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-policy-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-divider {
    height: 1px;
    width: 40px;
    background: rgba(140, 106, 74, 0.2);
    margin: 0 auto;
}

.site-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.footer-brand {
    font-weight: 700;
    background: linear-gradient(135deg, var(--capybara-brown) 0%, var(--river-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

/* Footer responsive design */
@media (max-width: 640px) {
    .footer-inner {
        padding: 36px 0 24px;
    }

    .footer-content {
        gap: 20px;
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    margin: 0.5em 0 0.4em;
    line-height: 1.25;
    color: var(--capybara-brown);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0.5em 0 1em;
    color: #5f554e;
}

/* Cards for recipe listings */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 6px 20px rgba(47, 42, 38, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 42, 38, 0.1);
    border-color: #d8cfc5;
}

.card-title {
    font-weight: 600;
    color: var(--capybara-brown);
}

.card-title a {
    color: inherit;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* Buttons */
.btn {
    display: inline-block;
    border: 1px solid var(--capybara-brown);
    background: var(--capybara-brown);
    color: #fff;
    padding: 11px 16px;
    border-radius: 11px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
    background: #7b5f42;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(123, 95, 66, 0.24);
}

.btn-outline {
    background: transparent;
    color: var(--capybara-brown);
}

.btn-outline:hover {
    background: rgba(140, 106, 74, 0.08);
}

.btn-primary {
    border-color: #2f6f84;
    background: #2f6f84;
    color: #fff;
}

.btn-primary:hover {
    background: #255b6d;
    box-shadow: 0 6px 14px rgba(37, 91, 109, 0.28);
}

/* Tags / badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(106, 154, 107, 0.15);
    color: var(--leafy-green);
    border: 1px solid rgba(106, 154, 107, 0.35);
}

.recipe-tag-line {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.92rem;
}

.tag-inline-link {
    color: var(--river-blue);
    font-weight: 600;
}

.tag-empty {
    font-style: italic;
}

/* Header and footer accents */
.bar {
    height: 6px;
    width: 100%;
    background-image: linear-gradient(90deg, var(--capybara-brown), var(--leafy-green), var(--river-blue));
}

/* Header search styles */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-search {
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fafaf8 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(47, 42, 38, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(140, 106, 74, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.search-input-group:focus-within {
    box-shadow: 0 12px 32px rgba(90, 160, 180, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border-color: rgba(90, 160, 180, 0.3);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    min-height: 48px;
    border: none;
    padding: 12px 18px 12px 18px;
    padding-right: 50px;
    font-size: 0.95rem;
    line-height: 1.35;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: var(--dark-text);
    outline: none;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--muted-text);
    font-weight: 500;
}

.search-button {
    background: none;
    border: none;
    padding: 12px 14px;
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    gap: 6px;
    position: absolute;
    right: 0;
    height: 100%;
}

.search-button:hover {
    color: var(--river-blue);
    background: rgba(90, 160, 180, 0.06);
}

.search-button:active {
    transform: scale(0.95);
}

.search-button:focus {
    outline: 2px solid var(--river-blue);
    outline-offset: -2px;
}

.search-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.search-icon::before {
    display: block;
}

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

.icon-muted {
    color: var(--muted-text);
}

.main-nav a,
.nav-link-button,
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.main-nav a {
    justify-content: center;
}

.nav-link-button {
    justify-content: center;
}

.footer-policy-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .header-inner {
        align-items: center;
        gap: 1rem;
    }

    .header-search {
        display: none;
        order: 3;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main-nav {
        order: 4;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        margin-top: 0.25rem;
        padding: 0.3rem 0;
        border-top: 1px solid var(--border);
    }

    .nav-search {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-search .search-input {
        min-height: 44px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        margin: 0;
        width: 100%;
    }

    .nav-inline-form {
        width: 100%;
    }

    .nav-link-button {
        margin: 0;
        width: 100%;
        text-align: left;
    }
}

/* Responsive header */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .main-nav {
        order: 4;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.4rem;
        align-items: stretch;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-nav {
        gap: 0.75rem;
    }

    .main-nav a {
        font-size: 0.9rem;
    }
}

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.stack>*+* {
    margin-top: 12px;
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    #content {
        padding: 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .main-nav a {
        margin: 0;
    }

    .comment-form .left {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .search-again .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
}

.comment {
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.comment.card {
    padding: 14px 16px;
    margin: 0.75rem 0;
    border-top: 1px solid var(--border);
}

.comment .info {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.comment-time {
    display: inline;
    margin-left: 0.4rem;
    font-size: 0.78rem;
    opacity: 0.85;
}

.comment p:last-child {
    margin-bottom: 0;
}

.comment+.comment {
    margin-top: 0.9rem;
}

.comment-form {
    margin-top: 12px;
}

.comment-form .left {
    float: left;
    width: 48%;
    margin-right: 4%;
}

.comment-form .left:last-of-type {
    margin-right: 0;
}

.comment-form::after {
    content: "";
    display: table;
    clear: both;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--river-blue);
    box-shadow: 0 0 0 3px rgba(90, 160, 180, 0.1);
}

.comment-form textarea {
    min-height: 120px;
}

.content {
    line-height: 1.75;
}

.content h2,
.content h3 {
    margin-top: 1.2em;
}

.content ul,
.content ol,
.ingredients ul,
.steps ol {
    padding-left: 1.25rem;
}

.ingredients,
.steps {
    margin-top: 1rem;
}

.ingredients li,
.steps li {
    margin-bottom: 0.55rem;
}

/* Search page styles */
.recipe-result {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.recipe-result h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
}

.recipe-result h4 a {
    color: var(--river-blue);
    font-weight: 600;
}

.recipe-meta {
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.recipe-meta span {
    margin-right: 1rem;
    display: inline-block;
}

.recipe-preview {
    color: var(--dark-text);
    line-height: 1.5;
}

.search-tips {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(106, 154, 107, 0.06) 0%, rgba(90, 160, 180, 0.04) 100%);
    border-radius: 16px;
    border: 1px solid rgba(106, 154, 107, 0.15);
    padding: 0;
    overflow: hidden;
}

.search-tips h2 {
    padding: 1.5rem 2rem;
    margin: 0;
    background: linear-gradient(135deg, rgba(106, 154, 107, 0.1) 0%, rgba(90, 160, 180, 0.05) 100%);
    border-bottom: 1px solid rgba(106, 154, 107, 0.1);
    color: var(--capybara-brown);
    font-size: 1.3rem;
}

.search-tips h3 {
    margin-top: 0;
    color: var(--leafy-green);
    font-size: 1rem;
    font-weight: 700;
}

.search-tips ul {
    margin-bottom: 0;
}

.search-tips li {
    margin-bottom: 0.5rem;
}

/* Advanced search page styles */
.advanced-search-page {
    max-width: 800px;
    margin: 0 auto;
}

.search-page {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(90, 160, 180, 0.08) 0%, rgba(106, 154, 107, 0.08) 100%);
    border-radius: 20px;
    backdrop-filter: blur(2px);
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--capybara-brown) 0%, var(--river-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--muted-text);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.search-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafaf8 100%);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(47, 42, 38, 0.14);
    border: 1px solid rgba(140, 106, 74, 0.1);
    margin-bottom: 4rem;
    backdrop-filter: blur(2px);
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-form .form-field {
    flex: 1;
    min-width: 280px;
}

.search-form label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 700;
    color: var(--capybara-brown);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.search-form input {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafaf8 100%);
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(47, 42, 38, 0.08);
}

.search-form input::placeholder {
    color: var(--muted-text);
}

.search-form input:focus {
    outline: none;
    border-color: var(--river-blue);
    box-shadow: 0 12px 32px rgba(90, 160, 180, 0.2);
    transform: translateY(-2px);
}

.search-form .btn {
    white-space: nowrap;
    min-height: 52px;
    padding: 14px 32px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.advanced-search-form .form-field {
    margin-bottom: 1.5rem;
}

.advanced-search-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.advanced-search-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.advanced-search-form input:focus {
    outline: none;
    border-color: var(--river-blue);
    box-shadow: 0 0 0 3px rgba(90, 160, 180, 0.1);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
    padding: 2rem;
}

.tip-category {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(106, 154, 107, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(47, 42, 38, 0.06);
}

.tip-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(47, 42, 38, 0.1);
    border-color: rgba(106, 154, 107, 0.3);
}

.tip-category h3 {
    margin: 0 0 1rem 0;
    color: var(--leafy-green);
    font-size: 1.05rem;
    font-weight: 700;
}

.tip-category ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.tip-category li {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(106, 154, 107, 0.08) 0%, rgba(90, 160, 180, 0.06) 100%);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--dark-text);
    font-weight: 500;
    border-left: 3px solid var(--leafy-green);
    padding-left: 0.8rem;
}

/* Search results page */
.search-results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-results-header h1 {
    margin-bottom: 0.2rem;
}

.results-count {
    color: var(--muted-text);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.recipe-result {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(47, 42, 38, 0.08);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.recipe-result header {
    margin-bottom: 1rem;
}

.recipe-result h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.recipe-result h2 a {
    color: var(--river-blue);
    font-weight: 600;
    text-decoration: none;
}

.recipe-result h2 a:hover {
    text-decoration: underline;
}

.tag-link {
    color: var(--leafy-green);
    text-decoration: none;
    font-weight: 500;
}

.tag-link:hover {
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(90, 160, 180, 0.08) 0%, rgba(106, 154, 107, 0.08) 100%);
    border-radius: 18px;
    border: 2px solid rgba(90, 160, 180, 0.15);
    box-shadow: 0 12px 32px rgba(47, 42, 38, 0.08);
    margin-bottom: 2rem;
}

.no-results h2 {
    color: var(--capybara-brown);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results p {
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

.no-results ul {
    text-align: left;
    display: inline-block;
    margin-top: 1rem;
}

.search-again {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(140, 106, 74, 0.1);
}

.search-again p {
    margin-bottom: 1.5rem;
}

.search-again .btn {
    margin: 0.5rem;
}

/* Recipe list and detail pages */
.recipes-list-page {
    margin-bottom: 1.4rem;
}

.recipes-list-header {
    margin-bottom: 0;
    padding: 2.4rem 2rem;
}

.recipes-list-header h1 {
    margin: 0.15rem 0 0.45rem;
}

.recipes-grid {
    align-items: start;
}

.recipe-list-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 249, 244, 0.98) 100%);
    border-top: 4px solid rgba(90, 160, 180, 0.45);
    padding: 1.1rem 1.1rem 1rem;
}

.recipe-list-card .card-title {
    margin: 0;
}

.recipe-list-card .card-title a {
    text-decoration: none;
}

.recipe-list-card .card-title a:hover {
    color: var(--river-blue);
}

.recipe-list-stats {
    gap: 0.45rem;
}

.recipe-list-tags {
    min-height: 1.9rem;
    gap: 0.4rem;
}

.recipe-list-excerpt {
    color: var(--dark-text);
    line-height: 1.65;
    margin-top: 0.15rem;
}

.recipe-list-excerpt p {
    margin-top: 0.25rem;
}

.recipe-list-action {
    margin: 0.3rem 0 0;
}

.recipe-list-excerpt p:last-child {
    margin-bottom: 0;
}

.recipes-detail-page {
    margin-bottom: 0.3rem;
}

.recipe-detail-header {
    background:
        radial-gradient(circle at 12% 14%, rgba(90, 160, 180, 0.1), transparent 42%),
        radial-gradient(circle at 88% 80%, rgba(106, 154, 107, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 241, 0.98));
}

.recipe-detail-header h1 {
    margin-top: 0;
}

.recipe-detail-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.98));
}

.recipe-detail-content h2,
.recipe-detail-content h3 {
    margin-top: 1.25em;
}

.recipe-detail-content p,
.recipe-detail-content li {
    color: #4f453f;
}

.recipe-detail-content blockquote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid rgba(106, 154, 107, 0.45);
    background: rgba(106, 154, 107, 0.08);
    border-radius: 0 10px 10px 0;
}

.recipe-detail-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.98));
}

.recipe-detail-panel h2 {
    margin-top: 0;
}

.recipe-comments {
    margin-top: 1rem;
}

.recipe-comments h2 {
    margin-bottom: 0.25rem;
}

.recipe-comments .comment {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 241, 0.98));
}

.pagination {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.page-info {
    display: block;
    color: var(--muted-text);
    margin-bottom: 0.75rem;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-links a,
.page-links span {
    min-width: 2.2rem;
    padding: 0.4rem 0.65rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--dark-text);
}

.page-links a:hover {
    text-decoration: none;
    border-color: var(--river-blue);
    color: var(--river-blue);
}

.page-links .current {
    background: var(--capybara-brown);
    color: #fff;
    border-color: var(--capybara-brown);
}

.page-links .disabled {
    color: #9a9088;
    background: #f8f5f0;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes placeholder-fade-up {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes placeholder-roll-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input.placeholder-animating,
.search-input-dynamic.placeholder-animating,
.search-hero-form input.placeholder-animating {
    animation: placeholder-fade-up 0.4s ease-out forwards;
}

.search-input.placeholder-new,
.search-input-dynamic.placeholder-new,
.search-hero-form input.placeholder-new {
    animation: placeholder-roll-up 0.4s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for accessibility */
.btn:focus {
    outline: 2px solid var(--dark-text);
    outline-offset: 2px;
}

/* Home page */
.home-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.home-hero-copy {
    padding: 1rem 0.25rem;
}

.home-eyebrow {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2f7f93;
}

.home-hero-copy h1 {
    margin: 0.25rem 0 0.6rem;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.home-lead {
    font-size: 1.08rem;
    max-width: 58ch;
}

.home-actions {
    margin-top: 0.5rem;
}

.home-highlights {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.45rem;
}

.home-highlights li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #4f453f;
    font-weight: 500;
}

.home-highlights li::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #77b270, #7ac2d2);
    box-shadow: 0 0 0 4px rgba(106, 154, 107, 0.12);
}

.home-hero-media {
    padding: 0.75rem;
    width: min(100%, 420px);
    justify-self: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at 25% 20%, rgba(106, 154, 107, 0.16), transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(90, 160, 180, 0.18), transparent 48%),
        #fffef9;
}

.home-hero-media .hero-image {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(47, 42, 38, 0.12);
}

.home-value {
    margin: 1.2rem 0;
}

.home-value-card h2 {
    font-size: 1.25rem;
    margin-top: 0;
}

.home-value-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.98));
}

.home-cta {
    margin-top: 1.2rem;
    padding: 1.4rem;
    background:
    radial-gradient(circle at 10% 80%, rgba(140, 106, 74, 0.12), transparent 40%),
    linear-gradient(180deg, #fffefb 0%, #f7f2ea 100%);
}

.home-cta h2 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        padding: 0;
    }

    .home-hero-media {
        width: min(100%, 360px);
    }
}

@media (max-width: 640px) {
    .home-actions .btn {
        width: 100%;
    }

    .recipes-list-header {
        padding: 2rem 1.4rem;
        margin-bottom: 0.2rem;
    }

    .home-value {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

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

    .page-subtitle {
        font-size: 1rem;
    }

    .search-form-container {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .form-field {
        width: 100%;
        min-width: unset;
    }

    .search-form .btn {
        width: 100%;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .tip-category {
        padding: 1.2rem;
    }

    .no-results {
        padding: 2.5rem 1.5rem;
    }

    .no-results h2 {
        font-size: 1.2rem;
    }

    .search-again {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }
}

/* Search Engine Landing Page */
.search-page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.search-hero-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.search-hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    background: linear-gradient(135deg, var(--capybara-brown) 0%, var(--river-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

.search-hero-subtitle {
    font-size: 1.3rem;
    color: var(--muted-text);
    margin: 0 0 2.5rem 0;
    font-weight: 500;
}

.search-hero-form {
    margin-bottom: 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-hero-input-group {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fafaf8 100%);
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(47, 42, 38, 0.15);
    border: 1px solid rgba(140, 106, 74, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-hero-input-group:focus-within {
    box-shadow: 0 16px 48px rgba(90, 160, 180, 0.2);
    border-color: rgba(90, 160, 180, 0.2);
}

.search-hero-form input {
    flex: 1;
    min-height: 56px;
    border: none;
    padding: 16px 28px;
    font-size: 1.1rem;
    background: transparent;
    color: var(--dark-text);
    outline: none;
    font-weight: 500;
}

.search-hero-form input::placeholder {
    color: var(--muted-text);
    font-weight: 500;
}

.search-hero-button {
    background: none;
    border: none;
    padding: 16px 24px;
    color: var(--river-blue);
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-hero-button:hover {
    color: var(--capybara-brown);
    transform: scale(1.1);
}

.search-hero-button:active {
    transform: scale(0.95);
}

.search-hero-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-hero-links a {
    display: inline-block;
    color: var(--river-blue);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.search-hero-links a:hover {
    background: rgba(90, 160, 180, 0.1);
    text-decoration: none;
}

.search-hero-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-text);
}

.button-icon {
    font-size: 0.95em;
    line-height: 1;
}

.search-tips-section {
    background: linear-gradient(135deg, rgba(106, 154, 107, 0.04) 0%, rgba(90, 160, 180, 0.03) 100%);
    border-top: 1px solid rgba(140, 106, 74, 0.08);
    padding: 4rem 2rem;
}

.search-tips-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--capybara-brown);
    font-size: 1.8rem;
}

.search-tips-section .tips-grid {
    margin-top: 0;
    padding: 0;
}

.search-tips-section .tip-category {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(106, 154, 107, 0.15);
}

/* Search page responsive */
@media (max-width: 768px) {
    .search-page-hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .search-hero-title {
        font-size: 3.5rem;
    }

    .search-hero-subtitle {
        font-size: 1.1rem;
    }

    .search-hero-form input {
        font-size: 1rem;
        min-height: 50px;
        padding: 14px 20px;
    }

    .search-hero-button {
        padding: 14px 18px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .search-page-hero {
        padding: 40px 16px;
    }

    .search-hero-title {
        font-size: 2.5rem;
    }

    .search-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .search-hero-form input {
        font-size: 0.95rem;
        min-height: 48px;
        padding: 12px 16px;
    }

    .search-tips-section {
        padding: 2.5rem 1rem;
    }

    .search-tips-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}