/* Moh Kaya — base layout and brand components.
 * Tokens come from tokens.css (generated). Keep this calm: hairlines, soft shadows,
 * no gradients except the hero readability scrim, no emoji, no alarm red.
 */

/* ---------- Foundations ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--surface-page); color: var(--text-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
::selection { background: var(--caramel-200); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: var(--radius-xs); }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color var(--dur-base) var(--ease-soft); }

/* <em> inside headings is the brand's two-tone accent, not a synthesized italic. */
:where(h1, h2, h3, .mk-display) em { font-style: normal; font-weight: 500; color: var(--caramel-600); }
.mk-on-dark :where(h1, h2, h3) em { color: var(--caramel-400); }

.skip-link.screen-reader-text:focus { background: var(--cream-50); color: var(--ink-900); padding: 0.75rem 1rem; z-index: 1000; }

/* ---------- Type helpers ---------- */
.mk-eyebrow, p.mk-eyebrow {
	font-family: var(--font-sans); font-size: var(--fs-micro); font-weight: 600;
	letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-accent); margin: 0;
}
.mk-on-dark .mk-eyebrow { color: var(--text-on-dark-accent); }
.mk-lead { font-family: var(--font-serif); font-size: var(--fs-lead); line-height: var(--leading-relaxed); color: var(--text-body); }
.mk-muted { color: var(--text-muted); }
.mk-caption { font-size: var(--fs-caption); color: var(--text-muted); }
.mk-wordmark { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0.005em; text-transform: lowercase; font-style: normal; }

/* ---------- Sections ---------- */
.mk-section { padding-block: var(--section-y); }
.mk-section--alt { background: var(--surface-page-alt); }
.mk-section--card { background: var(--surface-card); }
.mk-on-dark { background: var(--surface-dark); color: var(--text-on-dark); }
.mk-on-dark--deep { background: var(--surface-dark-deep); }
.mk-on-dark :where(h1, h2, h3, h4) { color: var(--cream-50); }
.mk-on-dark p { color: color-mix(in oklab, var(--cream-100) 88%, transparent); }
.mk-on-dark a:not(.wp-element-button) { color: var(--caramel-400); }
.mk-stack > * + * { margin-block-start: var(--space-4); }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link, .mk-btn {
	transition: background-color var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.wp-element-button:active, .mk-btn:active { transform: translateY(1px); }
.is-style-caramel .wp-block-button__link, .mk-btn--caramel { background: var(--btn-caramel-bg); color: var(--btn-caramel-text); }
.is-style-caramel .wp-block-button__link:hover, .mk-btn--caramel:hover { background: var(--btn-caramel-bg-hover); color: var(--cream-50); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink-900); border: 1.5px solid var(--ink-900); }
.mk-on-dark .is-style-outline .wp-block-button__link { color: var(--cream-50); border-color: var(--cream-100); }
.mk-link-arrow {
	font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--tracking-wide);
	text-transform: uppercase; color: var(--text-accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.mk-link-arrow::after { content: " \2192"; }

/* ---------- Announcement + header ---------- */
.mk-announcement { background: var(--green-900); color: var(--cream-100); text-align: center; font-size: var(--fs-caption); letter-spacing: 0.02em; padding: 0.55rem var(--gutter); margin: 0; }
.mk-announcement p { margin: 0; color: var(--cream-100); }
.mk-announcement a { color: var(--caramel-400); }

.mk-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in oklab, var(--cream-200) 92%, transparent);
	backdrop-filter: saturate(1.1) blur(8px); -webkit-backdrop-filter: saturate(1.1) blur(8px);
	border-bottom: 1px solid var(--border-hairline);
}
.admin-bar .mk-header { top: var(--wp-admin--admin-bar--height, 32px); }
.mk-header .wp-block-site-title, .mk-header .mk-wordmark { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0; line-height: 1; }
.mk-header .wp-block-site-title a { color: var(--ink-900); text-decoration: none; }
.mk-header .wp-block-navigation { font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.mk-header .wp-block-navigation a { color: var(--ink-800); text-decoration: none; }
.mk-header .wp-block-navigation a:hover { color: var(--caramel-600); }
.mk-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--cream-100); padding: var(--space-6) var(--gutter); }

/* ---------- Hero — Design System v2 copy over the duo jar photograph ----------
 * No darkening. Desktop: the photo at its natural 3:2 shape; the copy sits centred on the plain
 * beige wall that fills the top ~37% of the frame, in dark ink. Phones: the copy on cream above
 * the photo, then a 4:5 crop that keeps both jars whole. */
.mk-hero { position: relative; overflow: hidden; background: var(--cream-200); }
.mk-hero > * { margin-block: 0 !important; }
.mk-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.mk-hero__content { position: relative; z-index: 1; }
.mk-hero__copy { text-align: center; margin-inline: auto; }
.mk-hero .mk-eyebrow { color: var(--text-accent); }
.mk-hero h1 { font-weight: 400; color: var(--ink-900); letter-spacing: -0.02em; line-height: 1.04; margin: 14px 0 14px; text-wrap: balance; }
.mk-hero h1 em { font-weight: 500; color: var(--caramel-800); } /* deeper caramel: readable on the beige wall */
/* A soft cream glow behind the hero copy lifts it off the wall's shadows (no box, no blur on the photo). */
.mk-hero h1, .mk-hero .mk-hero__sub, .mk-hero .mk-eyebrow { text-shadow: 0 0 18px rgba(248, 240, 228, 0.85), 0 0 2px rgba(248, 240, 228, 0.6); }
.mk-hero .mk-hero__sub { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--ink-800); font-weight: 500; max-width: 44ch; margin: 0 auto 24px; }
.mk-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: center; }
.mk-hero__ctas p { margin: 0; }
.mk-hero__link { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.08em; font-weight: 600; color: var(--ink-800); text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.mk-hero__link:hover { color: var(--caramel-700); }
.mk-hero .mk-hero__trust { margin: 18px 0 0; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.06em; font-weight: 500; color: var(--ink-500); }

/* Google rating badge at the top of the hero copy (links to the reviews section). */
.mk-hero .mk-hero__rating { margin: 0 0 14px; }
.mk-hero__rating a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface-card); border: 1px solid var(--border-hairline); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ink-800); text-decoration: none !important; }
.mk-hero__rating a:hover { border-color: var(--border-strong); }
.mk-hero__rating strong { font-weight: 700; color: var(--ink-900); }
.mk-hero__stars { color: var(--caramel-700); letter-spacing: 1px; font-size: 14px; }

/* Trust strip under the hero: three quiet facts (free shipping is in the announcement bar) (replaces the hero's trust line, which had no room on desktop). */
.mk-trust-strip { list-style: none; margin: 0; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; background: var(--green-900); border-bottom: 0; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--cream-100); }
.mk-trust-strip li { padding: 0 14px; }
.mk-trust-strip li + li { border-left: 1px solid color-mix(in oklab, var(--cream-100) 35%, transparent); }
.mk-trust-strip li { white-space: nowrap; } /* an item never breaks inside itself */
@media (max-width: 599px) {
	/* Phones: one fact per screen width in a single line that scrolls sideways (hero script moves it every 7 s). */
	.mk-trust-strip { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; padding-inline: 0; font-size: 11px; }
	.mk-trust-strip::-webkit-scrollbar { display: none; width: 0; height: 0; background: transparent; }
	.mk-trust-strip li { flex: 0 0 100%; box-sizing: border-box; text-align: center; scroll-snap-align: center; padding: 0 var(--gutter); }
	.mk-trust-strip li + li { border-left: 0; }
	.mk-trust-strip { border-bottom: 0; padding-bottom: 8px; }
}
/* Phones: dots under the trust strip; the current one fills over 7 s, then the strip moves on. */
.mk-trust-dots { display: none; margin: 0 !important; }
.mk-trust-strip { margin-block: 0 !important; }
@media (max-width: 599px) {
	.mk-trust-dots { display: flex; justify-content: center; gap: 6px; padding: 1px 0 12px; background: var(--green-900); position: relative; margin-top: -1px !important; } /* overlaps the strip by 1 px: no hairline seam on high-density screens */
	.mk-trust-dots span { position: relative; width: 6px; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--cream-100) 40%, transparent); overflow: hidden; transition: width var(--dur-base) var(--ease-soft); }
	.mk-trust-dots span.is-on { width: 22px; background: color-mix(in oklab, var(--cream-100) 25%, transparent); }
	.mk-trust-dots span.is-on::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--caramel-400); animation: mk-trust-fill 7s linear forwards; }
}
@keyframes mk-trust-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .mk-trust-dots span.is-on::after { animation: none; width: 100%; } }

/* Desktop and tablet: photo full width at 3:2, copy on the wall above the jars */
@media (min-width: 900px) {
	.mk-hero { aspect-ratio: 3 / 2; max-height: 1060px; width: 100%; }
	.mk-hero__media { position: absolute; inset: 0; }
	.mk-hero__content { padding: clamp(20px, 2.6vw, 44px) var(--gutter) 0; }
	.mk-hero__copy { max-width: 46rem; }
	.mk-hero h1 { font-size: clamp(34px, 3.5vw, 54px); }
	.mk-hero .mk-hero__sub { font-size: clamp(14px, 1.1vw, 17px); margin-bottom: clamp(14px, 1.6vw, 24px); max-width: none; }
	.mk-hero__copy { max-width: 58rem; } /* the subline fits on one line */
	.mk-hero .mk-hero__rating { margin-bottom: 10px; }
	.mk-hero h1 { margin: 8px 0 10px; }
	.mk-hero .mk-hero__trust { display: none; } /* keeps the wall clear above the jar lids; the line appears on phones */
}

/* Smaller desktops/tablets: the wall above the jars shrinks with the photo, so drop the subline */
@media (min-width: 900px) and (max-width: 1339px) {
	.mk-hero__content { padding-top: clamp(10px, 2vw, 28px); }
	.mk-hero h1 { font-size: clamp(26px, 2.9vw, 38px); margin-bottom: 12px; }
	.mk-hero .mk-hero__sub { display: none; }
}

/* Phones: copy first on cream, then the photo cropped 4:5 (both jars whole) */
@media (max-width: 899px) {
	.mk-hero { display: flex; flex-direction: column; }
	.mk-hero__content { order: 1; padding: var(--space-6) var(--gutter) var(--space-5); }
	.mk-hero__media { order: 2; aspect-ratio: 1 / 1; }
	.mk-hero__media img { object-position: 50% 82%; } /* square crop: both jars whole, little empty wall */
	.mk-hero .mk-hero__sub { font-size: 15px; margin-bottom: 20px; }
	.mk-hero__ctas { flex-direction: column; gap: 16px; } /* button, then the recipes link on its own line */
	.mk-hero .mk-hero__trust { margin-top: 14px; }
	.mk-hero h1 { font-size: clamp(32px, 8.4vw, 44px); }
}

/* ---------- Split (image + text) sections ---------- */
.mk-split { display: grid; gap: var(--space-7); align-items: center; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 860px) {
	.mk-split { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-9); }
	.mk-split--reverse > :first-child { order: 2; }
}
.mk-split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); display: block; }
.mk-split__body { max-width: 34rem; }
.mk-split__body h2 { margin: var(--space-4) 0 var(--space-5); }

/* ---------- Container ---------- */
.mk-container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.mk-section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); }
@media (min-width: 860px) { .mk-section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.mk-section-head h2 { margin: 0; }
.mk-section-head p { margin: 0; color: var(--text-muted); }

/* ---------- Jar cards (featured products) ---------- */
.mk-jars { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 1000px) { .mk-jars { grid-template-columns: repeat(3, 1fr); } }
.mk-jar {
	position: relative; display: flex; flex-direction: column; background: var(--surface-card);
	border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden;
	box-shadow: var(--shadow-xs); transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
	text-decoration: none; color: inherit;
}
.mk-jar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mk-jar__media { aspect-ratio: 1 / 1; background: var(--cream-300); border-bottom: 3px solid var(--mk-accent, var(--caramel-400)); }
.mk-jar__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-jar__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.mk-jar__name { font-family: var(--font-serif); font-size: var(--fs-h4); color: var(--ink-900); margin: 0; line-height: var(--leading-snug); }
.mk-jar__note { margin: 0; font-size: var(--fs-small); color: var(--text-muted); flex: 1; }
.mk-jar__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--space-3); }
.mk-jar__price { font-size: var(--fs-small); color: var(--ink-800); font-weight: 600; }
.mk-chip {
	position: absolute; top: 12px; left: 12px; z-index: 1; background: color-mix(in oklab, var(--cream-50) 92%, transparent);
	color: var(--ink-800); font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase;
	padding: 0.35rem 0.7rem; border-radius: var(--radius-pill);
	max-width: calc(100% - 24px); line-height: 1.35; /* longer labels wrap inside the card */
}
.mk-accent-pandan { --mk-accent: var(--pandan-500); --mk-wash: var(--pandan-200); }
.mk-accent-caramel { --mk-accent: var(--caramel-500); --mk-wash: var(--caramel-200); }
.mk-accent-cardamom { --mk-accent: var(--cardamom-500); --mk-wash: var(--cardamom-200); }
.mk-accent-mango { --mk-accent: var(--mango-500); --mk-wash: var(--mango-200); }
.mk-accent-saffron { --mk-accent: var(--caramel-400); --mk-wash: var(--caramel-200); }
.mk-accent-coffee { --mk-accent: var(--ink-500); --mk-wash: var(--cream-300); }

/* ---------- What's inside ---------- */
.mk-ingredients { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mk-ingredients li { display: grid; grid-template-columns: 10px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border-hairline); }
.mk-ingredients li:last-child { border-bottom: 1px solid var(--border-hairline); }
.mk-ingredients li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--caramel-500); margin-top: 0.55em; }
.mk-ingredients strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-h4); color: var(--ink-900); }
.mk-ingredients span { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- Founder quote ---------- */
.mk-quote { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.32; color: var(--ink-900); margin: var(--space-5) 0; border: 0; padding: 0; }
.mk-quote p { margin: 0; }
.mk-quote cite { display: block; margin-top: var(--space-5); font-family: var(--font-sans); font-style: normal; font-size: var(--fs-caption); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-accent); }

/* ---------- Reviews ---------- */
.mk-reviews__rating { font-family: var(--font-sans); font-size: var(--fs-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--space-5); }
.mk-reviews { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.mk-review { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: var(--space-6); margin: 0; }
.mk-review p { font-family: var(--font-serif); font-size: var(--fs-lead); color: var(--ink-800); margin: 0 0 var(--space-5); }
.mk-review cite { font-style: normal; font-size: var(--fs-caption); color: var(--text-muted); }
.mk-stars { color: var(--caramel-500); letter-spacing: 0.15em; font-size: var(--fs-small); margin-bottom: var(--space-3); }

/* ---------- Recipes ---------- */
.mk-recipes { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.mk-recipe { background: var(--mk-wash, var(--cream-300)); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; color: inherit; transition: transform var(--dur-base) var(--ease-soft); }
.mk-recipe:hover { transform: translateY(-2px); }
.mk-recipe h3 { margin: 0; font-size: var(--fs-h3); }
.mk-recipe p { margin: 0; color: var(--ink-700); }
.mk-recipe .mk-eyebrow { color: var(--ink-500); }

/* ---------- FAQ (details blocks) ---------- */
.mk-faq { border-top: 1px solid var(--border-hairline); }
.wp-block-details, .mk-faq details { border-bottom: 1px solid var(--border-hairline); padding: var(--space-5) 0; }
.wp-block-details summary, .mk-faq summary {
	cursor: pointer; list-style: none; font-family: var(--font-serif); font-size: var(--fs-h4); color: var(--ink-900);
	display: flex; justify-content: space-between; gap: var(--space-4);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after, .mk-faq summary::after { content: "+"; font-family: var(--font-sans); color: var(--caramel-600); transition: transform var(--dur-base) var(--ease-soft); }
.wp-block-details[open] summary::after, .mk-faq details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: var(--space-3); color: var(--text-body); max-width: var(--container-text); }

/* ---------- Footer ---------- */
.mk-footer { background: var(--green-900); color: var(--cream-100); padding-block: var(--space-9) var(--space-6); }
.mk-footer a { color: var(--cream-100); text-decoration: none; }
.mk-footer a:hover { color: var(--caramel-400); }
.mk-footer .mk-wordmark { font-size: 2.25rem; color: var(--cream-50); margin: 0; }
.mk-footer h3 { font-family: var(--font-sans); font-size: var(--fs-micro); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--caramel-400); margin: 0 0 var(--space-4); font-weight: 600; }
.mk-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); font-size: var(--fs-small); }
.mk-footer p { color: color-mix(in oklab, var(--cream-100) 82%, transparent); font-size: var(--fs-small); }
.mk-footer__legal { border-top: 1px solid var(--border-dark); margin-top: var(--space-8); padding-top: var(--space-5); font-size: var(--fs-caption); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; color: color-mix(in oklab, var(--cream-100) 70%, transparent); }
.mk-footer__legal p { margin: 0; font-size: inherit; color: color-mix(in oklab, var(--cream-100) 70%, transparent); }

/* ---------- Content pages (policies, about) ---------- */
.mk-prose { max-width: var(--container-text); margin-inline: auto; }
.mk-prose h2 { font-size: var(--fs-h3); margin-top: var(--space-7); }
.mk-prose h3 { font-size: var(--fs-h4); margin-top: var(--space-6); }
.mk-prose li + li { margin-top: var(--space-2); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* Links inside running text are underlined, not colour-only (WCAG 1.4.1). */
main :where(p, li) > a:not(.mk-link-arrow):not(.wp-element-button) { text-decoration: underline; }
.mk-header a, .wp-block-navigation a, .wp-block-site-title a { text-decoration: none; }
.mk-footer__legal a { text-decoration: underline; color: inherit; }


/* ---------- Quiet-luxury refinements (matched to the Shopify design screenshots) ---------- */
/* Header: generous wordmark, widely tracked nav, a quiet forest CTA */
.mk-header .wp-block-site-title, .mk-header .mk-wordmark { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.4rem); letter-spacing: 0.005em; }
.mk-header .wp-block-navigation { letter-spacing: var(--tracking-wider); font-size: 0.75rem; }
.mk-header__cta .wp-block-button__link { padding: 0.8rem 1.4rem; font-size: 0.72rem; letter-spacing: var(--tracking-wider); }
@media (max-width: 780px) { .mk-header__cta { display: none; } }
/* Bigger, calmer section titles */
.mk-section h2, .mk-split__body h2, .mk-section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: var(--tracking-tight); }
/* Buttons: wide tracking, generous padding, square-ish */
.wp-element-button, .wp-block-button__link { letter-spacing: var(--tracking-wider); padding: 1.05rem 2rem; }
.is-style-outline .wp-block-button__link { border-width: 1px; }
/* Eyebrows a touch smaller and more spaced */
.mk-eyebrow, p.mk-eyebrow { letter-spacing: 0.22em; }
/* Section spacing (2026-11-12, tightened from up to 144 px): about 80 px on desktop, 48 px on phones. */
.mk-section { padding-block: clamp(3rem, 5.5vw, 5rem); }
/* Two sections on the same plain background in a row: half the space before the second, so the gap is
   not doubled. Coloured sections (dark, alt, card) keep their full padding. */
.mk-section:not(.mk-on-dark):not(.mk-section--alt):not(.mk-section--card):not(.has-background) + .mk-section:not(.mk-on-dark):not(.mk-section--alt):not(.mk-section--card):not(.has-background) { padding-top: clamp(1rem, 2.5vw, 2.5rem); }
/* No extra 16 px block gap between full-width sections (it showed as a cream band between coloured ones). */
main > .mk-section, main > .wp-block-group.mk-section, .mk-trust-dots + script + .mk-section { margin-block-start: 0 !important; }
.mk-header .wp-block-site-title, .mk-header .wp-block-site-title a { white-space: nowrap; }
@media (max-width: 1100px) { .mk-header__cta { display: none; } .mk-header .wp-block-navigation { --wp--style--block-gap: 1.25rem; gap: 1.25rem; } }
/* Five jars sit in one calm row on wide screens (as in the Shopify theme); six fall back to 3 x 2. */
@media (min-width: 1100px) {
	.mk-jars:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
	.mk-jars:has(> :nth-child(5):last-child) .mk-jar__body { padding: var(--space-4); }
	.mk-jars:has(> :nth-child(5):last-child) .mk-jar__meta { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
@media (max-width: 1100px) { .mk-header .mk-header__cta { display: none !important; } }
main nav a, main .mk-back, main .mk-flavours a { text-decoration: none !important; }

/* ---------- From our table — Moh Kaya Design System v2 ---------- */
.mk-table__head { display: grid; gap: var(--space-6); margin-bottom: var(--space-6); }
@media (min-width: 900px) { .mk-table__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.mk-table__head h2 { margin: 14px 0 0; }
.mk-table .mk-table__intro { margin: 0; font-size: var(--fs-body); line-height: 1.8; color: var(--text-body); }
.mk-table__grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 641px) { .mk-table__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mk-table__grid { grid-template-columns: repeat(3, 1fr); } }
.mk-table__card {
	display: block; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md);
	overflow: hidden; color: inherit; text-decoration: none !important;
	transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
}
.mk-table__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mk-table__photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-300); }
.mk-table__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-soft); }
.mk-table__card:hover .mk-table__photo img { transform: scale(1.03); }
.mk-table__body { padding: 20px 22px 24px; }
.mk-table .mk-table__time { margin: 0 0 8px; font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
.mk-table .mk-table__name { margin: 0 0 8px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.12; color: var(--text-strong); }
.mk-table .mk-table__desc { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.mk-table__more { margin-top: var(--space-6); }

/* ---------- Phones: one jar card per row (Design System v2) ---------- */
@media (max-width: 640px) {
	.mk-jars { grid-template-columns: 1fr; gap: var(--space-4); }
	.mk-jar__body { padding: var(--space-5); }
	.mk-jar__name { font-size: var(--fs-h4); }
	.mk-jar__note { font-size: var(--fs-small); }
	.mk-jar__meta { flex-direction: row; align-items: baseline; }
}


/* Logo: the horizontal website wordmark image (header dark, footer light) */
.mk-logo { display: inline-block; line-height: 0; flex-shrink: 0; }
.mk-logo img { display: block; width: auto; height: clamp(26px, 1.4rem + 0.8vw, 36px); }
.mk-footer .mk-logo { margin-bottom: var(--space-2); }
.mk-footer .mk-logo img { height: 40px; }

/* ---------- Sticky header (as in the Shopify theme) ----------
 * The whole header part (announcement + nav) sticks. On pages that open with the hero, the nav
 * sits transparent over the photo and gains its frosted cream background once the hero has
 * page starts scrolling (site.js adds .is-solid). Everywhere else it is solid from the start.
 * The background lives on ::before so the nav's fixed overlays (mobile menu, mini-cart) are
 * not trapped by backdrop-filter. */
:root { --mk-nav-h: 74px; }
@media (max-width: 781px) { :root { --mk-nav-h: 64px; } }
.wp-site-blocks > .wp-block-template-part:has(> .mk-header) {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; margin-block-end: 0;
}
.mk-header {
	position: relative !important; top: auto !important; z-index: 1;
	height: var(--mk-nav-h); box-sizing: border-box; display: flex; align-items: center;
	padding-block: 0 !important; background: none !important;
	backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
	border-bottom: 1px solid transparent;
	transition: border-color 0.5s var(--ease-soft);
}
.mk-header > * { width: 100%; }
.mk-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: color-mix(in oklab, var(--cream-200) 82%, transparent);
	backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
	transition: opacity 0.5s var(--ease-soft);
}
.mk-header, .mk-header.is-solid { border-bottom-color: var(--border-hairline); }

/* "Shop Kaya Jams": forest over the photo, caramel once the header is solid */
.mk-header .mk-header__cta .wp-block-button__link { transition: background-color var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft); }
.mk-header.is-solid .mk-header__cta .wp-block-button__link,
body:not(:has(.mk-hero)) .mk-header .mk-header__cta .wp-block-button__link { background: var(--caramel-500); color: var(--green-900); }
.mk-header.is-solid .mk-header__cta .wp-block-button__link:hover,
body:not(:has(.mk-hero)) .mk-header .mk-header__cta .wp-block-button__link:hover { background: var(--caramel-600); color: var(--cream-50); }

/* Pages with the hero: the photo runs up under the transparent nav */
body:has(.mk-hero) .mk-header:not(.is-solid) { border-bottom-color: transparent; }
body:has(.mk-hero) .mk-header:not(.is-solid)::before { opacity: 0; }
body:has(.mk-hero) .wp-site-blocks > .wp-block-template-part:has(> .mk-header) + * { margin-block-start: 0 !important; }
body:has(.mk-hero) .mk-hero { margin-top: calc(-1 * var(--mk-nav-h)) !important; }
body:has(.mk-hero) .mk-hero__content { padding-top: calc(var(--mk-nav-h) + var(--space-5)); }
@media (min-width: 900px) {
	body:has(.mk-hero) .mk-hero { aspect-ratio: auto; height: calc(min(66.667vw, 1060px) + var(--mk-nav-h)); max-height: none; }
	body:has(.mk-hero) .mk-hero__content { padding-top: calc(var(--mk-nav-h) + clamp(12px, 2.4vw, 44px)); }
}
@media (min-width: 900px) and (max-width: 1339px) {
	body:has(.mk-hero) .mk-hero__content { padding-top: calc(var(--mk-nav-h) + clamp(8px, 1.2vw, 18px)); }
}

/* The whole hero fits the first screen (2026-11-12). Desktop: the hero is at most the screen's height
 * below the announcement bar (leaving room for the trust strip), the photo `hero-side.webp` (jars on the
 * right, plain wall on the left) fills it edge to edge, and the copy sits left-aligned on the wall.
 * Phones: the copy, then the photo `hero-wide.webp` fills what is left of the screen. */
@media (min-width: 900px) {
	body:has(.mk-hero) .mk-hero { height: min(calc(66.667vw + var(--mk-nav-h)), calc(1060px + var(--mk-nav-h)), calc(100svh - var(--mk-header-h, 113px) + var(--mk-nav-h) - 48px)); min-height: 520px; } /* 48 px: the trust strip below also shows in the first screen */
	.mk-hero__media { position: absolute; inset: 0; }
	.mk-hero__media img { object-position: 70% 72%; } /* keeps the jars and the slab in frame on wide screens */
	/* A cream wash over the left of the photo (where the copy sits), fading out before the coconut and jars. */
	.mk-hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(242, 233, 216, 0.82) 0%, rgba(242, 233, 216, 0.7) 26%, rgba(242, 233, 216, 0.35) 38%, rgba(242, 233, 216, 0) 48%); }
	.mk-hero h1 em { color: #6B3F17; } /* a shade deeper than caramel-800 for the desktop wall */
	body:has(.mk-hero) .mk-hero__content { height: 100%; box-sizing: border-box; display: flex; align-items: center; padding: calc(var(--mk-nav-h) + 8px) var(--gutter) 24px clamp(24px, 4.5vw, 80px); }
	.mk-hero__copy { text-align: left; margin: 0; max-width: min(33vw, 34rem); } /* stays on the wall, clear of the coconut (45% across the photo) */
	/* The heading may run wider than the column: the wall above the jars is empty. */
	.mk-hero__copy > h1 { width: min(50vw, 48rem); max-width: none; }
	.mk-hero h1 { font-size: clamp(36px, 3.35vw, 60px); margin: 10px 0 16px; text-wrap: balance; }
	.mk-hero .mk-hero__sub, .mk-hero .mk-hero__sub[class] { display: block; margin: 0 0 22px; max-width: 100%; font-size: clamp(15px, 1.15vw, 17px); }
	.mk-hero__ctas { justify-content: flex-start; }
	.mk-hero .mk-hero__rating { margin: 0 0 18px; } /* clear space above the eyebrow */
}
/* Narrower desktops: a slightly wider, tighter copy column so the longer subline still fits the hero. */
@media (min-width: 900px) and (max-width: 1199px) {
	.mk-hero__copy { max-width: 39vw; }
	.mk-hero h1 { font-size: clamp(32px, 3.6vw, 42px); margin: 6px 0 12px; }
	.mk-hero .mk-hero__sub, .mk-hero .mk-hero__sub[class] { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
	.mk-hero .mk-hero__rating { margin-bottom: 12px; }
}
@media (max-width: 899px) {
	body:has(.mk-hero) .mk-hero { min-height: calc(100svh - var(--mk-header-h, 100px) + var(--mk-nav-h) - 80px); } /* 80 px: trust strip and its dots */
	.mk-hero__media { aspect-ratio: auto; flex: 1 1 140px; min-height: 140px; }
	/* Tighter copy so the hero, the trust strip and its dots fit the first screen of most phones. */
	.mk-hero .mk-hero__rating { margin-bottom: 14px; }
	.mk-hero h1 { font-size: clamp(29px, 7.8vw, 42px); margin: 8px 0 10px; }
	.mk-hero .mk-hero__sub { margin-bottom: 14px; line-height: 1.5; }
	.mk-hero__ctas { gap: 10px; }
	body:has(.mk-hero) .mk-hero__content { padding-bottom: 16px; }
	.mk-hero__media img { object-position: 50% 78%; }
	/* One scene, as on desktop (Prasant, 2026-11-12/13): the photo sits at the bottom, 30% wider than the screen so the
	   jars are bigger (the pandan and sugar at the edges are cropped), with the slab's front edge showing. Its wall fades
	   up into a matching wall tone, so the copy reads as written on the wall behind the jars. Gradient mask, no blur. */
	body:has(.mk-hero) .mk-hero { display: block; min-height: 0; background: linear-gradient(180deg, #F4EADC 0%, #EFE2D2 45%, #E8D7C5 100%); }
	.mk-hero__content { z-index: 2; }
	body:has(.mk-hero) .mk-hero__content { padding-bottom: 64vw; } /* room for the jars below the copy */
	.mk-hero__media { position: absolute; z-index: 1; left: 50%; bottom: -10vw; width: 130%; /* -10vw: trims the plain slab front so the trust strip sits higher */ height: auto; aspect-ratio: 900 / 755; min-height: 0; margin: 0 !important; transform: translateX(-50%);
		-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 20%, #000 40%);
		mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 20%, #000 40%); }
	.mk-hero__media img, .mk-hero__media img[class] { object-fit: cover; object-position: 50% 100%; }
	/* Quieter copy so the jars share the attention. */
	.mk-hero h1 { font-size: clamp(27px, 7.2vw, 38px); }
	.mk-hero .mk-hero__sub { font-size: 14px; }
	/* A light wash behind the copy only where the photo's wall shows through; fades to nothing at its edges. */
	.mk-hero__content::before { content: ""; position: absolute; inset: 20% -10% 30%; z-index: -1; pointer-events: none;
		background: radial-gradient(closest-side at 50% 50%, rgba(246, 238, 226, 0.7) 0%, rgba(246, 238, 226, 0) 100%); }
}

/* Phones: one-line announcement so the sticky header stays slim */
@media (max-width: 640px) {
	.mk-announcement__more { display: none; }
	.mk-announcement { padding-block: 0.5rem; font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .mk-header, .mk-header::before { transition: none; } }

/* ---------- Home "Our kaya collection": carousel on desktop ----------
 * Three cards in full view and the next one peeking; site.js adds the arrows (at the middle of the cards, hidden
 * when there is nothing further that way) and the dots (the current one fills over 7 s, then it moves).
 * Phones, tablets and the shop page keep the grid. */
.mk-carousel__btn, .mk-carousel__dots { display: none; }
@media (min-width: 1000px) {
	.mk-carousel { --mk-carousel-delay: 7s; }
	.mk-carousel__stage { position: relative; }
	#collection .mk-jars {
		display: flex; gap: var(--space-5); overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scroll-behavior: smooth; scrollbar-width: none;
		padding: 6px 2px 16px; margin: -6px -2px -16px; /* room for the card hover lift and shadow */
	}
	#collection .mk-jars::-webkit-scrollbar { display: none; }
	#collection .mk-jars > .mk-jar { flex: 0 0 calc((100% - 3 * var(--space-5)) / 3.35); scroll-snap-align: start; }
	#collection .mk-jars .mk-jar__body { padding: var(--space-5); }
	#collection .mk-jars .mk-jar__meta { flex-direction: row; align-items: baseline; gap: 0; }

	.mk-carousel__btn {
		position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
		width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
		border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--ink-800);
		background: color-mix(in oklab, var(--cream-50) 94%, transparent); box-shadow: var(--shadow-md);
		transition: border-color 0.2s, background-color 0.2s;
	}
	.mk-carousel__btn--prev { left: -24px; }
	.mk-carousel__btn--next { right: -24px; }
	.mk-carousel__btn[hidden] { display: none; }
	.mk-carousel__btn:hover { border-color: var(--ink-800); background: var(--cream-50); }
	.mk-carousel__btn:focus-visible { outline: 2px solid var(--ink-800); outline-offset: 2px; }
	.mk-carousel__btn svg { width: 20px; height: 20px; }

	.mk-carousel__dots { display: flex; justify-content: center; gap: 0; margin-top: var(--space-5); }
	/* 24 px wide at least (8 px dot + 8 px each side): the WCAG minimum tap size; the visible dot is unchanged. */
	.mk-carousel__dot { display: grid; place-items: center; min-width: 24px; height: 28px; padding: 0 8px; border: 0; background: none; cursor: pointer; }
	.mk-carousel__bar {
		position: relative; display: block; overflow: hidden; width: 8px; height: 8px;
		border-radius: var(--radius-pill); background: var(--cream-500); transition: width 0.35s ease, background-color 0.2s;
	}
	.mk-carousel__dot:hover .mk-carousel__bar { background: var(--ink-500, var(--cream-500)); }
	.mk-carousel__dot[aria-current] .mk-carousel__bar { width: 40px; background: color-mix(in oklab, var(--ink-800) 18%, var(--cream-300)); }
	.mk-carousel__dot:focus-visible { outline: 2px solid var(--ink-800); outline-offset: 2px; border-radius: var(--radius-pill); }
	/* The fill shows the time left before the next move; without auto-move the current dot is simply full. */
	.mk-carousel__fill { position: absolute; inset: 0; background: var(--ink-800); border-radius: inherit; transform-origin: left center; }
	.mk-carousel.is-auto .mk-carousel__fill { transform: scaleX(0); animation: mk-carousel-fill var(--mk-carousel-delay) linear forwards; }
	.mk-carousel.is-held .mk-carousel__fill { animation-play-state: paused; }
}
@keyframes mk-carousel-fill { to { transform: scaleX(1); } }
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) { #collection .mk-jars { scroll-behavior: auto; } }

/* In-page targets on the home page (hero buttons): stop below the sticky header. */
#collection, #recipes, #ritual, #reviews { scroll-margin-top: calc(var(--mk-header-h, 113px) + 16px); }
