/* Wspolne style calego prototypu:
   reset, tokeny, baza dokumentu, kontener, header, breadcrumb i footer
   dla index.html, single-recipe.html oraz archive-*.html. */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, ul, ol, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* ── Custom Properties ──────────────────────────────────────── */
:root {
    --c-bg:      #ffffff;
    --c-text:    #333333;
    --c-heading: #333333;
    --c-accent:  #3d7a1f;
    --c-meta:    #888888;
    --c-border:  #dddddd;
    --c-tip-bg:  #f9f9f9;

    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Fira Sans Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-size: 18px;
    --text-lh:   1.75;

    --container: 1280px;
    --container-pad: 30px;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: var(--text-size);
    line-height: var(--text-lh);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); }
a { color: var(--c-accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

/* ── Skip links ─────────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: auto; overflow: hidden; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; background: var(--c-heading); color: #fff; font-size: 0.85rem; padding: 8px 16px; }

/* ── Site Container ─────────────────────────────────────────── */
.site-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--container-pad); }

/* ── Site Header ────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--c-border); background-color: #f5f5f5;}

.site-header .wrap {
    align-items: center;
    padding: 40px var(--container-pad);
}

.site-header .wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 60px;
    justify-content: space-between;
}

.title-area {
    display: inline-block;
    font-family: Lato, Helvetica, sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    text-align: center;
    width: min(100%, 388px);
}

.site-header .widget-area, .site-header .widget-area .genesis-nav-menu {
    float: right;
    text-align: right;
    width: 100%;
}

.site-title img {
    height: auto;
    width: min(100%, 388px);
}

.header-widget-area {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

#custom_html-5.widget {
    border: none;
    padding: 0;
}

#custom_html-5.widget .widget-wrap {
    align-items: center;
    display: flex;
    justify-content: flex-end;
}

.header-shop-link {
    align-items: center;
    background: transparent;
    border: 0;
    color: #db665b;
    display: inline-flex;
    gap: 9px;
    padding: 0;
    text-decoration: none;
    transition: color 180ms ease;
}

.header-shop-link:hover,
.header-shop-link:focus-visible {
    color: #b9554b;
    text-decoration: none;
}

.header-shop-link__icon {
    align-items: center;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: currentColor;
    display: inline-flex;
    flex: 0 0 26px;
    height: 26px;
    justify-content: center;
    width: 26px;
    transition: background-color 180ms ease, color 180ms ease;
}

.header-shop-link__icon svg {
    height: 12px;
    width: 12px;
}

.header-shop-link:hover .header-shop-link__icon,
.header-shop-link:focus-visible .header-shop-link__icon {
    background: #db665b;
    border-color: #db665b;
    color: #fff;
}

.header-shop-link__text {
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    margin: 0 10px 0 0;
    color: black;
    text-align: center;
    width: 30px;
    z-index: 1000;
}

.close-menu {
    display: none;
    cursor: pointer;
    margin: 10px;
    padding: 10px;
    color: black;
    text-align: center;
    width: 30px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.site-title a {
    color: #302a2c;
    font-style: normal;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
    border-bottom: 1px solid var(--c-border);
    color: var(--c-meta);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 12px var(--container-pad);
}

.breadcrumb a { color: var(--c-meta); }
.breadcrumb a:hover { color: var(--c-accent); text-decoration: none; }

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--c-border);
    color: var(--c-meta);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 20px 24px;
    text-align: center;
    text-transform: uppercase;
}

.site-footer a { color: var(--c-meta); }
.site-footer a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .site-header .wrap {
        gap: 20px;
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .title-area {
        width: min(58vw, 320px);
    }

    .header-shop-link__text {
        font-size: 0.86rem;
    }
}

@media (max-width: 640px) {
    :root { --text-size: 16px; }

    .site-header .wrap {
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .title-area {
        text-align: left;
        width: min(52vw, 220px);
    }

    .header-widget-area {
        flex: 0 1 auto;
    }

    .header-shop-link {
        gap: 7px;
    }

    .header-shop-link__icon {
        flex-basis: 22px;
        height: 22px;
        width: 22px;
    }

    .header-shop-link__icon svg {
        height: 10px;
        width: 10px;
    }

    .header-shop-link__text {
        font-size: 0.76rem;
    }
}