:root {
    --sage: #8fa28a;
    --sage-deep: #5f715a;
    --sage-pale: #c7d3c0;
    --cream: #f7f4ed;
    --ochre: #c8a96b;
    --ochre-deep: #765a2f;
    --ink: #344333;
    --muted: #6e786b;
    --paper: #fffdf8;
    --line: rgba(95, 113, 90, 0.22);
    --shadow: 0 12px 32px rgba(52, 67, 51, 0.10);
    --radius: 18px;
}

html {
    background: var(--cream);
}

body {
    color: var(--ink);
    background: var(--cream);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.65;
}

body,
.title,
.subtitle,
.card,
.content,
.content strong,
.table,
a {
    color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.card-header-title {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration-color: var(--ochre);
    text-underline-offset: 0.2em;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

a:hover {
    color: var(--ochre-deep);
}

li {
    padding-bottom: 0.45em;
    font-size: 1.08rem;
}

#content,
#searchResults {
    min-height: calc(100vh - 164px);
    background-color: var(--cream);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(199, 211, 192, 0.42), transparent 28rem),
        radial-gradient(circle at 92% 24%, rgba(200, 169, 107, 0.13), transparent 24rem);
}

.section {
    padding: 3.5rem clamp(1.15rem, 4vw, 4rem);
}

.site-intro {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.site-intro::before {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin: 0 auto 1.25rem;
    border-radius: 10px;
    background: var(--ochre);
}

.site-intro .title {
    margin-bottom: 0.6rem;
    color: var(--ink);
    font-size: clamp(2.15rem, 5vw, 3.35rem);
    font-weight: 500;
}

.site-intro .subtitle {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
}

.navbar.is-primary {
    min-height: 88px;
    padding: 0 clamp(0.8rem, 3vw, 2.75rem);
    background: rgba(143, 162, 138, 0.97);
    border-bottom: 1px solid rgba(52, 67, 51, 0.14);
    box-shadow: 0 7px 22px rgba(52, 67, 51, 0.09);
}

.navbar-brand {
    align-items: center;
}

.navbar-brand > .navbar-item {
    padding: 0.4rem 1rem 0.4rem 1rem;
}

.navbar-brand .site-logo {
    display: block;
    width: 180px;
    height: auto;
    max-width: calc(100vw - 5.5rem);
    max-height: none;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    margin-right: 0.7rem;
    place-items: center;
    color: var(--ink);
    background: rgba(247, 244, 237, 0.58);
    border-radius: 50% 50% 46% 54%;
    transform: rotate(-5deg);
}

.brand-mark i {
    transform: rotate(5deg);
}

.brand-name {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.navbar.is-primary .navbar-item,
.navbar.is-primary .navbar-link,
.navbar.is-primary .navbar-burger {
    color: var(--ink) !important;
}

.navbar-start > a.navbar-item {
    position: relative;
    margin: 0 0.15rem;
    border-radius: 999px;
    font-weight: 700;
}

.navbar-start > a.navbar-item:hover,
.navbar-start > a.navbar-item:focus {
    color: var(--ink) !important;
    background: rgba(247, 244, 237, 0.58) !important;
}

.navbar-burger:hover {
    background: rgba(247, 244, 237, 0.35);
}

.navbar .field {
    margin-bottom: 0;
}

.input {
    color: var(--ink);
    background: rgba(255, 253, 248, 0.9);
    border-color: transparent;
    border-radius: 999px 0 0 999px;
    box-shadow: none;
}

.input:focus {
    border-color: var(--ochre-deep);
    box-shadow: 0 0 0 0.14em rgba(118, 90, 47, 0.16);
}

#searchTerm::placeholder {
    color: var(--muted);
    opacity: 0.9;
}

.button.is-primary,
a.button.is-primary {
    color: var(--paper);
    background: var(--sage-deep);
    border-color: transparent;
    font-weight: 700;
}

.navbar .button.is-primary {
    border-radius: 0 999px 999px 0;
}

.button.is-primary:hover,
.button.is-primary:focus,
a.button.is-primary:hover,
a.button.is-primary:focus {
    color: var(--ink);
    background: var(--ochre);
    border-color: transparent;
}

#content > .section > .columns.is-multiline > .column,
#searchResults > .columns.is-multiline > .column {
    display: flex;
}

.card {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(52, 67, 51, 0.15);
}

.card-image {
    overflow: hidden;
    background: var(--sage-pale);
}

.card-image img {
    transition: transform 400ms ease;
}

.card:hover .card-image img {
    transform: scale(1.025);
}

.card-content {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    padding: 1.5rem;
    background: transparent;
}

.card-content > .content {
    flex: 1;
}

.card .title {
    color: var(--ink);
    font-weight: 500;
}

.card .subtitle,
.tagline {
    color: var(--muted);
}

.tagline {
    text-align: center;
}

.card-content > .card-footer {
    margin: auto -1.5rem -1.5rem;
    border-top: 1px solid var(--line);
}

.tag-list {
    margin: 1rem 0;
}

.tag-list > i,
.recipe-date i {
    color: var(--ochre-deep);
}

.recipe-date {
    margin-top: 1rem;
    color: var(--muted);
}

.card-footer .button {
    min-height: 50px;
    border-radius: 0;
}

a.tag.is-primary {
    height: auto;
    padding: 0.28rem 0.72rem;
    color: var(--ink);
    background: var(--sage-pale);
    font-size: 0.82rem;
    font-weight: 700;
}

a.tag.is-primary:hover,
a.tag.is-primary:focus {
    color: var(--ink);
    background: var(--ochre);
    text-decoration: none;
}

.single-column {
    overflow: hidden;
    padding: clamp(1.25rem, 4vw, 2.4rem);
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
}

.recipe-hero {
    margin: calc(clamp(1.25rem, 4vw, 2.4rem) * -1);
    margin-bottom: 2rem;
    overflow: hidden;
    background: var(--sage-pale);
}

.recipe-hero figure,
.recipe-hero img {
    width: 100%;
}

.recipe-hero img {
    max-height: 620px;
    object-fit: cover;
}

.recipe-title {
    margin-top: 0.5rem;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 500;
}

.recipe-metadata {
    color: var(--muted);
}

.recipe-stats {
    margin: 0.25rem 0;
    padding: 1rem 0;
    color: var(--ink);
    background: rgba(199, 211, 192, 0.38);
    border-radius: 14px;
}

.recipe-stats .column:not(:last-child) {
    border-right: 1px solid var(--line);
}

.recipe-stats .column {
    display: block;
    text-align: center;
}

.recipe-stats i {
    margin-bottom: 0.45rem;
    color: var(--ochre-deep);
}

#printButton {
    right: 1rem;
    bottom: 1rem;
}

#printButton a {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--ink);
    background: rgba(247, 244, 237, 0.9);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(52, 67, 51, 0.2);
}

#printButton a:hover {
    color: var(--ochre-deep);
    background: var(--paper);
}

hr {
    height: 1px;
    margin: 1.5rem 0;
    background: var(--line);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
}

.section-heading i {
    color: var(--ochre-deep);
}

.card-header {
    align-items: center;
    background: rgba(199, 211, 192, 0.45);
    box-shadow: none;
}

.card-header-title {
    color: var(--ink);
    font-size: 1.3rem;
}

.footer {
    margin: 0;
    padding: 1.5rem;
    color: var(--ink);
    background: var(--sage);
    border-top: 1px solid rgba(52, 67, 51, 0.14);
    font-size: 0.86rem;
    text-align: center;
}

.footer a {
    color: var(--ink);
    font-weight: 700;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        padding: 0.75rem;
        background: var(--sage);
        box-shadow: none;
    }

    .navbar-start > a.navbar-item {
        padding: 0.7rem 1rem;
    }

    .navbar-end .navbar-item {
        padding-inline: 0;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 2.25rem 1rem;
    }

    .site-intro {
        margin-bottom: 2rem;
    }

    .card-content {
        min-height: 0;
    }

    .recipe-stats .column:nth-child(2) {
        border-right: 0;
    }

    .recipe-stats .column:last-child {
        border-top: 1px solid var(--line);
    }

    .single-column {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
