/*
 * Cook and Live
 * Core CSS Foundation
 */


/* ==================================================
   DESIGN TOKENS
   ================================================== */

:root {
    --cl-content-width: 1200px;
    --cl-reading-width: 800px;
    --cl-color-text: #24211d;
    --cl-color-text-muted: #625d55;
    --cl-color-muted: #68615b;
    --cl-color-background: #fffcf7;
    --cl-color-surface: #ffffff;
    --cl-color-surface-soft: #f7f3ed;
    --cl-color-accent: #8a4b2a;
    --cl-color-accent-dark: #6f3c22;
    --cl-color-focus: #315f8c;

    --cl-space-xs: 8px;
    --cl-space-sm: 12px;
    --cl-space-md: 20px;
    --cl-space-lg: 32px;
    --cl-space-xl: 48px;
    --cl-space-2xl: 64px;

    --cl-radius-sm: 6px;
    --cl-radius-md: 10px;

    --cl-border-color: #ded7ce;

    --cl-shadow-sm: 0 2px 8px rgb(41 37 33 / 8%);

    --cl-reading-font-size: 1.1875rem;

    --cl-color-primary: #9e3427;
    --cl-color-primary-hover: #7d281e;
    --cl-color-secondary: #526b4e;
    --cl-color-border: #ded6ca;
    --cl-color-highlight: #f5eee3;
}


/* ==================================================
   GLOBAL TYPOGRAPHY
   ================================================== */

body {
    color: var(--cl-color-text);
    background: var(--cl-color-background);

    /*
     * Readable system fonts for English and Chinese.
     * Microsoft YaHei improves Chinese text on Windows.
     */
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        "Noto Sans SC",
        Arial,
        sans-serif;

    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--cl-color-text);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 0;
    text-wrap: balance;
}

h1 {
    margin-bottom: var(--cl-space-lg);
}

h2 {
    margin-bottom: var(--cl-space-md);
}

h3 {
    margin-bottom: var(--cl-space-sm);
}

p {
    margin-top: 0;
    margin-bottom: var(--cl-space-md);
}

ul,
ol {
    margin-top: 0;
    margin-bottom: var(--cl-space-md);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/*
 * Comfortable typography for recipe and post content.
 */
.cl-reading-container,
.cl-single-content,
.wp-block-post-content {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75;
}

/*
 * Ensure recipe paragraphs and list items inherit
 * the intended readable system font.
 */
.cl-single-recipe p,
.cl-single-recipe li {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        "Noto Sans SC",
        Arial,
        sans-serif;

    font-weight: 400;
}

/*
 * Optional background or story about the dish.
 */
.cl-recipe-about {
    margin-top: var(--cl-space-lg);
    margin-bottom: var(--cl-space-lg);
}

.cl-recipe-about p {
    margin-bottom: 0;
}

/* ==================================================
   GLOBAL LINK BEHAVIOR
   ================================================== */

a {
    text-underline-offset: 0.15em;
    color: var(--cl-color-primary);
}

a:hover,
a:focus-visible {
    text-decoration-thickness: 2px;
    color: var(--cl-color-primary-hover);
}

:where(
    a,
    button,
    input,
    select,
    textarea
):focus-visible {
    outline: 3px solid var(--cl-color-focus);
    outline-offset: 3px;
}

::selection {
    color: var(--cl-color-text);
    background: #f1d9c7;
}


/* ==================================================
   BASE LAYOUT
   ================================================== */

.cl-container {
    width: 100%;
    max-width: var(--cl-content-width);
    margin-inline: auto;
    padding-inline: var(--cl-space-md);
    box-sizing: border-box;
}

.cl-reading-container {
    width: 100%;
    max-width: var(--cl-reading-width);
    margin-inline: auto;
    padding-inline: var(--cl-space-md);
    box-sizing: border-box;
}

.cl-section {
    margin-block: var(--cl-space-xl);
}

.cl-section-action {
    margin-top: var(--cl-space-md);
    margin-bottom: 0;
}


/* ==================================================
   GRID
   ================================================== */

.cl-grid {
    display: grid;
    gap: var(--cl-space-lg);
}

.cl-grid--cards {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                280px,
                1fr
            )
        );
}


/* ==================================================
   SHARED CARD FOUNDATION
   ================================================== */

.cl-card {
    border: 1px solid var(--cl-border-color);
    border-radius: var(--cl-radius-md);
    overflow: hidden;

    display: flex;
    flex-direction: column;

    height: 100%;
    box-sizing: border-box;

    background: var(--cl-color-surface);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
        
    font-size: 1rem;
}

.cl-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.08);
}

.cl-card__image {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition: transform 0.25s ease;
}

.cl-card__image-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.cl-card__image-link:hover .cl-card__image {
    transform: scale(1.02);
}

.cl-card__body {
    padding: var(--cl-space-md);

    display: flex;
    flex-direction: column;
    flex: 1;
}

.cl-card__title {
    margin-top: 0;
    margin-bottom: var(--cl-space-sm);
}

.cl-card__meta {
    margin-top: 0;
    margin-bottom: var(--cl-space-sm);

    font-size: 0.875rem;
    color: var(--cl-color-muted);
}

.cl-card__action {
    margin-top: auto;
    margin-bottom: 0;
}

.cl-card__title a {
    color: inherit;
    text-decoration: none;
}

.cl-card__title a:hover,
.cl-card__title a:focus-visible {
    text-decoration: underline;
}

.cl-card__description {
    margin-top: 0;
    margin-bottom: var(--cl-space-md);
    line-height: 1.6;
}

.cl-card__action a {
    font-weight: 600;
}

.cl-card__action a,
.cl-section-action a {
    text-underline-offset: 0.2em;
}

.cl-card__action a:hover,
.cl-card__action a:focus-visible,
.cl-section-action a:hover,
.cl-section-action a:focus-visible {
    text-decoration: underline;
}





/* ==================================================
   POST CARD
   ================================================== */

.cl-post-card .cl-card__meta {
    color: var(--cl-color-muted);
}

.cl-post-card .cl-card__title {
    line-height: 1.3;
}

/* ==================================================
   STEP IMAGE CARD
   ================================================== */

.cl-step-gallery-section {
    margin-block: 2.5rem;
}

.cl-step-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.cl-recipe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-block: 1.25rem 2rem;
}

.cl-recipe-actions__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    background: var(--cl-color-accent);
    border: 1px solid var(--cl-color-accent);
    border-radius: var(--cl-radius-sm);
}

.cl-recipe-actions__button:hover,
.cl-recipe-actions__button:focus-visible {
    color: #fff;
    background: var(--cl-color-accent-dark);
    border-color: var(--cl-color-accent-dark);
}

.cl-recipe-print-url {
    display: none;
}

@media print {
    @page {
        margin: 0.4in;
    }

    html,
    body {
        color: #000;
        background: #fff;
        font-size: 9.5pt;
        line-height: 1.3;
    }

    /*
     * Remove non-recipe content.
     */
    header,
    footer,
    .cl-site-header,
    .cl-site-footer,
    .cl-breadcrumb,
    .cl-language-switcher,
    .cl-recipe-actions,
    .cl-single-recipe__image,
    .cl-video,
    .cl-video-title,
    .cl-step-gallery-section,
    .cl-related-recipes-title,
    .cl-related-recipes,
    .cl-single-recipe > hr {
        display: none !important;
    }

    /*
     * Use the complete printable page width.
     */
    .cl-reading-container,
    .cl-single-recipe {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        font-size: 9.5pt;
        line-height: 1.3;
    }

    /*
     * Compact recipe title.
     */
    .cl-single-recipe h1 {
        margin: 0 0 0.12in;
        font-size: 18pt;
        line-height: 1.15;
    }

    /*
     * Compact Ingredients and Instructions headings.
     */
    .cl-single-recipe h2 {
        margin: 0.14in 0 0.06in;
        font-size: 13pt;
        line-height: 1.2;
    }

    /*
     * Compact paragraphs and lists.
     */
    .cl-single-recipe p {
        margin: 0 0 0.08in;
        font-size: 9.5pt;
        line-height: 1.3;
    }

    .cl-single-recipe ul,
    .cl-single-recipe ol {
        margin-top: 0;
        margin-bottom: 0.1in;
        padding-left: 0.25in;
    }

    .cl-single-recipe li {
        margin: 0 0 0.025in;
        padding: 0;
        font-size: 9.5pt;
        line-height: 1.3;
    }

    /*
     * Put recipe details into one compact row.
     */
    .cl-recipe-details {
        display: grid;
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
        gap: 0.08in;
        margin: 0 0 0.12in;
        padding: 0.08in;
        font-size: 9pt;
        line-height: 1.2;
        border: 1px solid #999;
    }

    .cl-recipe-details p {
        margin: 0;
        font-size: 9pt;
        line-height: 1.2;
    }

    .cl-recipe-print-url {
        display: block;
        margin: 0 0 0.1in;
        font-size: 8pt;
        line-height: 1.2;
        word-break: break-word;
    }

    h1,
    h2 {
        break-after: avoid;
    }

    li,
    .cl-recipe-details {
        break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}

.cl-step-image-card {
    overflow: hidden;
    margin: 0;
    background: var(--cl-color-surface);
    border: 1px solid var(--cl-border-color);
    border-radius: var(--cl-radius-md);
    box-shadow: var(--cl-shadow-sm);
}

.cl-step-image-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--cl-color-surface-soft);
}

.cl-step-image-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-step-image-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.25rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    background: var(--cl-color-accent);
    border-radius: 50%;
}

.cl-step-image-card__caption {
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: center;
}

@media (min-width: 600px) {
    .cl-step-gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .cl-step-gallery {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* ==================================================
   BUTTONS / LINKS
   ================================================== */

.cl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.cl-button--primary {
    padding:
        var(--cl-space-xs)
        var(--cl-space-md);

    color: #ffffff;
    background: var(--cl-color-accent);
    border: 1px solid var(--cl-color-accent);
    border-radius: var(--cl-radius-sm);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.cl-button--primary:hover,
.cl-button--primary:focus-visible {
    color: #ffffff;
    background: var(--cl-color-accent-dark);
    border-color: var(--cl-color-accent-dark);
}

.cl-button--primary:active {
    transform: translateY(1px);
}


/* ==================================================
   FORMS
   ================================================== */

.cl-form-control {
    min-height: 44px;
    padding: 0.7rem 0.8rem;
    color: var(--cl-color-text);
    background: var(--cl-color-surface);
    border: 1px solid var(--cl-border-color);
    border-radius: var(--cl-radius-sm);
    font: inherit;
    box-sizing: border-box;
}

.cl-form-button {
    min-height: 44px;
    padding:
        var(--cl-space-xs)
        var(--cl-space-sm);

    color: #ffffff;
    background: var(--cl-color-accent);
    border: 1px solid var(--cl-color-accent);
    border-radius: var(--cl-radius-sm);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cl-form-button:hover,
.cl-form-button:focus-visible {
    background: var(--cl-color-accent-dark);
    border-color: var(--cl-color-accent-dark);
}


/* ==================================================
   ARCHIVES
   ================================================== */

.cl-recipe-archive,
.cl-post-archive {
    padding-top: var(--cl-space-xl);
    padding-bottom: var(--cl-space-2xl);
}

.cl-recipe-archive-header,
.cl-post-archive-header {
    margin-bottom: var(--cl-space-lg);
}


/* Recipe archive controls */

.cl-recipe-controls {
    margin-bottom: var(--cl-space-xl);
}

.cl-recipe-controls__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: var(--cl-space-sm);
    width: 100%;
}

.cl-recipe-search {
    width: 300px;
    max-width: 100%;
}


/* Archive grids */

.cl-recipe-grid {
    align-items: start;
}

.cl-post-grid {
    align-items: stretch;
}


/* ==================================================
   PAGINATION
   ================================================== */

.cl-pagination {
    margin-top: var(--cl-space-xl);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: var(--cl-space-md);
}


/* ==================================================
   SINGLE POST
   ================================================== */

.cl-single-content {
    width: 100%;
    max-width: var(--cl-reading-width);

    margin-inline: auto;
    box-sizing: border-box;
}

.single-post .cl-single-content > * {
    width: 100% !important;
    max-width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box;
}

.single-post
.cl-single-content
.wp-block-post-content > * {
    width: 100% !important;
    max-width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ==================================================
   SINGLE RECIPE
   ================================================== */

.cl-single-recipe {
    padding-top: var(--cl-space-xl);
    padding-bottom: var(--cl-space-2xl);
}

.cl-breadcrumb {
    margin-bottom: var(--cl-space-md);
    font-size: 0.875rem;
    color: var(--cl-color-muted);
}

.cl-language-switcher {
    margin-bottom: var(--cl-space-md);
    padding: var(--cl-space-sm);

    border-bottom:
        1px solid
        var(--cl-border-color);
    background: var(--cl-color-surface-soft);
    border-radius: var(--cl-radius-sm);
}

.cl-single-recipe__image {
    margin-bottom: var(--cl-space-md);
}

.cl-responsive-image {
    display: block;

    width: 100%;
    height: auto;

    border-radius: var(--cl-radius-md);
}


/* Recipe video */

.cl-video {
    margin-bottom: var(--cl-space-md);
}

.cl-video__frame {
    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;

    border: 0;
}


/* Recipe details */

.cl-recipe-details {
    padding: var(--cl-space-md);
    margin-bottom: var(--cl-space-md);

    border:
        1px solid
        var(--cl-border-color);

    border-radius: var(--cl-radius-sm);
    background: var(--cl-color-surface);
}

.cl-recipe-details p:first-child {
    margin-top: 0;
}

.cl-recipe-details p:last-child {
    margin-bottom: 0;
}


/* Recipe instructions */

.cl-instruction-item {
    margin-bottom: var(--cl-space-sm);
}


/* Related recipes */

.cl-related-recipes {
    margin-top: var(--cl-space-md);
    align-items: stretch;
}


/* ==================================================
   SITE HEADER
   ================================================== */

.cl-site-header {
    width: 100%;
    box-sizing: border-box;
    background: var(--cl-color-surface);
    border-bottom: 1px solid var(--cl-border-color);
}

.cl-site-header__inner {
    width: 100%;
    max-width: var(--cl-content-width);

    margin-inline: auto !important;
    padding-inline: var(--cl-space-md);

    box-sizing: border-box;
}

.cl-site-header__row {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: var(--cl-space-md);
    box-sizing: border-box;
}

.cl-site-header__row > :last-child {
    margin-left: auto;
}

/* ==================================================
   HEADER TYPOGRAPHY / NAVIGATION
   ================================================== */

.cl-site-header__row {
    min-height: 72px;
}

.cl-site-header .wp-block-site-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.cl-site-header .wp-block-site-title a {
    text-decoration: none;
}

.cl-site-header .wp-block-navigation__container {
    gap: var(--cl-space-md);
}

.cl-site-header .wp-block-navigation-item__content {
    text-decoration: none;
}

.cl-site-header .wp-block-navigation-item__content:hover,
.cl-site-header .wp-block-navigation-item__content:focus-visible {
    text-decoration: underline;
}

.wp-block-navigation
.wp-block-navigation-item__content {
    font-size: 1.125rem !important;
    line-height: 1.4;
}

/* Active navigation item */

.cl-site-header
.wp-block-navigation-item.current-menu-item
> .wp-block-navigation-item__content,
.cl-site-header
.wp-block-navigation-item.current-menu-ancestor
> .wp-block-navigation-item__content,
.cl-site-header
.wp-block-navigation-item__content.cl-nav-active {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

/* ==================================================
   SITE FOOTER
   ================================================== */

.cl-site-footer {
    width: 100%;
    box-sizing: border-box;
    background: var(--cl-color-surface-soft);
    border-top: 1px solid var(--cl-border-color);
}

.cl-site-footer__inner {
    width: 100%;
    max-width: var(--cl-content-width);

    margin-inline: auto !important;
    padding-inline: var(--cl-space-md);

    box-sizing: border-box;
}

.cl-site-footer__row {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: var(--cl-space-xl);
    box-sizing: border-box;
}

.cl-site-footer__row > :last-child {
    margin-left: auto;
}

/* ==================================================
   FOOTER TYPOGRAPHY / SPACING
   ================================================== */

.cl-site-footer__inner {
    padding-top: var(--cl-space-xl);
    padding-bottom: var(--cl-space-xl);
}

.cl-site-footer .wp-block-site-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.cl-site-footer .wp-block-site-title a {
    text-decoration: none;
}

.cl-site-footer .wp-block-site-tagline {
    margin-top: var(--cl-space-xs);
    margin-bottom: 0;
    color: var(--cl-color-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cl-site-footer .wp-block-navigation {
    font-size: 0.9rem;
}

.cl-site-footer .wp-block-navigation__container {
    gap: var(--cl-space-sm);
}

.cl-site-footer .wp-block-navigation-item__content {
    text-decoration: none;
}

.cl-site-footer .wp-block-navigation-item__content:hover,
.cl-site-footer .wp-block-navigation-item__content:focus-visible {
    text-decoration: underline;
}

/* ==================================================
   RESPONSIVE
   ================================================== */
/* Tablet and smaller */
@media (max-width: 768px) {

    :root {
        --cl-space-xl: 36px;
        --cl-space-2xl: 48px;
    }

    /* Shared containers */

    .cl-container,
    .cl-reading-container,
    .cl-site-header__inner,
    .cl-site-footer__inner {
        padding-inline: 16px;
    }

    /* Grids */

    .cl-grid {
        gap: var(--cl-space-md);
    }

    /* Header */

    .cl-site-header__row {
        min-height: 64px;
    }

    .cl-site-header .wp-block-site-title {
        font-size: 1.2rem;
    }

    /* Footer */

    .cl-site-footer__inner {
        padding-top: var(--cl-space-lg);
        padding-bottom: var(--cl-space-lg);
    }

    .cl-site-footer__row {
        flex-wrap: wrap;
        gap: var(--cl-space-lg);
    }

    .cl-site-footer__row > :last-child {
        margin-left: 0;
    }

    /* Header */

    .cl-site-header__row {
        flex-wrap: wrap;
        row-gap: var(--cl-space-sm);
    }

    .cl-site-header .wp-block-navigation {
        width: 100%;
    }

    /* Cards */

    .cl-grid--cards {
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(
                    240px,
                    1fr
                )
            );
    }

    /* Single content */

    .cl-single-content,
    .cl-reading-container {
        max-width: 100%;
    }

    .wp-block-navigation
    .wp-block-navigation-item__content {
        font-size: 1.125rem !important;
    }

}

/* Phone only */
@media (max-width: 600px) {

    .cl-recipe-controls__form {
        align-items: stretch;
    }

    .cl-recipe-search {
        width: 100%;
    }

    /* One-column cards on small screens */

    .cl-grid--cards {
        grid-template-columns: 1fr;
    }

    /* Smaller section spacing */

    .cl-section {
        margin-block: var(--cl-space-lg);
    }

    /* Recipe details */

    .cl-recipe-details {
        padding: var(--cl-space-sm);
    }

    /* Pagination */

    .cl-pagination {
        justify-content: flex-start;
        gap: var(--cl-space-sm);
    }

}

/* --------------------------------------------------------------
   Contact form
-------------------------------------------------------------- */

.cl-contact-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 44rem;
    margin-top: 2rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.cl-contact-form__field {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1.25rem;
}

.cl-contact-form__field label {
    display: block;
    font-weight: 600;
    line-height: 1.4;
}

.cl-contact-form__optional {
    color: var(--cl-color-muted);
    font-size: 0.9em;
    font-weight: 400;
}

.cl-contact-form input,
.cl-contact-form select,
.cl-contact-form textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--cl-border-color);
    border-radius: var(--cl-radius-sm);
    background: var(--cl-color-surface);
    color: var(--cl-color-text);
    font: inherit;
    line-height: 1.4;
}

.cl-contact-form select {
    min-height: 3rem;
}

.cl-contact-form textarea {
    min-height: 10rem;
    resize: vertical;
}

.cl-contact-form input:focus-visible,
.cl-contact-form select:focus-visible,
.cl-contact-form textarea:focus-visible {
    border-color: var(--cl-color-focus);
}

.cl-contact-form__notice {
    margin: 0 0 1.25rem;
    color: var(--cl-color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cl-contact-form__submit {
    margin: 0;
}

.cl-contact-form__submit button {
    min-height: 44px;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--cl-color-accent);
    border-radius: var(--cl-radius-sm);
    background: var(--cl-color-accent);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.cl-contact-form__submit button:hover {
    background: var(--cl-color-accent-dark);
    border-color: var(--cl-color-accent-dark);
}

.cl-contact-form__message {
    box-sizing: border-box;
    width: 100%;
    max-width: 44rem;
    margin: 0 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--cl-border-color);
    border-radius: var(--cl-radius-sm);
    line-height: 1.5;
}

.cl-contact-form__message--success {
    border-color: #78936f;
    background: #eef4eb;
    color: #263522;
}

.cl-contact-form__message--error {
    border-color: #b66a6a;
    background: #fbefef;
    color: #5b2020;
}

.cl-contact-form__website[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .cl-contact-form {
        margin-top: 1.5rem;
        padding-right: 0;
        padding-left: 0;
    }

    .cl-contact-form input,
    .cl-contact-form select,
    .cl-contact-form textarea {
        font-size: 1rem;
    }

    .cl-contact-form__submit button {
        width: 100%;
        min-height: 3rem;
    }
}

/* --------------------------------------------------------------
   home page title
-------------------------------------------------------------- */
.cl-home-title {
    margin-block: 1rem 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    text-wrap: balance;
}


/* ==================================================
   REDUCED MOTION
   ================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==================================================
   WIDE RELATED RECIPES
   ================================================== */

/*
 * Break the related-recipes section out of the
 * 800px reading container and center it on the page.
 */
.cl-related-recipes-title,
.cl-related-recipes {
    position: relative;
    left: 50%;

    width: calc(100vw - 40px);
    max-width: var(--cl-content-width);

    transform: translateX(-50%);
    box-sizing: border-box;
}


/* Related recipe card grid */
.cl-related-recipes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--cl-space-lg);

    margin-top: var(--cl-space-md);
    align-items: stretch;
}


/* Tablet: two cards */
@media (min-width: 600px) {

    .cl-related-recipes {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* Desktop: three cards */
@media (min-width: 1000px) {

    .cl-related-recipes {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* Phone side spacing */
@media (max-width: 600px) {

    .cl-related-recipes-title,
    .cl-related-recipes {
        width: calc(100vw - 32px);
    }
}

/*
 * Widen the divider above “You May Also Like.”
 * It breaks out of the 800px reading container and
 * uses the same maximum width as the main site.
 */
.cl-related-recipes-divider {
    position: relative;
    left: 50%;

    width: calc(100vw - 40px);
    max-width: var(--cl-content-width);

    margin-top: var(--cl-space-xl);
    margin-bottom: var(--cl-space-sm);

    border: 0;
    border-top: 1px solid var(--cl-color-text-muted);

    transform: translateX(-50%);
    box-sizing: border-box;
}

@media (max-width: 600px) {

    .cl-related-recipes-divider {
        width: calc(100vw - 32px);
    }
}

/* ==================================================
   RECIPE GALLERY
   ================================================== */

/*
 * Optional gallery for additional finished-dish
 * and serving photos.
 */
.cl-recipe-gallery-section {
    margin-block: var(--cl-space-xl);
}


/*
 * Phones display one gallery image per row.
 */
.cl-recipe-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--cl-space-md);
}


/*
 * Remove the default figure margin and provide
 * consistent rounded image corners.
 */
.cl-recipe-gallery__item {
    overflow: hidden;
    margin: 0;

    background: var(--cl-color-surface-soft);
    border-radius: var(--cl-radius-md);
}


/*
 * Give every gallery picture the same shape,
 * even when the uploaded dimensions differ.
 */
.cl-recipe-gallery__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;
}


/*
 * Tablets and desktops display two images per row.
 */
@media (min-width: 600px) {

    .cl-recipe-gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}