:root {
    --cream: #f6f0e6;
    --paper: #fffdf8;
    --ink: #2f2925;
    --muted: #756b63;
    --wine: #7b2f38;
    --wine-dark: #5f2029;
    --gold: #c29b61;
    --line: rgba(47, 41, 37, 0.14);
    --shadow: 0 22px 65px rgba(70, 48, 35, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 5%, rgba(194, 155, 97, 0.14), transparent 26rem),
        var(--cream);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: Georgia, "Times New Roman", serif;
}

.cookbook-navbar {
    position: relative;
    z-index: 20;
    padding: 1rem 0;
    background: rgba(246, 240, 230, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
}

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

.brand-mark {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: var(--wine);
    color: white;
    font-family: Georgia, serif;
}

.nav-link {
    color: var(--ink);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--wine);
}

.language-switcher {
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.language-link {
    min-width: 2.3rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.language-link.active {
    background: var(--ink);
    color: white;
}

.btn-cookbook {
    border: 1px solid var(--wine);
    background: var(--wine);
    color: white;
    font-weight: 700;
}

.btn-cookbook:hover,
.btn-cookbook:focus {
    border-color: var(--wine-dark);
    background: var(--wine-dark);
    color: white;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 0 5.5rem;
}

.hero-section::after {
    position: absolute;
    top: 2rem;
    right: -8rem;
    width: 25rem;
    height: 25rem;
    border: 1px solid rgba(123, 47, 56, 0.12);
    border-radius: 50%;
    content: "";
}

.eyebrow {
    margin-bottom: 0.85rem;
    color: var(--wine);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-section h1 {
    margin-bottom: 1.4rem;
    font-weight: 700;
}

.hero-title-main,
.hero-title-subtitle {
    display: block;
}

.hero-title-main {
    font-size: clamp(3.1rem, 7vw, 6.2rem);
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.hero-title-subtitle {
    max-width: 20ch;
    margin-top: 0.5rem;
    font-size: clamp(1.85rem, 3.4vw, 3.25rem);
    letter-spacing: -0.035em;
    line-height: 1.03;
}

.hero-copy {
    max-width: 43rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.search-panel {
    width: 100%;
    max-width: 64rem;
    margin-top: 2.1rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 16px 45px rgba(70, 48, 35, 0.08);
}

.search-panel .input-group {
    min-height: 3.75rem;
}

.search-panel .input-group-text,
.search-panel .form-control {
    border: 0;
    background: transparent;
}

.search-panel .input-group-text {
    padding-inline: 1rem;
    font-size: 1.35rem;
}

.search-panel .form-control {
    min-width: 12rem;
    padding-block: 0.8rem;
    font-size: 1.08rem;
}

.search-panel .form-select {
    flex: 0 0 15rem;
    max-width: 15rem;
    font-size: 1rem;
}

.search-panel .btn {
    min-width: 8rem;
    padding-inline: 1.6rem;
    font-size: 1rem;
}

.search-panel .form-control:focus {
    box-shadow: none;
}

.recipe-paper {
    position: relative;
    max-width: 30rem;
    margin-inline: auto;
    padding: 3.3rem 2.7rem 2.7rem;
    transform: rotate(1.4deg);
    border: 1px solid rgba(47, 41, 37, 0.12);
    border-radius: 0.2rem;
    background:
        linear-gradient(rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.96)),
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(47, 41, 37, 0.03) 30px 31px);
    box-shadow: var(--shadow);
}

.paper-pin {
    position: absolute;
    top: 1rem;
    left: 50%;
    width: 0.75rem;
    height: 0.75rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--wine);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.paper-kicker {
    margin-bottom: 0.65rem;
    color: var(--wine);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-align: center;
}

.recipe-paper h2 {
    margin-bottom: 1.8rem;
    font-size: 1.55rem;
    font-weight: 700;
    text-align: center;
}

.paper-author {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    color: var(--muted);
    font-family: Georgia, serif;
    font-size: 0.95rem;
    text-align: right;
}

.paper-rule {
    height: 1px;
    margin: 1.6rem 0 1.25rem;
    background: var(--ink);
    opacity: 0.4;
}

.paper-line {
    display: grid;
    grid-template-columns: 1.7rem 1fr;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    font-family: Georgia, serif;
}

.paper-line span:first-child {
    color: var(--wine);
}
.hero-cat-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 34rem;
    margin-inline: auto;
}

.hero-cat-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.category-section,
.recent-section {
    padding: 5.5rem 0;
}

.category-section {
    background: rgba(255, 253, 248, 0.5);
    border-block: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.4rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
}

.section-heading > p {
    max-width: 29rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 15rem;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--paper);
    box-shadow: 0 8px 30px rgba(70, 48, 35, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(123, 47, 56, 0.3);
    box-shadow: 0 18px 42px rgba(70, 48, 35, 0.1);
}

.category-symbol {
    margin-bottom: 2rem;
    color: var(--wine);
    font-family: Georgia, serif;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
}

.category-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.category-arrow {
    position: absolute;
    right: 1.4rem;
    bottom: 1.15rem;
    color: var(--gold);
    font-size: 1.5rem;
    transition: transform 180ms ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

.empty-state {
    padding: 4.2rem 1.5rem;
    border: 1px dashed rgba(123, 47, 56, 0.3);
    border-radius: 1.4rem;
    background: rgba(255, 253, 248, 0.58);
    text-align: center;
}

.empty-symbols {
    margin-bottom: 1rem;
    color: var(--wine);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    letter-spacing: 0.35rem;
}

.empty-state h3 {
    font-size: 1.7rem;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
    }

    .language-switcher {
        margin-block: 0.6rem;
    }

    .hero-section {
        padding-top: 4.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .search-panel .input-group {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .search-panel .form-control {
        min-width: 0;
    }

    .search-panel .form-select {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        margin-top: 0.6rem;
        border-radius: 0.65rem !important;
    }

    .search-panel .btn {
        grid-column: 1 / -1;
        min-width: 0;
        margin-top: 0.6rem;
        border-radius: 0.65rem !important;
    }
}
