/* ===========================================================
   Kuchenna Komitywa — Brand CSS (Szkicownik Edition)
   Botanical sketchbook + handwritten cookbook aesthetic
   Palette: earthy (fixed)
   Fonts: Caveat / DM Serif Display / Newsreader / JetBrains Mono
   =========================================================== */

:root {
    /* Earthy palette (per design contract) */
    --paper: #f3ead7;
    --paper-2: #ebe0c5;
    --paper-shadow: #d9c9a3;
    --ink: #2a2420;
    --ink-soft: #5a4a3a;
    --ink-faded: #725f4c;
    --accent: #6b7a3a;       /* olive */
    --accent-2: #a44724;     /* terracotta, AA on both paper surfaces */
    --accent-3: #c89a3a;     /* mustard */
    --rule: #c7b48a;
    --tape: #e8d9a5cc;
    --page-fold: #dcc99a;

    /* Texture knobs (fixed; no Tweaks panel) */
    --texture-paper: 1;
    --texture-grain: 1.2;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-hand: 'Caveat', 'Comic Sans MS', cursive;
    --font-body: 'Newsreader', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --kk-ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------- Reset / base --------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* body jest containing-block dla warstw tekstury (::before/::after position:absolute);
       min-height gwarantuje pokrycie teksturą także na krotkich stronach. */
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }

/* --------- Paper texture (full-bleed background layers) --------- */
/* PERF: warstwy tekstury sa position:absolute (nie fixed) i przewijaja sie RAZEM z trescia.
   Fixed + mix-blend-mode:multiply wymuszal re-rasteryzacje CALEGO viewportu co klatke scrolla
   (~12.7ms/klatke, software raster) -> jank/lag ("laguje, nie przesuwa sie plynnie",
   debug: obrazki-dziwne-przy-scrollu). Absolute -> blend zapiekany w kafle scrolla raz,
   re-raster tylko nowo-odslanianego paska. Wyglad przy scrollY=0 identyczny (absolute≡fixed). */
body::before {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, transparent 40%, #00000010 100%),
        radial-gradient(ellipse 60% 50% at 90% 90%, transparent 40%, #00000012 100%),
        radial-gradient(ellipse 40% 30% at 50% 50%, var(--paper-2) 0%, transparent 70%);
    mix-blend-mode: multiply;
    opacity: var(--texture-paper);
}
body::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 1;
    /* Kraft: fine speckle grain + directional paper fibers (very low opacity — namacalnosc, nie szum) */
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0 0.10  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
    background-repeat: repeat, repeat;
    opacity: calc(var(--texture-grain) * 0.06);
    mix-blend-mode: multiply;
}

body { position: relative; } /* containing block dla warstw tekstury body::before/::after (position:absolute) */

/* --------- Typography --------- */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
.hand { font-family: var(--font-hand); font-weight: 500; }
.serif-display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
a { color: inherit; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

p { margin: 0 0 1em; }

/* Shared keyboard focus treatment */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 4px;
}

/* Skip link (a11y) */
.skip-link {
    position: absolute;
    top: -100px; left: 12px;
    background: var(--ink); color: var(--paper);
    padding: 8px 16px;
    font-family: var(--font-hand);
    font-size: 18px;
    z-index: 200;
    border-radius: 0 0 8px 8px;
    transition: top .15s;
    text-decoration: none;
}
.skip-link:focus { top: 0; outline: 2px solid var(--accent-3); }

/* --------- Layout containers --------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 36px; position: relative; z-index: 2; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 36px; position: relative; z-index: 2; }
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 36px;
    position: relative;
    z-index: 2;
}

/* --------- Section heads (I./II./III. style) --------- */
section { padding: 70px 0; position: relative; z-index: 2; }
.kk-section { padding: 70px 0; position: relative; z-index: 2; }
.kk-section-alt {
    padding: 70px 0;
    background: linear-gradient(180deg, transparent 0%, var(--paper-2) 30%, var(--paper-2) 70%, transparent 100%);
    position: relative;
    z-index: 2;
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--ink);
    position: relative;
}
.section-head::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -6px;
    height: 1px; background: var(--ink); opacity: 0.4;
}
.section-number {
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--accent-2);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 5.5vw, 72px);
    letter-spacing: -0.015em;
    line-height: 0.95;
    color: var(--ink);
}
.section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.section-title a:hover {
    color: var(--accent);
}
.section-meta {
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--ink-soft);
    max-width: 320px;
    text-align: right;
}
.section-meta-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}
.section-annotation {
    color: var(--accent-2);
    font-family: var(--font-hand);
    font-size: 24px;
    line-height: 1;
    transform: rotate(-1.5deg);
    display: inline-block;
    vertical-align: middle;
    margin-left: 14px;
    margin-bottom: 0.35em;
    white-space: nowrap;
    letter-spacing: 0;
}
@media (max-width: 600px) {
    .section-annotation {
        display: block;
        margin-left: 0;
        margin-top: 6px;
        white-space: normal;
    }
}

/* --------- Decorative helpers --------- */
.scribble {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 40 2 80 7 T 160 6 T 198 8' fill='none' stroke='%23b6562e' stroke-width='2.5' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0.5em;
    padding-bottom: 0.1em;
}
.tape {
    position: absolute;
    background: var(--tape);
    box-shadow: 0 1px 2px #0002;
    width: 78px; height: 22px;
    transform: rotate(-6deg);
}
.page-corner {
    position: absolute; top: 0; right: 0; width: 58px; height: 58px;
    background: linear-gradient(225deg, var(--page-fold) 0 50%, transparent 50%);
    box-shadow: -2px 2px 3px #0001;
}

/* --------- Buttons --------- */
.btn, .kk-btn-primary {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 24px;
    line-height: 1;
    padding: 12px 24px;
    border: 2px solid var(--ink);
    border-radius: 26px 22px 28px 20px / 20px 28px 20px 28px;
    background: var(--ink);
    color: var(--paper);
    transition: transform .15s ease, background .2s, color .2s;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.btn:hover, .kk-btn-primary:hover {
    transform: translate(-1px, -2px) rotate(-1deg);
    color: var(--paper);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
}
.btn-ghost:hover { color: var(--ink); }
.btn-accent, .kk-btn-primary.btn-accent {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: var(--paper);
}
.btn[disabled], .kk-btn-primary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

.link-arrow, .kk-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1.5px dotted var(--ink-soft);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
}
.link-arrow:hover, .kk-link-arrow:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
}

/* --------- Top nav (sketchbook tab bar) --------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, var(--paper) 70%, transparent 100%);
    border-bottom: 1px dashed var(--rule);
    padding: 18px 36px 14px;
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 38px;
    letter-spacing: -0.015em;
    display: flex;
    align-items: baseline;
    gap: 12px;
    line-height: 1;
    color: var(--ink);
    text-decoration: none;
}
.nav-brand .dot {
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--accent-2);
    display: inline-block;
    transform: translateY(-4px);
}
.nav-brand-sub {
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--ink-soft);
}
.nav-links {
    display: flex;
    gap: 22px;
    font-family: var(--font-hand);
    font-size: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-links a {
    position: relative;
    padding: 4px 10px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 2px; right: 2px; bottom: -2px;
    height: 6px;
    background: var(--accent-3);
    opacity: 0.45;
    transform: rotate(-0.6deg);
    z-index: -1;
}
.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-hand);
    font-size: 22px;
    padding: 6px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 20px 18px 22px 16px / 18px 20px 16px 22px;
    background: var(--paper-2);
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s;
}
.nav-cart:hover { transform: rotate(-1deg) scale(1.02); color: var(--ink); }
.nav-cart-badge {
    font-family: var(--font-body);
    font-size: 13px;
    background: var(--accent-2);
    color: var(--paper);
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}
.nav-cart-badge.dim { background: var(--ink-faded); }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1.5px solid var(--ink);
    border-radius: 12px 10px 14px 10px;
    background: var(--paper-2);
}
.nav-toggle .bar {
    display: block;
    width: 20px; height: 2px;
    background: var(--ink);
    position: relative;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--ink);
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after  { top: 6px; }

/* --------- Hero --------- */
.hero {
    padding: 28px 0 60px;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
}
.hero-copy { position: relative; }
.hero-eyebrow {
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    transform: rotate(-1.2deg);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(58px, 8vw, 106px);
    line-height: 0.96;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}
.hero-title em {
    font-family: var(--font-hand);
    font-style: normal;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0;
    display: inline-block;
    transform: rotate(-2deg) translateY(6px);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 40 2 80 7 T 160 6 T 198 8' fill='none' stroke='%23b6562e' stroke-width='2.5' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0.2em;
    padding-bottom: 0.08em;
}
.hero-sub {
    margin-top: 26px;
    font-size: 21px;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 520px;
}
.hero-cta-row {
    margin-top: 34px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.hero-note {
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--accent-2);
    transform: rotate(-0.6deg);
    margin-left: 6px;
}

/* Hero illustration: stacked polaroids */
.hero-illus {
    position: relative;
    min-height: 520px;
}
.hero-illus .polaroid:nth-of-type(1) {
    width: 280px; top: 0; left: 20px;
    --kk-photo-rest: rotate(-4deg);
    transform: var(--kk-photo-rest);
    --img-bg: #9eaf6b;
}
.hero-illus .polaroid:nth-of-type(2) {
    width: 220px; top: 110px; left: 250px;
    --kk-photo-rest: rotate(5deg);
    transform: var(--kk-photo-rest);
    --img-bg: #c89a3a;
}
.hero-illus .polaroid:nth-of-type(3) {
    width: 200px; top: 280px; left: 70px;
    --kk-photo-rest: rotate(-2deg);
    transform: var(--kk-photo-rest);
    --img-bg: #8a6a3a;
}
.hero-annot {
    position: absolute;
    color: var(--accent-2);
    font-family: var(--font-hand);
    font-size: 22px;
    transform: rotate(-6deg);
    max-width: 150px;
    text-align: center;
    pointer-events: none;
}
.hero-annot--saturday { top: 478px; left: 286px; }

/* --------- Polaroid component --------- */
.polaroid {
    position: absolute;
    background: #fbf5e4;
    padding: 14px 14px 48px;
    box-shadow: 0 14px 30px -12px #00000040, 0 2px 4px #00000020;
    border: 1px solid #e7dab8;
}
.polaroid-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--img-bg, #c9c2a2);
    background-image:
        repeating-linear-gradient(45deg, #00000012 0 2px, transparent 2px 9px),
        linear-gradient(135deg, var(--img-bg, #c9c2a2), color-mix(in oklab, var(--img-bg, #c9c2a2) 70%, #fff));
    position: relative;
    overflow: hidden;
}
.polaroid-img--photo { background-image: none; }
.polaroid-img--photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.polaroid-caption {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    text-align: center;
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--ink-soft);
}

/* --------- About section --------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}
.about-photos {
    position: relative;
    min-height: 640px;
}
.about-photos .polaroid:nth-of-type(1) {
    width: 300px; top: 0; left: 0;
    transform: rotate(-3deg);
    --img-bg: #8a9a5a;
}
.about-photos .polaroid:nth-of-type(2) {
    width: 230px; top: 175px; left: 210px;
    transform: rotate(4deg);
    --img-bg: #b6562e;
}
.about-photos .polaroid:nth-of-type(3) {
    width: 230px; top: 360px; left: 30px;
    transform: rotate(-2deg);
    --img-bg: #c89a3a;
}
.about-annot {
    position: absolute;
    top: 60px; left: 340px;
    color: var(--accent-2);
    font-family: var(--font-hand);
    font-size: 22px;
    transform: rotate(5deg);
    max-width: 160px;
}
.about-greeting {
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--accent-2);
    margin-bottom: 10px;
}
.about-lead {
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 18px;
}
.about-body {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
}
.belief-card {
    margin-top: 30px;
    padding: 20px 24px;
    background: var(--paper-2);
    border: 1.5px dashed var(--ink-soft);
    position: relative;
}
.belief-card-label {
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--accent-2);
    margin-bottom: 4px;
}
.belief-card p {
    margin: 0;
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* --------- Tag pills (recipe filter) --------- */
.tag-row, .kk-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.tag, .kk-filter-pill {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 20px;
    line-height: 1;
    padding: 6px 16px;
    border: 1.5px solid var(--ink-soft);
    border-radius: 20px 16px 22px 18px / 16px 22px 18px 22px;
    color: var(--ink-soft);
    background: transparent;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}
.tag-row--secondary { margin-top: -10px; }
.tag:hover, .kk-filter-pill:hover { background: var(--paper-2); color: var(--ink); }
.tag.active,
.kk-filter-pill--active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: rotate(-1deg);
}

/* --------- Recipe grid + cards --------- */
.recipe-grid, .kk-recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 30px;
}
.recipe-card, .kk-recipe-card {
    position: relative;
    cursor: pointer;
    transition: transform .2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.recipe-card:hover, .kk-recipe-card:hover {
    transform: translate(-2px, -4px) rotate(-0.4deg);
    color: inherit;
}
.recipe-card:nth-child(3n+2),
.kk-recipe-card:nth-child(3n+2) { transform: rotate(0.6deg); }
.recipe-card:nth-child(3n+2):hover,
.kk-recipe-card:nth-child(3n+2):hover { transform: translate(-2px, -4px) rotate(-0.2deg); }

.recipe-img {
    aspect-ratio: 4/5;
    background: var(--img-bg, #b5a989);
    background-image:
        repeating-linear-gradient(45deg, #0000000f 0 2px, transparent 2px 9px),
        linear-gradient(135deg, var(--img-bg, #b5a989), color-mix(in oklab, var(--img-bg, #b5a989) 60%, #fff));
    border: 1px solid var(--ink);
    position: relative;
    overflow: hidden;
}
.recipe-img--photo { background-image: none; }
.recipe-img--photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--kk-ease-smooth), filter 700ms ease;
}
.kk-product-card:hover .kk-product-card__img {
    transform: scale(1.05);
    filter: saturate(1.05);
}

.kk-product-card:focus-within .kk-product-card__img {
    transform: scale(1.05);
    filter: saturate(1.05);
}
.num-stamp {
    position: absolute;
    top: 10px; left: 10px;
    font-family: var(--font-hand);
    font-size: 22px;
    background: var(--paper);
    padding: 2px 10px;
    border: 1.5px solid var(--ink);
    transform: rotate(-3deg);
}
.time-stamp {
    position: absolute;
    bottom: 10px; right: 10px;
    font-family: var(--font-hand);
    font-size: 18px;
    background: var(--accent-2);
    color: var(--paper);
    padding: 2px 10px;
    transform: rotate(2deg);
}
.recipe-body { padding: 14px 4px 0; }
.recipe-kicker {
    font-family: var(--font-hand);
    font-size: 18px;
    color: var(--accent-2);
    margin-bottom: 4px;
}
.recipe-name {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.recipe-meta {
    margin-top: 8px;
    display: flex;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 15px;
    font-style: italic;
    color: var(--ink-faded);
}

/* --------- Featured recipe --------- */
.featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 50px;
    background: var(--paper-2);
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    position: relative;
    box-shadow: 12px 14px 0 var(--paper-shadow);
}
.featured-label {
    position: absolute;
    top: -18px; left: 40px;
    background: var(--paper);
    padding: 2px 16px;
    font-family: var(--font-hand);
    font-size: 22px;
    border: 1.5px solid var(--ink);
    transform: rotate(-2deg);
}
.featured-date {
    font-family: var(--font-hand);
    font-size: 24px;
    color: var(--accent-2);
}
.featured h3 {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 10px 0 18px;
}
.featured-blurb {
    color: var(--ink-soft);
    font-size: 18px;
    max-width: 460px;
}
.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 20px 0 4px;
}
.featured-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 3px 4px 0 var(--paper-shadow);
    padding: 6px 14px;
    transform: rotate(-1deg);
}
.featured-meta-item:nth-child(even) {
    transform: rotate(1deg);
    background: var(--paper-2);
}
.featured-meta-label {
    font-family: var(--font-hand);
    font-size: 14px;
    line-height: 1;
    text-transform: lowercase;
    color: var(--ink-faded);
}
.featured-meta-value {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.1;
    color: var(--ink);
    text-transform: lowercase;
}
.featured-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
}
.featured-time {
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--ink-soft);
}
.featured-media {
    position: relative;
}
.featured-img {
    aspect-ratio: 4/3;
    max-height: 480px;
    background: #9eaf6b;
    background-image:
        repeating-linear-gradient(-30deg, #00000012 0 2px, transparent 2px 11px),
        linear-gradient(135deg, #9eaf6b, #c5c68c);
    border: 1.5px solid var(--ink);
    position: relative;
}
.featured-img--photo { background-image: none; }
.featured-img--photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.featured-img .label {
    position: absolute;
    bottom: 14px; left: 14px;
    z-index: 2;
    background: var(--paper);
    padding: 4px 12px;
    font-family: var(--font-hand);
    font-size: 20px;
    transform: rotate(-2deg);
}
.featured-img .heart-stamp {
    position: absolute;
    top: -14px; right: -20px;
    z-index: 2;
    background: var(--accent-3);
    color: var(--ink);
    padding: 4px 16px;
    font-family: var(--font-hand);
    font-size: 22px;
    transform: rotate(6deg);
    border: 1.5px solid var(--ink);
}

/* --------- Shop / ebook covers --------- */
.ebook-grid, .kk-ebook-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 28px;
}
.ebook, .kk-product-card {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.ebook:hover, .kk-product-card:hover { color: inherit; }
.ebook-cover {
    aspect-ratio: 3/4;
    position: relative;
    background: var(--cover, #6b7a3a);
    border: 1.5px solid var(--ink);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 8px 10px 0 #00000015, inset 0 0 0 6px color-mix(in oklab, var(--cover, #6b7a3a) 85%, #000);
    transition: transform .25s;
    overflow: hidden;
}
.ebook:hover .ebook-cover,
.kk-product-card:hover .ebook-cover { transform: translate(-3px, -5px) rotate(-1.2deg); }
.ebook-cover::before {
    content: "";
    position: absolute; inset: 14px;
    border: 1px dashed #ffffff70;
    pointer-events: none;
}
.ebook-cover-title {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 0.95;
    color: #f4ecd8;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 0 #0004;
}
.ebook-cover-hand {
    font-family: var(--font-hand);
    font-size: 26px;
    color: #f4ecd8;
}
.ebook-cover-num {
    position: absolute;
    top: 12px; right: 14px;
    font-family: var(--font-hand);
    font-size: 20px;
    color: #f4ecd8a0;
}
.ebook-cover-bottom {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #f4ecd8b0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.ebook-info {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.ebook-title {
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.1;
}
.ebook-price {
    font-family: var(--font-hand);
    font-size: 28px;
    color: var(--accent-2);
    white-space: nowrap;
}
.ebook-meta {
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    color: var(--ink-faded);
    margin-top: 2px;
}
.ebook-add {
    margin-top: 10px;
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
.ebook:hover .ebook-add,
.kk-product-card:hover .ebook-add { color: var(--accent-2); }

/* Physical product (non-ebook) cover variant */
.product-cover {
    aspect-ratio: 4/5;
    border: 1.5px solid var(--ink);
    background: var(--img-bg, #b5a989);
    background-image:
        repeating-linear-gradient(45deg, #0000000f 0 2px, transparent 2px 9px),
        linear-gradient(135deg, var(--img-bg, #b5a989), color-mix(in oklab, var(--img-bg, #b5a989) 60%, #fff));
    position: relative;
    overflow: hidden;
    box-shadow: 8px 10px 0 #00000015;
    transition: transform .25s;
}
.product-cover--photo { background-image: none; }
.product-cover--photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.kk-product-card:hover .product-cover { transform: translate(-3px, -5px) rotate(-1.2deg); }

/* --------- Workshops --------- */
.workshop {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: center;
}
.workshop-left {
    background: var(--paper-2);
    padding: 40px;
    border: 1.5px solid var(--ink);
    position: relative;
    transform: rotate(-1deg);
    box-shadow: 6px 8px 0 var(--paper-shadow);
}
.workshop-date {
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--accent-2);
    margin-bottom: 6px;
}
.workshop-title {
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.01em;
}
.workshop-details {
    margin-top: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: 15px;
}
.workshop-details dt { font-family: var(--font-hand); font-size: 18px; color: var(--ink-faded); }
.workshop-details dd { margin: 0; }

/* --------- Forms (sketchbook style) --------- */
.workshop-form,
.kk-checkout-form {
    background: var(--paper);
    padding: 30px;
    border: 1.5px dashed var(--ink);
}
.workshop-form h4 {
    font-family: var(--font-hand);
    font-size: 30px;
    margin-bottom: 14px;
    color: var(--ink);
}
.field {
    display: block;
    margin-bottom: 14px;
}
.field label,
.kk-checkout-form .form-label {
    display: block;
    font-family: var(--font-hand);
    font-size: 19px;
    color: var(--ink-soft);
    margin-bottom: 2px;
}
.field input, .field textarea, .field select,
.kk-checkout-form input[type="text"],
.kk-checkout-form input[type="email"],
.kk-checkout-form input[type="tel"],
.kk-checkout-form textarea,
.kk-checkout-form select,
.news-form input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid var(--ink-soft);
    padding: 6px 4px;
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
    border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus,
.kk-checkout-form input:focus,
.kk-checkout-form textarea:focus,
.kk-checkout-form select:focus {
    border-color: var(--accent-2);
}
.kk-checkout-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.kk-checkout-form .form-check input[type="checkbox"] {
    width: auto;
    margin-top: 6px;
    accent-color: var(--accent-2);
}
.kk-checkout-form .form-check-label {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-soft);
    margin: 0;
}
.kk-checkout-form .form-text {
    font-family: var(--font-hand);
    font-size: 16px;
    color: var(--ink-faded);
    margin-top: 4px;
}
.kk-checkout-form .text-danger {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--accent-2);
    margin-top: 4px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* --------- Newsletter --------- */
.newsletter, .kk-newsletter-section {
    padding: 60px 50px;
    text-align: center;
    border: 2px dashed var(--ink);
    position: relative;
    background: var(--paper-2);
}
.kk-newsletter-section {
    border: 0;
    border-top: 1px dashed var(--rule);
    border-bottom: 1px dashed var(--rule);
    margin: 60px 0 0;
}
.newsletter h3, .kk-newsletter-section h3 {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}
.kk-newsletter-section h2 {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    margin: 0 0 12px;
}
.newsletter p, .kk-newsletter-section p {
    max-width: 520px;
    margin: 0 auto 26px;
    color: var(--ink-soft);
    font-size: 18px;
}
.newsletter-eyebrow {
    font-family: var(--font-hand);
    font-size: 24px;
    color: var(--accent-2);
    margin-bottom: 6px;
}
.news-form, .kk-newsletter-section form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.news-form input,
.kk-newsletter-section input[type="email"] {
    flex: 1;
    min-width: 220px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 17px;
    border-radius: 24px 20px 26px 18px / 20px 26px 18px 26px;
    outline: none;
}
.kk-newsletter-section .form-check {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    color: var(--ink-soft);
}
.kk-newsletter-section .form-check input[type="checkbox"] {
    accent-color: var(--accent-2);
    margin-top: 4px;
    flex-shrink: 0;
}
.kk-newsletter-section .form-check label {
    margin: 0;
    line-height: 1.4;
}
.kk-newsletter-section .form-check a {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* --------- Footer --------- */
.kk-footer, footer.kk-footer {
    padding: 60px 36px 30px;
    border-top: 1px dashed var(--rule);
    margin-top: 0;
    background: transparent;
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
}
.footer-brand-title {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1.05;
}
.footer-brand-sub {
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--ink-soft);
    margin-top: 8px;
}
.footer-brand-blurb {
    color: var(--ink-soft);
    font-size: 15px;
    margin-top: 14px;
    max-width: 360px;
}
.footer-col h2 {
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--accent-2);
    margin-bottom: 10px;
    font-weight: 500;
}
.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--ink-soft);
    padding: 3px 0;
    font-size: 15px;
    transition: color .15s;
}
.footer-col a:hover { color: var(--ink); }
.footer-payments {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    text-align: center;
}
.footer-payments-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-faded);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.footer-payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.footer-payment-logo {
    height: 24px;
    width: auto;
    opacity: 0.85;
    filter: grayscale(0.2);
}
.footer-bottom {
    max-width: 1280px;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faded);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}
.footer-bottom a { color: var(--ink-faded); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-nip {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faded);
    letter-spacing: 0.05em;
}
.footer-newsletter-link {
    min-height: 44px;
    margin-top: 10px;
    padding: 6px 0;
    border-bottom: 1.5px dotted var(--ink-soft);
    color: var(--ink-soft);
    font-family: var(--font-hand);
    font-size: 20px;
}
.footer-newsletter-link:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
}

/* --------- Homepage utilities --------- */
.home-section-link {
    margin-top: 24px;
}
.home-section-link--shop {
    margin-top: 36px;
}

/* --------- Homepage field notes + authored motion --------- */
.hero,
.home-canvas {
    overflow: clip;
}
.journal-mark {
    position: absolute;
    z-index: 0;
    display: block;
    width: 170px;
    height: auto;
    color: var(--ink-soft);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.13;
    pointer-events: none;
}
.journal-mark path {
    vector-effect: non-scaling-stroke;
}
.journal-mark__accent {
    color: var(--accent-2);
}
.journal-mark--hero {
    width: clamp(140px, 11vw, 168px);
    left: calc(50% - 78px);
    bottom: 14px;
    transform: rotate(-5deg);
    opacity: 0.12;
}
.journal-mark--recipes {
    right: max(-34px, calc((100vw - 1280px) / 2 - 72px));
    top: 138px;
    transform: rotate(8deg);
}
.journal-mark--about {
    left: max(-42px, calc((100vw - 1280px) / 2 - 88px));
    top: 238px;
    width: 184px;
    transform: rotate(-7deg);
    opacity: 0.11;
}
.journal-mark--shop {
    right: max(-35px, calc((100vw - 1280px) / 2 - 74px));
    top: 118px;
    width: 176px;
    transform: rotate(5deg);
    opacity: 0.11;
}

@media (prefers-reduced-motion: no-preference) {
    html.kk-motion-ready .hero-title {
        animation: kkOpenNotebook 680ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
    }
    html.kk-motion-ready .hero-title em {
        animation: kkUnderlineIngredient 620ms cubic-bezier(0.16, 1, 0.3, 1) 430ms both;
    }
    html.kk-motion-ready .hero-illus .polaroid {
        animation: kkPlacePhoto 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    html.kk-motion-ready .hero-illus .polaroid:nth-of-type(1) { animation-delay: 110ms; }
    html.kk-motion-ready .hero-illus .polaroid:nth-of-type(2) { animation-delay: 220ms; }
    html.kk-motion-ready .hero-illus .polaroid:nth-of-type(3) { animation-delay: 330ms; }

    html.kk-motion-ready .journal-mark[data-kk-reveal] path {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        opacity: 0;
    }
    html.kk-motion-ready .journal-mark[data-kk-reveal].is-visible path {
        animation: kkTraceFieldNote 880ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    html.kk-motion-ready .journal-mark[data-kk-reveal].is-visible path:nth-child(n+2) {
        animation-delay: 90ms;
    }
    html.kk-motion-ready .journal-mark[data-kk-reveal].is-visible path:nth-child(n+5) {
        animation-delay: 170ms;
    }
    html.kk-motion-ready .section-head[data-kk-reveal]::after {
        transform: scaleX(0);
        transform-origin: left center;
    }
    html.kk-motion-ready .section-head[data-kk-reveal].is-visible::after {
        animation: kkDrawRule 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    html.kk-motion-ready .featured-media[data-kk-reveal] .featured-img--photo img {
        clip-path: inset(0 0 100% 0);
    }
    html.kk-motion-ready .featured-media[data-kk-reveal].is-visible .featured-img--photo img {
        animation: kkDevelopPhoto 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    html.kk-motion-ready .featured-media[data-kk-reveal] .heart-stamp {
        opacity: 0;
        transform: rotate(2deg) scale(0.86);
    }
    html.kk-motion-ready .featured-media[data-kk-reveal].is-visible .heart-stamp {
        animation: kkStampFavorite 260ms cubic-bezier(0.16, 1, 0.3, 1) 480ms forwards;
    }
}

@keyframes kkOpenNotebook {
    from {
        opacity: 0.35;
        transform: translateY(12px);
        clip-path: inset(0 0 16% 0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0);
    }
}
@keyframes kkUnderlineIngredient {
    from { background-size: 0 0.2em; }
    to { background-size: 100% 0.2em; }
}
@keyframes kkPlacePhoto {
    from {
        opacity: 0.28;
        filter: sepia(0.28);
        transform: translateY(26px) rotate(0deg) scale(0.96);
    }
    to {
        opacity: 1;
        filter: sepia(0);
        transform: var(--kk-photo-rest);
    }
}
@keyframes kkTraceFieldNote {
    from {
        stroke-dashoffset: 1;
        opacity: 0.15;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}
@keyframes kkDrawRule {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes kkDevelopPhoto {
    from {
        clip-path: inset(0 0 100% 0);
        filter: sepia(0.24) saturate(0.82);
    }
    to {
        clip-path: inset(0);
        filter: sepia(0) saturate(1);
    }
}
@keyframes kkStampFavorite {
    from {
        opacity: 0;
        transform: rotate(2deg) scale(0.86);
    }
    to {
        opacity: 1;
        transform: rotate(6deg) scale(1);
    }
}

/* --------- Pagination --------- */
.kk-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.kk-pagination .page-item .page-link {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 22px;
    padding: 6px 14px;
    border: 1.5px solid var(--ink-soft);
    border-radius: 14px 12px 16px 10px / 12px 16px 10px 16px;
    color: var(--ink-soft);
    text-decoration: none;
    background: transparent;
    transition: all .15s;
}
.kk-pagination .page-item .page-link:hover {
    background: var(--paper-2);
    color: var(--ink);
}
.kk-pagination .page-item.active .page-link {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: rotate(-1deg);
}

/* --------- Cart page --------- */
.kk-cart-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}
.kk-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px dashed var(--rule);
    align-items: center;
}
.kk-cart-item__img,
.kk-cart-item__img-placeholder {
    width: 80px; height: 100px;
    object-fit: cover;
    border: 1.5px solid var(--ink);
    background: var(--paper-2);
}
.kk-cart-item__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faded);
    font-family: var(--font-hand);
    font-size: 30px;
}
.kk-cart-item__info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.1;
    margin-bottom: 4px;
}
.kk-cart-item__info a { text-decoration: none; }
.kk-cart-item__info a:hover h3 { color: var(--accent-2); }
.kk-delivery-note {
    font-family: var(--font-hand);
    font-size: 18px;
    color: var(--ink-soft);
}
.kk-cart-item__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.kk-qty-btn {
    width: 32px; height: 32px;
    border: 1.5px solid var(--ink-soft);
    border-radius: 50%;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: var(--ink-soft);
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kk-qty-btn:hover:not([disabled]) {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.kk-qty-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.kk-qty-input {
    width: 40px;
    text-align: center;
    font-family: var(--font-hand);
    font-size: 22px;
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid var(--ink-soft);
    color: var(--ink);
    padding: 4px 0;
}
.kk-cart-remove {
    font-family: var(--font-hand);
    font-size: 18px;
    color: var(--accent-2);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 4px 8px;
}
.kk-cart-remove:hover { color: var(--ink); }
.kk-price {
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--accent-2);
    white-space: nowrap;
}
.kk-cart-summary, .kk-order-summary {
    background: var(--paper-2);
    border: 1.5px solid var(--ink);
    padding: 28px;
    box-shadow: 8px 10px 0 var(--paper-shadow);
}
.kk-cart-summary hr,
.kk-order-summary hr {
    border: 0;
    border-top: 1px dashed var(--ink-soft);
    margin: 12px 0;
}
.kk-cart-summary .summary-row,
.kk-order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

/* --------- Detail / sidebar (recipe + product) --------- */
.kk-detail-hero {
    border: 1.5px solid var(--ink);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 12px 14px 0 var(--paper-shadow);
}
.kk-detail-hero img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.kk-detail-sidebar {
    background: var(--paper-2);
    border: 1.5px solid var(--ink);
    padding: 28px;
    box-shadow: 8px 10px 0 var(--paper-shadow);
    position: sticky;
    top: 110px;
}

/* --------- Recipe meta-bar (under title) --------- */
.kk-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin: 0 0 32px;
}
.kk-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 4px 5px 0 var(--paper-shadow);
    padding: 8px 16px;
    transform: rotate(-1deg);
}
.kk-meta-item:nth-child(even) {
    transform: rotate(1deg);
    background: var(--paper-2);
}
.kk-meta-label {
    font-family: var(--font-hand);
    font-size: 16px;
    line-height: 1;
    text-transform: lowercase;
    color: var(--ink-faded);
}
.kk-meta-value {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.1;
    color: var(--ink);
}

/* --------- Recipe two-column body --------- */
.kk-recipe-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
.kk-ingredients-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}
.kk-ingredients-back {
    margin-top: 16px;
}
.kk-ingredients--list {
    padding: 20px 24px;
}
.kk-ingredients--list ul.kk-ingredient-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.kk-ingredient-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    line-height: 1.55;
}
.kk-ingredient-item::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent);
}
.kk-ingredient-group {
    font-family: var(--font-hand);
    font-size: 21px;
    color: var(--accent-2);
    margin-top: 20px;
    margin-bottom: 8px;
    line-height: 1.2;
}
.kk-ingredient-group:first-child {
    margin-top: 0;
}

/* Detail body typography */
.kk-section h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -0.015em;
    line-height: 1;
    margin-bottom: 24px;
}
.kk-section h2 {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 32px 0 14px;
}
.kk-section h3 {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.1;
    margin: 24px 0 12px;
}
.kk-section .lead {
    font-size: 22px;
    line-height: 1.45;
    color: var(--ink-soft);
    max-width: 640px;
    margin-bottom: 32px;
}
.kk-section ul, .kk-section ol {
    padding-left: 22px;
    line-height: 1.7;
}
.kk-section li { margin-bottom: 4px; }
.kk-ingredients, .kk-steps {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink-soft);
    padding: 24px 28px;
    background: var(--paper-2);
    border: 1px dashed var(--ink-soft);
    margin-bottom: 30px;
    white-space: pre-line;
}
.kk-prep-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--accent-2);
    background: var(--paper);
    padding: 2px 12px;
    border: 1.5px solid var(--ink);
    transform: rotate(-2deg);
}
.kk-category-badge {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 18px;
    color: var(--ink-soft);
    background: var(--paper);
    padding: 2px 10px;
    border: 1px solid var(--ink-soft);
    transform: rotate(1deg);
    text-decoration: none;
}
.kk-badge-digital {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 16px;
    color: var(--paper);
    background: var(--accent);
    padding: 2px 10px;
    transform: rotate(-1deg);
}
.kk-contact-label {
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--accent-2);
}

/* --------- Cookie banner --------- */
#cookie-banner.cookie-banner {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    z-index: 95;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 14px 12px 16px 12px;
    box-shadow: 8px 10px 0 #00000020;
    display: none;
}
#cookie-banner.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
#cookie-banner.cookie-banner p {
    margin: 0;
    font-size: 15px;
    color: var(--ink-soft);
}
#cookie-banner .cookie-btn-accept,
#cookie-banner .cookie-btn-reject {
    font-family: var(--font-hand);
    font-size: 18px;
    padding: 6px 16px;
    border: 1.5px solid var(--ink);
    border-radius: 18px 14px 20px 14px / 14px 20px 14px 20px;
    cursor: pointer;
    transition: all .15s;
}
#cookie-banner .cookie-btn-accept {
    background: var(--ink);
    color: var(--paper);
}
#cookie-banner .cookie-btn-reject {
    background: transparent;
    color: var(--ink);
}
#cookie-banner .cookie-btn-accept:hover,
#cookie-banner .cookie-btn-reject:hover {
    transform: translate(-1px, -2px) rotate(-0.5deg);
}

/* --------- Search bar --------- */
.kk-search-bar {
    margin-bottom: 30px;
    max-width: 520px;
}
.kk-search-bar .input-group {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--ink);
    border-radius: 24px 20px 26px 18px / 20px 26px 18px 26px;
    background: var(--paper);
    overflow: hidden;
}
.kk-search-bar input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ink);
    outline: none;
}
.kk-search-bar button {
    border: 0;
    border-left: 1.5px solid var(--ink);
    background: var(--paper-2);
    padding: 10px 22px;
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s;
    border-radius: 0;
}
.kk-search-bar button:hover { background: var(--accent-3); }

/* Empty state helper */
.kk-empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--ink-soft);
}
.kk-empty-state h2 {
    font-family: var(--font-display);
    font-size: 36px;
    margin-bottom: 14px;
}

/* --------- Bootstrap-like helpers (reused legacy classes) --------- */
.text-center { text-align: center; }
.text-md-end { text-align: right; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }
.me-1 { margin-right: 4px; }
.me-3 { margin-right: 16px; }
.ms-1 { margin-left: 4px; }
.ms-3 { margin-left: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }
.mt-auto { margin-top: auto; }
.my-4 { margin: 24px 0; }
.py-3 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 60px; padding-bottom: 60px; }
.text-muted { color: var(--ink-faded); }
.text-danger { color: var(--accent-2); }
.text-decoration-none { text-decoration: none; }
.w-100 { width: 100%; }
.small { font-size: 14px; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
}
.row.gy-4 { row-gap: 28px; }
.col-12 { grid-column: span 12; }
.col-md-4, .col-md-6, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8 { grid-column: span 12; }
@media (min-width: 768px) {
    .col-md-4 { grid-column: span 4; }
    .col-md-6 { grid-column: span 6; }
}
@media (min-width: 992px) {
    .col-lg-4 { grid-column: span 4; }
    .col-lg-5 { grid-column: span 5; }
    .col-lg-6 { grid-column: span 6; }
    .col-lg-7 { grid-column: span 7; }
    .col-lg-8 { grid-column: span 8; }
    .row.justify-content-center > .col-lg-8 { grid-column: 3 / span 8; }
    .kk-recipe-body {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
    .kk-recipe-steps-col { order: 1; }
    .kk-recipe-ingredients-col { order: 2; }
}

/* --------- Responsive breakpoints --------- */
@media (max-width: 1024px) {
    .recipe-grid, .kk-recipe-grid { grid-template-columns: repeat(2, 1fr); }
    .ebook-grid, .kk-ebook-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { font-size: 22px; gap: 14px; }
    .journal-mark:not(.journal-mark--hero) { display: none; }
}

@media (max-width: 900px) {
    .nav { padding: 14px 24px 12px; }
    .nav-brand { font-size: 30px; gap: 8px; }
    .nav-brand-sub { display: none; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px dashed var(--rule);
        padding: 12px 24px 18px;
        font-size: 24px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 8px 0; }
    .nav-toggle { display: inline-flex; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-illus { min-height: 420px; }
    .hero-annot--saturday { left: 0; top: 430px; }
    .hero-title { font-size: clamp(48px, 11vw, 72px); }
    .recipe-grid, .kk-recipe-grid { grid-template-columns: 1fr; }
    .ebook-grid, .kk-ebook-grid { grid-template-columns: 1fr 1fr; }
    .featured, .workshop { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
    .featured { align-items: stretch; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photos { min-height: 660px; }
    .about-annot { left: 280px; }
    .kk-cart-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .section-meta { text-align: left; max-width: none; }
    .kk-detail-sidebar { position: static; }
}

@media (max-width: 600px) {
    .wrap, .container { padding: 0 20px; }
    .hero-illus { min-height: 380px; }
    .hero-illus .polaroid:nth-of-type(1) { width: 220px; left: 0; }
    .hero-illus .polaroid:nth-of-type(2) { width: 170px; left: 180px; top: 90px; }
    .hero-illus .polaroid:nth-of-type(3) { width: 160px; left: 30px; top: 230px; }
    .hero-annot--saturday { font-size: 18px; max-width: 130px; }
    .ebook-grid, .kk-ebook-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; }
    .featured h3 { font-size: 36px; }
    .form-row { grid-template-columns: 1fr; }
    .about-photos { min-height: 500px; }
    .about-photos .polaroid:nth-of-type(1) { width: 230px; left: 0; }
    .about-photos .polaroid:nth-of-type(2) { width: 165px; left: 150px; top: 120px; }
    .about-photos .polaroid:nth-of-type(3) { width: 170px; left: 20px; top: 295px; }
    .about-annot { display: none; }
    .kk-cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
    }
    .kk-cart-item__img,
    .kk-cart-item__img-placeholder { width: 60px; height: 80px; }
    .kk-cart-item__actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }
    .nav-cart-label { display: none; }
    .journal-mark--hero {
        width: 190px;
        left: auto;
        right: -76px;
        bottom: 18px;
        opacity: 0.07;
        transform: rotate(14deg);
    }

    #cookie-banner.cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    #cookie-banner.cookie-banner .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 10px 12px;
    }
    #cookie-banner.cookie-banner p {
        font-size: 13px;
        line-height: 1.3;
    }
    #cookie-banner .cookie-btn-accept,
    #cookie-banner .cookie-btn-reject {
        font-size: 16px;
        padding: 5px 10px;
    }
}

/* --------- Blog body typography (kk-blog-body) --------- */
.kk-blog-body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    color: var(--ink);
    margin-top: 24px;
}
.kk-blog-body p {
    margin: 0 0 18px;
}
.kk-blog-body h2 {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.2;
    color: var(--ink);
    margin: 36px 0 14px;
}
.kk-blog-body h3 {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.25;
    color: var(--ink-soft);
    margin: 28px 0 10px;
}
.kk-blog-body ul,
.kk-blog-body ol {
    margin: 0 0 18px 24px;
    padding: 0;
}
.kk-blog-body li {
    margin-bottom: 8px;
}
.kk-blog-body a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.kk-blog-body a:hover {
    color: var(--ink);
}
.kk-blog-body blockquote {
    border-left: 0;
    border-top: 1px solid var(--accent-3);
    border-bottom: 1px solid var(--accent-3);
    padding: 12px 0;
    margin: 18px 0;
    background: var(--paper-2);
    color: var(--ink-soft);
    font-style: italic;
}
.kk-blog-body code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--paper-2);
    padding: 1px 6px;
    border-radius: 3px;
}
.kk-blog-body pre {
    font-family: var(--font-mono);
    font-size: 14px;
    background: var(--paper-2);
    padding: 14px 18px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 18px 0;
}
.kk-blog-body pre code {
    background: transparent;
    padding: 0;
}
.kk-blog-body hr {
    border: none;
    border-top: 1px dashed var(--ink-soft);
    margin: 32px 0;
}
.kk-blog-body strong { color: var(--ink); }
.kk-blog-body em { font-style: italic; }
@media (max-width: 768px) {
    .kk-blog-body { font-size: 17px; }
    .kk-blog-body h2 { font-size: 26px; }
    .kk-blog-body h3 { font-size: 21px; }
}

/* newsletter anti-bot */
.kk-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.kk-turnstile {
    margin: 12px 0;
}

/* newsletter CTA + modal */
.kk-newsletter-cta {
    margin-top: 8px;
}
body.kk-modal-open {
    overflow: hidden;
}
.kk-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(42, 36, 32, 0.65);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: kkFadeIn 180ms ease-out;
}
.kk-modal-backdrop[hidden] {
    display: none;
}
.kk-modal {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 28px 22px 30px 20px / 22px 28px 20px 30px;
    padding: 36px 30px 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 60px rgba(42, 36, 32, 0.3);
    animation: kkSlideUp 200ms ease-out;
    max-height: 90vh;
    overflow-y: auto;
}
.kk-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 6px 10px;
    transition: color 0.15s;
    font-family: var(--font-body);
}
.kk-modal-close:hover,
.kk-modal-close:focus-visible {
    color: var(--ink);
}
.kk-modal .newsletter-eyebrow {
    text-align: center;
}
.kk-modal h3 {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 1;
    text-align: center;
    margin: 4px 0 12px;
    color: var(--ink);
}
.kk-modal p {
    text-align: center;
    color: var(--ink-soft);
    font-size: 16px;
    margin: 0 0 20px;
}
.kk-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.kk-modal-form input[type="email"] {
    background: var(--paper-2, #ebe0c5);
    border: 1.5px solid var(--ink);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 17px;
    border-radius: 24px 20px 26px 18px / 20px 26px 18px 26px;
    outline: none;
    width: 100%;
}
.kk-modal-form input[type="email"]:focus {
    border-color: var(--accent-2);
}
.kk-modal-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
}
.kk-modal-form .form-check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.kk-modal-form .form-check a {
    color: var(--accent-2);
    text-decoration: underline;
}
.kk-modal-form .kk-turnstile {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}
.kk-modal-form button[type="submit"] {
    align-self: center;
    min-width: 200px;
}
@keyframes kkFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes kkSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@media (max-width: 480px) {
    .kk-modal {
        padding: 28px 22px 24px;
        border-radius: 22px;
    }
    .kk-modal h3 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    .journal-mark path {
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
        opacity: 1 !important;
    }
}

/* ===========================================================
   Komitywa 2026 — pracownia / zeszyt produkcyjny
   The rules below extend the established sketchbook system for
   the bakery, B2B, order-edition and workshop surfaces.
   =========================================================== */

html { scroll-behavior: smooth; }
main { min-height: 52vh; }

main h1,
main h2,
main h3 {
    text-wrap: balance;
}

main h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 6.2vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.025em;
}

.kk-kicker {
    margin: 0 0 10px;
    font-family: var(--font-hand);
    font-size: 24px;
    line-height: 1.1;
    color: var(--accent-2);
}

.kk-hand-note {
    margin: 0;
    font-family: var(--font-hand);
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.15;
    color: var(--accent);
    transform: rotate(-0.7deg);
}

.kk-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.btn,
.kk-btn-primary,
.kk-link-arrow,
.tag,
.kk-filter-pill {
    min-height: 44px;
}

.kk-link-arrow {
    align-items: center;
}

.tag,
.kk-filter-pill {
    display: inline-flex;
    align-items: center;
}

.kk-flash-wrap {
    position: relative;
    z-index: 40;
    max-width: 1280px;
    margin: 18px auto 0;
    padding: 0 36px;
}

.kk-flash {
    border: 1.5px solid var(--ink);
    border-left: 1.5px solid var(--accent);
    background: var(--paper-2);
    box-shadow: 5px 6px 0 var(--paper-shadow);
    padding: 14px 18px;
}

.kk-flash--error { border-left-color: var(--accent-2); }

/* Seven-link desktop navigation */
.nav { padding: 14px 28px 12px; }
.nav-inner { max-width: 1420px; gap: 12px; align-items: center; }
.nav-brand { font-size: 28px; gap: 8px; white-space: nowrap; }
.nav-brand .dot { width: 10px; height: 10px; }
.nav-brand-sub { font-size: 17px; }
.nav-links { gap: 1px; font-size: 18px; white-space: nowrap; }
.nav-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 7px 5px;
}
.nav-cart { flex: 0 0 auto; min-height: 44px; font-size: 18px; padding: 6px 10px; }

/* Homepage */
.kk-home-hero {
    padding: clamp(64px, 7vw, 104px) 0 clamp(78px, 9vw, 132px);
    overflow: clip;
}

.kk-home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.72fr);
    gap: clamp(52px, 8vw, 120px);
    align-items: center;
}

.kk-home-hero__copy { max-width: 780px; }
.kk-home-hero h1 { font-size: clamp(58px, 7.1vw, 106px); }

.kk-home-hero__lead {
    max-width: 670px;
    margin: 28px 0 18px;
    color: var(--ink-soft);
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.48;
}

.kk-home-hero__photo,
.kk-cafe-callout__photo,
.kk-order-edition__photo {
    position: relative;
    margin: 0;
    background: #fbf5e4;
    border: 1px solid #e7dab8;
    padding: 13px 13px 54px;
    box-shadow: 13px 17px 0 #00000010, 0 16px 35px -20px #0008;
}

.kk-home-hero__photo { transform: rotate(1.7deg); }
.kk-home-hero__photo img,
.kk-cafe-callout__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.kk-home-hero__photo figcaption,
.kk-cafe-callout__photo figcaption {
    position: absolute;
    right: 18px;
    bottom: 13px;
    left: 18px;
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--ink-soft);
    text-align: center;
}

.kk-photo-tape {
    position: absolute;
    top: -11px;
    left: 50%;
    width: 92px;
    height: 24px;
    background: var(--tape);
    box-shadow: 0 1px 2px #0002;
    transform: translateX(-50%) rotate(-3deg);
}

.kk-home-section { padding: clamp(70px, 8vw, 116px) 0; }
.kk-home-section--services { border-top: 1px dashed var(--rule); }

.kk-home-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
    gap: 50px;
    align-items: end;
    margin-bottom: clamp(38px, 5vw, 64px);
    padding-bottom: 20px;
    border-bottom: 1.5px solid var(--ink);
}

.kk-home-heading--compact { grid-template-columns: 1fr; }

.kk-home-heading h2,
.kk-cafe-callout h2,
.kk-b2b-process h2,
.kk-inquiry-section h2,
.kk-planned-note h2 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.kk-home-heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 19px;
}

.kk-service-ledger {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    border-top: 1.5px solid var(--ink);
}

.kk-service-ledger__item {
    grid-column: span 5;
    min-height: 300px;
    padding: 30px 34px 34px 0;
    border-bottom: 1.5px solid var(--ink);
}

.kk-service-ledger__item--wide {
    grid-column: span 7;
    padding-right: clamp(44px, 7vw, 100px);
}

.kk-service-ledger__item:nth-child(2),
.kk-service-ledger__item:nth-child(4) {
    padding-left: clamp(28px, 4vw, 62px);
    border-left: 1px dashed var(--rule);
}

.kk-service-ledger__note {
    margin: 0 0 14px;
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--accent-2);
}

.kk-service-ledger h3 {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.2vw, 48px);
    line-height: 1;
}

.kk-service-ledger__item > p:not(.kk-service-ledger__note) {
    max-width: 560px;
    margin: 18px 0 24px;
    color: var(--ink-soft);
}

.kk-current {
    border-top: 1px dashed var(--rule);
    border-bottom: 1px dashed var(--rule);
    background: color-mix(in srgb, var(--paper-2) 72%, transparent);
}

.kk-current-edition {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(38px, 6vw, 90px);
    align-items: center;
}
.kk-current-edition--text-only { grid-template-columns: minmax(0, 760px); }

.kk-current-edition__image {
    border: 1.5px solid var(--ink);
    box-shadow: 10px 12px 0 var(--paper-shadow);
    overflow: hidden;
}

.kk-current-edition__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.kk-current-edition__copy h3,
.kk-current-empty h3 {
    margin: 8px 0 18px;
    font-family: var(--font-display);
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1;
}

.kk-current-edition__copy > p:not(.kk-hand-note),
.kk-current-empty p { max-width: 690px; color: var(--ink-soft); }
.kk-order-deadline { font-family: var(--font-hand); font-size: 22px; color: var(--accent-2) !important; }

.kk-current-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 32px 0;
    border-top: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
}

.kk-current-empty__mark,
.kk-orders-closed__mark {
    margin: 0;
    font-family: var(--font-hand);
    font-size: 64px;
    line-height: 0.6;
    letter-spacing: 0.15em;
    color: var(--accent-2);
}

.kk-cafe-callout { background: var(--accent); color: var(--paper); }
.kk-cafe-callout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.68fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
}
.kk-cafe-callout .kk-kicker { color: var(--accent-3); }
.kk-cafe-callout h2 { color: var(--paper); }
.kk-cafe-callout__lead { max-width: 670px; margin: 24px 0; font-size: 21px; color: #fffbea; }
.kk-cafe-callout .btn-accent { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.kk-cafe-callout__photo { transform: rotate(-1.2deg); color: var(--ink); }

.kk-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    font-family: var(--font-hand);
    font-size: 23px;
    color: #fffbea;
}
.kk-inline-list li::before { content: "· "; color: var(--accent-3); }

.kk-kitchen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 42px);
}
.kk-kitchen-card { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.kk-kitchen-card__link { color: inherit; text-decoration: none; }
.kk-kitchen-card__image,
.kk-kitchen-card__paper {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--ink);
    overflow: hidden;
}
.kk-kitchen-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms var(--kk-ease-smooth); }
.kk-kitchen-card__link:hover .kk-kitchen-card__image img { transform: scale(1.035); }
.kk-kitchen-card__paper {
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(0deg, transparent 0 30px, color-mix(in srgb, var(--rule) 58%, transparent) 30px 31px), var(--paper-2);
}
.kk-kitchen-card__paper span { font-family: var(--font-hand); font-size: 46px; color: var(--accent-2); transform: rotate(-4deg); }
.kk-kitchen-card__body { padding-top: 18px; }
.kk-kitchen-card__meta { margin: 0 0 6px; font-family: var(--font-hand); font-size: 19px; color: var(--accent-2); }
.kk-kitchen-card h3 { font-family: var(--font-display); font-size: 32px; line-height: 1.05; }
.kk-kitchen-card__body > p:not(.kk-kitchen-card__meta) { margin: 12px 0 18px; color: var(--ink-soft); }

.kk-location-list { border-top: 1.5px solid var(--ink); }
.kk-location {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(180px, 0.7fr) minmax(0, 1.4fr) auto;
    gap: 24px;
    align-items: baseline;
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
}
.kk-location h3 { font-family: var(--font-display); font-size: 28px; }
.kk-location p { margin: 0; color: var(--ink-soft); }
.kk-location__address { font-family: var(--font-hand); font-size: 20px; }
.kk-empty-note { margin: 0; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--ink-soft); }

/* Shared page introductions */
.kk-page-intro,
.kk-workshop-hero {
    padding: clamp(62px, 8vw, 110px) 0 clamp(54px, 7vw, 90px);
    border-bottom: 1px dashed var(--rule);
}
.kk-page-intro__grid,
.kk-workshop-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: clamp(42px, 7vw, 100px);
    align-items: end;
}
.kk-page-intro__lead { margin: 0 0 26px; color: var(--ink-soft); font-size: clamp(20px, 2vw, 24px); line-height: 1.48; }

/* Order editions */
.kk-order-edition,
.kk-order-archive { padding: clamp(68px, 8vw, 110px) 0; }
.kk-order-edition__header {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(42px, 7vw, 104px);
    align-items: center;
}
.kk-order-edition__header--text-only { grid-template-columns: minmax(0, 820px); }
.kk-order-edition__photo { transform: rotate(-1deg); }
.kk-order-edition__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kk-order-edition__copy h2 { margin: 8px 0 20px; font-family: var(--font-display); font-size: clamp(42px, 5.4vw, 74px); line-height: 0.98; }
.kk-prose { max-width: 720px; color: var(--ink-soft); }

.kk-order-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(52px, 7vw, 90px) 0 0;
    border-top: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
}
.kk-order-facts > div { padding: 24px 28px 24px 0; }
.kk-order-facts > div + div { padding-left: 28px; border-left: 1px dashed var(--rule); }
.kk-order-facts dt,
.kk-product-details dt { font-family: var(--font-hand); font-size: 19px; color: var(--accent-2); }
.kk-order-facts dd,
.kk-product-details dd { margin: 4px 0 0; color: var(--ink-soft); }

.kk-order-products { margin-top: clamp(68px, 8vw, 110px); border-top: 1.5px solid var(--ink); }
.kk-order-product {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 70px);
    padding: 42px 0;
    border-bottom: 1.5px solid var(--ink);
}
.kk-order-product--text-only { grid-template-columns: minmax(0, 920px); }
.kk-order-product__image { align-self: start; border: 1px solid var(--ink); overflow: hidden; }
.kk-order-product__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--kk-ease-smooth); }
.kk-order-product__image:hover img { transform: scale(1.035); }
.kk-order-product__heading { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.kk-order-product__heading h3 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); }
.kk-order-product__heading h3 a { text-decoration: none; }
.kk-order-product__price { margin: 0; white-space: nowrap; font-family: var(--font-hand); font-size: 30px; color: var(--accent-2); }
.kk-order-product__body > p { max-width: 760px; margin: 14px 0 24px; color: var(--ink-soft); }
.kk-product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; }
.kk-product-details > div { padding-top: 16px; border-top: 1px dashed var(--rule); }
.kk-order-product__action { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; margin-top: 30px; }

.kk-orders-closed { padding: clamp(86px, 11vw, 150px) 0; text-align: center; }
.kk-orders-closed h2 { margin: 14px auto 20px; max-width: 780px; font-family: var(--font-display); font-size: clamp(42px, 6vw, 78px); line-height: 1; }
.kk-orders-closed p:not(.kk-orders-closed__mark) { max-width: 620px; margin: 0 auto 28px; color: var(--ink-soft); font-size: 20px; }
.kk-order-archive { border-top: 1px dashed var(--rule); }
.kk-archive-list { border-top: 1.5px solid var(--ink); }
.kk-archive-list article { display: grid; grid-template-columns: 180px minmax(220px, 0.6fr) minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.kk-archive-list h3 { font-family: var(--font-display); font-size: 28px; }
.kk-archive-list p { margin: 0; color: var(--ink-soft); }
.kk-archive-list__date { font-family: var(--font-hand); font-size: 19px; color: var(--accent-2) !important; }

/* Cafe offer and workshop */
.kk-b2b-products,
.kk-b2b-process,
.kk-workshop-topics,
.kk-inquiry-section { padding: clamp(70px, 8vw, 116px) 0; }
.kk-b2b-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.kk-b2b-list article { position: relative; min-height: 240px; padding: 28px 42px 32px 62px; border-bottom: 1.5px solid var(--ink); }
.kk-b2b-list article:nth-child(even) { border-left: 1px dashed var(--rule); }
.kk-b2b-list article > span,
.kk-topic-list li > span { position: absolute; top: 29px; left: 0; font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); }
.kk-b2b-list article:nth-child(even) > span { left: 24px; }
.kk-b2b-list h3 { font-family: var(--font-display); font-size: 38px; }
.kk-b2b-list p { margin-top: 14px; color: var(--ink-soft); }

.kk-custom-bake { display: grid; grid-template-columns: 0.5fr 1.5fr; gap: 40px; margin-top: 64px; padding: 34px; background: var(--paper-2); border: 1.5px dashed var(--ink); }
.kk-custom-bake h3 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.kk-custom-bake p:not(.kk-hand-note) { margin: 14px 0 0; color: var(--ink-soft); }

.kk-b2b-process { background: var(--ink); color: var(--paper); }
.kk-b2b-process__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(50px, 8vw, 110px); }
.kk-b2b-process h2 { color: var(--paper); }
.kk-b2b-process ol { margin: 0; padding: 0; list-style: none; counter-reset: b2b-step; border-top: 1px solid #f3ead766; }
.kk-b2b-process li { display: grid; grid-template-columns: minmax(220px, 0.75fr) 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid #f3ead766; }
.kk-b2b-process li strong { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.kk-b2b-process li span { color: #f3ead7cc; }

.kk-workshop-hero__grid { align-items: center; }
.kk-planned-note { padding: 32px; background: var(--paper-2); border: 1.5px dashed var(--ink); transform: rotate(0.8deg); }
.kk-planned-note h2 { margin: 8px 0 16px; font-size: clamp(34px, 4vw, 52px); }
.kk-planned-note > p:last-child { margin: 0; color: var(--ink-soft); }
.kk-topic-list { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.kk-topic-list li { position: relative; display: grid; grid-template-columns: minmax(260px, 0.65fr) 1fr; gap: 36px; padding: 24px 0 24px 62px; border-bottom: 1px solid var(--rule); }
.kk-topic-list strong { font-family: var(--font-display); font-size: 28px; font-weight: 400; }
.kk-topic-list p { margin: 0; color: var(--ink-soft); }

/* Public inquiry forms */
.kk-inquiry-section { border-top: 1px dashed var(--rule); background: color-mix(in srgb, var(--paper-2) 62%, transparent); }
.kk-inquiry-section__grid { display: grid; grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr); gap: clamp(48px, 8vw, 110px); align-items: start; }
.kk-inquiry-section__intro { position: sticky; top: 116px; }
.kk-inquiry-section__intro p:last-child { margin-top: 22px; color: var(--ink-soft); }
.kk-public-form { padding: clamp(24px, 4vw, 44px); border: 1.5px solid var(--ink); background: var(--paper); box-shadow: 9px 11px 0 var(--paper-shadow); }
.kk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 22px; margin-bottom: 30px; }
.kk-field--full { grid-column: 1 / -1; }
.kk-field label,
.kk-field legend { display: block; margin: 0 0 7px; padding: 0; font-family: var(--font-hand); font-size: 19px; color: var(--ink-soft); }
.kk-field label span { font-size: 16px; color: var(--ink-faded); }
.kk-field input:not([type="checkbox"]),
.kk-field select,
.kk-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid var(--ink-soft);
    border-radius: 0;
    background: #fbf5e4;
    padding: 10px 12px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
}
.kk-field textarea { min-height: 132px; resize: vertical; }
.kk-checkbox-group { margin: 0; padding: 0; border: 0; }
.kk-checkbox-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.kk-checkbox-group li label { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 0; font-family: var(--font-body); font-size: 16px; }
.kk-checkbox-group input[type="checkbox"],
.kk-consent input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent-2); }
.kk-consent { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.kk-consent label { flex: 1 1 260px; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.kk-consent a { color: var(--accent-2); text-underline-offset: 3px; }
.kk-field-error { grid-column: 1 / -1; margin: 5px 0 0; color: #8d2f16; font-size: 15px; }
.kk-form-summary { margin-bottom: 24px; padding: 12px 14px; border: 1px solid var(--accent-2); background: var(--paper-2); }
.kk-form-summary p { margin: 0; }
.kk-form-summary:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.kk-field-errors { grid-column: 1 / -1; }
.kk-field-errors .kk-field-error + .kk-field-error { margin-top: 2px; }
.kk-form-summary ul { margin: 0; }

/* Newsletter confirmation and preference states */
.kk-status-page { padding: clamp(68px, 9vw, 126px) 0; }
.kk-status-page__inner { text-align: center; }
.kk-status-page__eyebrow { justify-content: center; }
.kk-status-page__mark {
    margin-bottom: 22px;
    color: var(--accent-2);
    font-family: var(--font-hand);
    font-size: 64px;
    line-height: 1;
}
.kk-status-page__mark--success { color: var(--accent); }
.kk-status-page__mark--muted { color: var(--ink-faded); }
.kk-status-page h1 { margin-bottom: 20px; }
.kk-status-page .lead { max-width: 680px; margin-right: auto; margin-left: auto; }
.kk-status-page__note { color: var(--ink-faded); font-family: var(--font-hand); font-size: 22px; }
.kk-status-page__action { margin-top: 28px; }

.kk-public-form :where(input, select, textarea):focus-visible,
.kk-search-bar input[type="search"]:focus-visible,
.news-form input:focus-visible,
.kk-newsletter-section input:focus-visible,
.kk-modal-form input:focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 3px;
}

/* Legal and long-form utility pages */
.wrap-narrow > h1 { margin-bottom: 40px; }
.wrap-narrow > h2 { margin: 38px 0 12px; font-family: var(--font-display); font-size: clamp(27px, 3vw, 38px); }
.wrap-narrow > ul { padding-left: 24px; }
.wrap-narrow > li,
.wrap-narrow > p { color: var(--ink-soft); }

@media (max-width: 1280px) {
    .nav-brand-sub { display: none; }
    .nav-brand { font-size: 25px; }
    .nav-links { font-size: 17px; }
}

@media (max-width: 1120px) {
    .nav { padding: 12px 24px; }
    .nav-inner { align-items: center; }
    .nav-brand { font-size: 29px; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        right: -24px;
        left: -24px;
        flex-direction: column;
        gap: 0;
        padding: 14px 24px 20px;
        border-bottom: 1px dashed var(--rule);
        background: var(--paper);
        box-shadow: 0 14px 25px #0002;
        font-size: 22px;
        white-space: normal;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 8px 0; }
}

@media (max-width: 900px) {
    .kk-home-hero__grid,
    .kk-page-intro__grid,
    .kk-workshop-hero__grid,
    .kk-order-edition__header,
    .kk-cafe-callout__grid,
    .kk-current-edition,
    .kk-b2b-process__grid,
    .kk-inquiry-section__grid { grid-template-columns: 1fr; }
    .kk-home-hero__photo,
    .kk-cafe-callout__photo { width: min(520px, 84%); justify-self: center; }
    .kk-home-heading { grid-template-columns: 1fr; gap: 18px; align-items: start; }
    .kk-current-empty { grid-template-columns: auto 1fr; }
    .kk-current-empty .btn { grid-column: 2; justify-self: start; }
    .kk-kitchen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kk-location { grid-template-columns: 1fr 1fr; }
    .kk-location .kk-link-arrow { justify-self: start; }
    .kk-order-edition__photo { width: min(560px, 88%); justify-self: center; }
    .kk-inquiry-section__intro { position: static; }
}

@media (max-width: 720px) {
    main h1 { font-size: clamp(44px, 13vw, 66px); }
    .kk-home-hero { padding-top: 54px; }
    .kk-home-hero h1 { font-size: clamp(50px, 15vw, 76px); }
    .kk-home-hero__grid { gap: 46px; }
    .kk-home-hero__photo,
    .kk-cafe-callout__photo { width: min(470px, 92%); }
    .kk-service-ledger { display: block; }
    .kk-service-ledger__item,
    .kk-service-ledger__item--wide { min-height: 0; padding: 28px 0 34px; border-left: 0 !important; }
    .kk-current-empty { grid-template-columns: 1fr; }
    .kk-current-empty .btn { grid-column: auto; }
    .kk-current-empty__mark { display: none; }
    .kk-kitchen-grid,
    .kk-b2b-list { grid-template-columns: 1fr; }
    .kk-b2b-list article { padding-right: 0; }
    .kk-b2b-list article:nth-child(even) { border-left: 0; }
    .kk-b2b-list article:nth-child(even) > span { left: 0; }
    .kk-order-facts { grid-template-columns: 1fr; }
    .kk-order-facts > div,
    .kk-order-facts > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px dashed var(--rule); }
    .kk-order-facts > div:last-child { border-bottom: 0; }
    .kk-order-product { grid-template-columns: 1fr; }
    .kk-order-product__image { width: min(420px, 100%); }
    .kk-product-details { grid-template-columns: 1fr; }
    .kk-archive-list article { grid-template-columns: 1fr; gap: 6px; }
    .kk-custom-bake { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
    .kk-b2b-process li,
    .kk-topic-list li { grid-template-columns: 1fr; gap: 8px; }
    .kk-topic-list li { padding-left: 48px; }
    .kk-form-grid,
    .kk-checkbox-group ul { grid-template-columns: 1fr; }
    .kk-location { grid-template-columns: 1fr; gap: 7px; }
}

@media (max-width: 520px) {
    .wrap-narrow { padding: 0 20px; }
    .nav { padding-right: 16px; padding-left: 16px; }
    .nav-brand { font-size: 23px; }
    .nav-brand .dot { display: none; }
    .nav-toggle { width: 42px; height: 42px; }
    .nav-cart { min-width: 42px; justify-content: center; padding: 5px 8px; }
    .nav-links { right: -16px; left: -16px; padding-right: 16px; padding-left: 16px; }
    .kk-home-hero__lead { font-size: 20px; }
    .kk-action-row { align-items: stretch; }
    .kk-action-row .btn { width: 100%; }
    .kk-home-heading h2,
    .kk-cafe-callout h2,
    .kk-b2b-process h2,
    .kk-inquiry-section h2 { font-size: 42px; }
    .kk-home-hero__photo,
    .kk-cafe-callout__photo,
    .kk-order-edition__photo { width: calc(100% - 16px); }
    .kk-order-product__heading { display: block; }
    .kk-order-product__price { margin-top: 8px; }
    .kk-public-form { padding: 22px 18px; }
    .kk-footer { padding-right: 20px; padding-left: 20px; }
    .footer-col a { min-height: 42px; display: flex; align-items: center; }
}

/* About, contact and editorial archive surfaces */
.about-portrait {
    position: relative;
    min-height: 600px;
    margin: 0;
}
.about-portrait .polaroid {
    top: 10px;
    left: 5%;
    width: min(390px, 88%);
    transform: rotate(-2.4deg);
}
.about-story { padding-top: 18px; }
.about-story .about-lead { font-size: clamp(21px, 2.1vw, 27px); }
.about-story .about-body { font-size: 18px; }
.about-notes {
    display: grid;
    grid-template-columns: 1fr 0.76fr 1fr;
    gap: clamp(22px, 4vw, 56px);
    align-items: start;
    margin-top: 70px;
    padding-top: 34px;
    border-top: 1.5px solid var(--ink);
}
.about-note-photo {
    margin: 0;
    padding: 10px 10px 42px;
    border: 1px solid #e1d2ad;
    background: #fbf5e4;
    box-shadow: 7px 9px 0 #00000010;
    transform: rotate(-1deg);
}
.about-note-photo:nth-child(2) { margin-top: 42px; transform: rotate(1.4deg); }
.about-note-photo:nth-child(3) { transform: rotate(-0.4deg); }
.about-note-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-note-photo figcaption { margin-top: 10px; font-family: var(--font-hand); font-size: 20px; color: var(--ink-soft); text-align: center; }

.kk-contact-list {
    display: grid;
    grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
    gap: 14px 26px;
    margin: 28px 0 0;
}
.kk-contact-list dt,
.kk-contact-list dd { margin: 0; }
.kk-contact-list dd { padding-top: 3px; }
.kk-contact-list a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-note { margin-top: 0; }
.contact-note + .contact-note { margin-top: 24px; }
.contact-note .kk-link-arrow { margin-top: 12px; }

.recipe-description,
.ebook-description {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.55;
}
.recipe-meta { flex-wrap: wrap; row-gap: 4px; }
.recipe-card:focus-within { transform: translate(-2px, -4px); }

.kitchen-entry > a { display: block; color: inherit; text-decoration: none; }
.kitchen-entry__cover {
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(0deg, transparent 0 34px, color-mix(in srgb, var(--rule) 62%, transparent) 34px 35px), var(--paper-2);
}
.kitchen-entry__cover::after {
    content: "";
    position: absolute;
    inset: 26px;
    border: 1px dashed color-mix(in srgb, var(--ink-soft) 55%, transparent);
    transform: rotate(-1.4deg);
}
.kitchen-entry__label {
    position: relative;
    z-index: 1;
    max-width: 70%;
    font-family: var(--font-hand);
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1;
    color: var(--accent-2);
    text-align: center;
    transform: rotate(-4deg);
}
.kitchen-entry .time-stamp { z-index: 2; }
.kitchen-entry-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin: 8px 0 26px; color: var(--ink-faded); }
.kitchen-entry-meta time { font-family: var(--font-hand); font-size: 20px; color: var(--accent-2); }
.kitchen-entry-meta .tag-row { margin: 0; }
.kitchen-entry-lead { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.kitchen-entry-back { margin-top: 48px; padding-top: 24px; border-top: 1px dashed var(--rule); }

/* Legacy shop kept as a secondary, fully functional channel */
.section-meta a { color: inherit; text-decoration-style: dotted; text-underline-offset: 4px; }
.ebook-description { max-width: 240px; }
.product-detail-cover { width: min(390px, 80%); margin: 0 auto 48px; }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 26px; }
.product-detail-price { font-family: var(--font-hand); font-size: 31px; color: var(--accent-2); }
.product-detail-price--large { margin: 14px 0; font-size: 42px; }
.product-description { max-width: 760px; color: var(--ink-soft); font-size: 19px; line-height: 1.7; }
.product-composition { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 34px 0; }
.product-composition > div { padding: 20px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.product-composition dt { font-family: var(--font-hand); font-size: 21px; color: var(--accent-2); }
.product-composition dd { margin: 6px 0 0; color: var(--ink-soft); }
.product-add-form { margin-top: 28px; }
.product-delivery-note { color: var(--ink-soft); }
.product-detail-back { margin: 24px 0 0; }

.kk-qty-btn { width: 44px; height: 44px; }
.kk-cart-remove { min-height: 44px; }
.kk-pagination .page-item .page-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.kk-qty-form { display: flex; align-items: center; gap: 4px; }
.kk-qty-input--fixed { border: 0; }
.kk-summary-label { position: static; display: inline-block; margin-bottom: 16px; }
.kk-summary-muted { color: var(--ink-soft); }
.kk-summary-subtotal,
.kk-summary-total-label { font-family: var(--font-display); font-size: 22px; }
.kk-summary-total-row { margin-bottom: 18px; }
.kk-summary-total-price { font-size: 32px; }
.kk-summary-checkout-price { font-size: 30px; }
.kk-summary-back,
.kk-checkout-submit { margin-top: 16px; }
.kk-summary-item-name { font-size: 16px; }
.kk-summary-item-price { font-family: var(--font-hand); font-size: 20px; color: var(--accent-2); }

.ebook-cover--detail { --cover: var(--accent); aspect-ratio: 3 / 4; }
.kk-link-inline { color: var(--accent-2); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

.kk-payment-state { padding-top: 60px; padding-bottom: 60px; text-align: center; }
.kk-payment-state__mark { margin-bottom: 24px; font-size: 64px; line-height: 1; }
.kk-payment-state__mark--muted { color: var(--ink-faded); }
.kk-payment-state__mark--success { color: var(--accent); }
.kk-payment-state__mark--error { color: var(--accent-2); }
.kk-payment-state__number { color: var(--ink-faded); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; }
.kk-payment-state__action { margin-top: 32px; }
.kk-payment-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

#listy-z-komitywy,
#zapytanie-dla-kawiarni,
#zainteresowanie-warsztatami { scroll-margin-top: 110px; }

@media (max-width: 900px) {
    .about-portrait { min-height: 540px; }
    .about-portrait .polaroid { left: 50%; transform: translateX(-50%) rotate(-2deg); }
    .about-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .about-note-photo:nth-child(2) { margin-top: 24px; }
}

@media (max-width: 720px) {
    .about-portrait { min-height: 490px; }
    .about-portrait .polaroid { width: min(340px, 84%); }
    .about-notes { grid-template-columns: 1fr 1fr; }
    .about-note-photo:nth-child(2) { margin-top: 30px; }
    .about-note-photo:nth-child(3) { grid-column: 1 / -1; width: 70%; justify-self: center; }
    .product-composition { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
    .about-portrait { min-height: 430px; }
    .about-notes { grid-template-columns: 1fr; }
    .about-note-photo,
    .about-note-photo:nth-child(2),
    .about-note-photo:nth-child(3) { grid-column: auto; width: min(330px, 90%); margin: 0 auto 12px; }
    .kk-contact-list { grid-template-columns: 1fr; gap: 2px; }
    .kk-contact-list dd { margin-bottom: 14px; }
    .kk-newsletter-section h2 { font-size: 40px; }
}

/* Komitywa surface cleanup: keep the notebook feel, remove visual competition. */
body::before {
    background: var(--paper-2);
    opacity: .14;
}
body::after { opacity: .018; }
.kk-home-hero__photo,
.kk-cafe-callout__photo,
.kk-order-edition__photo {
    transform: none;
    padding: 8px 8px 46px;
    border-color: color-mix(in srgb, var(--ink) 18%, transparent);
    box-shadow: 8px 9px 0 color-mix(in srgb, var(--paper-shadow) 70%, transparent);
}
.kk-photo-tape { display: none; }
.kk-home-heading { border-bottom: 0; padding-bottom: 0; }
.kk-home-section--services,
.kk-current { border-top: 0; }
.kk-current { border-bottom: 0; }
.kk-service-ledger { border-top: 0; gap: 0 32px; }
.kk-service-ledger__item,
.kk-service-ledger__item--wide {
    border-bottom: 1px solid color-mix(in srgb, var(--rule) 72%, transparent);
}
.kk-service-ledger__item:nth-child(2),
.kk-service-ledger__item:nth-child(4) {
    border-left: 0;
    padding-left: 0;
}
.kk-current-edition__image--sample,
.kk-current-empty__image,
.kk-order-edition__photo--sample,
.kk-order-product__image--sample,
.kk-kitchen-card__image--sample { position: relative; }
.kk-current-empty__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-2);
}
.kk-current-empty__image img { width: 100%; height: 100%; object-fit: cover; }
.kk-current-empty__image span,
.kk-current-edition__image--sample span,
.kk-order-edition__photo--sample figcaption,
.kk-order-product__image--sample span,
.kk-kitchen-card__image--sample span {
    position: absolute;
    right: 10px;
    bottom: 8px;
    margin: 0;
    padding: 3px 7px;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.kk-kitchen-card__image--sample { overflow: hidden; }
.kk-kitchen-card__image--sample img { width: 100%; height: 100%; object-fit: cover; }
.kk-order-edition__photo--sample { padding-bottom: 8px; }
.kk-order-edition__photo--sample img { aspect-ratio: 4 / 3; }
.kk-order-product__image--sample { display: block; }
.kk-order-product__image--sample img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
    .kk-current-empty { grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr); }
    .kk-current-empty .btn { grid-column: 2; }
}
@media (max-width: 720px) {
    .kk-current-empty { grid-template-columns: 1fr; }
    .kk-current-empty .btn { grid-column: auto; }
    .kk-current-empty__image { max-width: 360px; }
}

/* Group content with space and surfaces, not separator lines. */
.nav,
.section-head,
.kk-home-heading,
.kk-page-intro,
.kk-workshop-hero,
.kk-home-section--services,
.kk-current,
.kk-newsletter-section,
.kk-footer,
.footer-payments,
.footer-bottom,
.kk-order-facts,
.kk-order-archive,
.kk-inquiry-section,
.section-head::after {
    border-top: 0;
    border-bottom: 0;
}
.section-head::after { display: none; }

.kk-service-ledger,
.kk-service-ledger__item,
.kk-kitchen-card,
.kk-location-list,
.kk-location,
.kk-empty-note,
.kk-order-products,
.kk-order-product,
.kk-product-details > div,
.kk-archive-list,
.kk-archive-list article,
.kk-b2b-list,
.kk-b2b-list article,
.kk-topic-list,
.kk-topic-list li,
.kk-b2b-process ol,
.kk-b2b-process li,
.kitchen-entry-lead,
.kitchen-entry-back,
.product-composition > div {
    border-top: 0;
    border-bottom: 0;
}
.kk-service-ledger__item:nth-child(2),
.kk-service-ledger__item:nth-child(4),
.kk-b2b-list article:nth-child(even),
.kk-order-facts > div + div {
    border-left: 0;
}
.footer-newsletter-link { border-bottom: 0; }

/* Keep the current-table image compact so the section reads as one message. */
.kk-current-edition {
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
}
.kk-current-edition__image,
.kk-current-empty__image {
    width: min(360px, 100%);
    justify-self: start;
}
.kk-current-empty {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto;
    gap: clamp(20px, 4vw, 40px);
}

@media (max-width: 900px) {
    .kk-current-edition { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
    .kk-current-empty { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
    .kk-current-empty .btn { grid-column: 2; }
}

@media (max-width: 720px) {
    .kk-current-edition,
    .kk-current-empty { grid-template-columns: 1fr; }
    .kk-current-edition__image,
    .kk-current-empty__image { width: min(320px, 100%); }
    .kk-current-empty .btn { grid-column: auto; }
}

/* Give the four service cards one consistent two-column rhythm. */
.kk-service-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 52px;
    align-items: stretch;
}
.kk-service-ledger__item,
.kk-service-ledger__item--wide {
    grid-column: auto;
    min-height: 0;
    padding: 0 0 28px;
    display: flex;
    flex-direction: column;
}
.kk-service-ledger__item:nth-child(2),
.kk-service-ledger__item:nth-child(4) {
    padding-left: 0;
}
.kk-service-ledger__item > p:not(.kk-service-ledger__note) { flex: 1; }
.kk-service-ledger__item .kk-link-arrow { align-self: flex-start; }

@media (max-width: 720px) {
    .kk-service-ledger { display: grid; grid-template-columns: 1fr; gap: 34px; }
    .kk-service-ledger__item,
    .kk-service-ledger__item--wide { padding-bottom: 22px; }
}
