/* Kiss Looms: Paper and Print.
   Cream paper bands and navy bands alternate down the page with a torn edge at every join.
   Photographs sit on white like mounted prints. Knit texture lives inside the navy only;
   paper grain sits behind the cream. Texture never goes behind reading text at full strength. */

:root {
	--paper: #efe8da;
	--card: #fbf8f1;
	--ink: #26343a;
	--ink-soft: #55646a;
	--dark: #24404b;
	--dark-ink: #efe8da;
	--bar: #1c333c;
	--accent: #c2772b;
	--accent-deep: #a85f1b;
	--accent-text: #8f5215;
	--hero-lab: #e9a765;
	--num: #dba066;
	--rule: rgba(38, 52, 58, .18);
	--rule-d: rgba(239, 232, 218, .22);
	--head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--script: "Mrs Saint Delafield", "Segoe Script", cursive;
	--wrap: 1180px;
	--gut: clamp(16px, 4vw, 40px);
	--edge: clamp(16px, 2.6vw, 34px);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .26 0 0 0 0 .16 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { text-transform: uppercase; letter-spacing: .03em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.klp-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; }
.klp-skip:focus { top: 8px; }

.klp-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.klp-wrap--text { max-width: calc(860px + var(--gut) * 2); }

.klp-lab { display: block; margin: 0; font: 600 .8rem/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.klp-dark .klp-lab, .klp-head .klp-lab { color: var(--num); }
.klp-lab a { color: inherit; text-decoration: none; }
.klp-lab a:hover { text-decoration: underline; }

/* Buttons */
.klp-btn, .klp-entry .button { display: inline-block; font: 600 .86rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: .85rem 1.45rem; background: var(--dark); color: var(--dark-ink); border: 0; border-radius: 0; cursor: pointer; transition: background .15s, color .15s; }
.klp-btn:hover { background: var(--bar); color: #fff; }
.klp-btn--accent { background: var(--accent-deep); color: #fff; }
.klp-btn--accent:hover { background: #8f5215; color: #fff; }
.klp-btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.klp-btn--line:hover { background: #fff; color: var(--ink); }
.klp-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.klp-btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Bar ---------- */
.klp-bar { position: relative; z-index: 20; background: var(--bar); color: var(--dark-ink); }
.klp-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.klp-logo, .custom-logo-link { display: block; flex: none; color: inherit; font: 600 1.5rem var(--head); text-decoration: none; }
.klp-logo img, .custom-logo-link img { display: block; height: 44px; width: auto; }
.klp-menu, .klp-menu ul { list-style: none; margin: 0; padding: 0; }
.klp-menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.klp-menu > li { position: relative; display: flex; align-items: center; }
.klp-menu a { display: block; color: var(--dark-ink); text-decoration: none; font: 600 .84rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: .6rem 0; }
.klp-menu > li > a { border-bottom: 2px solid transparent; }
.klp-menu > li > a:hover, .klp-menu > .current-menu-item > a, .klp-menu > .current-menu-ancestor > a { border-bottom-color: var(--accent); }
.klp-subtoggle { background: none; border: 0; color: inherit; padding: .3rem; margin-left: .1rem; cursor: pointer; font-size: .95rem; line-height: 0; }
.klp-menu .sub-menu { display: none; position: absolute; left: -1.1rem; top: 100%; min-width: 15rem; background: var(--bar); padding: .5rem 0; box-shadow: 0 14px 24px rgba(0, 0, 0, .28); border-top: 2px solid var(--accent); }
.klp-menu .sub-menu a { padding: .65rem 1.1rem; letter-spacing: .1em; }
.klp-menu .sub-menu a:hover { background: rgba(255, 255, 255, .08); }
.klp-menu li:hover > .sub-menu, .klp-menu li:focus-within > .sub-menu, .klp-menu li.is-open > .sub-menu { display: block; }
.klp-bar__tools { display: flex; align-items: center; gap: .9rem; flex: none; }
.klp-account { display: flex; align-items: center; gap: .4rem; color: var(--dark-ink); text-decoration: none; font: 600 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; }
.klp-account .klp-icon { font-size: 1.2rem; }
.klp-account:hover { color: #fff; }
.klp-cart { font: 600 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: .7rem 1.1rem; background: var(--accent-deep); color: #fff; white-space: nowrap; }
.klp-cart:hover { background: #8f5215; color: #fff; }
.klp-burger { display: none; background: none; border: 0; color: var(--dark-ink); font-size: 1.7rem; line-height: 0; padding: .3rem; cursor: pointer; }

@media (max-width: 1020px) {
	.klp-burger { display: block; }
	.klp-account span { display: none; }
	.klp-logo img, .custom-logo-link img { height: 38px; }
	.klp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bar); border-top: 1px solid var(--rule-d); box-shadow: 0 18px 28px rgba(0, 0, 0, .3); max-height: calc(100vh - 70px); overflow-y: auto; }
	.klp-nav.is-open { display: block; }
	html:not(.klp-js) .klp-nav { display: block; position: static; }
	.klp-menu { display: block; padding: .4rem var(--gut) 1.2rem; }
	.klp-menu > li { display: block; border-bottom: 1px solid var(--rule-d); }
	.klp-menu a { padding: .95rem 0; }
	.klp-menu > li > a { border-bottom: 0; }
	.klp-subtoggle { display: none; }
	.klp-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 .6rem 1rem; min-width: 0; }
	.klp-menu .sub-menu a { padding: .55rem 0; opacity: .85; }
}

/* ---------- Bands and torn edges ---------- */
.klp-sec { position: relative; padding-block: clamp(3rem, 5.4vw, 4.6rem); }
.klp-sec > * { position: relative; }
.klp-paper { background: var(--grain), var(--paper); color: var(--ink); }
.klp-dark { background: var(--dark); color: var(--dark-ink); }
.klp-dark::before { content: ""; position: absolute; inset: 0; background: url(../img/knit.jpg) center / 720px auto; opacity: .16; mix-blend-mode: luminosity; pointer-events: none; }
.klp-dark a { color: var(--dark-ink); }
.klp-dark a:hover { color: #fff; }
.klp-sec > .klp-edge { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--edge); pointer-events: none; z-index: 2; overflow: hidden; }
.klp-edge svg { display: block; width: 100%; height: 100%; }
.klp-paper > .klp-edge path { fill: var(--paper); }
.klp-dark > .klp-edge path { fill: var(--dark); }
.klp-sec__head { text-align: center; display: grid; gap: .5rem; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.klp-sec__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.klp-sec__head h2.klp-lab { font: 600 .8rem/1.3 var(--body); letter-spacing: .18em; }

/* Prints: a photograph on white, as if mounted */
.klp-print { background: #fff; padding: 12px 12px 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); position: relative; }
.klp-print img { display: block; width: 100%; }
.klp-print--taped { transform: rotate(-2.2deg); }
.klp-print--taped::before { content: ""; position: absolute; top: -15px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%) rotate(2deg); background: rgba(224, 208, 170, .82); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }

/* ---------- Home: slideshow ---------- */
.klp-hero { position: relative; background: #16242a; color: #fff; }
.klp-hero__slides { position: relative; aspect-ratio: 16 / 7.6; min-height: 460px; max-height: 760px; width: 100%; overflow: hidden; }
.klp-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.klp-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.klp-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.klp-slide--slide1 .klp-slide__img { object-position: 50% 58%; }
.klp-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 28, 33, .6) 0%, rgba(18, 28, 33, 0) 24%), linear-gradient(90deg, rgba(18, 28, 33, .8) 0%, rgba(18, 28, 33, .52) 38%, rgba(18, 28, 33, 0) 68%); }
.klp-slide__txt { position: relative; z-index: 1; height: 100%; display: grid; align-content: center; justify-items: start; gap: clamp(.7rem, 1.4vw, 1.1rem); padding-bottom: var(--edge); }
.klp-slide .klp-lab { color: var(--hero-lab); text-shadow: 0 1px 5px rgba(0, 0, 0, .6); }
.klp-slide__title { font-size: clamp(2.6rem, 6.2vw, 4.7rem); margin: 0; max-width: 11em; line-height: 1.02; }
.klp-slide__txt p { font-size: clamp(1.1rem, 1.75vw, 1.35rem); max-width: 26em; margin: 0; }
.klp-slide__row { display: flex; flex-wrap: wrap; gap: .8rem; padding-top: .5rem; }
.klp-hero__tabs { position: absolute; z-index: 3; right: max(var(--gut), calc((100vw - var(--wrap)) / 2)); bottom: calc(var(--edge) + 1.1rem); display: flex; gap: 1.4rem; }
.klp-hero__tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 0 .35rem; color: #fff; opacity: .78; cursor: pointer; text-shadow: 0 1px 6px rgba(0, 0, 0, .65); font: 600 .78rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.klp-hero__tab:hover { opacity: 1; }
.klp-hero__tab.is-on { opacity: 1; border-bottom-color: var(--hero-lab); }

@media (max-width: 720px) {
	.klp-hero__slides { aspect-ratio: auto; height: min(78vh, 600px); min-height: 480px; }
	.klp-slide::after { background: linear-gradient(0deg, rgba(18, 28, 33, .92) 0%, rgba(18, 28, 33, .74) 46%, rgba(18, 28, 33, .34) 68%, rgba(18, 28, 33, 0) 90%); }
	.klp-slide__txt { align-content: end; padding-bottom: calc(var(--edge) + 4.2rem); }
	.klp-hero__tabs { left: var(--gut); right: auto; bottom: calc(var(--edge) + 1.3rem); gap: 1.1rem; }
}

/* ---------- Home: our story ---------- */
.klp-story__grid { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.klp-story .klp-print img { aspect-ratio: 4 / 5; object-fit: cover; }
.klp-story__txt { display: grid; gap: 1rem; justify-items: start; }
.klp-story__txt h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0; }
.klp-story__txt p { max-width: 34em; margin: 0; font-size: 1.2rem; }
.klp-sig { font: 400 3.6rem/.9 var(--script); padding-top: .2rem; }
@media (max-width: 720px) {
	.klp-story__grid { grid-template-columns: 1fr; }
	.klp-story .klp-print { width: min(300px, 82%); justify-self: center; }
}

/* ---------- Home: product categories ---------- */
.klp-fam__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.klp-fam__list li + li { border-left: 1px solid var(--rule-d); }
.klp-fam__list a { display: grid; gap: .7rem; justify-items: center; align-content: start; text-align: center; padding: .4rem 1.1rem; height: 100%; text-decoration: none; color: var(--dark-ink); }
.klp-loom { width: 54px; height: 54px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; transition: transform .2s, stroke .2s; }
.klp-fam__list a:hover .klp-loom { transform: translateY(-3px); stroke: var(--num); }
.klp-fam__list b { font: 600 .84rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.klp-fam__list a:hover b { text-decoration: underline; text-underline-offset: .25em; }
.klp-fam__list span { font-size: .95rem; line-height: 1.45; opacity: .88; }
@media (max-width: 1020px) {
	.klp-fam__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.2rem; }
	.klp-fam__list li:nth-child(3n + 1) { border-left: 0; }
}
@media (max-width: 560px) {
	.klp-fam__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.klp-fam__list li:nth-child(n) { border-left: 0; }
	.klp-fam__list li:nth-child(even) { border-left: 1px solid var(--rule-d); }
	.klp-fam__list a { padding-inline: .7rem; }
}

/* ---------- Home: patterns strip ---------- */
.klp-gal__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.3rem); }
.klp-gal figure { margin: 0; display: grid; gap: .7rem; }
.klp-gal .klp-print { padding: 8px; box-shadow: 0 5px 13px rgba(0, 0, 0, .18); }
.klp-gal figure:nth-child(odd) .klp-print { transform: rotate(-1.2deg); }
.klp-gal figure:nth-child(even) .klp-print { transform: rotate(1deg); }
.klp-gal img { aspect-ratio: 1 / 1.08; object-fit: cover; }
.klp-gal figcaption { font: 600 .74rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.klp-more { text-align: center; margin: 2rem 0 0; }
.klp-more a { font: 600 .84rem var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--accent-text); }
.klp-more a:hover { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 820px) {
	.klp-gal__list { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 1.6rem; }
	.klp-gal figure { grid-column: span 2; }
	.klp-gal figure:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 480px) {
	.klp-gal__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.klp-gal figure, .klp-gal figure:nth-child(4) { grid-column: auto; }
	.klp-gal figure:last-child { display: none; }
}

/* ---------- Home: numbers ---------- */
/* The torn edges shift the visible band up (ours reaches above the section, the next one's bites into the bottom), so the padding leans the other way to centre the text in what is seen. */
.klp-nums { --nums-pad: clamp(2.2rem, 3.6vw, 3rem); --nums-lean: calc(var(--edge) * .6); padding-block: calc(var(--nums-pad) - var(--nums-lean)) calc(var(--nums-pad) + var(--nums-lean)); }
.klp-nums__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.klp-nums__list li { text-align: center; display: grid; gap: .3rem; padding-inline: .5rem; }
.klp-nums__list li + li { border-left: 1px solid var(--rule-d); }
.klp-nums__list b { font: 600 clamp(2rem, 3.6vw, 2.7rem)/1 var(--head); color: var(--num); }
.klp-nums__list span { font: 400 .76rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 620px) {
	.klp-nums__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
	.klp-nums__list li:nth-child(odd) { border-left: 0; }
}

/* ---------- Home: testimonial ---------- */
.klp-say__grid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: clamp(2rem, 4vw, 3.4rem); align-items: center; }
.klp-say blockquote { margin: 0; }
.klp-say blockquote p { font: 500 clamp(1.5rem, 2.7vw, 2.05rem)/1.24 var(--head); margin: 0; text-wrap: pretty; }
.klp-say cite { display: block; font: 600 .82rem var(--body); letter-spacing: .12em; text-transform: uppercase; padding-top: 1rem; }
/* Several quotes share one cell, so the band keeps the height of the longest. */
.klp-roll__items { display: grid; align-items: center; }
.klp-roll__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.klp-roll__item.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.klp-roll__nav { display: flex; align-items: center; gap: .55rem; margin-top: 1.5rem; }
.klp-roll__dot { width: 2.1rem; height: 1.4rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.klp-roll__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink); opacity: .25; transition: opacity .2s, background .2s; }
.klp-roll__dot:hover::before { opacity: .6; }
.klp-roll__dot.is-on::before { background: var(--accent); opacity: 1; }
.klp-roll__arrow { width: 2.3rem; height: 2.3rem; border: 0; background: none; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; border-radius: 50%; transition: background .15s, color .15s; }
.klp-roll__arrow:hover { background: var(--dark); color: var(--dark-ink); }
.klp-say__sum { display: grid; gap: .9rem; justify-items: start; }
.klp-stars { font-size: 1.7rem; line-height: 1; color: var(--accent); letter-spacing: .2rem; }
.klp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.klp-chips li { font-size: .84rem; padding: .3rem .85rem; box-shadow: inset 0 0 0 1px currentColor; border-radius: 99px; opacity: .85; }
@media (max-width: 720px) { .klp-say__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.klp-foot { padding-bottom: 1.6rem; font-size: .95rem; line-height: 1.55; }
.klp-foot__cols { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: clamp(1.6rem, 3.4vw, 3rem); }
.klp-foot__logo img { display: block; height: 50px; width: auto; margin-bottom: 1rem; }
.klp-foot__tag { font: 600 1.25rem/1.2 var(--head); margin-bottom: .5rem; }
.klp-foot p { margin: 0 0 .7rem; opacity: .9; }
.klp-foot h2.klp-lab { margin-bottom: .8rem; }
.klp-foot h2.klp-foot__connect { margin-top: 1.5rem; }
.klp-foot__links { display: flex; gap: 1.2rem; }
.klp-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.3rem; border-top: 1px solid var(--rule-d); font-size: .82rem; }
.klp-foot__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.klp-foot__menu a { text-decoration: none; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }
.klp-foot__menu a:hover { text-decoration: underline; }
/* Four across: the three text columns drop so their first line sits on the same line as the tagline under the logo (labels end up resting on the logo's bottom edge). Measured, not derived: re-measure if the logo height, tagline or label sizes change. */
@media (min-width: 901px) { .klp-foot__col { padding-top: 2.41rem; } }
@media (max-width: 900px) { .klp-foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .klp-foot__cols { grid-template-columns: 1fr; } }

/* ---------- Inner pages: title band ---------- */
.klp-head { position: relative; background: var(--dark); color: #fff; padding-block: clamp(3.2rem, 7vw, 5.6rem) calc(clamp(2.4rem, 5vw, 4rem) + var(--edge)); }
.klp-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 28, 33, .82) 0%, rgba(18, 28, 33, .6) 45%, rgba(18, 28, 33, .28) 100%), var(--klp-banner, none) center / cover no-repeat; }
.klp-head > * { position: relative; }
.klp-head .klp-wrap { display: grid; gap: .7rem; }
.klp-head__title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0; max-width: 20em; }
.klp-head--slim { padding-block: 1rem calc(1rem + var(--edge)); }
.klp-head--slim::before { background: url(../img/knit.jpg) center / 720px auto; opacity: .16; mix-blend-mode: luminosity; }
.klp-crumbs { font: inherit; }
.klp-body { padding-top: clamp(1.8rem, 3.4vw, 2.8rem); min-height: 40vh; }

/* ---------- Reading content (pages, patterns, descriptions) ---------- */
.klp-entry { font-size: 1.2rem; line-height: 1.62; overflow-wrap: break-word; }
.klp-entry::after { content: ""; display: block; clear: both; }
.klp-entry h1, .klp-entry h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.5em; }
.klp-entry h3 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); margin-top: 1.4em; }
.klp-entry h4 { font-size: 1.3rem; margin-top: 1.3em; }
.klp-entry h5, .klp-entry h6 { font: 600 .9rem var(--body); letter-spacing: .12em; text-transform: uppercase; margin: 1.4em 0 .5em; }
.klp-entry > :first-child { margin-top: 0; }
.klp-entry img { max-width: 100%; height: auto; }
.klp-entry iframe, .klp-entry video { max-width: 100%; }
.klp-entry iframe[src*="youtube"], .klp-entry iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.klp-entry table { border-collapse: collapse; max-width: 100%; margin-bottom: 1.2em; }
.klp-entry th, .klp-entry td { padding: .5rem .7rem; border: 1px solid var(--rule); vertical-align: top; text-align: left; }
.klp-entry blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); font: 500 1.35rem/1.35 var(--head); }
.klp-entry li { margin-bottom: .35em; }
@media (max-width: 600px) {
	.klp-entry img[style*="float"] { float: none !important; display: block; margin: 0 0 1rem !important; }
	.klp-entry table { display: block; overflow-x: auto; }
}

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
	font: inherit; color: var(--ink); background: var(--card); border: 1px solid rgba(38, 52, 58, .35); border-radius: 0; padding: .65rem .8rem; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form { display: flex; gap: .5rem; margin-top: 1rem; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; }
.search-form .search-submit { font: 600 .86rem var(--body); letter-spacing: .12em; text-transform: uppercase; padding: .7rem 1.3rem; background: var(--dark); color: var(--dark-ink); border: 0; cursor: pointer; }

/* Cards: patterns */
.klp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.klp-card { position: relative; background: var(--card); padding: 1.3rem 1.4rem 1.2rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); display: flex; flex-direction: column; gap: .6rem; border-top: 3px solid var(--dark); transition: transform .15s, box-shadow .15s; }
.klp-card:hover { transform: translateY(-3px); box-shadow: 0 9px 20px rgba(0, 0, 0, .16); }
.klp-card__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.klp-card__title { font-size: 1.35rem; text-transform: none; letter-spacing: 0; margin: 0; }
.klp-card__title a { color: var(--ink); text-decoration: none; }
.klp-card__title a::after { content: ""; position: absolute; inset: 0; }
.klp-card p { margin: 0; font-size: .96rem; color: var(--ink-soft); flex: 1; }
.klp-card__more { font: 600 .76rem var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--accent-text); }

/* Testimonials */
.klp-quotes { display: grid; gap: 2.4rem; }
.klp-quote { padding-bottom: 2.2rem; border-bottom: 1px solid var(--rule); }
.klp-quote:last-child { border-bottom: 0; }
.klp-quote__text { font: 500 1.4rem/1.4 var(--head); }
.klp-quote__text p:last-child { margin-bottom: 0; }
.klp-quote__name { font: 600 .84rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 1rem 0 0; }
.klp-quote__name::before { content: "\2014\00a0"; }

/* Listings, paging, neighbours */
.klp-list__item { padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.klp-list__item h2 { font-size: 1.5rem; text-transform: none; letter-spacing: 0; }
.klp-list__item h2 a { color: var(--ink); text-decoration: none; }
.klp-list__item p { margin: 0; }
.klp-neighbours { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); font-weight: 600; }
.klp-neighbours a { text-decoration: none; }
.klp-neighbours a:hover { text-decoration: underline; }
.navigation.pagination { margin-top: 2.4rem; text-align: center; }
.navigation.pagination .page-numbers { display: inline-block; padding: .45rem .85rem; text-decoration: none; font-weight: 600; color: var(--ink); }
.navigation.pagination .page-numbers.current { background: var(--dark); color: var(--dark-ink); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.klp-slide, .klp-slide.is-on, .klp-roll__item, .klp-roll__item.is-on { transition: none; }
	.klp-card, .klp-loom { transition: none; }
}

/* ---------- Choose a Loom: the "boxes" ----------
   The pages' own markup (.cl-row of .cl-button links) becomes a row of square navy tiles.
   The three paths on the first page carry a line drawing in the style of the category icons;
   the drawings are files in assets/img/icons/ and take their colour from here. */
.cl-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(.6rem, 2vw, 1.4rem); margin: 2rem 0; }
.cl-row > div > p { margin: 0; }
.cl-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.5rem, 1.6vw, 1.1rem); aspect-ratio: 1; padding: clamp(.5rem, 2vw, 1.4rem); text-align: center; text-decoration: none; color: var(--dark-ink); background: linear-gradient(rgba(36, 64, 75, .87), rgba(36, 64, 75, .87)), url(../img/knit.jpg) center / 420px auto var(--dark); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); font: 600 clamp(.68rem, 1.9vw, .95rem)/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; transition: transform .15s, box-shadow .15s; }
.cl-button:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .26); }
.cl-button::before { content: none; width: clamp(40px, 44%, 112px); aspect-ratio: 1; background: var(--accent); -webkit-mask: var(--klp-ico) center / contain no-repeat; mask: var(--klp-ico) center / contain no-repeat; transition: background .15s; }
.cl-button:hover::before { background: var(--num); }
.cl-button[href*="/what-yarn"] { --klp-ico: url(../img/icons/yarn.svg); }
.cl-button[href*="/type-of-project"] { --klp-ico: url(../img/icons/projects.svg); }
.cl-button[href*="/type-of-technique"] { --klp-ico: url(../img/icons/technique.svg); }
.cl-button[href*="/what-yarn"]::before, .cl-button[href*="/type-of-project"]::before, .cl-button[href*="/type-of-technique"]::before { content: ""; }
.cl-sub { display: block; font-weight: 400; letter-spacing: .04em; text-transform: none; font-size: .92em; opacity: .85; }
@media (max-width: 640px) {
	.cl-row:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .cl-button { transition: none; } }

/* ---------- Bar on small phones: the SVG logo is wider than the old one ---------- */
@media (max-width: 480px) {
	.klp-bar__in { gap: .75rem; }
	.klp-logo, .custom-logo-link { flex: 0 1 146px; min-width: 0; }
	.klp-logo img, .custom-logo-link img { width: 100%; height: auto; }
}

/* Page not found */
.klp-lost__go { margin: 1.6rem 0 1rem; }
.klp-lost__links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.klp-lost__search-label { margin: 0 0 .5rem; font-size: 1rem; color: var(--ink-soft); }
