/*
Theme Name:        Kin&K
Theme URI:         https://kinandkbakery.cz
Author:            Kin&K Bakery s. r. o.
Description:       Šablona pro Kin&K Bakery podle návrhu. Úvod a Lokace jsou běžné stránky v editoru bloků, sekce z návrhu jsou k dispozici jako vzory. Po aktivaci otevřete Vzhled → Kin&K a vytvořte stránky jedním kliknutím. Pohyb (plynulé posouvání, animace, parallax) sdílí se sesterským webem pomalu pomalu.
Version:           1.4.5
Requires at least: 6.5
Tested up to:      6.8
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       kinandk
*/

/* ==========================================================================
   Tokens
   The desktop layout is drawn on a 1920px canvas. --u is one canvas pixel,
   so calc(var(--u) * 137) sits exactly where the design puts it at any
   desktop width. It stops growing past 1920px.
   ========================================================================== */

:root {
	--c-ink: #211f1f;
	--c-cream: #fffef7;
	--c-text: #000;
	--f-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--gutter: 22px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.site {
	container-type: inline-size;
	--u: calc(min(100cqw, 1920px) / 1920);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-text);
	font-family: var(--f-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.005em;
}

p {
	margin: 0;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.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;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: var(--c-ink);
	color: var(--c-cream);
	text-decoration: none;
}

.wrap {
	max-width: 1920px;
	margin-inline: auto;
}

/* ==========================================================================
   Header + navigation
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 20;
}

.site-header__inner {
	display: flex;
	align-items: center;
	padding: 10px var(--gutter);
}

.site-logo {
	display: block;
	width: 104px;
	margin-right: auto;
	color: var(--c-ink);
}

.site-logo svg,
.site-logo img,
.site-footer__logo svg {
	display: block;
	width: 100%;
	height: auto;
}

.nav-toggle {
	order: 2;
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	justify-content: flex-end;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.nav-toggle__bars {
	position: relative;
	width: 26px;
	height: 12px;
	border-top: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	border-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 0;
	width: 100%;
	border-top: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: rotate(-45deg);
}

.primary-nav {
	display: none;
}

.primary-nav.is-open {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 92px var(--gutter) 40px;
	background: var(--c-cream);
}

.nav-open body {
	overflow: hidden;
}

.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav.is-open li + li {
	margin-top: 14px;
}

.primary-nav.is-open a {
	font-size: 30px;
}

.primary-nav a,
.lang-switch a {
	position: relative;
	display: inline-block;
	text-decoration: none;
}

/* Underline: reaches a little past the word, as in the design. */
.primary-nav a::after,
.lang-switch a::after {
	content: "";
	position: absolute;
	left: -0.45em;
	right: -0.45em;
	bottom: -0.35em;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s var(--ease-out);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after,
.primary-nav .current-menu-item > a::after,
.lang-switch a:hover::after,
.lang-switch a.is-current::after {
	transform: scaleX(1);
}

/* Language switcher: CZ EN, the current language bold.
   Next to the menu button on phones, after the menu on desktop. */
.lang-switch {
	order: 1;
	margin-right: 14px;
}

.lang-switch ul {
	display: flex;
	gap: 0.65em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switch a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.lang-switch a::after {
	left: -0.15em;
	right: -0.15em;
	bottom: 0.55em;
}

.lang-switch a.is-current {
	font-weight: 600;
}

/* ==========================================================================
   Page content from the block editor
   Plain blocks (text, headings, lists…) sit in a 760px column; design
   sections are "full width" groups and lay themselves out.
   ========================================================================== */

.page-header {
	width: min(760px, 100% - 2 * var(--gutter));
	margin: 48px auto 0;
}

.entry__title {
	font-size: 34px;
}

.page-header + .page-content {
	margin-top: 32px;
}

.page-content > :where(:not(.alignfull):not(.alignwide)) {
	width: min(760px, 100% - 2 * var(--gutter));
	margin-inline: auto;
}

.page-content > .alignwide {
	width: min(1100px, 100% - 2 * var(--gutter));
	margin-inline: auto;
}

.page-content > :where(* + *) {
	margin-top: 1.1em;
}

.page-content > :where(h2, h3) {
	margin-top: 1.8em;
}

.page-content > .alignfull {
	margin-top: 0;
}

.page-content h2,
.page-content h3 {
	font-size: 28px;
}

.page-content :where(ul, ol) {
	padding-left: 1.2em;
}

.page-content figure {
	margin-inline: 0;
	margin-bottom: 0;
}

.page-content img {
	width: 100%;
}

/* Buttons – outlined, as in the design */
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: 1px solid currentColor;
	border-radius: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	font-size: 21px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.wp-block-button .wp-block-button__link:hover {
	background: var(--c-text);
	color: var(--c-cream);
}

/* Blocks with the class "hidden" (Pokročilé → Doplňující třídy CSS) are
   kept in the page but not shown. */
.page-content .hidden {
	display: none !important;
}

/* Divider line between sections */
.kk-rule.wp-block-separator {
	height: 0;
	margin: 0 var(--gutter);
	border: 0;
	border-top: 1px solid currentColor;
	opacity: 1;
}

.page-content > .kk-rule {
	width: auto;
}

/* ==========================================================================
   Sections (mobile first)
   ========================================================================== */

.kk-split,
.kk-trio,
.kk-offer,
.kk-hero {
	max-width: 1920px;
	margin-inline: auto;
}

.kk-offer {
	max-width: none;
}

.page-content figure.wp-block-image {
	margin: 0;
}

/* Hero: photo with the intro sentence over it */
.kk-hero {
	--kk-hero-shade: rgba(33, 31, 31, 0.4);
	position: relative;
	isolation: isolate;
	color: var(--c-cream);
}

/* The dark layer from the design (#211F1F at 40%): one layer over every
   photo, under the text. Lighter or darker: change --kk-hero-shade. */
.kk-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--kk-hero-shade);
	pointer-events: none;
}

.kk-hero > .wp-block-image {
	position: relative;
	overflow: hidden;
}

.kk-hero > .wp-block-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.kk-hero .kk-hero__text {
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	bottom: 28px;
	z-index: 4;
	margin: 0;
	font-size: 19px;
	line-height: 1.5;
	text-wrap: pretty;
}

/* Hero slideshow (assets/js/site.js). Every Image block placed directly in
   the hero group is one photo. The first sets the height, the rest lie on
   top of it. Without JS only the first shows. */
.kk-hero {
	overflow: clip;
}

.page-content .kk-hero > .wp-block-image ~ .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.page-content .kk-hero > .wp-block-image ~ .wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.page-content .kk-hero:not(.has-slides) > .wp-block-image ~ .wp-block-image {
	visibility: hidden;
}

/* Slides, in the hero and in the full-width photos: the next photo fades
   in over the one before. Keep in step with HOLD and FADE in site.js. */
.page-content .kk-slide {
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.4s ease, visibility 0s linear 1.4s;
}

.page-content .kk-slide.is-prev {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: none;
}

.page-content .kk-slide.is-current {
	z-index: 2;
	opacity: 1;
	visibility: visible;
	transition: opacity 1.4s ease, visibility 0s;
}

/* Pause / play button (made by site.js). */
.kk-slides-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 254, 247, 0.55);
	background: none;
	color: var(--c-cream);
	cursor: pointer;
	transition: border-color 0.25s ease;
}

.kk-slides-toggle:hover {
	border-color: var(--c-cream);
}

/* Two bars = pause; a triangle = play. */
.kk-slides-toggle::before {
	content: "";
	width: 10px;
	height: 12px;
	border-inline: 3px solid currentColor;
}

.kk-slides-toggle[aria-pressed="true"]::before {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-block: 7px solid transparent;
	border-inline: 11px solid currentColor;
	border-inline-end-width: 0;
}

/* In the hero: top right on phones (the text spans the bottom), level
   with the text on desktop. */
.kk-hero > .kk-slides-toggle {
	position: absolute;
	top: 14px;
	right: var(--gutter);
	z-index: 4;
}

/* Full-width photos (.kk-band). Several in a row lie on top of each other
   and take turns; the first sets the place. Each later one pulls itself up
   by its own height: 75% of the width here, one screen on desktop. */
.page-content > figure.kk-band {
	position: relative;
}

.page-content > figure.kk-band + figure.kk-band {
	margin-top: -75%;
}

.page-content > figure.kk-band:not(.kk-slide) + figure.kk-band {
	visibility: hidden;
}

/* Pause button and "scroll on" arrow, bottom right of the photo. The strip
   itself has no height; it sits on the photo's bottom edge. */
.page-content > .kk-band-controls {
	position: relative;
	z-index: 3;
	height: 0;
	margin: 0;
	overflow-x: clip; /* Nothing in it may widen the page. */
}

.kk-band-controls__inner {
	position: absolute;
	right: var(--gutter);
	bottom: 16px;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	color: var(--c-cream);
}

/* A soft shade behind the arrow, so it reads on light photos too (desktop
   only, like the arrow; see the 1000px block). */
.kk-band-controls__inner::before {
	display: none;
	content: "";
	position: absolute;
	inset: -90px -70px -50px -90px;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(33, 31, 31, 0.42), rgba(33, 31, 31, 0));
	pointer-events: none;
}

.kk-band-controls .kk-slides-toggle {
	background: rgba(33, 31, 31, 0.2);
}

/* The arrow only on desktop, where the photo fills the screen. */
.kk-band-next {
	display: none;
	justify-items: center;
	min-width: 44px;
	color: inherit;
}

.kk-band-next svg {
	display: block;
	width: 22px;
	height: 60px;
	overflow: visible;
	transition: transform 0.4s var(--ease-out);
}

.kk-band-next:hover svg {
	transform: translateY(5px);
}

/* Text + photos */
.kk-split {
	display: grid;
	gap: 36px;
	padding: 56px var(--gutter);
}

.kk-intro__text > * + *,
.kk-feature__text > * + *,
.kk-place__text > * + * {
	margin-top: 0.75em;
}

.kk-intro__text {
	font-size: 19px;
	line-height: 1.58;
	max-width: 62ch;
}

.kk-feature__text > h2,
.kk-place__text > :is(h2, h3) {
	font-size: 28px;
}

.kk-feature__text > h2 + *,
.kk-place__text > :is(h2, h3) + p {
	margin-top: 22px;
}

.kk-place__text > h2 + h3 {
	margin-top: 10px;
}

.kk-feature__text > p,
.kk-place__text > p {
	max-width: 62ch;
}

.kk-feature__text > .kk-cta {
	margin-top: 32px;
	font-weight: 500;
}

.kk-cta a {
	text-decoration: none;
}

.kk-cta a:hover {
	text-decoration: underline;
}

.kk-actions {
	margin-top: 36px !important;
}

/* Photos: on phones two side by side, the second set lower */
.kk-media {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: start;
}

.kk-media > figure:nth-child(even) {
	margin-top: 22%;
}

.kk-media > figure:only-child {
	grid-column: 1 / -1;
	width: 78%;
}

.kk-media--place > figure:only-child {
	width: 100%;
}

/* Three photos in a row */
.kk-trio {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 40px var(--gutter) 0;
}

/* All three the same 3:4 frame as in the design, whatever photo is put in:
   a different shape is cropped to fit, never stretched. */
.page-content .kk-trio > .wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* Full-width photo. "figure" so it outranks the figure reset above. */
.page-content > figure.kk-band {
	margin-top: 40px;
	overflow: hidden;
}

.kk-band img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Naše nabídka – dark block */
.kk-offer {
	padding: 64px var(--gutter) 72px;
	background: var(--c-ink);
	color: var(--c-cream);
}

.kk-lead {
	max-width: 30ch;
	font-size: 24px;
	line-height: 1.5;
	text-wrap: pretty;
}

.kk-lead.has-text-align-center {
	margin-inline: auto;
}

.kk-lead.has-text-align-right {
	margin-left: auto;
}

.kk-offer > .kk-media {
	margin-block: 40px 56px;
}

.kk-offer > .kk-media:last-of-type {
	margin-bottom: 56px;
}

.kk-media--a > figure:first-child,
.kk-media--b > figure:first-child,
.kk-media--c > figure:first-child {
	grid-column: 1 / -1;
	width: 86%;
}

.kk-media--a > figure:first-child + figure,
.kk-media--b > figure:first-child + figure,
.kk-media--c > figure:first-child + figure {
	margin-top: 0;
}

.kk-media--a > figure:nth-child(3),
.kk-media--b > figure:nth-child(3),
.kk-media--c > figure:nth-child(3) {
	margin-top: 30%;
}

.kk-media--c > figure:nth-child(4) {
	grid-column: 1 / -1;
	width: 70%;
	margin: 0 0 0 auto;
}

/* Opening hours */
.kk-hours {
	margin: 32px 0 0 !important;
}

.kk-hours table {
	width: auto;
	border-collapse: collapse;
}

.kk-hours td {
	padding: 0 18px 4px 0;
	border: 0;
	vertical-align: top;
}

/* Lokace */
.kk-place__text {
	display: flex;
	flex-direction: column;
}

.page-content > .kk-place:first-child {
	padding-top: 32px;
}

/* Tone: the dark block fades into the light page as it scrolls away.
   assets/js/site.js sets --kk-tone (0 dark → 1 light) on <html> and adds
   .kk-tone to Naše nabídka and the section after it, which share the
   colour while it changes. Without JS the block simply stays dark. */
.has-tone .kk-tone {
	background: var(--c-ink);
	background: color-mix(in oklab, var(--c-ink), var(--c-cream) calc(var(--kk-tone, 0) * 100%));
	color: var(--c-cream);
	transition: color 0.45s ease;
}

.has-tone.is-tone-light .kk-tone {
	color: var(--c-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--c-ink);
	color: var(--c-cream);
}

.site-footer__inner {
	position: relative;
	padding: 64px var(--gutter) 40px;
}

.kk-contact {
	display: flex;
	flex-direction: column;
}

.kk-contact .kk-contact__title {
	font-size: 28px;
}

.kk-contact__email {
	margin-top: 32px;
}

.kk-contact__places {
	margin-top: 26px;
	font-size: 16px;
	line-height: 1.85;
}

.kk-contact__places > * + * {
	margin-top: 18px;
}

.kk-contact a {
	text-decoration: none;
}

.kk-contact__email a,
.kk-contact a:hover {
	text-decoration: underline;
}

.kk-contact__copy {
	margin-top: 56px;
	font-size: 16px;
}

.site-footer__logo {
	display: block;
	width: min(320px, 72%);
	margin-top: 40px;
	color: var(--c-cream);
}

/* Blog listing, single posts, 404 */
.entry {
	width: min(760px, 100% - 2 * var(--gutter));
	margin: 48px auto 0;
}

.entry__meta {
	margin-top: 8px;
	font-size: 15px;
	opacity: 0.8;
}

.entry__content {
	margin-top: 32px;
}

.entry__content > * + * {
	margin-top: 1em;
}

.post-list {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.post-list li + li {
	margin-top: 28px;
}

.post-list a {
	font-size: 24px;
	text-decoration: none;
}

.post-list a:hover {
	text-decoration: underline;
}

.pagination {
	margin-top: 40px;
}

.site-main + .site-footer,
.page-main {
	margin-bottom: 0;
}

.page-main {
	padding-bottom: 80px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid currentColor;
	text-decoration: none;
}

.button:hover {
	background: var(--c-text);
	color: var(--c-cream);
}

/* ==========================================================================
   Desktop – follows the 1920px canvas
   ========================================================================== */

@media (min-width: 1000px) {
	.site {
		font-size: max(15px, calc(var(--u) * 21));
	}

	/* Header: logo at 137/33, 198 wide; menu from x660 to x1733, CZ EN
	   from x1793; the hero starts at y113. Everything is centred on the
	   logo's 48px band. */
	.site-header__inner {
		align-items: flex-start;
		height: calc(var(--u) * 113);
		min-height: 72px;
		padding: calc(var(--u) * 33) calc(var(--u) * 57) 0 calc(var(--u) * 137);
	}

	.site-logo {
		width: calc(var(--u) * 198);
		min-width: 120px;
		margin-right: 0;
	}

	.nav-toggle {
		display: none;
	}

	.primary-nav,
	.primary-nav.is-open {
		display: flex;
		align-items: center;
		position: static;
		z-index: auto;
		height: max(30px, calc(var(--u) * 48));
		min-height: 0;
		width: calc(var(--u) * 1073);
		margin-top: calc(var(--u) * -2);
		margin-left: auto;
		padding: 0;
		background: none;
	}

	.primary-nav ul {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}

	.lang-switch {
		order: 0;
		display: flex;
		align-items: center;
		height: max(30px, calc(var(--u) * 48));
		margin: calc(var(--u) * -2) 0 0 calc(var(--u) * 60);
	}

	.lang-switch ul {
		gap: calc(var(--u) * 14);
	}

	.lang-switch a {
		min-height: 0;
		font-size: max(14px, calc(var(--u) * 21));
	}

	.lang-switch a::after {
		bottom: calc(var(--u) * -1);
	}

	.primary-nav.is-open li + li {
		margin-top: 0;
	}

	.primary-nav a,
	.primary-nav.is-open a {
		font-size: max(14px, calc(var(--u) * 21));
	}

	/* Underline 10px under the baseline, as in the design. */
	.primary-nav a::after {
		bottom: calc(var(--u) * -1);
	}

	.page-header {
		margin-top: calc(var(--u) * 100);
	}

	.entry__title {
		font-size: max(30px, calc(var(--u) * 48));
	}

	.page-content h2,
	.page-content h3 {
		font-size: max(24px, calc(var(--u) * 36));
	}

	.wp-block-button .wp-block-button__link {
		min-height: max(44px, calc(var(--u) * 62));
		padding: 0 calc(var(--u) * 40);
		font-size: max(18px, calc(var(--u) * 28));
	}

	.kk-rule.wp-block-separator {
		margin: 0 calc(var(--u) * 71) 0 calc(var(--u) * 72);
		border-top-width: max(1px, calc(var(--u) * 2));
	}

	/* Hero */
	.kk-hero > .wp-block-image img {
		aspect-ratio: 1920 / 1032;
	}

	.kk-hero .kk-hero__text {
		left: calc(var(--u) * 138);
		right: auto;
		bottom: calc(var(--u) * 138);
		width: calc(var(--u) * 690);
		font-size: max(17px, calc(var(--u) * 23.5));
		line-height: 1.49;
	}

	.kk-hero > .kk-slides-toggle {
		top: auto;
		right: calc(var(--u) * 137);
		bottom: calc(var(--u) * 138);
	}

	.page-content > figure.kk-band + figure.kk-band {
		margin-top: -100vh;
		margin-top: -100svh;
	}

	.kk-band-controls__inner {
		right: calc(var(--u) * 137);
		bottom: max(24px, calc(var(--u) * 72));
		gap: max(16px, calc(var(--u) * 28));
	}

	.kk-band-next {
		display: grid;
	}

	.kk-band-controls__inner::before {
		display: block;
	}

	.kk-band-next svg {
		width: max(18px, calc(var(--u) * 26));
		height: max(52px, calc(var(--u) * 76));
	}

	/* Two halves of the canvas: x0–960 and x960–1920 */
	.kk-split {
		grid-template-columns: 1fr 1fr;
		gap: 0;
		padding: calc(var(--u) * 104) 0;
	}

	.kk-split > * {
		grid-row: 1;
		min-width: 0;
	}

	.kk-media {
		position: relative;
		display: block;
		height: calc(var(--u) * var(--h));
	}

	.kk-media > figure,
	.kk-media > figure:nth-child(n),
	.kk-media > figure:only-child {
		position: absolute;
		top: calc(var(--u) * var(--t, 0));
		left: calc(var(--u) * var(--l, 0));
		width: calc(var(--u) * var(--w, 400));
		margin: 0;
		grid-column: auto;
	}

	/* Text on the left half: starts at x137 */
	.kk-intro__text,
	.kk-feature--wholesale .kk-feature__text,
	.kk-feature--career .kk-feature__text,
	.kk-place__text {
		grid-column: 1;
		padding-left: calc(var(--u) * 137);
	}

	/* Text on the right half: starts at x1015 */
	.kk-feature--coffee .kk-feature__text,
	.kk-feature--catering .kk-feature__text {
		grid-column: 2;
		padding-left: calc(var(--u) * 55);
	}

	.kk-feature--coffee .kk-media,
	.kk-feature--catering .kk-media {
		grid-column: 1;
	}

	.kk-intro .kk-media,
	.kk-feature--wholesale .kk-media,
	.kk-feature--career .kk-media,
	.kk-place .kk-media {
		grid-column: 2;
	}

	.kk-feature__text,
	.kk-place__text {
		padding-top: calc(var(--u) * 16);
	}

	.kk-feature__text > *,
	.kk-place__text > * {
		max-width: calc(var(--u) * 750);
	}

	.kk-feature--coffee .kk-feature__text > *,
	.kk-feature--catering .kk-feature__text > * {
		max-width: calc(var(--u) * 700);
	}

	.kk-place__text > * {
		max-width: calc(var(--u) * 645);
	}

	.kk-feature__text > * + *,
	.kk-place__text > * + *,
	.kk-intro__text > * + * {
		margin-top: calc(var(--u) * 14);
	}

	.kk-feature__text > h2,
	.kk-place__text > :is(h2, h3) {
		font-size: max(26px, calc(var(--u) * 36));
	}

	.kk-feature__text > h2 + *,
	.kk-place__text > :is(h2, h3) + p {
		margin-top: calc(var(--u) * 50);
	}

	.kk-place__text > h2 + h3 {
		margin-top: calc(var(--u) * 26);
	}

	.kk-feature__text > .kk-cta {
		margin-top: calc(var(--u) * 60);
	}

	.kk-actions {
		margin-top: calc(var(--u) * 52) !important;
	}

	/* About */
	.kk-intro {
		padding: calc(var(--u) * 120) 0 calc(var(--u) * 113);
	}

	.kk-intro__text {
		max-width: none;
		padding-right: 0;
		font-size: max(17px, calc(var(--u) * 23.5));
	}

	.kk-intro__text > * {
		width: calc(var(--u) * 830);
	}

	.kk-trio {
		grid-template-columns: repeat(3, calc(var(--u) * 510));
		gap: calc(var(--u) * 58);
		padding: calc(var(--u) * 96) calc(var(--u) * 137) 0;
	}

	/* Exactly one screen tall, so it fills the screen when it snaps
	   into place (motion.js, part 4). */
	.page-content > figure.kk-band {
		height: 100vh;
		height: 100svh;
		margin-top: calc(var(--u) * 96);
	}

	/* "figure > img" outranks WordPress's own ".alignfull img { height:
	   auto }", which otherwise lets the photo ignore the screen-tall frame. */
	.page-content > figure.kk-band > img {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
	}

	/* Naše nabídka */
	.kk-offer {
		padding: calc(var(--u) * 176) 0 calc(var(--u) * 166);
	}

	.kk-offer > .kk-media,
	.kk-offer > .kk-media:last-of-type {
		max-width: 1920px;
		margin: calc(var(--u) * 104) auto 0;
	}

	.kk-offer > .kk-media + .kk-lead {
		margin-top: calc(var(--u) * 218);
	}

	.kk-lead {
		max-width: none;
		width: calc(var(--u) * 1065);
		margin-left: calc(var(--u) * 137);
		font-size: max(22px, calc(var(--u) * 35));
		line-height: 1.6;
	}

	.kk-lead.has-text-align-center {
		width: calc(var(--u) * 620);
		margin-inline: auto;
	}

	.kk-lead.has-text-align-right {
		width: calc(var(--u) * 830);
		margin-left: auto;
		margin-right: calc(var(--u) * 137);
	}

	@media (min-width: 1920px) {
		.kk-lead {
			margin-left: calc(50% - 823px);
		}

		.kk-lead.has-text-align-right {
			margin-right: calc(50% - 823px);
		}
	}

	/* Feature paddings: after the dark block, and before the footer */
	.kk-feature--coffee {
		padding-top: calc(var(--u) * 151);
	}

	.kk-feature--career {
		padding-top: calc(var(--u) * 110);
		padding-bottom: calc(var(--u) * 152);
	}

	.kk-intro + .kk-rule + .kk-trio {
		margin-top: 0;
	}

	/* Lokace */
	.kk-place__text {
		padding-bottom: calc(var(--u) * 30);
	}

	.kk-place__text > .kk-actions {
		margin-top: auto !important;
		padding-top: calc(var(--u) * 52);
	}

	.page-content > .kk-place:first-child {
		padding-top: calc(var(--u) * 114);
	}

	.kk-hours {
		margin-top: calc(var(--u) * 64) !important;
	}

	.kk-hours td {
		padding: 0 calc(var(--u) * 22) calc(var(--u) * 8) 0;
	}

	/* Footer */
	.site-footer__inner {
		min-height: calc(var(--u) * 783);
		padding: calc(var(--u) * 110) calc(var(--u) * 137) calc(var(--u) * 80);
	}

	.kk-contact {
		min-height: calc(var(--u) * 593);
	}

	.kk-contact .kk-contact__title {
		font-size: max(26px, calc(var(--u) * 36));
	}

	.kk-contact__email {
		margin-top: calc(var(--u) * 56);
	}

	.kk-contact__places {
		margin-top: calc(var(--u) * 36);
		font-size: max(15px, calc(var(--u) * 18));
		line-height: 1.85;
	}

	.kk-contact__places > * + * {
		margin-top: calc(var(--u) * 24);
	}

	.kk-contact__copy {
		margin-top: auto;
		padding-top: calc(var(--u) * 40);
		font-size: inherit;
	}

	.site-footer__logo {
		position: absolute;
		right: calc(var(--u) * 132);
		bottom: calc(var(--u) * 85);
		width: calc(var(--u) * 465);
		margin: 0;
	}

	.entry {
		margin-top: calc(var(--u) * 100);
	}

	/* --------------------------------------------------------------------
	   Photo positions from the design (canvas px, relative to their half
	   or, in Naše nabídka, to the whole canvas). --h is the frame height.
	   ----------------------------------------------------------------- */
	.kk-media--intro     { --h: 666; margin-top: calc(var(--u) * -10); }
	.kk-media--a         { --h: 1089; }
	.kk-media--b         { --h: 1098; }
	.kk-media--c         { --h: 1141; }
	.kk-media--coffee    { --h: 615; margin-top: calc(var(--u) * -16); }
	.kk-media--wholesale { --h: 574; }
	.kk-media--catering  { --h: 574; }
	.kk-media--career    { --h: 686; }
	.kk-media--place     { --h: 625; }

	.kk-slot--onas-kava        { --l: 441; --t: 0; --w: 382; }
	.kk-slot--onas-pekari      { --l: 66; --t: 210; --w: 341; }
	.kk-slot--chleby-regal     { --l: 137; --t: 149; --w: 696; }
	.kk-slot--chleby-seminka   { --l: 874; --t: 0; --w: 909; }
	.kk-slot--chleby-bile      { --l: 878; --t: 655; --w: 569; }
	.kk-slot--briosky          { --l: 246; --t: 0; --w: 889; }
	.kk-slot--bagety           { --l: 1176; --t: 128; --w: 498; }
	.kk-slot--focaccia-kousky  { --l: 758; --t: 640; --w: 377; }
	.kk-slot--skoricovy-uzel   { --l: 625; --t: 0; --w: 567; }
	.kk-slot--croissanty       { --l: 1233; --t: 158; --w: 550; }
	.kk-slot--tartaletky       { --l: 220; --t: 532; --w: 463; }
	.kk-slot--pain-au-chocolat { --l: 724; --t: 532; --w: 468; }
	.kk-slot--kava-latte       { --l: 137; --t: 68; --w: 388; }
	.kk-slot--kava-paka        { --l: 559; --t: 0; --w: 280; }
	.kk-slot--wholesale-chleby { --l: 412; --t: 0; --w: 411; }
	.kk-slot--wholesale-bulky  { --l: 103; --t: 133; --w: 275; }
	.kk-slot--catering         { --l: 137; --t: 0; --w: 411; }
	.kk-slot--kariera-tym      { --l: 82; --t: 0; --w: 404; }
	.kk-slot--kariera-pekar    { --l: 520; --t: 251; --w: 303; }
	.kk-slot--place            { --l: 168; --t: 0; --w: 501; }
}

/* ==========================================================================
   Motion (assets/js/motion.js)
   Hidden starting states only apply under html.has-motion, which is set in
   <head> when the visitor allows motion. No JS / reduced motion = static page.
   ========================================================================== */

html.lenis,
html.lenis body {
	height: auto;
}

html.lenis {
	scroll-behavior: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
	overflow: clip;
}

.lenis [data-lenis-prevent] {
	overscroll-behavior: contain;
}

@media (prefers-reduced-motion: no-preference) {
	/* Text rises in. Selectors mirror motion.js. */
	.has-motion :is(.primary-nav li, .page-header, .kk-hero__text, .kk-intro__text > *, .kk-lead, .kk-feature__text > *, .kk-place__text > *, .kk-contact > *, .page-content > :is(h2, h3, p, ul, ol, .wp-block-buttons, .wp-block-quote, .wp-block-columns)) {
		transition:
			opacity 1.1s var(--ease-out) var(--rv-delay, 0s),
			transform 1.3s var(--ease-out) var(--rv-delay, 0s);
	}

	.has-motion :is(.primary-nav li, .page-header, .kk-hero__text, .kk-intro__text > *, .kk-lead, .kk-feature__text > *, .kk-place__text > *, .kk-contact > *, .page-content > :is(h2, h3, p, ul, ol, .wp-block-buttons, .wp-block-quote, .wp-block-columns)):not(.is-in) {
		opacity: 0;
		transform: translate3d(0, 26px, 0);
	}

	/* The place text column keeps its button at the bottom while rising. */
	.has-motion .kk-place__text > .kk-actions:not(.is-in) {
		transform: translate3d(0, 26px, 0);
	}

	/* Photos open like a curtain, the picture settling inside. The frame
	   clips it, so the enlarged picture never spills onto a neighbour. */
	.has-motion .page-content figure.wp-block-image:not(.kk-hero > *) {
		overflow: hidden;
	}

	.has-motion .page-content figure.wp-block-image:not(.kk-hero > *) > img {
		clip-path: inset(0 0 0 0);
		transition:
			clip-path 1.4s var(--ease-out) var(--rv-delay, 0s),
			transform 2s var(--ease-out) var(--rv-delay, 0s);
	}

	.has-motion .page-content figure.wp-block-image:not(.kk-hero > *):not(.is-in) > img {
		clip-path: inset(100% 0 0 0);
		transform: scale(1.12);
	}

	.has-motion .no-delay,
	.has-motion .no-delay > img {
		transition: none;
	}

	/* Hero: each photo settles slightly as it comes in. */
	.page-content .kk-hero > .kk-slide.is-current {
		animation: kk-settle 6.4s var(--ease-out) both;
	}

	/* The arrow draws itself downward (shaft, then head), holds, fades,
	   and starts again. */
	.kk-band-next path {
		stroke-dasharray: 1;
		animation-duration: 2.8s;
		animation-timing-function: ease-in-out;
		animation-iteration-count: infinite;
	}

	.kk-band-next__shaft {
		animation-name: kk-draw-shaft;
	}

	.kk-band-next__head {
		animation-name: kk-draw-head;
	}

	@keyframes kk-draw-shaft {
		0% {
			stroke-dashoffset: 1;
			opacity: 1;
		}
		45%,
		80% {
			stroke-dashoffset: 0;
			opacity: 1;
		}
		100% {
			stroke-dashoffset: 0;
			opacity: 0;
		}
	}

	@keyframes kk-draw-head {
		0%,
		40% {
			stroke-dashoffset: 1;
			opacity: 1;
		}
		58%,
		80% {
			stroke-dashoffset: 0;
			opacity: 1;
		}
		100% {
			stroke-dashoffset: 0;
			opacity: 0;
		}
	}

	@keyframes kk-settle {
		from {
			transform: scale(1.05);
		}
		to {
			transform: none;
		}
	}

	/* Logo is written letter by letter on the first visit */
	.site-logo svg.is-writing path {
		opacity: 0;
		transform-box: fill-box;
		transform-origin: 50% 100%;
		animation: kk-letter 0.8s var(--ease-out) forwards;
		animation-delay: calc(var(--i, 0) * 90ms + 0.15s);
	}

	@keyframes kk-letter {
		from {
			opacity: 0;
			transform: translate3d(0, 14px, 0) rotate(-6deg);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}

	/* Parallax */
	.has-parallax :is(.kk-band, .kk-hero > .wp-block-image) {
		overflow: hidden;
	}

	.has-motion.has-parallax .page-content .kk-band > img {
		transition: clip-path 1.6s var(--ease-out) var(--rv-delay, 0s);
	}

	.has-parallax :is(.kk-band, .kk-hero > .wp-block-image) > img {
		transform: scale(1.2);
		will-change: transform;
	}

	.has-parallax .kk-media > figure,
	.has-parallax .kk-parallax,
	.has-parallax .kk-parallax-fast {
		will-change: transform;
	}
}
