/*
Theme Name:   Kanínuholan
Theme URI:    https://kaninuholan.is
Description:  Astra child theme for Kanínuholan — old-shopfront look (bottle green, plaster pink, cream paper), book-shop typography, AA-contrast colours and accessibility fixes.
Author:       Kanínuholan
Template:     astra
Version:      1.1.0
Text Domain:  astra-kaninuholan
*/

/* ------------------------------------------------------------------
   Tokens
   Drawn from the moodboard: painted bottle-green shopfronts, dusty pink
   plaster walls, cream paper, terracotta pots, a yellow flowerpot and
   Marimekko dots. Contrast ratios noted are WCAG 2 against the pairing
   they are used on — every text pairing meets AA.
------------------------------------------------------------------- */
:root {
	--kh-paper: #f5eee0;        /* page — cream paper */
	--kh-paper-deep: #ecdfc8;   /* alternate band */
	--kh-card: #fffaf0;
	--kh-plaster: #efcfc4;      /* pink plaster wall */
	--kh-plaster-deep: #e3b6a8;
	--kh-green: #2f4a3c;        /* shopfront  — 8.4:1 on paper, 6.7:1 on plaster */
	--kh-green-deep: #22362c;   /* footer     — 11.1:1 with paper text */
	--kh-green-soft: #5f7043;   /* olive      — 4.7:1 on paper */
	--kh-ink: #2b2622;          /* body text  — 13.0:1 on paper */
	--kh-ink-soft: #5a5048;     /* secondary  —  6.8:1 on paper */
	--kh-rust: #9a4a28;         /* links      —  5.4:1 on paper */
	--kh-terracotta: #c0643f;   /* decoration only */
	--kh-mustard: #eab95a;      /* on green   —  5.4:1 */
	--kh-peach: #f2c4a8;        /* on green   —  6.1:1 */
	--kh-line: #d9cbb7;
	--kh-frame: #e4d6b0;        /* weathered stone window surround */
	--kh-focus: #1f5fbf;        /* focus ring on light surfaces */

	--kh-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--kh-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--kh-radius: 4px;
	--kh-shadow: 0 1px 2px rgb(43 38 34 / .08), 0 8px 24px -8px rgb(43 38 34 / .18);
	--kh-shadow-lift: 0 2px 4px rgb(43 38 34 / .10), 0 18px 36px -12px rgb(43 38 34 / .30);

	/* Fine paper grain, tiled. */
	--kh-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	/* Hand-drawn wavy underline used under section headings. */
	--kh-squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M2 8c10-7 18 5 28-1s18-6 28 0 18 6 28 0 18-6 28 1' fill='none' stroke='%232f4a3c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");

	/* Astra buttons read these; "white" (colour 5) becomes paper. */
	--ast-global-color-0: var(--kh-green);
	--ast-global-color-5: var(--kh-paper);
}

/* ------------------------------------------------------------------
   Page & typography
------------------------------------------------------------------- */
body {
	background-color: var(--kh-paper) !important;
	background-image: var(--kh-grain);
	color: var(--kh-ink);
	font-family: var(--kh-sans);
	font-size: 1.0625rem;          /* 17px — easier long-form reading */
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
/* Let the paper show through (the container classes sit on <body> itself,
   so only target the inner wrappers). */
.site-content,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.woocommerce.ast-separate-container .ast-woocommerce-container {
	background: transparent !important;
}

/* Fraunces' SOFT and WONK axes give the heads a hand-lettered,
   sign-painter feel without losing legibility. */
h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6),
.uagb-ifb-title,
.wp-block-themeisle-blocks-advanced-heading,
.woocommerce-loop-product__title,
.product_title,
.site-title {
	font-family: var(--kh-serif) !important;
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--kh-green);
	text-wrap: balance;
}

.entry-content p,
.uagb-ifb-desc {
	max-width: 68ch;
	text-wrap: pretty;
}

.entry-content a:not(.wp-block-button__link):not(.uagb-buttons-repeater):not(.button):not(.uagb-infobox-cta-link),
.site-footer a:not(.ast-builder-social-element) {
	color: var(--kh-rust);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}
.entry-content a:not(.wp-block-button__link):not(.uagb-buttons-repeater):not(.button):not(.uagb-infobox-cta-link):hover {
	color: var(--kh-green);
	text-decoration-thickness: 2px;
}

::selection { background: var(--kh-mustard); color: var(--kh-ink); }

/* Small letter-spaced caps — the "COFFEE • COMMUNITY • BOOKS" sign line. */
.uagb-ifb-title-prefix,
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce-breadcrumb,
.ast-breadcrumbs {
	font-family: var(--kh-sans) !important;
	font-size: .8125rem !important;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Focus — Astra removes outlines on inputs and uses a thin dotted border.
   One clear, consistent ring everywhere (WCAG 2.4.7 / 2.4.11).
   Dark (green) surfaces get a mustard ring instead of blue.
------------------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.woocommerce-js input:focus-visible,
.wpforms-container input:focus-visible,
.wpforms-container button:focus-visible {
	outline: 3px solid var(--kh-focus) !important;
	outline-offset: 3px !important;
	border-radius: 2px;
	box-shadow: 0 0 0 6px rgb(255 255 255 / .9) !important;
}
.site-header :focus-visible,
.uagb-block-0336b1b3 :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--kh-mustard) !important;
	box-shadow: none !important;
}

/* Skip link: make it a real, visible control when focused. */
.skip-link.screen-reader-text:focus {
	background: var(--kh-ink);
	color: #fff;
	clip: auto !important;
	clip-path: none;
	width: auto;
	height: auto;
	top: 12px;
	left: 12px;
	padding: 14px 22px;
	font: 600 1rem/1.2 var(--kh-sans);
	text-decoration: none;
	border-radius: var(--kh-radius);
	z-index: 100000;
}

/* ------------------------------------------------------------------
   Header — painted shopfront fascia with a striped awning below it
------------------------------------------------------------------- */
.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background-color: var(--kh-green) !important;
	background-image: var(--kh-grain) !important;
	border-bottom: 0 !important;
}
.site-header .main-header-bar-wrap {
	position: relative;
}
/* Awning: cream/terracotta stripes with a scalloped hem. */
.site-header .main-header-bar-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 32px;
	z-index: 5;
	pointer-events: none;
	background: repeating-linear-gradient(90deg, var(--kh-paper) 0 28px, var(--kh-terracotta) 28px 56px);
	-webkit-mask: radial-gradient(14px 14px at 14px 18px, #000 99%, transparent) 0 0 / 28px 32px repeat-x,
		linear-gradient(#000 0 0) 0 0 / 100% 18px no-repeat;
	mask: radial-gradient(14px 14px at 14px 18px, #000 99%, transparent) 0 0 / 28px 32px repeat-x,
		linear-gradient(#000 0 0) 0 0 / 100% 18px no-repeat;
	filter: drop-shadow(0 3px 2px rgb(0 0 0 / .18));
}
/* The black rabbit logo, repainted cream for the green board. */
.site-header .custom-logo {
	filter: invert(1) sepia(.25) brightness(.96);
}

.main-header-menu > .menu-item > .menu-link {
	font-family: var(--kh-sans);
	font-weight: 600;
	font-size: .875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--kh-paper) !important;
	position: relative;
}
.main-header-menu > .menu-item > .menu-link:hover {
	color: var(--kh-mustard) !important;
}
/* Hover/current indicator that doesn't rely on colour alone. */
.ast-desktop .main-header-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	left: 1em;
	right: 1em;
	bottom: 22px;
	height: 2px;
	background: var(--kh-mustard);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.ast-desktop .main-header-menu > .menu-item > .menu-link:hover::after,
.ast-desktop .main-header-menu > .menu-item.current-menu-item > .menu-link::after,
.ast-desktop .main-header-menu > .menu-item.current_page_item > .menu-link::after {
	transform: scaleX(1);
}

/* Mobile menu toggle: 44px target, cream on green. */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill {
	background: var(--kh-paper) !important;
	color: var(--kh-green) !important;
	min-width: 44px;
	min-height: 44px;
	border-radius: var(--kh-radius) !important;
}
[data-section="section-header-mobile-trigger"] .ast-mobile-svg {
	fill: var(--kh-green) !important;
}
.ast-mobile-header-content,
.ast-mobile-header-content .main-header-menu,
.ast-builder-menu-mobile .main-navigation .main-header-menu {
	background-color: var(--kh-green) !important;
}
.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link {
	padding-block: 14px;
	font-size: 1rem;
	color: var(--kh-paper) !important;
	border-color: rgb(245 238 224 / .18) !important;
}

/* ------------------------------------------------------------------
   Buttons — shopfront green with cream letters.
------------------------------------------------------------------- */
.wp-block-button__link,
.uagb-buttons-repeater,
.uagb-infobox-cta-link,
.ast-button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .single_add_to_cart_button,
.wpforms-container button.wpforms-submit,
input[type="submit"] {
	background-color: var(--kh-green) !important;
	border: 2px solid var(--kh-green) !important;
	color: var(--kh-paper) !important;
	font-family: var(--kh-sans) !important;
	font-weight: 600 !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .875rem !important;
	min-height: 44px;
	border-radius: 999px !important;
	padding-inline: 1.6em !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.wp-block-button__link:hover,
.uagb-buttons-repeater:hover,
.uagb-infobox-cta-link:hover,
.ast-button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.wpforms-container button.wpforms-submit:hover,
input[type="submit"]:hover {
	background-color: var(--kh-green-deep) !important;
	border-color: var(--kh-green-deep) !important;
	color: var(--kh-paper) !important;
	transform: translateY(-1px);
}
.uagb-buttons-repeater .uagb-button__link,
.uagb-infobox-cta-link .uagb-inline-editing {
	color: inherit !important;
}

/* ------------------------------------------------------------------
   Home — hero: the chalkboard photo in green/cream duotone
   (filter defined in functions.php), so it reads as a real chalkboard.
------------------------------------------------------------------- */
.home .wp-block-cover.alignfull {
	isolation: isolate;
}
/* Any cover using the old magenta/yellow duotone (home, Um Kanínuholuna). */
.wp-block-cover.wp-duotone-magenta-yellow .wp-block-cover__image-background {
	filter: url(#kh-duotone-board) !important;
}
.wp-block-cover.wp-duotone-magenta-yellow h1 {
	color: var(--kh-paper) !important;
	text-shadow: 0 2px 18px rgb(0 0 0 / .45);
}
/* Bottom-weighted scrim so the title reads over the busy photo. */
.home .wp-block-cover.alignfull::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(to top, rgb(20 32 26 / .78) 0%, rgb(20 32 26 / .3) 45%, rgb(20 32 26 / 0) 70%),
		var(--kh-grain);
}
.home .wp-block-cover.alignfull .wp-block-cover__inner-container {
	z-index: 2;
}
.home .wp-block-cover h1.wp-block-heading {
	color: var(--kh-paper) !important;
	font-weight: 700;
	letter-spacing: .04em;
	text-shadow: 0 2px 18px rgb(0 0 0 / .45);
}

/* Spectra info-box heads and icons (e.g. Hafa samband) in shopfront green. */
.entry-content .uagb-ifb-title,
.woocommerce-products-header__title,
.entry-header .entry-title {
	color: var(--kh-green) !important;
}
.entry-content .uagb-ifb-icon-wrap svg {
	fill: var(--kh-green) !important;
}

/* ------------------------------------------------------------------
   Home — welcome: pink plaster wall, portrait in a stone window frame
------------------------------------------------------------------- */
.uagb-block-d901e115 {
	background-color: var(--kh-plaster) !important;
	background-image:
		radial-gradient(circle at 100% 100%, var(--kh-plaster-deep) 0 140px, transparent 141px),
		var(--kh-grain) !important;
	position: relative;
}
.uagb-block-0b36d7a8 .uagb-ifb-title {
	font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem) !important;
	color: var(--kh-green) !important;
}
.uagb-block-0b36d7a8 .uagb-ifb-separator {
	border: 0 !important;
	width: 120px !important;
	height: 14px !important;
	background: var(--kh-squiggle) no-repeat left center;
}
.uagb-block-0b36d7a8 .uagb-ifb-desc p {
	font-size: 1.1875rem !important;
	font-weight: 400 !important;
	line-height: 1.7;
	color: var(--kh-ink);
}
.uagb-block-ef35df72 img {
	border: 14px solid var(--kh-frame);
	outline: 4px solid var(--kh-green);
	outline-offset: -4px;
	border-radius: 2px;
	box-shadow: var(--kh-shadow-lift);
}

/* The moka pot, redrawn in shopfront green. */
.kaffi-pot {
	filter: url(#kh-duotone-ink);
}
.kaffi-text {
	color: var(--kh-green) !important;
}

/* ------------------------------------------------------------------
   Home — featured book: a window display on the green shopfront
------------------------------------------------------------------- */
.uagb-block-0336b1b3 {
	background-color: var(--kh-green) !important;
	background-image:
		radial-gradient(circle at 88% 50%, var(--kh-mustard) 0 190px, transparent 191px),
		radial-gradient(circle at 76% 12%, var(--kh-terracotta) 0 44px, transparent 45px),
		var(--kh-grain) !important;
	color: var(--kh-paper);
}
.uagb-block-6427844a .uagb-ifb-title {
	color: var(--kh-paper) !important;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem) !important;
}
.uagb-block-6427844a .uagb-ifb-title-prefix {
	color: var(--kh-mustard) !important;
}
.uagb-block-6427844a .uagb-ifb-desc {
	color: var(--kh-paper) !important;
	font-size: 1.0625rem;
	line-height: 1.7;
}
.uagb-block-6427844a .uagb-ifb-desc strong,
.uagb-block-6427844a .uagb-ifb-desc em {
	color: var(--kh-peach);
}
.uagb-block-6427844a .uagb-infobox-cta-link {
	background-color: var(--kh-paper) !important;
	border-color: var(--kh-paper) !important;
	color: var(--kh-green) !important;
}
.uagb-block-6427844a .uagb-infobox-cta-link:hover {
	background-color: var(--kh-mustard) !important;
	border-color: var(--kh-mustard) !important;
	color: var(--kh-green-deep) !important;
}
.uagb-block-b76a8530 img {
	border-radius: 2px;
	transform: rotate(-2deg);
	box-shadow: 0 2px 3px rgb(0 0 0 / .2), 14px 22px 40px -12px rgb(0 0 0 / .55);
}

/* ------------------------------------------------------------------
   Home — "Í sviðsljósinu": books on the cream page with Marimekko dots,
   each card a stitched paper tag
------------------------------------------------------------------- */
#wp-block-themeisle-blocks-advanced-heading-4943304f {
	text-align: center;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
	margin-bottom: 0 !important;
	padding-top: 24px;
}
#wp-block-themeisle-blocks-advanced-heading-4943304f::after {
	content: "";
	display: block;
	width: 120px;
	height: 14px;
	margin: .4em auto 0;
	background: var(--kh-squiggle) no-repeat center;
}

/* The group after the heading only holds two spacers — it left a big gap. */
#wp-block-themeisle-blocks-advanced-heading-4943304f + .wp-block-group:not(:has(> :not(.wp-block-spacer))) {
	display: none;
}
#wp-block-themeisle-blocks-advanced-columns-55b78b58 {
	padding-top: 48px !important;
	padding-bottom: 80px !important;
	background-image:
		radial-gradient(circle at 4% 78%, var(--kh-plaster) 0 120px, transparent 121px),
		radial-gradient(circle at 10% 96%, var(--kh-terracotta) 0 26px, transparent 27px),
		radial-gradient(circle at 96% 18%, var(--kh-mustard) 0 70px, transparent 71px),
		radial-gradient(circle at 91% 8%, var(--kh-green-soft) 0 18px, transparent 19px);
	background-repeat: no-repeat;
}

#wp-block-themeisle-blocks-advanced-columns-55b78b58 .wp-block-themeisle-blocks-advanced-column {
	position: relative;
	background: var(--kh-card);
	border: 0;
	border-radius: 6px;
	padding: 28px 24px 32px !important;
	box-shadow: var(--kh-shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}
/* Hand-stitched edge, like the sewn journals on the board. */
#wp-block-themeisle-blocks-advanced-columns-55b78b58 .wp-block-themeisle-blocks-advanced-column::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 2px dashed var(--kh-terracotta);
	border-radius: 3px;
	opacity: .55;
	pointer-events: none;
}
#wp-block-themeisle-blocks-advanced-columns-55b78b58 .wp-block-themeisle-blocks-advanced-column:hover,
#wp-block-themeisle-blocks-advanced-columns-55b78b58 .wp-block-themeisle-blocks-advanced-column:focus-within {
	transform: translateY(-4px) rotate(-.6deg);
	box-shadow: var(--kh-shadow-lift);
}
/* The Klink cover had no aspect ratio set; make all three match. */
#wp-block-themeisle-blocks-advanced-columns-55b78b58 figure img {
	aspect-ratio: 2 / 3;
	width: 100%;
	max-width: 280px;
	height: auto;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 1px 1px rgb(0 0 0 / .1), 6px 10px 22px -8px rgb(43 38 34 / .45);
}
#wp-block-themeisle-blocks-advanced-columns-55b78b58 h3 {
	font-size: 1.625rem;
	margin-top: 1rem !important;
}
#wp-block-themeisle-blocks-advanced-columns-55b78b58 p {
	color: var(--kh-ink-soft);
	font-style: italic;
	margin-inline: auto;
}

/* ------------------------------------------------------------------
   Newsletter — pink plaster panel
------------------------------------------------------------------- */
.home .wp-block-columns.has-background {
	background-color: var(--kh-plaster) !important;
	background-image:
		radial-gradient(circle at 100% 0%, var(--kh-plaster-deep) 0 110px, transparent 111px),
		var(--kh-grain);
	border-radius: 8px;
	padding: clamp(24px, 4vw, 56px) !important;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.home .wp-block-columns.has-background h2 {
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
	color: var(--kh-green) !important;
}
.home .wp-block-columns.has-background h2::after {
	content: "";
	display: block;
	width: 120px;
	height: 14px;
	margin-top: .35em;
	background: var(--kh-squiggle) no-repeat left center;
}
.home .wp-block-columns.has-background img {
	border: 12px solid var(--kh-card);
	border-radius: 2px;
	transform: rotate(1.5deg);
	box-shadow: var(--kh-shadow-lift);
}

.wpforms-container .wpforms-field-label {
	font-family: var(--kh-sans);
	font-weight: 600 !important;
	color: var(--kh-ink) !important;
	font-size: 1rem !important;
}
.wpforms-container .wpforms-required-label {
	color: var(--kh-rust) !important;
}
/* Input borders need 3:1 against the background (WCAG 1.4.11). */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea,
.woocommerce form .input-text,
.woocommerce-js input[type="number"] {
	background: #fff !important;
	border: 1.5px solid #7d7064 !important;
	border-radius: var(--kh-radius) !important;
	min-height: 48px;
	padding: 10px 14px !important;
	font-size: 1rem !important;
	color: var(--kh-ink) !important;
	max-width: 100% !important;
}
.wpforms-container input:focus,
.wpforms-container textarea:focus {
	border-color: var(--kh-focus) !important;
}
.wpforms-container .wpforms-error,
.wpforms-container label.wpforms-error {
	color: #a01d1d !important;
	font-weight: 500;
}
.wpforms-container button.wpforms-submit {
	padding: 12px 28px !important;
	height: auto !important;
}

/* ------------------------------------------------------------------
   Inner pages — title with the squiggle
------------------------------------------------------------------- */
:not(.home) .entry-header .entry-title,
.woocommerce-products-header__title {
	font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem) !important;
}
.woocommerce-products-header__title::after,
.page:not(.home) .entry-header .entry-title::after {
	content: "";
	display: block;
	width: 120px;
	height: 14px;
	margin-top: .3em;
	background: var(--kh-squiggle) no-repeat left center;
}
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.ast-breadcrumbs,
.ast-breadcrumbs a {
	color: var(--kh-green-soft) !important;
}

/* Hafa samband: the tea-party print is a square JPG padded with white;
   multiply lets the paper show through instead of a white box. */
.page-id-550 .wp-image-1757 {
	mix-blend-mode: multiply;
}

/* ------------------------------------------------------------------
   Shop / product
------------------------------------------------------------------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.3125rem !important;
	line-height: 1.25;
}
.woocommerce ul.products li.product .ast-woo-product-category {
	color: var(--kh-green-soft) !important;
	font-size: .75rem !important;
	opacity: 1;
}
.woocommerce ul.products li.product img,
.woocommerce div.product div.images img {
	border-radius: 2px;
	box-shadow: 0 1px 1px rgb(0 0 0 / .08), 6px 10px 22px -10px rgb(43 38 34 / .4);
	transition: transform .3s ease;
}
.woocommerce ul.products li.product:hover img {
	transform: translateY(-4px) rotate(-1deg);
}
/* Price as a little paper tag. */
.woocommerce ul.products li.product .price {
	display: inline-block;
	margin-top: .35em;
	padding: 2px 10px;
	background: var(--kh-card);
	border: 1.5px dashed var(--kh-green-soft);
	border-radius: 3px;
	color: var(--kh-green) !important;
	font-weight: 600;
}
.woocommerce div.product p.price {
	color: var(--kh-green) !important;
	font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	border-color: var(--kh-green) !important;
	color: var(--kh-green) !important;
	border-radius: 999px;
	min-width: 44px;
	min-height: 44px;
	display: inline-grid;
	place-items: center;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--kh-green) !important;
	color: var(--kh-paper) !important;
}
/* Demoted duplicate title in the product banner (see functions.php). */
.single-product p.entry-title {
	font-family: var(--kh-serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--kh-ink-soft);
	margin: 0;
}

/* ------------------------------------------------------------------
   Footer — the shopfront again, with a stripe of the awning on top
------------------------------------------------------------------- */
.site-footer {
	position: relative;
}
.site-primary-footer-wrap[data-section="section-primary-footer-builder"],
.site-below-footer-wrap {
	background-color: var(--kh-green-deep) !important;
	background-image: var(--kh-grain) !important;
	color: var(--kh-paper);
	border-top: 0 !important;
}
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
	border-top: 8px solid transparent !important;
	border-image: repeating-linear-gradient(90deg, var(--kh-mustard) 0 22px, var(--kh-terracotta) 22px 44px, var(--kh-plaster) 44px 66px) 8 !important;
}
.site-footer p {
	color: var(--kh-paper);
}
.site-footer strong {
	font-family: var(--kh-serif);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--kh-mustard);
}
.site-footer a:not(.ast-builder-social-element) {
	color: var(--kh-peach);
}
.site-footer .uagb-block-807ce2de img {
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	max-width: 150px;
	border: 6px solid var(--kh-paper);
}
/* Empty paragraph widgets were adding blank space. */
.site-footer .widget_block > p:empty,
.site-footer .widget:has(> p:empty:only-child) {
	display: none;
}
.ast-footer-social-1-wrap .ast-builder-social-element {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.ast-footer-social-1-wrap .ast-builder-social-element svg {
	fill: var(--kh-paper) !important;
}
.ast-footer-social-1-wrap .social-item-label {
	color: var(--kh-paper) !important;
}
/* Astra's default hover used blue #0170B9 on the dark footer (2.2:1). */
.ast-footer-social-1-wrap .ast-social-color-type-custom .ast-builder-social-element:hover svg {
	fill: var(--kh-mustard) !important;
}
.ast-footer-social-1-wrap .ast-builder-social-element:hover .social-item-label {
	color: var(--kh-mustard) !important;
}
.ast-footer-copyright,
.ast-footer-copyright p {
	color: #cfc6ba !important;
	font-size: .875rem;
}
.site-below-footer-wrap {
	border-top: 1px solid rgb(245 238 224 / .15) !important;
}

/* ------------------------------------------------------------------
   Hover-only illustrations (lantern, coffee pot) are decorative;
   keep them from blocking touch scrolling on small screens.
------------------------------------------------------------------- */
@media (max-width: 544px) {
	.kaffi-hover { padding: 40px 0 0 !important; }
	.kaffi-pot { width: 160px !important; }
	.uagb-block-0336b1b3 {
		background-image:
			radial-gradient(circle at 100% 70%, var(--kh-mustard) 0 120px, transparent 121px),
			var(--kh-grain) !important;
	}
	#wp-block-themeisle-blocks-advanced-columns-55b78b58 {
		background-image: none;
	}
}

/* ------------------------------------------------------------------
   Reduced motion (WCAG 2.3.3)
------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	#wp-block-themeisle-blocks-advanced-columns-55b78b58 .wp-block-themeisle-blocks-advanced-column:hover,
	.woocommerce ul.products li.product:hover img,
	.kaffi-hover:hover .kaffi-pot {
		transform: none !important;
	}
}

/* ------------------------------------------------------------------
   Forced colours (Windows High Contrast)
------------------------------------------------------------------- */
@media (forced-colors: active) {
	.wp-block-button__link,
	.uagb-buttons-repeater,
	.uagb-infobox-cta-link,
	.button {
		border: 2px solid ButtonText !important;
	}
	.home .wp-block-cover.alignfull::after,
	.site-header .main-header-bar-wrap::after { display: none; }
	.site-header .custom-logo { filter: none; }
}
