/* Monochrome Minimalist Theme with Material Design 3 Dark Mode */

:root {
    /* Modern Professional - Light Mode */
    --bg-body: #F4F6F9;
    /* Deep Slate White */
    --bg-surface: #FFFFFF;
    --text-primary: #121212;
    /* Nearly Black (Softer than #000) */
    --text-secondary: #4A4A4A;
    /* Passing 4.5:1 */
    --border-color: #DEE2E6;

    /* Primary Action - Deep Indigo */
    --color-primary: #2E4057;
    --color-primary-fg: #FFFFFF;
    --color-primary-border: #1D2A3B;
    /* Darker shade for borders */

    --color-danger: #D32F2F;
    --color-warning: #FFD700;
    /* High Vis Gold */

    --accent-color: #2E4057;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --bg-badge: #E9ECEF;
    --badge-text: #2E4057;

    /* Accessibility focus */
    --focus-ring-color: #FFD700;
}

[data-bs-theme="dark"] {
    /* Modern Professional - Dark Mode */
    --bg-body: #121212;
    /* Reduced eye strain (Not pure black) */
    --bg-surface: #1C1C1C;
    --text-primary: #E3E3E3;
    --text-secondary: #B0B0B0;
    /* High Contrast Grey */
    --border-color: #2D2D2D;

    /* Primary Action - Soft Indigo */
    --color-primary: #A5B4FC;
    --color-primary-fg: #000000;
    /* Black text on pastel bg for AAA contrast */
    --color-primary-border: #818CF8;

    --color-danger: #FFB4AB;
    --color-warning: #FFD700;

    --accent-color: #A5B4FC;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

    --bg-badge: rgba(165, 180, 252, 0.15);
    --badge-text: #E3E3E3;
}

[data-bs-theme="dark"] .navbar-logo {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/*- Font Import & Body --*/
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    /* Improved Readability */
}

/* Accessibility: Text Links */
p a,
li a,
.text-block a {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/* Navbar Link Exception */
.navbar-nav .nav-link {
    text-decoration: none !important;
}

/* Accessibility: Focus States */
:focus-visible {
    outline: 3px solid var(--focus-ring-color) !important;
    outline-offset: 2px !important;
    border-radius: 2px;
}

/* Typography Spacing */
p {
    margin-bottom: 1.5rem;
}

/*- Typography --*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-primary {
    color: var(--accent-color) !important;
}

/*- Buttons --*/
/*- Buttons --*/
.btn-primary {
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary-border) !important;
    /* Shape Definition */
    color: var(--color-primary-fg);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

.btn-primary:hover,
.btn-primary:focus {
    opacity: 0.9;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-fg);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-fg);
}

.btn-outline-danger {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
    font-weight: 500;
}

.btn-outline-danger:hover {
    background-color: var(--text-primary);
    color: var(--bg-body);
    border-color: var(--text-primary);
}

/*- Badges --*/
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-primary-fg) !important;
}

.bg-warning {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

/* Ensure text-dark doesn't override in dark mode */
.bg-warning.text-dark {
    color: var(--text-primary) !important;
}

.bg-secondary {
    background-color: var(--bg-badge) !important;
    color: var(--badge-text) !important;
    border: 1px solid var(--border-color);
}

/*- Navbar --*/
body .navbar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    z-index: 1020;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body .navbar-brand,
body .nav-link,
body .navbar-toggler-icon {
    color: var(--text-primary);
    font-size: 27px;
    transition: all 0.4s ease, color 0.3s ease;
}

body .navbar-brand.shrink {
    font-size: 22px;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: all 0.4s ease;
}

.navbar-logo.shrink {
    height: 40px;
}

.navbar-toggler-icon.shrink {
    font-size: 22px;
}

.navbar-toggler {
    border-color: transparent;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: none;
    border: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

body .offcanvas {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-title {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-center {
    flex-grow: 1;
    text-align: center;
}

/*-- Card Styles --*/
.card {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.card-interactive {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow) !important;
}



/* Light/Dark specific tweaks for bg-light classes from Bootstrap */
[data-bs-theme="dark"] .bg-light {
    background-color: #2b2b2b !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .bg-secondary {
    background-color: #3d3d3d !important;
}

/*-- Animations --*/
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

/*-- Pagination --*/
.pagination .page-link {
    color: var(--text-primary);
    border: none;
    background: transparent;
    font-weight: 600;
    margin: 0 5px;
}

.pagination .page-link:hover {
    color: var(--text-primary);
    background-color: var(--border-color);
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-fg);
    border-radius: 5px;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-secondary);
    background: transparent;
    border: none;
}

/*-- Mobile Navbar Adjustments --*/
@media (max-width: 768px) {
    .navbar-logo {
        display: none;
    }

    .navbar-toggler {
        margin-left: 0;
    }

    .navbar-center {
        text-align: left;
        padding-left: 15px;
    }

    .navbar-brand {
        white-space: normal;
    }
}

/*-- Utility & Refactoring Classes --*/

.hero-bg {
    background-size: cover;
    background-position: center;
}

.text-opacity-90 {
    opacity: 0.9;
}

.recipe-card-img {
    height: 150px;
    object-fit: cover;
}

.recipe-card-placeholder {
    height: 150px;
}

.category-label {
    font-size: 0.7rem;
}

.restaurant-card-container {
    padding: 15px;
}

.restaurant-card-img {
    object-fit: cover;
    min-height: 250px;
}

.restaurant-card-placeholder {
    min-height: 250px;
}

/* Mobile Hero Buttons */
@media (max-width: 576px) {
    .hero-buttons .btn {
        flex: 1 1 0px;
        /* Equal width distribution */
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        width: 100%;
    }
}

/* 2026 visual refresh */
:root {
    --bg-body: #f7f3ee;
    --bg-surface: #fffdf9;
    --bg-soft: #efe7de;
    --text-primary: #24211e;
    --text-secondary: #716a63;
    --border-color: #e4dbd2;
    --color-primary: #b84f36;
    --color-primary-border: #b84f36;
    --color-primary-fg: #ffffff;
    --accent-color: #b84f36;
    --accent-soft: #f5ddd5;
    --focus-ring-color: #e99b78;
    --card-shadow: 0 18px 45px rgba(65, 45, 34, 0.11);
    --shadow-soft: 0 10px 35px rgba(65, 45, 34, 0.07);
    --radius-lg: 24px;
    --radius-md: 16px;
}

[data-bs-theme="dark"] {
    --bg-body: #171513;
    --bg-surface: #211e1b;
    --bg-soft: #2b2723;
    --text-primary: #f6f0e9;
    --text-secondary: #c2b9b0;
    --border-color: #39332e;
    --color-primary: #ed8e6d;
    --color-primary-border: #ed8e6d;
    --color-primary-fg: #1d1511;
    --accent-color: #ed8e6d;
    --accent-soft: rgba(237, 142, 109, 0.14);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.22);
    --bg-badge: rgba(237, 142, 109, 0.14);
    --badge-text: #f6f0e9;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 8% 15%, rgba(184, 79, 54, 0.07), transparent 25rem),
        var(--bg-body);
    font-size: 1rem;
}

/* Keep every interactive state calm and predictable in both directions. */
a,
button,
.btn,
.nav-link,
.page-link,
.theme-toggle,
.card-interactive,
.view-all-link,
.form-control,
.form-select,
.badge {
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.3s ease,
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-main {
    flex: 1;
    padding-top: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
}

h1,
h2,
.navbar-brand,
.footer-brand {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.025em;
}

h3,
h4,
h5,
h6 {
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1.25rem;
}

.display-3 {
    font-size: clamp(2.65rem, 6vw, 5.3rem);
    line-height: 0.98;
}

.display-4 {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1.02;
}

.display-6 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Navigation */
body .navbar {
    min-height: 76px;
    padding: 0.6rem 0;
    background: color-mix(in srgb, var(--bg-surface) 91%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 76%, transparent);
    box-shadow: 0 8px 30px rgba(55, 38, 29, 0.04);
    backdrop-filter: blur(16px);
}

.navbar-container {
    min-height: 58px;
}

.navbar-left,
.navbar-right {
    flex: 1 1 0;
}

.navbar-right {
    justify-content: flex-end;
}

.navbar-logo-link {
    display: inline-flex;
    align-items: center;
}

.navbar-logo {
    height: 46px;
}

body .navbar-brand {
    color: var(--text-primary);
    font-size: 1.65rem;
    line-height: 1;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

body .desktop-nav .nav-link {
    position: relative;
    padding: 0.65rem 0.8rem;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.25s ease, background-color 0.25s ease;
}

body .desktop-nav .nav-link:hover {
    color: var(--accent-color);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--text-primary);
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle:hover {
    color: var(--accent-color);
    background: var(--accent-soft);
    transform: rotate(8deg);
}

.offcanvas {
    max-width: min(88vw, 360px);
}

.offcanvas-body .navbar-nav {
    gap: 0.45rem;
}

.offcanvas-body .nav-link {
    padding: 0.8rem 1rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.45rem;
    border-radius: 12px;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.offcanvas-body .nav-link:hover {
    color: var(--accent-color);
    background: var(--accent-soft);
}

/* Buttons and controls */
.btn {
    border-radius: 999px;
    font-weight: 600;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-width: 1px !important;
    box-shadow: 0 8px 18px rgba(184, 79, 54, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    opacity: 1;
    background: color-mix(in srgb, var(--color-primary) 88%, black);
    border-color: color-mix(in srgb, var(--color-primary) 88%, black) !important;
}

.btn-outline-primary {
    border-width: 1px;
    border-radius: 999px;
}

.form-control,
.form-select {
    min-height: 44px;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    color: var(--text-primary);
    background-color: var(--bg-surface);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color) 17%, transparent);
}

.filter-bar {
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.filter-bar .form-control,
.filter-bar .form-select {
    background-color: var(--bg-body);
}

/* Home */
.hero-section {
    position: relative;
    min-height: min(66vh, 610px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: auto -8% -45% auto;
    width: 360px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.035), 0 0 0 90px rgba(255, 255, 255, 0.025);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(850px, 100%);
    padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

.hero-content p {
    max-width: 640px;
    margin-inline: auto;
}

.hero-buttons .btn {
    min-width: 180px;
    padding-block: 0.85rem;
}

.hero-buttons .btn-light {
    color: #281c17;
    border-color: #ffffff;
}

.btn-hero-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border-color: #ffffff;
}

.view-all-link {
    flex: 0 0 auto;
    padding-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.view-all-link i {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.view-all-link:hover {
    color: var(--accent-color);
}

.view-all-link:hover i {
    transform: translateX(4px);
}

/* Cards */
.card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.card-interactive {
    border: 1px solid var(--border-color);
    transform: translate3d(0, 0, 0) scale(1);
    will-change: transform;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.card-interactive:hover {
    transform: translate3d(0, -4px, 0) scale(1.008);
}

.card-img-top {
    transform: scale(1);
    will-change: transform;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-interactive:hover .card-img-top {
    transform: scale(1.018);
}

.card-title {
    line-height: 1.25;
}

.recipe-card-img,
.recipe-card-placeholder {
    height: 185px;
}

.listing-card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.image-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent-color);
    background: var(--accent-soft);
    font-size: 2rem;
}

.category-label,
.card-header.text-uppercase {
    color: var(--accent-color);
    letter-spacing: 0.12em;
}

.restaurant-card-container,
.restaurant-list-card {
    padding: 0.75rem;
    border-radius: var(--radius-lg);
}

.restaurant-card-img,
.restaurant-list-card img {
    border-radius: calc(var(--radius-lg) - 8px);
}

.badge {
    padding: 0.55em 0.75em;
    border-radius: 999px;
}

.bg-warning,
.bg-warning.text-dark {
    color: #7b4512 !important;
    background: #fff0c9 !important;
    border-color: #f2d68d;
}

[data-bs-theme="dark"] .bg-warning,
[data-bs-theme="dark"] .bg-warning.text-dark {
    color: #ffe8aa !important;
    background: rgba(245, 187, 75, 0.15) !important;
    border-color: rgba(245, 187, 75, 0.3);
}

/* Listing and detail pages */
.page-section {
    padding-block: clamp(1rem, 3vw, 2.5rem);
}

.page-header {
    position: relative;
}

.page-header.text-center > p {
    max-width: 620px;
    margin-inline: auto;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-secondary);
}

.detail-page .col-md-8 {
    width: min(100%, 920px);
}

.detail-image-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.detail-image-wrap > img {
    border-radius: 0 !important;
}

.detail-panel {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none;
}

.ingredients-panel {
    background: var(--accent-soft) !important;
}

.list-group-item {
    color: var(--text-primary);
    border-color: var(--border-color) !important;
}

.form-check-input {
    background-color: var(--bg-surface);
    border-color: color-mix(in srgb, var(--text-secondary) 65%, transparent);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.alert-info {
    color: var(--text-primary);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent-color) 25%, transparent);
    border-radius: var(--radius-md);
}

.pagination {
    margin-top: 2.5rem;
    gap: 0.25rem;
}

.pagination .page-link,
.pagination .page-item.active .page-link {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    color: var(--text-primary);
    font-size: 1.25rem;
}

@media (min-width: 769px) {
    .navbar-toggler {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .desktop-nav {
        display: none;
    }

    .filter-bar {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .site-main {
        padding-top: 1.25rem;
    }

    .navbar-logo {
        display: none;
    }

    .navbar-left,
    .navbar-right {
        flex: 0 0 48px;
    }

    .navbar-center {
        padding-left: 0;
        text-align: center;
    }

    body .navbar-brand,
    body .navbar-brand.shrink {
        font-size: 1.35rem;
    }

    .hero-section {
        min-height: 550px;
        border-radius: 22px;
        background-position: 58% center;
    }

    .section-heading {
        align-items: flex-end !important;
    }

    .restaurant-card-container,
    .restaurant-list-card {
        padding: 0.55rem;
    }

    .restaurant-card-img,
    .restaurant-list-card img,
    .restaurant-card-placeholder {
        min-height: 220px !important;
        max-height: 280px;
    }

    .detail-title-row {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .detail-title-row .display-4 {
        font-size: 2.65rem;
    }

    .detail-image-wrap {
        border-radius: 18px;
    }
}

@media (max-width: 575.98px) {
    .site-main {
        padding-inline: 1rem;
    }

    .hero-section {
        min-height: 520px;
        margin-inline: -0.25rem;
    }

    .hero-content br {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-heading {
        gap: 1rem;
    }

    .section-heading .display-6 {
        font-size: 1.9rem;
    }

    .view-all-link {
        font-size: 0.85rem;
    }

    .filter-bar {
        padding: 0.75rem;
    }

    .listing-card-img {
        height: 220px;
    }

    .detail-panel .card-body {
        padding: 1.35rem !important;
    }

    .site-footer {
        text-align: center;
    }
}

.recipe-meta-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.recipe-share-button {
    min-width: 105px;
    padding: 0.55rem 0.9rem;
}

@media (max-width: 767.98px) {
    .recipe-meta-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* =====================================================================
   Minimal editorial refinement
   ===================================================================== */
:root {
    --chic-ivory: #f6f4ef;
    --chic-paper: #fcfbf8;
    --chic-ink: #20201d;
    --chic-muted: #77736c;
    --chic-line: #d8d3ca;
    --chic-wine: #66705a;
    --chic-blush: #e4e8df;
    --guide-paper: var(--chic-ivory);
    --guide-surface: var(--chic-paper);
    --guide-ink: var(--chic-ink);
    --guide-muted: var(--chic-muted);
    --guide-line: var(--chic-line);
    --guide-acid: var(--chic-paper);
    --guide-blue: var(--chic-wine);
    --guide-coral: var(--chic-blush);
    --guide-yellow: #eee9df;
    --guide-shadow: transparent;
    --bg-body: var(--chic-ivory);
    --bg-surface: var(--chic-paper);
    --bg-soft: #eeebe4;
    --text-primary: var(--chic-ink);
    --text-secondary: var(--chic-muted);
    --border-color: var(--chic-line);
    --color-primary: var(--chic-ink);
    --color-primary-border: var(--chic-ink);
    --color-primary-fg: #ffffff;
    --accent-color: var(--chic-wine);
    --accent-soft: var(--chic-blush);
    --card-shadow: none;
    --shadow-soft: none;
    --radius-lg: 0;
    --radius-md: 0;
}

[data-bs-theme="dark"] {
    --chic-ivory: #171715;
    --chic-paper: #1e1e1b;
    --chic-ink: #efede7;
    --chic-muted: #aaa69e;
    --chic-line: #3a3934;
    --chic-wine: #a8b398;
    --chic-blush: #2a2f27;
    --guide-paper: var(--chic-ivory);
    --guide-surface: var(--chic-paper);
    --guide-ink: var(--chic-ink);
    --guide-muted: var(--chic-muted);
    --guide-line: var(--chic-line);
    --guide-acid: var(--chic-paper);
    --guide-blue: var(--chic-wine);
    --guide-coral: var(--chic-blush);
    --guide-yellow: #292824;
    --guide-shadow: transparent;
    --bg-body: var(--chic-ivory);
    --bg-surface: var(--chic-paper);
    --bg-soft: #292824;
    --text-primary: var(--chic-ink);
    --text-secondary: var(--chic-muted);
    --border-color: var(--chic-line);
    --color-primary: var(--chic-ink);
    --color-primary-border: var(--chic-ink);
    --color-primary-fg: #171715;
    --accent-color: var(--chic-wine);
    --accent-soft: var(--chic-blush);
    --card-shadow: none;
    --shadow-soft: none;
}

body,
[data-bs-theme="dark"] body {
    background-color: var(--chic-ivory);
    background-image: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.footer-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.site-main {
    padding-top: clamp(1.5rem, 3vw, 2.75rem);
}

/* Quiet navigation */
body .navbar {
    min-height: 76px;
    background: color-mix(in srgb, var(--chic-ivory) 94%, transparent);
    border-bottom: 1px solid var(--chic-line);
}

.navbar-container {
    min-height: 74px;
}

.navbar-logo {
    width: auto;
    height: 43px;
    padding: 0;
    background: transparent;
    border: 0;
}

body .navbar-brand,
body .navbar-brand.shrink {
    font-size: clamp(1.45rem, 2.2vw, 1.8rem);
    text-transform: none;
}

.navbar-brand span {
    color: var(--chic-wine);
}

body .desktop-nav {
    gap: 1.8rem;
    border: 0;
}

body .desktop-nav .nav-link {
    padding: 0.5rem 0;
    color: var(--chic-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body .desktop-nav .nav-link + .nav-link {
    border: 0;
}

body .desktop-nav .nav-link small {
    display: none;
}

body .desktop-nav .nav-link:hover {
    color: var(--chic-ink);
    background: transparent;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    color: var(--chic-ink) !important;
    background: transparent;
    border: 1px solid var(--chic-line);
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--chic-wine) !important;
    background: var(--chic-paper);
}

.offcanvas-header {
    color: var(--chic-ink);
    background: var(--chic-paper);
    border-bottom: 1px solid var(--chic-line);
}

[data-bs-theme="dark"] .offcanvas-header {
    color: var(--chic-ink);
}

/* Refined controls */
.btn {
    border: 1px solid var(--chic-ink) !important;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.btn:hover,
.btn:focus {
    transform: none;
    box-shadow: none;
}

.btn-primary {
    color: var(--color-primary-fg);
    background: var(--chic-ink);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--chic-paper);
    background: var(--chic-wine);
    border-color: var(--chic-wine) !important;
}

[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-primary:hover {
    color: #171715;
}

.btn-ink,
.btn-outline-primary {
    color: var(--chic-ink);
    background: transparent;
}

.btn-ink:hover,
.btn-outline-primary:hover {
    color: var(--chic-paper);
    background: var(--chic-ink);
}

.form-control,
.form-select {
    min-height: 46px;
    border: 1px solid var(--chic-line);
    background: var(--chic-paper);
}

.filter-bar {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.filter-bar .form-control,
.filter-bar .form-select {
    color: var(--chic-ink);
    background: var(--chic-paper);
    border-color: var(--chic-line);
}

/* Calm split-cover hero */
.editorial-hero {
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
    min-height: 650px;
    background: var(--chic-paper);
    border: 1px solid var(--chic-line);
    box-shadow: none;
}

.hero-copy {
    padding: clamp(3rem, 6vw, 6rem);
    color: var(--chic-ink);
    background: var(--chic-paper);
}

.hero-copy::after {
    display: none;
}

.issue-line {
    top: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    color: var(--chic-muted);
    border-color: var(--chic-line);
    font-size: 0.62rem;
    font-weight: 500;
}

.hero-copy .eyebrow {
    color: var(--chic-wine);
}

.hero-copy h1 {
    margin-bottom: 1.75rem;
    color: var(--chic-ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(4.25rem, 7.3vw, 7.5rem);
    font-weight: 500;
    line-height: 0.82;
    letter-spacing: -0.07em;
    text-transform: none;
}

.hero-highlight {
    color: var(--chic-wine);
    font-style: italic;
    -webkit-text-stroke: 0;
}

.hero-intro {
    max-width: 520px;
    color: var(--chic-muted);
    font-size: 1.05rem;
}

.hero-visual {
    min-height: 560px;
    padding: 0;
    background: var(--chic-paper);
    border-left: 1px solid var(--chic-line);
}

.hero-photo {
    min-height: 650px;
    border: 0;
    filter: saturate(0.78) contrast(0.98);
}

.hero-stamp {
    display: none;
}

.hero-caption {
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    color: #ffffff;
    background: rgba(20, 20, 18, 0.72);
    border: 0;
    backdrop-filter: blur(8px);
}

.flavour-strip {
    margin: 3.5rem 0 7rem;
    color: var(--chic-muted);
    background: transparent;
    border-block: 1px solid var(--chic-line);
    box-shadow: none;
}

.flavour-strip > div {
    width: 100%;
    justify-content: space-around;
    padding: 0.9rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
}

.flavour-strip i {
    color: var(--chic-wine);
    font-size: 0.48em;
}

/* Spacious content rhythm */
.home-section {
    padding-block: clamp(2rem, 4vw, 3.5rem);
    border-top: 1px solid var(--chic-line);
}

.section-number {
    margin-bottom: 1rem;
    padding: 0;
    color: var(--chic-wine);
    background: transparent;
    border: 0;
    font-size: 0.66rem;
    font-weight: 500;
}

.section-heading h2 {
    font-size: clamp(3.2rem, 6.5vw, 6.2rem);
    font-weight: 500;
    line-height: 0.88;
    text-transform: none;
}

.view-all-link {
    padding: 0 0 0.35rem;
    color: var(--chic-ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--chic-ink);
    box-shadow: none;
    font-size: 0.7rem;
    font-weight: 500;
}

.view-all-link:hover {
    color: var(--chic-wine);
    background: transparent;
    border-color: var(--chic-wine);
}

/* Image-first cards */
.home-recipe-grid {
    gap: clamp(1rem, 2vw, 2rem);
}

.card {
    color: var(--chic-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.card-interactive {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.card-interactive:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none !important;
}

.card-interactive .card-img-top {
    opacity: 1;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.card-interactive:hover .card-img-top {
    opacity: 0.88;
    filter: saturate(0.82);
}

.card-index {
    top: 0.75rem;
    left: 0.75rem;
    min-width: 32px;
    padding: 0.25rem 0.35rem;
    color: #ffffff;
    background: rgba(20, 20, 18, 0.72);
    border: 0;
    backdrop-filter: blur(6px);
}

.recipe-card-img,
.recipe-card-placeholder,
.listing-card-img {
    border: 0;
}

.home-recipe-grid .card-body {
    padding: 1.15rem 0 0 !important;
}

.home-recipe-grid .card-footer {
    padding: 0.65rem 0 0 !important;
}

.home-recipe-grid .card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.category-label {
    color: var(--chic-wine) !important;
    font-weight: 500 !important;
}

/* Restaurant journal entries */
.restaurant-card-container,
.restaurant-list-card {
    padding: 0;
    background: var(--chic-paper);
    border: 1px solid var(--chic-line) !important;
    box-shadow: none !important;
}

.restaurant-card-container:nth-child(even) {
    background: var(--chic-paper);
}

.restaurant-card-img,
.restaurant-list-card img {
    border: 0;
    border-right: 1px solid var(--chic-line);
    filter: saturate(0.85);
}

.restaurant-card-container .card-body,
.restaurant-list-card .card-body {
    padding: clamp(1.75rem, 4vw, 3.5rem) !important;
}

.restaurant-card-container h2,
.restaurant-list-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}

.restaurant-index {
    top: 1rem;
    left: 1rem;
    color: #ffffff;
    background: rgba(20, 20, 18, 0.72);
    border: 0;
    backdrop-filter: blur(6px);
}

.badge,
.bg-warning,
.bg-warning.text-dark {
    color: var(--chic-ink) !important;
    background: #eee9df !important;
    border: 1px solid var(--chic-line) !important;
    border-radius: 999px;
}

[data-bs-theme="dark"] .badge,
[data-bs-theme="dark"] .bg-warning,
[data-bs-theme="dark"] .bg-warning.text-dark {
    color: var(--chic-ink) !important;
    background: #292824 !important;
}

/* Restrained indexes and details */
.page-header {
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--chic-line);
    box-shadow: none;
}

.page-header::before {
    color: var(--chic-wine);
    font-weight: 500;
}

.page-header h1,
.page-header p,
.page-header .eyebrow {
    color: var(--chic-ink) !important;
}

.page-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.5rem, 7vw, 6.8rem);
    font-weight: 500;
    text-transform: none;
}

.page-section > .row.row-cols-1 .card-header,
.page-section > .row .card-header {
    padding: 0.9rem 0;
    color: var(--chic-wine);
    background: transparent !important;
    border-bottom: 1px solid var(--chic-line) !important;
}

.page-section > .row.row-cols-1 .card-body,
.page-section > .row.row-cols-1 .card-footer {
    padding-inline: 0;
}

.pagination .page-link,
.pagination .page-item.active .page-link {
    color: var(--chic-ink);
    background: transparent;
    border: 1px solid var(--chic-line);
    border-radius: 50%;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    color: var(--chic-paper);
    background: var(--chic-ink);
}

.breadcrumb {
    padding: 0;
    background: transparent;
    border: 0;
}

.detail-image-wrap {
    border: 0;
    box-shadow: none;
}

.detail-title-row {
    border-color: var(--chic-line);
}

.detail-title-row h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    text-transform: none;
}

.detail-panel {
    background: var(--chic-paper) !important;
    border: 1px solid var(--chic-line) !important;
    box-shadow: none;
}

.ingredients-panel {
    background: var(--chic-blush) !important;
}

.ingredients-panel,
.ingredients-panel h4,
.ingredients-panel .list-group-item,
.ingredients-panel .text-muted {
    color: var(--chic-ink) !important;
}

/* Understated footer */
.site-footer {
    padding: clamp(4rem, 8vw, 7rem) 0;
    color: #eeeae2;
    background: #20201d;
    border-top: 0;
}

.footer-label {
    color: #aeb5a3;
    font-weight: 500;
}

.footer-brand {
    color: #f3f0e9;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 500;
    line-height: 0.76;
    text-transform: none;
}

.footer-nav a {
    color: #eeeae2;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.footer-nav a:hover {
    color: #b4c19f;
}

@media (max-width: 991.98px) {
    .hero-copy {
        min-height: 570px;
    }

    .hero-visual {
        border-top: 1px solid var(--chic-line);
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    body .navbar-brand,
    body .navbar-brand.shrink {
        font-size: 1.3rem;
    }

    .editorial-hero {
        box-shadow: none;
    }

    .hero-copy {
        min-height: 540px;
        padding: 5rem 1.5rem 2.5rem;
    }

    .hero-copy h1 {
        font-size: clamp(3.8rem, 17vw, 5.5rem);
    }

    .hero-visual {
        padding: 0;
    }

    .hero-caption {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
    }

    .restaurant-card-img,
    .restaurant-list-card img {
        border-right: 0;
        border-bottom: 1px solid var(--chic-line);
    }

    .page-header {
        padding-inline: 0;
        box-shadow: none;
    }
}

@media (max-width: 575.98px) {
    .flavour-strip {
        margin-inline: -1rem;
    }

    .flavour-strip > div {
        gap: 0.8rem;
        padding-inline: 1rem;
        font-size: 0.58rem;
    }

    .footer-grid {
        gap: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .card-interactive,
    .card-interactive:hover,
    .card-interactive .card-img-top,
    .card-interactive:hover .card-img-top {
        transform: none;
    }
}

/* Soft depth for homepage recipe cards */
.home-recipe-grid .card-interactive {
    box-shadow: 0 1px 2px rgba(28, 27, 24, 0.025);
    transition:
        color 350ms ease,
        opacity 350ms ease,
        box-shadow 520ms var(--motion-ease);
}

.home-recipe-grid .card-interactive:hover {
    box-shadow: 0 18px 46px rgba(28, 27, 24, 0.105) !important;
}

[data-bs-theme="dark"] .home-recipe-grid .card-interactive {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .home-recipe-grid .card-interactive:hover {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24) !important;
}

/* =====================================================================
   Field Guide  bold neo-editorial redesign
   ===================================================================== */
:root {
    --guide-paper: #f4f1e8;
    --guide-surface: #fffdf5;
    --guide-ink: #171714;
    --guide-muted: #67645d;
    --guide-line: #171714;
    --guide-acid: #dfff52;
    --guide-blue: #596cff;
    --guide-coral: #ff765f;
    --guide-yellow: #ffc83d;
    --guide-shadow: #171714;
    --bg-body: var(--guide-paper);
    --bg-surface: var(--guide-surface);
    --bg-soft: #e9e5d9;
    --text-primary: var(--guide-ink);
    --text-secondary: var(--guide-muted);
    --border-color: #cbc7bc;
    --color-primary: var(--guide-blue);
    --color-primary-border: var(--guide-ink);
    --color-primary-fg: #ffffff;
    --accent-color: var(--guide-blue);
    --accent-soft: #dfe3ff;
    --card-shadow: 8px 8px 0 var(--guide-shadow);
    --shadow-soft: 4px 4px 0 rgba(23, 23, 20, 0.14);
    --radius-lg: 2px;
    --radius-md: 2px;
}

[data-bs-theme="dark"] {
    --guide-paper: #161614;
    --guide-surface: #22221f;
    --guide-ink: #f4f1e8;
    --guide-muted: #b8b4aa;
    --guide-line: #f4f1e8;
    --guide-acid: #cbed45;
    --guide-blue: #7c8bff;
    --guide-coral: #ff846e;
    --guide-yellow: #ffd157;
    --guide-shadow: #080807;
    --bg-body: var(--guide-paper);
    --bg-surface: var(--guide-surface);
    --bg-soft: #2d2d29;
    --text-primary: var(--guide-ink);
    --text-secondary: var(--guide-muted);
    --border-color: #4b4a44;
    --color-primary: var(--guide-blue);
    --color-primary-border: #b9c1ff;
    --color-primary-fg: #101010;
    --accent-color: var(--guide-blue);
    --accent-soft: rgba(124, 139, 255, 0.16);
    --card-shadow: 8px 8px 0 #080807;
    --shadow-soft: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

body {
    background-color: var(--guide-paper);
    background-image:
        linear-gradient(rgba(23, 23, 20, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 23, 20, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    font-family: 'Outfit', sans-serif;
}

[data-bs-theme="dark"] body {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.site-main {
    padding-top: clamp(1.5rem, 3vw, 3rem);
}

/* Masthead */
body .navbar {
    min-height: 82px;
    padding: 0;
    background: var(--guide-paper);
    border-bottom: 2px solid var(--guide-line);
    box-shadow: none;
    backdrop-filter: none;
}

.navbar-container {
    min-height: 80px;
}

.navbar-logo {
    width: 46px;
    height: 46px;
    padding: 5px;
    object-fit: contain;
    background: var(--guide-acid);
    border: 2px solid var(--guide-line);
    border-radius: 50%;
}

body .navbar-brand,
body .navbar-brand.shrink {
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    text-transform: uppercase;
}

.navbar-brand span {
    color: var(--guide-blue);
}

body .desktop-nav {
    gap: 0;
    border: 2px solid var(--guide-line);
}

body .desktop-nav .nav-link {
    padding: 0.65rem 1rem;
    color: var(--guide-ink);
    font-size: 0.82rem;
    text-transform: uppercase;
}

body .desktop-nav .nav-link + .nav-link {
    border-left: 2px solid var(--guide-line);
}

body .desktop-nav .nav-link small {
    margin-right: 0.35rem;
    color: var(--guide-blue);
    font-size: 0.62rem;
}

body .desktop-nav .nav-link:hover {
    color: #171714;
    background: var(--guide-acid);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    color: var(--guide-ink) !important;
    background: var(--guide-surface);
    border: 2px solid var(--guide-line);
    border-radius: 0;
}

.theme-toggle:hover {
    color: #171714 !important;
    background: var(--guide-yellow);
    transform: none;
}

.offcanvas {
    border-right: 2px solid var(--guide-line) !important;
}

.offcanvas-header {
    background: var(--guide-acid);
    border-bottom: 2px solid var(--guide-line);
}

[data-bs-theme="dark"] .offcanvas-header {
    color: #171714;
}

.offcanvas-body .nav-link {
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}

/* Graphic buttons and fields */
.btn {
    border: 2px solid var(--guide-line) !important;
    border-radius: 0;
    box-shadow: 3px 3px 0 var(--guide-shadow);
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.btn:hover,
.btn:focus {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--guide-shadow);
}

.btn-primary {
    color: #ffffff;
    background: var(--guide-blue);
}

[data-bs-theme="dark"] .btn-primary {
    color: #101010;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #171714;
    background: var(--guide-acid);
    border-color: var(--guide-line) !important;
}

.btn-ink {
    color: var(--guide-ink);
    background: transparent;
}

.btn-ink:hover {
    color: #ffffff;
    background: #171714;
}

[data-bs-theme="dark"] .btn-ink:hover {
    color: #171714;
    background: var(--guide-ink);
}

.btn-outline-primary {
    color: var(--guide-ink);
    background: var(--guide-surface);
    border-color: var(--guide-line);
}

.btn-outline-primary:hover {
    color: #171714;
    background: var(--guide-acid);
    border-color: var(--guide-line);
}

.form-control,
.form-select {
    min-height: 48px;
    border: 2px solid var(--guide-line);
    border-radius: 0;
    box-shadow: none;
}

.filter-bar {
    padding: 0.65rem;
    background: var(--guide-ink);
    border: 0;
    border-radius: 0;
    box-shadow: 6px 6px 0 var(--guide-blue);
}

.filter-bar .form-control,
.filter-bar .form-select {
    color: var(--guide-ink);
    background: var(--guide-surface);
    border-color: var(--guide-line);
}

/* Editorial home cover */
.editorial-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    min-height: 660px;
    border: 2px solid var(--guide-line);
    box-shadow: 10px 10px 0 var(--guide-shadow);
}

.hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
    overflow: hidden;
    background: var(--guide-acid);
    color: #171714;
}

.hero-copy::after {
    content: '';
    position: absolute;
    right: -95px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 3px solid #171714;
    border-radius: 50%;
    box-shadow: 0 0 0 24px var(--guide-acid), 0 0 0 27px #171714, 0 0 0 51px var(--guide-acid), 0 0 0 54px #171714;
    opacity: 0.9;
}

.issue-line {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    left: 1.25rem;
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #171714;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    position: relative;
    z-index: 1;
    color: #171714;
}

.hero-copy h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 1.5rem;
    color: #171714;
    font-size: clamp(3.7rem, 7.2vw, 7.3rem);
    line-height: 0.82;
    letter-spacing: -0.085em;
    text-transform: uppercase;
}

.hero-highlight {
    display: inline-block;
    color: var(--guide-blue);
    -webkit-text-stroke: 2px #171714;
}

.hero-intro {
    position: relative;
    z-index: 1;
    max-width: 590px;
    margin-bottom: 2rem;
    color: #292921;
    font-size: 1.1rem;
    line-height: 1.55;
}

.hero-copy .hero-buttons {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    min-height: 540px;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    overflow: hidden;
    background: var(--guide-blue);
}

.hero-photo {
    width: 100%;
    height: 100%;
    min-height: 570px;
    background-position: center;
    background-size: cover;
    border: 2px solid #171714;
    filter: saturate(1.08) contrast(1.03);
}

.hero-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 148px;
    height: 148px;
    display: grid;
    place-content: center;
    gap: 0.1rem;
    color: #171714;
    background: var(--guide-coral);
    border: 2px solid #171714;
    border-radius: 50%;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-9deg);
    box-shadow: 5px 5px 0 #171714;
}

.hero-caption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #171714;
    background: var(--guide-yellow);
    border: 2px solid #171714;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.flavour-strip {
    margin: 4rem 0 6rem;
    overflow: hidden;
    color: #ffffff;
    background: var(--guide-blue);
    border-block: 2px solid var(--guide-line);
    box-shadow: 0 5px 0 var(--guide-acid);
}

.flavour-strip > div {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 1.5rem;
    font-family: 'Syne', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flavour-strip i {
    color: var(--guide-acid);
    font-size: 0.65em;
}

.home-section {
    padding-block: 4rem;
    border-top: 2px solid var(--guide-line);
}

.section-number {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.65rem;
    color: #171714;
    background: var(--guide-coral);
    border: 1px solid #171714;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(2.6rem, 6vw, 5.7rem);
    line-height: 0.88;
    text-transform: uppercase;
}

.view-all-link {
    padding: 0.8rem 1rem;
    color: var(--guide-ink);
    background: var(--guide-surface);
    border: 2px solid var(--guide-line);
    box-shadow: 3px 3px 0 var(--guide-shadow);
    text-transform: uppercase;
}

.view-all-link:hover {
    color: #171714;
    background: var(--guide-acid);
}

/* Asymmetric recipe wall */
.home-recipe-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 1.25rem;
}

.recipe-grid-item {
    grid-column: span 4;
}

.recipe-grid-item:first-child {
    grid-column: span 5;
    grid-row: span 2;
}

.recipe-grid-item:nth-child(2),
.recipe-grid-item:nth-child(3) {
    grid-column: span 3;
}

.recipe-grid-item:nth-child(4),
.recipe-grid-item:nth-child(5) {
    grid-column: span 4;
}

.recipe-grid-item:first-child .recipe-card-img,
.recipe-grid-item:first-child .recipe-card-placeholder {
    height: 390px;
}

.card {
    color: var(--guide-ink);
    background: var(--guide-surface);
    border: 2px solid var(--guide-line);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(23, 23, 20, 0.16);
}

[data-bs-theme="dark"] .card {
    box-shadow: 4px 4px 0 #080807;
}

.card-interactive,
.card-interactive:hover {
    transform: none;
}

.card-interactive {
    position: relative;
    border: 2px solid var(--guide-line);
    transition: background-color 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.card-interactive:hover {
    background: color-mix(in srgb, var(--guide-acid) 24%, var(--guide-surface));
    border-color: var(--guide-line);
    box-shadow: 8px 8px 0 var(--guide-shadow) !important;
}

.card-interactive:hover .card-img-top {
    transform: none;
}

.card-index,
.restaurant-index {
    position: absolute;
    z-index: 3;
    top: 0.7rem;
    left: 0.7rem;
    min-width: 38px;
    padding: 0.35rem 0.45rem;
    color: #171714;
    background: var(--guide-acid);
    border: 2px solid #171714;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
}

.recipe-card-img,
.recipe-card-placeholder {
    height: 230px;
    border-bottom: 2px solid var(--guide-line);
}

.home-recipe-grid .card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.035em;
}

.category-label {
    color: var(--guide-blue) !important;
}

/* Restaurant stories */
.restaurant-card-container,
.restaurant-list-card {
    position: relative;
    padding: 0;
    border: 2px solid var(--guide-line) !important;
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--guide-shadow) !important;
}

.restaurant-card-container:nth-child(even) {
    background: color-mix(in srgb, var(--guide-blue) 12%, var(--guide-surface));
}

.restaurant-card-container .row,
.restaurant-list-card .row {
    min-height: 320px;
}

.restaurant-card-img,
.restaurant-list-card img {
    border-radius: 0;
    border-right: 2px solid var(--guide-line);
}

.restaurant-card-container .card-body,
.restaurant-list-card .card-body {
    padding: clamp(1.5rem, 4vw, 3rem) !important;
}

.restaurant-card-container h2,
.restaurant-list-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.restaurant-index {
    top: 1rem;
    left: 1rem;
    background: var(--guide-coral);
}

.badge {
    color: var(--guide-ink) !important;
    background: var(--guide-yellow) !important;
    border: 1px solid var(--guide-line) !important;
    border-radius: 0;
}

/* Index pages */
.page-section {
    padding-block: clamp(2rem, 5vw, 5rem);
}

.page-header {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--guide-acid);
    border: 2px solid var(--guide-line);
    box-shadow: 8px 8px 0 var(--guide-shadow);
}

.page-header::before {
    content: 'FIELD NOTES';
    display: block;
    margin-bottom: 1.2rem;
    color: #171714;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.page-header h1,
.page-header p,
.page-header .eyebrow {
    color: #171714 !important;
}

.page-header h1 {
    font-size: clamp(3rem, 7vw, 6.6rem);
    text-transform: uppercase;
}

.page-header .filter-bar {
    position: relative;
    z-index: 2;
}

.page-section > .row.row-cols-1 .card-header,
.page-section > .row .card-header {
    background: var(--guide-acid) !important;
    border-bottom: 2px solid var(--guide-line) !important;
}

.listing-card-img {
    border-bottom: 2px solid var(--guide-line);
}

.pagination .page-link,
.pagination .page-item.active .page-link {
    color: var(--guide-ink);
    background: var(--guide-surface);
    border: 2px solid var(--guide-line);
    border-radius: 0;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    color: #171714;
    background: var(--guide-acid);
}

/* Detail spreads */
.breadcrumb {
    padding: 0.75rem 1rem;
    border: 1px solid var(--guide-line);
    background: var(--guide-surface);
}

.detail-image-wrap {
    border: 2px solid var(--guide-line);
    border-radius: 0;
    box-shadow: 10px 10px 0 var(--guide-blue);
}

.detail-title-row {
    margin-top: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--guide-line);
}

.detail-title-row h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.detail-article > .lead {
    max-width: 760px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.detail-panel {
    border: 2px solid var(--guide-line) !important;
    border-radius: 0;
    box-shadow: 5px 5px 0 var(--guide-shadow);
}

.ingredients-panel {
    background: var(--guide-acid) !important;
}

.ingredients-panel,
.ingredients-panel h4,
.ingredients-panel .list-group-item,
.ingredients-panel .text-muted {
    color: #171714 !important;
}

.instructions-panel {
    background: var(--guide-surface) !important;
}

/* Graphic footer */
.site-footer {
    padding: clamp(3rem, 7vw, 6rem) 0;
    color: #f4f1e8;
    background: #171714;
    border-top: 8px solid var(--guide-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    align-items: end;
    gap: clamp(2rem, 6vw, 6rem);
}

.footer-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--guide-acid);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-brand {
    display: block;
    color: #f4f1e8;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.76;
    text-transform: uppercase;
}

.footer-note {
    max-width: 320px;
    margin: 0;
    color: #aaa79f;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.footer-nav a {
    color: #f4f1e8;
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

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

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

    .hero-copy {
        min-height: 600px;
    }

    .hero-visual {
        min-height: 520px;
    }

    .hero-photo {
        min-height: 470px;
    }

    .home-recipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-grid-item,
    .recipe-grid-item:first-child,
    .recipe-grid-item:nth-child(2),
    .recipe-grid-item:nth-child(3),
    .recipe-grid-item:nth-child(4),
    .recipe-grid-item:nth-child(5) {
        grid-column: span 1;
        grid-row: auto;
    }

    .recipe-grid-item:first-child .recipe-card-img,
    .recipe-grid-item:first-child .recipe-card-placeholder {
        height: 230px;
    }

    .recipe-grid-item:last-child {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-nav {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    body .navbar {
        min-height: 70px;
    }

    .navbar-container {
        min-height: 68px;
    }

    .navbar-center {
        text-align: left;
    }

    body .navbar-brand,
    body .navbar-brand.shrink {
        font-size: 1.05rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .editorial-hero {
        min-height: 0;
        box-shadow: 6px 6px 0 var(--guide-shadow);
    }

    .hero-copy {
        min-height: 570px;
        padding: 5.5rem 1.4rem 2.5rem;
    }

    .hero-copy h1 {
        font-size: clamp(3.35rem, 16vw, 5.4rem);
    }

    .hero-highlight {
        -webkit-text-stroke-width: 1px;
    }

    .hero-copy::after {
        opacity: 0.35;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 430px;
        padding: 1rem;
    }

    .hero-photo {
        min-height: 400px;
    }

    .hero-stamp {
        width: 120px;
        height: 120px;
    }

    .flavour-strip {
        margin: 3.5rem -1rem 5rem;
    }

    .home-section {
        padding-block: 3rem;
    }

    .section-heading {
        align-items: flex-end !important;
    }

    .section-heading h2 {
        font-size: clamp(2.35rem, 11vw, 4rem);
    }

    .restaurant-card-img,
    .restaurant-list-card img {
        border-right: 0;
        border-bottom: 2px solid var(--guide-line);
    }

    .restaurant-card-container .row,
    .restaurant-list-card .row {
        min-height: 0;
    }

    .page-header {
        padding: 1.5rem;
        box-shadow: 6px 6px 0 var(--guide-shadow);
    }

    .page-header h1 {
        font-size: clamp(2.7rem, 13vw, 4.5rem);
    }

    .detail-title-row h1 {
        font-size: clamp(2.7rem, 13vw, 4.5rem);
    }
}

@media (max-width: 575.98px) {
    .issue-line span:last-child {
        display: none;
    }

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

    .recipe-grid-item,
    .recipe-grid-item:last-child {
        grid-column: 1;
    }

    .section-heading {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .view-all-link {
        align-self: flex-start;
    }

    .filter-bar {
        box-shadow: 4px 4px 0 var(--guide-blue);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-nav {
        grid-column: auto;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Final cascade: minimal and chic */
:root {
    --guide-paper: #f6f4ef;
    --guide-surface: #fcfbf8;
    --guide-ink: #20201d;
    --guide-muted: #77736c;
    --guide-line: #d8d3ca;
    --guide-acid: #fcfbf8;
    --guide-blue: #66705a;
    --guide-coral: #e4e8df;
    --guide-yellow: #eee9df;
    --guide-shadow: transparent;
    --bg-body: #f6f4ef;
    --bg-surface: #fcfbf8;
    --bg-soft: #eeebe4;
    --text-primary: #20201d;
    --text-secondary: #77736c;
    --border-color: #d8d3ca;
    --color-primary: #20201d;
    --color-primary-border: #20201d;
    --color-primary-fg: #ffffff;
    --accent-color: #66705a;
    --accent-soft: #e4e8df;
    --card-shadow: none;
    --shadow-soft: none;
}

[data-bs-theme="dark"] {
    --guide-paper: #171715;
    --guide-surface: #1e1e1b;
    --guide-ink: #efede7;
    --guide-muted: #aaa69e;
    --guide-line: #3a3934;
    --guide-acid: #1e1e1b;
    --guide-blue: #a8b398;
    --guide-coral: #2a2f27;
    --guide-yellow: #292824;
    --guide-shadow: transparent;
    --bg-body: #171715;
    --bg-surface: #1e1e1b;
    --bg-soft: #292824;
    --text-primary: #efede7;
    --text-secondary: #aaa69e;
    --border-color: #3a3934;
    --color-primary: #efede7;
    --color-primary-border: #efede7;
    --color-primary-fg: #171715;
    --accent-color: #a8b398;
    --accent-soft: #2a2f27;
}

body,
[data-bs-theme="dark"] body {
    background-color: var(--guide-paper);
    background-image: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.footer-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.035em;
}

body .navbar {
    min-height: 76px;
    background: color-mix(in srgb, var(--guide-paper) 94%, transparent);
    border-bottom: 1px solid var(--guide-line);
    box-shadow: none;
}

.navbar-container { min-height: 74px; }

.navbar-logo {
    width: auto;
    height: 43px;
    padding: 0;
    background: transparent;
    border: 0;
}

body .navbar-brand,
body .navbar-brand.shrink {
    font-size: clamp(1.45rem, 2.2vw, 1.8rem);
    text-transform: none;
}

.navbar-brand span { color: var(--guide-blue); }

body .desktop-nav {
    gap: 1.8rem;
    border: 0;
}

body .desktop-nav .nav-link {
    padding: 0.5rem 0;
    color: var(--guide-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body .desktop-nav .nav-link + .nav-link { border: 0; }
body .desktop-nav .nav-link small { display: none; }

body .desktop-nav .nav-link:hover {
    color: var(--guide-ink);
    background: transparent;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    color: var(--guide-ink) !important;
    background: transparent;
    border: 1px solid var(--guide-line);
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--guide-blue) !important;
    background: var(--guide-surface);
}

.btn {
    border: 1px solid var(--guide-ink) !important;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.btn:hover,
.btn:focus {
    transform: none;
    box-shadow: none;
}

.btn-primary {
    color: var(--color-primary-fg);
    background: var(--guide-ink);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--guide-surface);
    background: var(--guide-blue);
    border-color: var(--guide-blue) !important;
}

.btn-ink,
.btn-outline-primary {
    color: var(--guide-ink);
    background: transparent;
}

.btn-ink:hover,
.btn-outline-primary:hover {
    color: var(--guide-surface);
    background: var(--guide-ink);
}

.form-control,
.form-select {
    border: 1px solid var(--guide-line);
    background: var(--guide-surface);
}

.filter-bar {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.filter-bar .form-control,
.filter-bar .form-select {
    color: var(--guide-ink);
    background: var(--guide-surface);
    border-color: var(--guide-line);
}

.editorial-hero {
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
    min-height: 650px;
    background: var(--guide-surface);
    border: 1px solid var(--guide-line);
    box-shadow: none;
}

.hero-copy {
    padding: clamp(3rem, 6vw, 6rem);
    color: var(--guide-ink);
    background: var(--guide-surface);
}

.hero-copy::after,
.hero-stamp { display: none; }

.issue-line {
    color: var(--guide-muted);
    border-color: var(--guide-line);
    font-weight: 500;
}

.hero-copy .eyebrow { color: var(--guide-blue); }

.hero-copy h1 {
    color: var(--guide-ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(4.25rem, 7.3vw, 7.5rem);
    font-weight: 500;
    line-height: 0.82;
    letter-spacing: -0.07em;
    text-transform: none;
}

.hero-highlight {
    color: var(--guide-blue);
    font-style: italic;
    -webkit-text-stroke: 0;
}

.hero-intro {
    color: var(--guide-muted);
    font-size: 1.05rem;
}

.hero-visual {
    min-height: 560px;
    padding: 0;
    background: var(--guide-surface);
    border-left: 1px solid var(--guide-line);
}

.hero-photo {
    min-height: 650px;
    border: 0;
    filter: saturate(0.78) contrast(0.98);
}

.hero-caption {
    color: #fff;
    background: rgba(20, 20, 18, 0.72);
    border: 0;
    backdrop-filter: blur(8px);
}

.flavour-strip {
    margin: 3.5rem 0 7rem;
    color: var(--guide-muted);
    background: transparent;
    border-block: 1px solid var(--guide-line);
    box-shadow: none;
}

.flavour-strip > div {
    width: 100%;
    justify-content: space-around;
    padding: 0.9rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
}

.flavour-strip i { color: var(--guide-blue); }

.home-section {
    padding-block: clamp(2rem, 4vw, 3.5rem);
    border-top: 1px solid var(--guide-line);
}

.section-number {
    padding: 0;
    color: var(--guide-blue);
    background: transparent;
    border: 0;
    font-weight: 500;
}

.section-heading h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.2rem, 6.5vw, 6.2rem);
    font-weight: 500;
    line-height: 0.88;
    text-transform: none;
}

.view-all-link {
    padding: 0 0 0.35rem;
    color: var(--guide-ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--guide-ink);
    box-shadow: none;
    font-weight: 500;
}

.view-all-link:hover {
    color: var(--guide-blue);
    background: transparent;
    border-color: var(--guide-blue);
}

.card,
.card-interactive {
    color: var(--guide-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.card-interactive:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none !important;
    transform: none;
}

.card-interactive .card-img-top {
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.card-interactive:hover .card-img-top {
    opacity: 0.88;
    filter: saturate(0.82);
    transform: none;
}

.card-index,
.restaurant-index {
    color: #fff;
    background: rgba(20, 20, 18, 0.72);
    border: 0;
    backdrop-filter: blur(6px);
}

.recipe-card-img,
.recipe-card-placeholder,
.listing-card-img { border: 0; }

.home-recipe-grid .card-body { padding: 1.15rem 0 0 !important; }
.home-recipe-grid .card-footer { padding: 0.65rem 0 0 !important; }

.home-recipe-grid .card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.category-label { color: var(--guide-blue) !important; }

.restaurant-card-container,
.restaurant-list-card {
    background: var(--guide-surface);
    border: 1px solid var(--guide-line) !important;
    box-shadow: none !important;
}

.restaurant-card-container:nth-child(even) { background: var(--guide-surface); }

.restaurant-card-img,
.restaurant-list-card img {
    border: 0;
    border-right: 1px solid var(--guide-line);
    filter: saturate(0.85);
}

.restaurant-card-container h2,
.restaurant-list-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}

.badge,
.bg-warning,
.bg-warning.text-dark {
    color: var(--guide-ink) !important;
    background: var(--guide-yellow) !important;
    border: 1px solid var(--guide-line) !important;
    border-radius: 999px;
}

.page-header {
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--guide-line);
    box-shadow: none;
}

.page-header::before {
    color: var(--guide-blue);
    font-weight: 500;
}

.page-header h1,
.page-header p,
.page-header .eyebrow { color: var(--guide-ink) !important; }

.page-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    text-transform: none;
}

.page-section > .row.row-cols-1 .card-header,
.page-section > .row .card-header {
    color: var(--guide-blue);
    background: transparent !important;
    border-bottom: 1px solid var(--guide-line) !important;
}

.pagination .page-link,
.pagination .page-item.active .page-link {
    color: var(--guide-ink);
    background: transparent;
    border: 1px solid var(--guide-line);
    border-radius: 50%;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    color: var(--guide-surface);
    background: var(--guide-ink);
}

.breadcrumb {
    padding: 0;
    background: transparent;
    border: 0;
}

.detail-image-wrap {
    border: 0;
    box-shadow: none;
}

.detail-title-row { border-color: var(--guide-line); }

.detail-title-row h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    text-transform: none;
}

.detail-panel {
    background: var(--guide-surface) !important;
    border: 1px solid var(--guide-line) !important;
    box-shadow: none;
}

.ingredients-panel { background: var(--guide-coral) !important; }

.ingredients-panel,
.ingredients-panel h4,
.ingredients-panel .list-group-item,
.ingredients-panel .text-muted { color: var(--guide-ink) !important; }

.site-footer {
    color: #eeeae2;
    background: #20201d;
    border-top: 0;
}

.footer-label { color: #aeb5a3; }

.footer-brand {
    color: #f3f0e9;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    text-transform: none;
}

.footer-nav a {
    color: #eeeae2;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
}

.footer-nav a:hover { color: #b4c19f; }

@media (max-width: 991.98px) {
    .hero-visual {
        border-top: 1px solid var(--guide-line);
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .editorial-hero { box-shadow: none; }

    .hero-copy {
        min-height: 540px;
        padding: 5rem 1.5rem 2.5rem;
    }

    .hero-copy h1 {
        font-size: clamp(3.8rem, 17vw, 5.5rem);
    }

    .hero-visual { padding: 0; }

    .restaurant-card-img,
    .restaurant-list-card img {
        border-right: 0;
        border-bottom: 1px solid var(--guide-line);
    }

    .page-header {
        padding-inline: 0;
        box-shadow: none;
    }
}

@media (max-width: 575.98px) {
    .flavour-strip { margin-inline: -1rem; }

    .flavour-strip > div {
        gap: 0.8rem;
        padding-inline: 1rem;
        font-size: 0.58rem;
    }
}

/* =====================================================================
   Calm interaction and motion system
   ===================================================================== */
:root {
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-soft: cubic-bezier(0.33, 1, 0.68, 1);
    --motion-fast: 220ms;
    --motion-medium: 480ms;
    --motion-slow: 760ms;
}

.animate-fade-in-up {
    animation: none;
}

/* Navigation gains quiet depth after leaving the top of the page. */
body .navbar {
    transition:
        min-height var(--motion-medium) var(--motion-ease),
        background-color var(--motion-medium) ease,
        border-color var(--motion-medium) ease,
        box-shadow var(--motion-medium) ease;
}

body .navbar.is-scrolled {
    background: color-mix(in srgb, var(--guide-paper) 88%, transparent);
    box-shadow: 0 10px 35px rgba(25, 24, 21, 0.07);
    backdrop-filter: blur(16px);
}

body .desktop-nav .nav-link {
    position: relative;
}

body .desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0.2rem;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 360ms var(--motion-ease);
}

body .desktop-nav .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.theme-toggle i {
    display: inline-block;
    transition: transform var(--motion-medium) var(--motion-ease);
}

.theme-toggle:hover i {
    transform: rotate(12deg);
}

/* Consistent tactile feedback without layout movement. */
.btn {
    overflow: hidden;
    transition:
        color 300ms ease,
        background-color 300ms ease,
        border-color 300ms ease,
        opacity 300ms ease;
}

.btn i,
.view-all-link i {
    display: inline-block;
    transition: transform 360ms var(--motion-ease);
}

.btn:hover i,
.view-all-link:hover i {
    transform: translate3d(3px, -2px, 0);
}

.recipe-share-button:hover i {
    transform: rotate(-8deg) scale(1.04);
}

.view-all-link {
    transition: color 300ms ease, border-color 300ms ease;
}

.form-control,
.form-select {
    transition:
        color 250ms ease,
        background-color 250ms ease,
        border-color 250ms ease,
        box-shadow 350ms ease;
}

.form-control:hover,
.form-select:hover {
    border-color: color-mix(in srgb, var(--guide-ink) 48%, var(--guide-line));
}

.card-interactive {
    transition:
        color 350ms ease,
        opacity 350ms ease;
}

.card-interactive .card-img-top {
    transform: scale(1);
    transform-origin: center;
    transition:
        transform 650ms var(--motion-ease),
        opacity 420ms ease,
        filter 520ms ease;
}

.card-interactive:hover .card-img-top {
    transform: scale(1.018);
    opacity: 0.92;
    filter: saturate(0.9);
}

.card-interactive .card-title {
    transition: color 300ms ease;
}

.card-interactive:hover .card-title {
    color: var(--guide-blue);
}

.restaurant-card-container,
.restaurant-list-card {
    transition:
        border-color 380ms ease,
        background-color 380ms ease;
}

.restaurant-card-container:hover,
.restaurant-list-card:hover {
    border-color: color-mix(in srgb, var(--guide-blue) 42%, var(--guide-line)) !important;
}

.restaurant-card-container img,
.restaurant-list-card img,
.detail-image-wrap > img {
    transition: filter 600ms ease, opacity 450ms ease;
}

.restaurant-card-container:hover img,
.restaurant-list-card:hover img {
    filter: saturate(0.96);
}

.form-check-input,
.pagination .page-link,
.footer-nav a {
    transition:
        color 280ms ease,
        background-color 280ms ease,
        border-color 280ms ease,
        opacity 280ms ease;
}

/* Staggered homepage arrival: one calm sequence, then fully static. */
.motion-ready .editorial-hero {
    animation: hero-settle 900ms var(--motion-ease) both;
}

.motion-ready .issue-line {
    animation: quiet-fade 650ms 120ms var(--motion-ease) both;
}

.motion-ready .hero-copy h1 {
    animation: calm-rise 850ms 170ms var(--motion-ease) both;
}

.motion-ready .hero-intro {
    animation: calm-rise 780ms 290ms var(--motion-ease) both;
}

.motion-ready .hero-buttons {
    animation: calm-rise 720ms 390ms var(--motion-ease) both;
}

.motion-ready .hero-visual {
    animation: image-arrival 1050ms 80ms var(--motion-ease) both;
}

@keyframes hero-settle {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes quiet-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes calm-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes image-arrival {
    from {
        opacity: 0;
        clip-path: inset(0 0 8% 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Scroll reveals are added by JavaScript so content stays visible without JS. */
.motion-ready .motion-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 680ms var(--motion-soft),
        transform 760ms var(--motion-ease);
    transition-delay: calc(var(--reveal-order, 0) * 55ms);
}

.motion-ready .motion-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* JavaScript only changes a CSS variable; transforms remain GPU-friendly. */
.parallax-media {
    --parallax-y: 0px;
    transform: scale(1.045) translate3d(0, var(--parallax-y), 0);
    transform-origin: center;
    transition: transform 160ms linear, filter 600ms ease;
    will-change: transform;
}

.hero-photo.parallax-media {
    transform: scale(1.055) translate3d(0, var(--parallax-y), 0);
}

.detail-image-wrap {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .motion-ready .motion-reveal {
        transform: translate3d(0, 8px, 0);
        transition-duration: 480ms;
        transition-delay: calc(var(--reveal-order, 0) * 30ms);
    }

    .motion-ready .motion-reveal.is-visible {
        transform: translate3d(0, 0, 0);
    }

    .parallax-media,
    .hero-photo.parallax-media {
        transform: none;
        will-change: auto;
    }

    .motion-ready .hero-copy h1,
    .motion-ready .hero-intro,
    .motion-ready .hero-buttons,
    .motion-ready .hero-visual {
        animation-duration: 540ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-ready .editorial-hero,
    .motion-ready .issue-line,
    .motion-ready .hero-copy h1,
    .motion-ready .hero-intro,
    .motion-ready .hero-buttons,
    .motion-ready .hero-visual {
        animation: none;
    }

    .motion-ready .motion-reveal,
    .motion-ready .motion-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .parallax-media,
    .hero-photo.parallax-media {
        transform: none;
        transition: none;
        will-change: auto;
    }

    .card-interactive:hover .card-img-top,
    .theme-toggle:hover i,
    .btn:hover i,
    .view-all-link:hover i {
        transform: none;
    }
}

/* Active homepage recipe-card interaction */
.home-recipe-grid .card-interactive {
    padding: 0.75rem;
    background: var(--guide-surface);
    border: 1px solid var(--guide-line);
    border-radius: 3px;
    box-shadow:
        0 1px 2px rgba(28, 27, 24, 0.025),
        0 5px 16px rgba(28, 27, 24, 0.035) !important;
    transform: translate3d(0, 0, 0);
    transition:
        transform 600ms var(--motion-ease),
        box-shadow 600ms var(--motion-ease),
        border-color 420ms ease,
        background-color 420ms ease;
}

.home-recipe-grid .card-interactive .card-body {
    padding: 1.2rem 0.35rem 0.35rem !important;
}

.home-recipe-grid .card-interactive .card-footer {
    padding: 0.6rem 0.35rem 0.35rem !important;
}

.home-recipe-grid .card-interactive .card-img-top {
    box-shadow: none;
    transition:
        transform 700ms var(--motion-ease),
        opacity 500ms ease,
        filter 600ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .home-recipe-grid .card-interactive:hover {
        background: color-mix(in srgb, var(--guide-surface) 96%, var(--guide-coral));
        border-color: color-mix(in srgb, var(--guide-blue) 36%, var(--guide-line));
        box-shadow:
            0 4px 10px rgba(28, 27, 24, 0.035),
            0 18px 42px rgba(28, 27, 24, 0.095) !important;
        transform: translate3d(0, -5px, 0);
    }

    .home-recipe-grid .card-interactive:hover .card-img-top {
        box-shadow: none;
        transform: scale(1.008);
        opacity: 0.97;
        filter: saturate(0.96);
    }
}

[data-bs-theme="dark"] .home-recipe-grid .card-interactive {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 6px 18px rgba(0, 0, 0, 0.12) !important;
}

@media (hover: hover) and (pointer: fine) {
    [data-bs-theme="dark"] .home-recipe-grid .card-interactive:hover {
        box-shadow:
            0 5px 12px rgba(0, 0, 0, 0.18),
            0 20px 46px rgba(0, 0, 0, 0.28) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-recipe-grid .card-interactive,
    .home-recipe-grid .card-interactive:hover {
        transform: none;
        transition:
            box-shadow 280ms ease,
            border-color 280ms ease,
            background-color 280ms ease;
    }

    .home-recipe-grid .card-interactive:hover .card-img-top {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .home-recipe-grid .card-interactive {
        padding: 0.6rem;
    }

    .home-recipe-grid .card-interactive .card-body {
        padding: 1rem 0.25rem 0.25rem !important;
    }
}

/* Recipes index and shared filtering */
.page-header::before {
    display: none;
    content: none;
}

.filter-bar {
    padding: 0.45rem;
    gap: 0.45rem !important;
    background: var(--guide-surface);
    border: 1px solid var(--guide-line);
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(28, 27, 24, 0.055);
    transition:
        border-color 350ms ease,
        box-shadow 420ms var(--motion-ease);
}

.filter-bar:focus-within {
    border-color: color-mix(in srgb, var(--guide-blue) 48%, var(--guide-line));
    box-shadow: 0 10px 28px rgba(28, 27, 24, 0.075);
}

.filter-bar .form-control,
.filter-bar .form-select {
    min-height: 44px;
    padding-inline: 0.85rem;
    color: var(--guide-ink);
    background-color: color-mix(in srgb, var(--guide-surface) 96%, var(--guide-paper));
    border: 1px solid var(--guide-line);
    border-radius: 2px;
    font-size: 0.86rem;
}

.filter-bar .form-control::placeholder {
    color: var(--guide-muted);
    opacity: 0.78;
}

.filter-bar .form-control:hover,
.filter-bar .form-select:hover {
    border-color: color-mix(in srgb, var(--guide-ink) 38%, var(--guide-line));
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--guide-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--guide-blue) 14%, transparent);
}

.filter-bar .btn-primary {
    min-width: 46px;
    min-height: 44px;
    padding-inline: 0.85rem !important;
    color: var(--guide-surface);
    background: var(--guide-ink);
    border-color: var(--guide-ink) !important;
}

.filter-bar .btn-primary:hover,
.filter-bar .btn-primary:focus {
    color: #fff;
    background: var(--guide-blue);
    border-color: var(--guide-blue) !important;
}

[data-bs-theme="dark"] .filter-bar {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

[data-bs-theme="dark"] .filter-bar:focus-within {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

[data-bs-theme="dark"] .filter-bar .btn-primary {
    color: #171715;
}

.filter-bar .text-danger {
    color: var(--guide-blue) !important;
}

.recipe-list-card {
    position: relative;
    padding: 0.75rem;
    background: var(--guide-surface);
    border: 1px solid var(--guide-line);
    border-radius: 3px;
    box-shadow:
        0 1px 2px rgba(28, 27, 24, 0.025),
        0 5px 16px rgba(28, 27, 24, 0.035);
    transform: translate3d(0, 0, 0);
    transition:
        transform 600ms var(--motion-ease),
        box-shadow 600ms var(--motion-ease),
        border-color 420ms ease,
        background-color 420ms ease;
}

.recipe-list-card .listing-card-img {
    height: clamp(230px, 24vw, 285px);
    box-shadow: none;
    transition:
        transform 700ms var(--motion-ease),
        opacity 500ms ease,
        filter 600ms ease;
}

.recipe-list-card .card-body {
    padding: 1.2rem 0.35rem 0.35rem !important;
}

.recipe-list-card .card-footer {
    padding: 0.6rem 0.35rem 0.35rem !important;
}

.recipe-list-card .card-title {
    margin-top: 0.35rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.recipe-list-card .card-text {
    color: var(--guide-muted);
}

@media (hover: hover) and (pointer: fine) {
    .recipe-list-card:hover {
        background: color-mix(in srgb, var(--guide-surface) 96%, var(--guide-coral));
        border-color: color-mix(in srgb, var(--guide-blue) 36%, var(--guide-line));
        box-shadow:
            0 4px 10px rgba(28, 27, 24, 0.035),
            0 18px 42px rgba(28, 27, 24, 0.095) !important;
        transform: translate3d(0, -5px, 0);
    }

    .recipe-list-card:hover .listing-card-img {
        transform: scale(1.008);
        opacity: 0.97;
        filter: saturate(0.96);
    }
}

[data-bs-theme="dark"] .recipe-list-card {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 6px 18px rgba(0, 0, 0, 0.12);
}

@media (hover: hover) and (pointer: fine) {
    [data-bs-theme="dark"] .recipe-list-card:hover {
        box-shadow:
            0 5px 12px rgba(0, 0, 0, 0.18),
            0 20px 46px rgba(0, 0, 0, 0.28) !important;
    }
}

@media (max-width: 767.98px) {
    .filter-bar {
        padding: 0.6rem;
    }

    .filter-bar .form-control,
    .filter-bar .form-select,
    .filter-bar .btn-primary {
        width: 100%;
        min-width: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .recipe-list-card {
        padding: 0.6rem;
    }

    .recipe-list-card .listing-card-img {
        height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .recipe-list-card,
    .recipe-list-card:hover {
        transform: none;
        transition:
            box-shadow 280ms ease,
            border-color 280ms ease,
            background-color 280ms ease;
    }

    .recipe-list-card:hover .listing-card-img {
        transform: none;
    }
}

/* Active homepage responsive layout */
@media (max-width: 991.98px) {
    .editorial-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .hero-copy {
        width: 100%;
        min-width: 0;
        min-height: 560px;
        padding: 5.5rem clamp(1.5rem, 6vw, 3.5rem) 3.5rem;
    }

    .hero-visual {
        width: 100%;
        min-width: 0;
        min-height: 500px;
        border-top: 1px solid var(--guide-line);
        border-left: 0;
    }

    .hero-photo {
        width: 100%;
        min-height: 500px;
    }
}

@media (max-width: 767.98px) {
    .site-main {
        padding-inline: 1rem;
    }

    .editorial-hero {
        margin-bottom: 2.5rem !important;
    }

    .hero-copy {
        min-height: 500px;
        padding: 5rem 1.5rem 2.5rem;
    }

    .hero-copy h1 {
        max-width: 100%;
        margin-bottom: 1.35rem;
        font-size: clamp(3.6rem, 16vw, 5.25rem);
        line-height: 0.86;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-intro {
        max-width: 34rem;
        margin-bottom: 1.75rem;
        font-size: 1rem;
    }

    .hero-visual,
    .hero-photo {
        min-height: 420px;
    }

    .hero-photo {
        background-position: center 58%;
    }

    .home-section {
        padding-block: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .hero-copy {
        min-height: 0;
        padding: 5rem 1.2rem 2.25rem;
    }

    .issue-line {
        top: 1.25rem;
        right: 1.2rem;
        left: 1.2rem;
    }

    .hero-copy h1 {
        font-size: clamp(3.3rem, 16.5vw, 4.8rem);
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual,
    .hero-photo {
        min-height: 380px;
    }

    .section-heading h2 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }
}
