/*
Theme Name:        Pomalu Pomalu
Theme URI:         https://kinandkbakery.cz
Author:            Kin&K Bakery s. r. o.
Description:       Šablona pro bistro pomalu pomalu podle návrhu. Úvod, Menu a Rezervace jsou běžné stránky v editoru bloků, sekce z návrhu jsou k dispozici jako vzory. Po aktivaci otevřete Vzhled → pomalu pomalu a vytvořte stránky jedním kliknutím. Ovládání, pohyb (plynulé posouvání, animace, parallax, střídání fotek) a jazyky sdílí se sesterským webem Kin&K Bakery.
Version:           3.1.0
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:       pomalu
*/

/* ==========================================================================
   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-wine: #902a3c;
	--c-cream: #fffef6;
	--c-text: var(--c-wine);
	--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;
}

::selection {
	background: var(--c-wine);
	color: var(--c-cream);
}

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-wine);
	color: var(--c-cream);
	text-decoration: none;
}

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

/* ==========================================================================
   Header + navigation
   On cream (every page) the header is wine on cream with a small logo.
   On a page that opens with the hero (body.has-hero, the homepage) it lies
   over the photos in cream, with the large logo, as in the design.
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 20;
	color: var(--c-wine);
}

.has-hero .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	color: var(--c-cream);
}

/* The open phone menu is cream, so the header turns wine with it. */
.nav-open .site-header {
	color: var(--c-wine);
}

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

.site-logo {
	display: block;
	width: 92px;
	margin-right: auto;
	color: inherit;
}

.has-hero .site-logo {
	width: 128px;
	margin-top: 10px;
}

.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: 120px var(--gutter) 40px;
	background: var(--c-cream);
	color: var(--c-wine);
}

.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. On cream: wine; on the photos and
   on wine: cream. */
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	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: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

:is(.pp-hero, .pp-about) .wp-block-button .wp-block-button__link:hover {
	border-color: var(--c-cream);
	background: var(--c-cream);
	color: var(--c-wine);
}

/* 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;
}

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

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

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

/* Hero: photos across the first screen, the sentence and button over them */
.pp-hero {
	/* The design puts cream text straight on the photo. The photos take
	   turns and some are light, so a soft shade sits under the logo, the
	   menu and the text. None: set it to "none". */
	--pp-hero-shade: linear-gradient(180deg, rgba(40, 14, 20, 0.34) 0%, rgba(40, 14, 20, 0) 26%, rgba(40, 14, 20, 0) 40%, rgba(40, 14, 20, 0.52) 100%);
	--pp-hero-h: max(520px, 100svh);
	position: relative;
	isolation: isolate;
	overflow: clip;
	color: var(--c-cream);
}

.pp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--pp-hero-shade);
	pointer-events: none;
}

.pp-hero > .wp-block-image {
	position: relative;
	height: var(--pp-hero-h);
	overflow: hidden;
}

.page-content .pp-hero > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pp-hero .pp-hero__content {
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	bottom: 40px;
	z-index: 4;
	margin: 0;
	text-align: center;
}

.pp-hero__text {
	max-width: 34ch;
	font-weight: 500;
	text-shadow: 0 0 28px rgba(40, 14, 20, 0.35);
	margin-inline: auto !important;
	font-size: 19px;
	line-height: 1.5;
	text-wrap: balance;
}

.pp-hero .pp-actions {
	margin-top: 28px !important;
}

/* 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. */
.page-content .pp-hero > .wp-block-image ~ .wp-block-image {
	position: absolute;
	inset: 0;
	height: auto;
	margin: 0;
}

.page-content .pp-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 .pp-slide {
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.4s ease, visibility 0s linear 1.4s;
}

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

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

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

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

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

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

.pp-hero > .pp-slides-toggle {
	position: absolute;
	right: var(--gutter);
	bottom: 14px;
	z-index: 4;
}

/* O nás – the wine block: centred text, then the photos three by three */
.pp-about {
	padding: 64px var(--gutter) 72px;
	background: var(--c-wine);
	color: var(--c-cream);
}

.pp-about__text {
	max-width: 36ch;
	margin-inline: auto;
	font-size: 18px;
	line-height: 1.6;
	text-align: center;
	text-wrap: pretty;
}

.pp-about__text > * + * {
	margin-top: 0.6em;
}

.pp-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 44px;
}

/* All photos 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 .pp-grid > .wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 500 / 667;
	object-fit: cover;
}

/* Two columns on phones: an odd last photo spans both, in a wide frame. */
.page-content .pp-grid > .wp-block-image:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.page-content .pp-grid > .wp-block-image:last-child:nth-child(odd) img {
	aspect-ratio: 4 / 3;
}

/* Full-width photos (.pp-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.pp-band {
	position: relative;
	overflow: hidden;
}

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

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

/* Space above, unless it follows a full-width section (the wine block). */
.page-content > :not(.alignfull) + figure.pp-band:not(.pp-band + .pp-band) {
	margin-top: 40px;
}

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

/* 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 > .pp-band-controls {
	position: relative;
	z-index: 3;
	height: 0;
	margin: 0;
	overflow-x: clip; /* Nothing in it may widen the page. */
}

.pp-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). */
.pp-band-controls__inner::before {
	display: none;
	content: "";
	position: absolute;
	inset: -90px -70px -50px -90px;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(40, 14, 20, 0.42), rgba(40, 14, 20, 0));
	pointer-events: none;
}

.pp-band-controls .pp-slides-toggle {
	background: rgba(40, 14, 20, 0.2);
}

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

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

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

/* Text + photo (Menu, Rezervace) */
.pp-split {
	display: grid;
	gap: 40px;
	padding: 32px var(--gutter) 64px;
}

.pp-page__text > * + * {
	margin-top: 0.75em;
}

.pp-page__text > h1 {
	font-size: 30px;
	font-weight: 500;
}

.pp-page__text > h1 + * {
	margin-top: 28px;
}

.pp-page__text > p {
	max-width: 46ch;
}

.pp-actions {
	margin-top: 32px !important;
}

/* Buttons one under another, all as wide as the widest */
.pp-actions--stack.wp-block-buttons {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
}

.pp-actions--stack .wp-block-button,
.pp-actions--stack .wp-block-button__link {
	width: 100%;
}

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

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

/* Photos beside text */
.pp-media {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: start;
}

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

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

.page-content .pp-media--page img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

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

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

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

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

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

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

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

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

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

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

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

.site-footer__logo {
	display: block;
	width: min(260px, 66%);
	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 {
	border-color: var(--c-wine);
	background: var(--c-wine);
	color: var(--c-cream);
}

/* ==========================================================================
   Tablet: the photo grid gets its three columns
   ========================================================================== */

@media (min-width: 700px) {
	.pp-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.page-content .pp-grid > .wp-block-image:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.page-content .pp-grid > .wp-block-image:last-child:nth-child(odd) img {
		aspect-ratio: 500 / 667;
	}

	.pp-hero__text {
		font-size: 22px;
	}

	.pp-split {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

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

	.pp-page__text {
		grid-column: 1;
	}

	.pp-page .pp-media {
		grid-column: 2;
	}
}

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

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

	/* Header: logo 118/56, 371 wide over the hero; menu items 94 apart
	   from x939, CZ EN from x1762 to x1832; text centred on y47. */
	.site-header__inner {
		align-items: flex-start;
		height: calc(var(--u) * 113);
		min-height: 72px;
		padding: calc(var(--u) * 23) calc(var(--u) * 88) 0 calc(var(--u) * 118);
	}

	.site-logo {
		width: calc(var(--u) * 150);
		min-width: 96px;
		margin-top: calc(var(--u) * -6);
		margin-right: 0;
	}

	.has-hero .site-logo {
		width: calc(var(--u) * 371);
		min-width: 180px;
		margin-top: calc(var(--u) * 33);
	}

	.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;
		margin-left: auto;
		padding: 0;
		background: none;
		color: inherit;
	}

	.primary-nav ul {
		display: flex;
		gap: calc(var(--u) * 96);
	}

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

	.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) * -6);
	}

	.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 11px under the baseline, as in the design. */
	.primary-nav a::after {
		bottom: calc(var(--u) * -6);
	}

	.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-width: calc(var(--u) * 282);
		min-height: max(44px, calc(var(--u) * 62));
		padding: 0 calc(var(--u) * 40);
		font-size: max(18px, calc(var(--u) * 28.5));
	}

	/* Hero: as tall as the screen, at most the design's 1280. The text block
	   is centred, its button ends 159 above the bottom edge. */
	.pp-hero {
		--pp-hero-h: max(600px, min(100svh, calc(var(--u) * 1280)));
	}

	.pp-hero .pp-hero__content {
		left: 0;
		right: 0;
		bottom: calc(var(--u) * 159);
		width: calc(var(--u) * 988);
		margin-inline: auto;
	}

	.pp-hero__text {
		max-width: none;
		font-size: max(20px, calc(var(--u) * 37.8));
		line-height: 1.43;
		text-wrap: wrap;
	}

	.pp-hero .pp-actions {
		margin-top: calc(var(--u) * 64) !important;
	}

	.pp-hero > .pp-slides-toggle {
		right: calc(var(--u) * 118);
		bottom: calc(var(--u) * 159);
	}

	/* O nás: text from y1433, photos 500 × 667 from y1839, 17 apart side
	   by side and 29 apart above each other; 233 to the photo below. */
	.pp-about {
		padding: calc(var(--u) * 141) 0 calc(var(--u) * 233);
	}

	.pp-about__text {
		width: calc(var(--u) * 790);
		max-width: none;
		font-size: max(17px, calc(var(--u) * 24.7));
		line-height: 1.62;
	}

	.pp-about__text > * + * {
		margin-top: calc(var(--u) * 13);
	}

	.pp-grid {
		grid-template-columns: repeat(3, calc(var(--u) * 500));
		justify-content: center;
		column-gap: calc(var(--u) * 17);
		row-gap: calc(var(--u) * 29);
		margin-top: calc(var(--u) * 140);
	}

	.page-content > :not(.alignfull) + figure.pp-band:not(.pp-band + .pp-band) {
		margin-top: calc(var(--u) * 96);
	}

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

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

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

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

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

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

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

	/* Text + photo: two halves of the canvas. Menu: heading x137, buttons
	   283 wide and 37 apart; photo 531 wide at x1109, from y165. */
	.pp-split {
		gap: 0;
		padding: calc(var(--u) * 52) 0 calc(var(--u) * 108);
	}

	/* The text block sits a little below the photo's centre, as drawn. */
	.pp-page__text {
		padding: calc(var(--u) * 36) 0 0 calc(var(--u) * 137);
	}

	.pp-page__text > * {
		max-width: calc(var(--u) * 700);
	}

	.pp-page__text > * + * {
		margin-top: calc(var(--u) * 20);
	}

	.pp-page__text > h1 {
		font-size: max(28px, calc(var(--u) * 36));
	}

	.pp-page__text > h1 + * {
		margin-top: calc(var(--u) * 95);
	}

	.pp-page__text > h1 + p {
		margin-top: calc(var(--u) * 50);
	}

	.pp-page__text > p + .pp-actions {
		margin-top: calc(var(--u) * 52) !important;
	}

	.pp-page__text > .pp-actions {
		margin-top: calc(var(--u) * 95) !important;
	}

	.pp-actions--stack.wp-block-buttons {
		gap: calc(var(--u) * 37);
	}

	.wp-block-button.wp-block-button .pp-actions--stack .wp-block-button__link,
	.pp-actions--stack .wp-block-button .wp-block-button__link {
		min-width: calc(var(--u) * 283);
		padding: 0 calc(var(--u) * 30);
	}

	.pp-media--page > figure:only-child {
		width: calc(var(--u) * 531);
		margin-left: calc(var(--u) * 149);
	}

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

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

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

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

	.pp-contact__places {
		margin-top: calc(var(--u) * 25);
		font-size: max(15px, calc(var(--u) * 22));
		line-height: 1.45;
	}

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

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

	/* Logo 371 wide, 100 from the right, 76 from the bottom */
	.site-footer__logo {
		position: absolute;
		right: calc(var(--u) * 100);
		bottom: calc(var(--u) * 76);
		width: calc(var(--u) * 371);
		margin: 0;
	}

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

/* ==========================================================================
   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, .pp-hero__content > *, .pp-about__text > *, .pp-page__text > *, .pp-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, .pp-hero__content > *, .pp-about__text > *, .pp-page__text > *, .pp-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);
	}

	/* 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(.pp-hero > *) {
		overflow: hidden;
	}

	.has-motion .page-content figure.wp-block-image:not(.pp-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(.pp-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 .pp-hero > .pp-slide.is-current {
		animation: pp-settle 6.4s var(--ease-out) both;
	}

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

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

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

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

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

	@keyframes pp-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: pp-letter 0.8s var(--ease-out) forwards;
		animation-delay: calc(var(--i, 0) * 90ms + 0.15s);
	}

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

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

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

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

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