/**
 * Group: notices and cards. Colours, borders and padding come from the block styles in
 * styles/blocks/; this file only sets what theme.json cannot express.
 *
 * @package DeWittePrins\Theme
 * @since   0.1.0
 */

/*
 * A notice stands out by colour and calm, not by size: an icon, a small label and
 * short lines. The icon is drawn by css, so the notice stays an ordinary Group with a label and text.
 */
.wp-block-group[class*="is-style-notice-"] {
	--notice-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%278%27 cy=%2715%27 r=%274%27/%3E%3Cpath d=%27m11 12 9-9M16 7l3 3%27/%3E%3C/svg%3E");
	--notice-icon-color: var(--wp--preset--color--accent);
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	column-gap: 0.625rem;
	align-content: start;
	max-inline-size: 40rem;
	margin-block: var(--wp--preset--spacing--50);
	line-height: 1.5;
}

.wp-block-group.is-style-notice-warning {
	--notice-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279%27/%3E%3Cpath d=%27M12 8v5M12 16.5v.01%27/%3E%3C/svg%3E");
	--notice-icon-color: var(--wp--preset--color--warm-text);
}

.wp-block-group.is-style-notice-try {
	--notice-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 3v4M12 17v4M3 12h4M17 12h4m-11-6 2.5 2.5m7 7L18 18m0-12-2.5 2.5m-7 7L6 18%27/%3E%3C/svg%3E");
}

.wp-block-group[class*="is-style-notice-"]::before {
	content: "";
	grid-row: 1 / span 20;
	width: 1.25rem;
	height: 1.25rem;
	background-color: var(--notice-icon-color);
	-webkit-mask: var(--notice-icon) center / contain no-repeat;
	mask: var(--notice-icon) center / contain no-repeat;
}

.wp-block-group[class*="is-style-notice-"] > * {
	grid-column: 2;
	inline-size: 100%; /* A constrained layout sets auto side margins with !important, which would shrink the item. */
	max-inline-size: none;
}

.wp-block-group[class*="is-style-notice-"] > :first-child {
	margin-block-start: 0;
}

/* The label: a paragraph with the class notice__label (kept out of the table of contents), or a heading. */
.wp-block-group[class*="is-style-notice-"] > :is(h2, h3, h4, h5, h6, .notice__label) {
	color: var(--notice-icon-color);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.4;
}

.wp-block-group[class*="is-style-notice-"] > :last-child,
.wp-block-group.is-style-card > :last-child {
	margin-bottom: 0;
}

/* Dark planes: native controls (a range, a progress bar) take the light green, not the dark accent. */
.wp-block-group.is-style-section-plane,
.wp-block-group.is-style-section-menu-dark {
	accent-color: var(--wp--preset--color--plane-button);
}

/* Full-width bands that follow each other touch, so they read as one sequence of planes. */
.wp-block-group.alignfull[class*="is-style-section-"] + .wp-block-group.alignfull[class*="is-style-section-"] {
	margin-block-start: 0;
}

/*
 * Call in the text: one line between two hairlines, with a round arrow. The link covers the whole row,
 * so the row is one large tap target.
 */
.wp-block-group.cta-inline {
	position: relative;
	margin-block: var(--wp--preset--spacing--50);
	border-block: 1px solid var(--wp--custom--color--line);
}

.wp-block-group.cta-inline p {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	min-height: 3.5rem;
	margin: 0;
	padding-block: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.4;
}

.wp-block-group.cta-inline a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.wp-block-group.cta-inline a::before {
	content: "";
	position: absolute;
	inset: 0;
}

/* The round arrow: a circle in the tint, with a chevron in the accent colour on top of it. */
.wp-block-group.cta-inline p::after {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	margin-inline-start: auto;
	box-sizing: border-box;
	border: 1px solid var(--wp--custom--color--rim);
	border-radius: 50%;
	background-color: var(--wp--preset--color--tint);
}

.wp-block-group.cta-inline p::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.375rem;
	width: 1rem;
	height: 1rem;
	transform: translateY(-50%);
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M9 6l6 6-6 6%27/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M9 6l6 6-6 6%27/%3E%3C/svg%3E") center / contain no-repeat;
	z-index: 1;
}

.wp-block-group.cta-inline:hover a,
.wp-block-group.cta-inline a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Two choices next to each other: the whole tile is the link. */
.wp-block-group.choice-pair {
	gap: var(--wp--preset--spacing--20);
	margin-block: var(--wp--preset--spacing--50);
}

.wp-block-group:is(.is-style-choice, .is-style-choice-strong) {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 4.5rem;
	line-height: 1.35;
}

.wp-block-group:is(.is-style-choice, .is-style-choice-strong) > * {
	margin: 0;
}

.wp-block-group:is(.is-style-choice, .is-style-choice-strong) a {
	font-weight: 700;
}

.wp-block-group:is(.is-style-choice, .is-style-choice-strong) a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wp-block-group:is(.is-style-choice, .is-style-choice-strong) a:focus-visible {
	outline: none;
}

.wp-block-group:is(.is-style-choice, .is-style-choice-strong) a:focus-visible::after {
	outline: 3px solid var(--wp--custom--color--ring);
	outline-offset: 2px;
}

.wp-block-group.is-style-choice:hover {
	border-color: var(--wp--preset--color--accent);
}

/* Photo call: the photo above, the text on a soft plane. On a phone it runs from edge to edge. */
.wp-block-group.photo-cta {
	overflow: hidden;
	margin-block: var(--wp--preset--spacing--60);
}

.wp-block-group.photo-cta > .wp-block-image {
	margin: 0;
}

.wp-block-group.photo-cta > .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 0; /* The group clips the corners on wide screens. */
	max-height: 22rem;
}

.wp-block-group.photo-cta > .wp-block-group {
	margin: 0;
}

@media (max-width: 47.99rem) {

	.has-global-padding > .wp-block-group.photo-cta.alignwide {
		/* The constrained layout sets auto side margins with !important; only !important can override it here. */
		margin-inline: calc(var(--wp--style--root--padding-left) * -1) calc(var(--wp--style--root--padding-right) * -1) !important;
		max-width: none;
	}
}

@media (min-width: 48rem) {

	.wp-block-group.photo-cta {
		border-radius: var(--wp--preset--border-radius--large);
	}
}

/* Call card: a small square photo, a kicker with a dot, the title and a quiet "more" link. */
.wp-block-group.cta-card {
	position: relative;
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.wp-block-group.cta-card .wp-block-image {
	flex: none;
	margin: 0;
}

.wp-block-group.cta-card .wp-block-image img {
	display: block;
	border-radius: var(--wp--preset--border-radius--small);
}

.wp-block-group.cta-card .cta-card__title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.3;
}

.wp-block-group.cta-card .cta-card__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.wp-block-group.cta-card .cta-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wp-block-group.cta-card .cta-card__more {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.wp-block-group.cta-card:hover {
	border-color: var(--wp--custom--color--line-strong);
}

.wp-block-group.cta-card:hover .cta-card__title a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/*
 * Letter column: a question as heading, ordinary paragraphs below it. The space above each question is the
 * pause in the conversation, so it is larger than between ordinary sections.
 */
.wp-block-group.letter > h2,
.wp-block-group.letter > h2:first-child {
	margin-block-start: clamp(3rem, 2rem + 3vw, 4.5rem);
	text-wrap: balance;
}

/* Story: the first paragraph is the opening, a large green question that starts the story. */
.wp-block-group.is-style-story {
	margin-block: var(--wp--preset--spacing--50);
}

.wp-block-group.is-style-story > p:first-child {
	color: var(--wp--preset--color--accent);
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	font-weight: 600;
	line-height: 1.35;
}

/*
 * Steps: numbered cards in the wider list column. The numbers come from a css counter, so the order
 * follows the blocks and nobody has to renumber by hand.
 */
.wp-block-group.steps.alignwide {
	max-width: var(--wp--custom--layout--list);
	margin-block: var(--wp--preset--spacing--50);
	counter-reset: step;
}

.wp-block-group.steps > .wp-block-group {
	counter-increment: step;
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--30);
	align-content: start;
}

.wp-block-group.steps > .wp-block-group::before {
	content: counter(step);
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	font-variant-numeric: lining-nums;
}

.wp-block-group.steps > .wp-block-group > * {
	grid-column: 2;
	margin: 0;
}

.wp-block-group.steps > .wp-block-group > h3 {
	margin-block: 0.125rem;
}

/* On wide screens the steps stand side by side, each with the number above the title. */
@media (min-width: 48rem) {

	.wp-block-group.steps > .wp-block-group {
		grid-template-columns: minmax(0, 1fr);
	}

	.wp-block-group.steps > .wp-block-group::before {
		grid-row: auto;
		margin-bottom: var(--wp--preset--spacing--30);
	}

	.wp-block-group.steps > .wp-block-group > * {
		grid-column: 1;
	}
}

/* Offers: equal height, the price under the explanation and one button at the bottom. */
.wp-block-group:is(.is-style-offer, .is-style-offer-recommended) {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wp-block-group:is(.is-style-offer, .is-style-offer-recommended) > * {
	margin-block: 0 var(--wp--preset--spacing--30);
}

.wp-block-group:is(.is-style-offer, .is-style-offer-recommended) > h3 {
	font-size: clamp(1.5rem, 1.4rem + 0.4vw, 1.625rem);
	font-weight: 360;
}

.wp-block-group:is(.is-style-offer, .is-style-offer-recommended) .offer__price {
	margin-block-start: auto;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.wp-block-group:is(.is-style-offer, .is-style-offer-recommended) .offer__price strong {
	display: block;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(1.875rem, 1.7rem + 0.6vw, 2.125rem);
	font-weight: 360;
	font-variant-numeric: lining-nums;
	line-height: 1.2;
}

.wp-block-group:is(.is-style-offer, .is-style-offer-recommended) > .wp-block-buttons {
	margin-block-end: 0;
}

.wp-block-group:is(.is-style-offer, .is-style-offer-recommended) .wp-block-button {
	flex: 1 1 100%;
}

.wp-block-group:is(.is-style-offer, .is-style-offer-recommended) .wp-block-button__link {
	width: 100%;
}

/* Frame: a quiet box for a smaller first step, with a quiet button. */
.wp-block-group.is-style-frame {
	margin-block: var(--wp--preset--spacing--50);
}

.wp-block-group.is-style-frame > :last-child {
	margin-bottom: 0;
}

/*
 * Shop building blocks.
 *
 * Product band: half picture, half text. Bands in a row alternate side and ground (plain or the
 * green tint); on a phone the picture always comes first.
 */
.wp-block-group.product-band {
	padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.product-band + .product-band {
	margin-block-start: 0;
}

.wp-block-group.product-band .product-band__inner {
	align-items: center;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}

@media (max-width: 47.99rem) {
	.wp-block-group.product-band .product-band__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 48rem) {
	.product-band--art-end .product-band__inner > :first-child {
		order: 2;
	}
}

.product-band__inner > * {
	inline-size: 100%;
	margin-block: 0;
}

.product-band .product-band__photo img {
	border-radius: var(--wp--preset--border-radius--large);
}

.product-band__text > * {
	margin-block: 0;
}

.product-band__text > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.product-band .is-kicker {
	color: var(--wp--preset--color--warm-text);
}

.product-band__text > h2 {
	margin-block-start: var(--wp--preset--spacing--30);
	font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
	line-height: 1.15;
}

.product-band__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.875rem;
	color: var(--wp--preset--color--muted);
}

.product-band__price strong {
	color: var(--wp--preset--color--contrast);
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
	font-weight: 600;
	font-variant-numeric: lining-nums;
	white-space: nowrap;
}

.wp-block-group.product-band__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	margin-block-start: var(--wp--preset--spacing--50);
}

.product-band__actions > * {
	margin: 0;
}

@media (max-width: 47.99rem) {
	.wp-block-group.product-band__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.product-band__actions .wp-block-button {
		inline-size: 100%;
	}
}

/*
 * Kind plane: one size for every picture, a line symbol, the name large and one line below it.
 * The plane is a size container, so symbol and type scale with the tile, from the band to a
 * phone. Colour comes from the block style, the symbol from a class has-symbol-….
 */
.wp-block-group:is(.is-style-kind-plane, .is-style-kind-plane-deep, .is-style-kind-plane-sand, .is-style-kind-plane-linen, .is-style-kind-plane-quiet) {
	position: relative;
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	aspect-ratio: 3 / 2;
	padding: clamp(0.875rem, 7%, 2.375rem);
	border-radius: var(--wp--preset--border-radius--large);
}

.wp-block-group:is(.is-style-kind-plane, .is-style-kind-plane-deep, .is-style-kind-plane-sand, .is-style-kind-plane-linen, .is-style-kind-plane-quiet)::before {
	content: "";
	display: block;
	inline-size: clamp(2.75rem, 20cqi, 5.75rem);
	aspect-ratio: 64 / 34;
	background-color: currentColor;
	-webkit-mask: var(--kind-symbol) center / contain no-repeat;
	mask: var(--kind-symbol) center / contain no-repeat;
	opacity: 0.85;
}

.wp-block-group[class*="is-style-kind-plane"] > * {
	margin: 0;
}

.wp-block-group[class*="is-style-kind-plane"] .kind-plane__name {
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--30);
	font-size: clamp(1.0625rem, 9.5cqi, 2.75rem);
	font-weight: 360;
	line-height: 1.1;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.wp-block-group[class*="is-style-kind-plane"] .kind-plane__sub {
	margin-block-start: 0.5em;
	font-size: clamp(0.75rem, 0.55rem + 2.4cqi, 1rem);
	line-height: 1.4;
}

/* The quiet plane has the name in the accent and the line in the text colour. */
.wp-block-group.is-style-kind-plane-quiet .kind-plane__sub {
	color: var(--wp--preset--color--contrast);
}

/* In a tile the name is the link and the whole tile follows it. */
.wp-block-group[class*="is-style-kind-plane"] .kind-plane__name a {
	color: inherit;
	text-decoration: none;
}

.wp-block-group[class*="is-style-kind-plane"] .kind-plane__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wp-block-group[class*="is-style-kind-plane"] .kind-plane__name a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.wp-block-group[class*="is-style-kind-plane"] .kind-plane__name a:focus-visible {
	outline: none;
}

.wp-block-group[class*="is-style-kind-plane"] .kind-plane__name a:focus-visible::after {
	outline: 3px solid var(--wp--custom--color--ring);
	outline-offset: 2px;
}

.product-band .wp-block-group[class*="is-style-kind-plane"] {
	max-inline-size: 28.75rem;
	margin-inline: auto;
}

/* The symbols, one line each, as masks so they take the colour of the plane. */
.wp-block-group.has-symbol-conversation {
	--kind-symbol: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 34%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 19v-6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6%27/%3E%3Cpath d=%27M10 25v-6a1.6 1.6 0 0 1 3.2 0v2h9.6v-2a1.6 1.6 0 0 1 3.2 0v6z%27/%3E%3Cpath d=%27M12 25v3M24 25v3%27/%3E%3Cpath d=%27M40 19v-6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6%27/%3E%3Cpath d=%27M38 25v-6a1.6 1.6 0 0 1 3.2 0v2h9.6v-2a1.6 1.6 0 0 1 3.2 0v6z%27/%3E%3Cpath d=%27M40 25v3M52 25v3%27/%3E%3C/svg%3E");
}

.wp-block-group.has-symbol-group {
	--kind-symbol: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 34%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2720%27 cy=%2710%27 r=%274%27/%3E%3Ccircle cx=%2732%27 cy=%278%27 r=%274.5%27/%3E%3Ccircle cx=%2744%27 cy=%2710%27 r=%274%27/%3E%3Cpath d=%27M13 30v-6a6 6 0 0 1 9-5M51 30v-6a6 6 0 0 0-9-5M24 31v-8a8 8 0 0 1 16 0v8%27/%3E%3C/svg%3E");
}

.wp-block-group.has-symbol-course {
	--kind-symbol: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 34%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M58 14 32 3 6 14l26 11 26-11z%27/%3E%3Cpath d=%27M16 18v8c0 2.5 7 5 16 5s16-2.5 16-5v-8%27/%3E%3Cpath d=%27M58 14v10%27/%3E%3C/svg%3E");
}

.wp-block-group.has-symbol-book {
	--kind-symbol: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 34%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M32 9c-5-4-13-5-22-4v22c9-1 17 0 22 4 5-4 13-5 22-4V5c-9-1-17 0-22 4z%27/%3E%3Cpath d=%27M32 9v22%27/%3E%3C/svg%3E");
}

.wp-block-group.has-symbol-stay {
	--kind-symbol: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 34%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M8 30V8M8 22h48v8M56 22v-4a5 5 0 0 0-5-5H28v9%27/%3E%3Crect x=%2712%27 y=%2714%27 width=%2712%27 height=%276%27 rx=%273%27/%3E%3C/svg%3E");
}

.wp-block-group.has-symbol-gift {
	--kind-symbol: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 34%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%2718%27 y=%2714%27 width=%2728%27 height=%2718%27 rx=%272%27/%3E%3Cpath d=%27M15 9h34v5H15zM32 9v23M32 9c-3-6-11-6-9 0M32 9c3-6 11-6 9 0%27/%3E%3C/svg%3E");
}

/* Tile row "What we offer": three side by side, two on a phone. */
.wp-block-group.kind-offer {
	margin-block: var(--wp--preset--spacing--70);
}

.wp-block-group.kind-offer > h2 {
	margin-block: 0 var(--wp--preset--spacing--50);
}

.wp-block-group.kind-tiles {
	gap: var(--wp--preset--spacing--50);
}

@media (max-width: 47.99rem) {
	.wp-block-group.kind-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--30);
	}
}

/*
 * Book covers: drawn in the theme colours for an e-book without a real cover yet. The pair is a
 * size container, so the covers keep their proportions on every width.
 */
.wp-block-group.book-covers {
	position: relative;
	container-type: inline-size;
	inline-size: min(21.25rem, 85%);
	aspect-ratio: 340 / 390;
	margin-inline: auto;
}

.wp-block-group.book-cover {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	inline-size: 76.5cqi;
	aspect-ratio: 2 / 3;
	margin: 0;
	padding: 8.8cqi 7.6cqi 7cqi;
	border-radius: 2px 6px 6px 2px;
	background: var(--wp--custom--color--book-light);
	color: var(--wp--custom--color--on-book-light);
	box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12), 18px 22px 40px rgba(0, 0, 0, 0.16);
}

.wp-block-group.book-cover--deep {
	inset-inline: auto 0;
	z-index: 1;
	transform: rotate(4deg);
	transform-origin: bottom left;
	background: var(--wp--custom--color--book-deep);
	color: var(--wp--custom--color--on-book-deep);
}

.wp-block-group.book-cover > * {
	margin: 0;
}

.book-cover .book-cover__kind {
	font-size: 3.5cqi;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.book-cover .book-cover__title {
	margin-block-start: auto;
	font-size: 10cqi;
	font-weight: 360;
	line-height: 1.1;
}

.book-cover .book-cover__title::after {
	content: "";
	display: block;
	inline-size: 10.5cqi;
	block-size: 2px;
	margin-block: 5.3cqi 3.5cqi;
	background: currentColor;
	opacity: 0.5;
}

.book-cover .book-cover__sub {
	font-size: 4.1cqi;
	line-height: 1.4;
}

/* The frog mark at the foot of each cover. */
.wp-block-group.book-cover::after {
	content: "";
	display: block;
	inline-size: 40cqi;
	aspect-ratio: 202 / 34;
	margin-block-start: auto;
	background-color: currentColor;
	-webkit-mask: url("../../images/brand-mark.svg") left center / contain no-repeat;
	mask: url("../../images/brand-mark.svg") left center / contain no-repeat;
}

/* Portrait: the face, once per page, on the green tint. */
.wp-block-group.portrait {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 1.125rem;
	align-items: center;
	padding: 1.125rem;
	border-radius: var(--wp--preset--border-radius--large);
	background: var(--wp--preset--color--tint);
}

.wp-block-group.portrait > * {
	inline-size: 100%;
	margin: 0;
}

.portrait .portrait__photo img {
	border-radius: 50%;
}

.portrait__text > * {
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.portrait__text > .portrait__name {
	color: var(--wp--preset--color--accent);
	font-size: 1.0625rem;
	font-weight: 600;
}

@media (max-width: 47.99rem) {
	.wp-block-group.portrait {
		grid-template-columns: 4rem minmax(0, 1fr);
		gap: 0.875rem;
		padding: 0.875rem;
	}
}

/* Call strip: one line and a quiet button for those in doubt. */
.wp-block-group.help-strip {
	display: flex;
	margin-block: var(--wp--preset--spacing--60);
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	padding: 1.375rem 1.625rem;
	border-radius: var(--wp--preset--border-radius--large);
	background: var(--wp--preset--color--tint);
}

.wp-block-group.help-strip > * {
	margin: 0;
}

.help-strip > p {
	font-size: var(--wp--preset--font-size--large);
}

.help-strip .wp-block-buttons {
	flex: none;
}

.help-strip .wp-block-button:not(.is-style-solid) .wp-block-button__link:not(:hover, :focus) {
	border-color: var(--wp--preset--color--accent);
	background: transparent;
}

@media (max-width: 47.99rem) {
	.wp-block-group.help-strip {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.25rem;
	}
}

/* Find band: after a list, for those who did not find it yet. Search first, then the topics. */
.wp-block-group.find-band {
	margin-block-start: var(--wp--preset--spacing--70);
	padding: clamp(1.75rem, 1rem + 2vw, 2.25rem) var(--wp--preset--spacing--50) clamp(2rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--wp--preset--border-radius--large);
	background: var(--wp--preset--color--soft);
	text-align: center;
}

.wp-block-group.find-band > * {
	margin-block: 0;
}

.find-band .find-band__lead {
	margin-block: var(--wp--preset--spacing--10) var(--wp--preset--spacing--50);
}

.find-band .find-band__search {
	max-inline-size: 40rem;
	margin-inline: auto;
	text-align: start;
}

.find-band .find-band__topics-label {
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--10);
}

.find-band .find-band__topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.find-band .find-band__topics a {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.25rem;
	color: var(--wp--custom--color--link);
	font-weight: 600;
}

@media (max-width: 47.99rem) {
	.wp-block-group.find-band {
		margin-inline: calc(var(--wp--style--root--padding-left, 1rem) * -1) calc(var(--wp--style--root--padding-right, 1rem) * -1) !important;
		border-radius: 0;
	}
}

/*
 * Buy bar: fixed at the bottom of a landing page, one line and one button. Leaves room in the
 * footer so it never covers the legal line. In the editor it stays in the flow.
 */
.wp-block-group.buy-bar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: var(--wp--custom--layer--bar);
	max-inline-size: none;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0.625rem max(var(--wp--preset--spacing--40), calc((100% - var(--wp--style--global--content-size)) / 2));
	padding-block-end: calc(0.625rem + env(safe-area-inset-bottom, 0px));
	border-block-start: 1px solid var(--wp--custom--color--line);
	background: var(--wp--preset--color--surface);
}

.buy-bar .buy-bar__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.3;
}

.buy-bar .buy-bar__action {
	flex-shrink: 0;
	margin: 0;
}

:root:has(.buy-bar) .site-footer {
	padding-block-end: calc(var(--wp--preset--spacing--60) + 4.5rem) !important;
}

.editor-styles-wrapper .wp-block-group.buy-bar {
	position: static;
	border: 1px dashed var(--wp--custom--color--line-strong);
	border-radius: var(--wp--preset--border-radius--medium);
}

@media print {
	.wp-block-group.buy-bar {
		display: none;
	}
}

/*
 * Cover with a letter: the head of a landing page on the plane colour. The large letter sits behind
 * the text as decoration, a shade deeper than the plane.
 */
.wp-block-group.cover-letter {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-block-size: clamp(12.5rem, 6rem + 22vw, 25rem);
	text-align: center;
}

.cover-letter > .cover-letter__letter {
	position: absolute;
	inset-block-start: 50%;
	inset-inline: 0;
	z-index: -1;
	margin: 0;
	transform: translateY(-50%);
	color: color-mix(in srgb, var(--wp--preset--color--plane) 84%, #000);
	font-size: clamp(13.75rem, 8rem + 22vw, 24.25rem);
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.cover-letter > .cover-letter__kicker {
	margin-block-end: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.cover-letter > .cover-letter__title {
	max-inline-size: 100%;
	margin-block-start: 0.25rem;
	font-size: clamp(2.75rem, 1.75rem + 3.5vw, 4.5rem);
	font-weight: 700;
	line-height: 1.1;
}

.wp-block-group.cover-letter + .wp-block-group {
	margin-block-start: var(--wp--preset--spacing--70);
}

/* Closing band: the second button is the quiet one, an outline on the plane. */
.band-closing .wp-block-button + .wp-block-button .wp-block-button__link:not(:hover, :focus) {
	border-color: color-mix(in srgb, var(--wp--custom--color--on-plane) 60%, transparent);
	background: transparent;
	color: var(--wp--custom--color--on-plane);
}

/*
 * Three ways in: cards with a photo, each one link. Right under the start page cover they lie half
 * over the photo; on a phone they become rows with a small photo.
 */
.wp-block-group.ways {
	gap: var(--wp--preset--spacing--50);
}

.home-cover + .wp-block-group.ways {
	position: relative;
	z-index: 1;
}

.wp-block-group.way {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}

.wp-block-group.way > * {
	margin: 0;
}

.way .way__photo img {
	display: block;
	inline-size: 100%;
	block-size: 11.25rem;
	object-fit: cover;
	background: var(--wp--preset--color--soft);
}

.way .way__text {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) 1.625rem;
}

.way .way__text > * {
	margin: 0;
}

.way .way__text > * + * {
	margin-block-start: 0.375rem;
}

.way .way__title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 560;
	line-height: 1.3;
}

.way .way__title a {
	color: var(--wp--custom--color--heading);
	text-decoration: none;
}

.way .way__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.way .way__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.way .way__title a:focus-visible {
	outline: none;
}

.way .way__title a:focus-visible::after {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.way .way__sub {
	color: var(--wp--preset--color--muted);
	line-height: 1.5;
}

@media (max-width: 47.99rem) {

	.wp-block-group.ways {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wp--preset--spacing--30);
	}

	.wp-block-group.way {
		flex-direction: row;
		align-items: center;
	}

	.way .way__photo {
		flex: none;
	}

	.way .way__photo img {
		inline-size: 6rem;
		block-size: 6rem;
	}

	/* A long word at a large text setting breaks instead of pushing the row out of the screen. */
	.way .way__text {
		min-inline-size: 0;
		padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
		overflow-wrap: break-word;
	}

	.way .way__title {
		font-size: var(--wp--preset--font-size--large);
	}

	.way .way__sub {
		font-size: var(--wp--preset--font-size--small);
	}
}

@media (min-width: 48rem) {

	.wp-block-group.way {
		box-shadow: 0 1.125rem 2.5rem rgb(0 0 0 / 0.14);
	}

	.home-cover + .wp-block-group.ways {
		margin-block-start: -6.875rem;
	}
}

/* Introduction: a large round photo beside a heading, a few sentences and a link. */
.wp-block-group.introduction {
	display: grid;
	grid-template-columns: 11.25rem minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
	max-inline-size: var(--wp--custom--layout--list);
	margin-block-start: var(--wp--preset--spacing--80);
}

.wp-block-group.introduction > *,
.introduction__text > * {
	margin: 0;
}

.introduction__text > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.introduction .introduction__photo img {
	display: block;
	inline-size: 11.25rem;
	block-size: 11.25rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--wp--preset--color--soft);
}

.introduction .introduction__more a {
	font-weight: 600;
}

@media (max-width: 47.99rem) {

	.wp-block-group.introduction {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wp--preset--spacing--40);
		margin-block-start: var(--wp--preset--spacing--70);
	}

	.introduction .introduction__photo img {
		inline-size: 7.5rem;
		block-size: 7.5rem;
	}
}

/* Workshop insert: the next workshop as a plane-coloured card between two sections. */
.wp-block-group.insert-card {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr) auto;
	gap: 1.75rem;
	align-items: center;
	margin-block-start: var(--wp--preset--spacing--80);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	border-radius: var(--wp--preset--border-radius--large);
}

.wp-block-group.insert-card > *,
.insert-card__text > * {
	margin: 0;
}

.insert-card .insert-card__photo img {
	display: block;
	inline-size: 7.5rem;
	block-size: 7.5rem;
	border-radius: var(--wp--preset--border-radius--small);
	object-fit: cover;
	background: var(--wp--custom--color--plane-deep);
}

.insert-card .insert-card__text > .is-kicker {
	color: var(--wp--custom--color--on-plane);
	opacity: 0.85;
}

.insert-card__text > h3 {
	margin-block: 0.125rem 0.25rem;
	color: var(--wp--custom--color--on-plane);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 360;
	line-height: 1.25;
}

@media (max-width: 47.99rem) {

	.wp-block-group.insert-card {
		grid-template-columns: 4.5rem minmax(0, 1fr);
		gap: var(--wp--preset--spacing--40);
		margin-block-start: var(--wp--preset--spacing--70);
		padding: var(--wp--preset--spacing--40);
	}

	.insert-card .insert-card__photo img {
		inline-size: 4.5rem;
		block-size: 4.5rem;
	}

	.insert-card .insert-card__text > .is-kicker {
	color: var(--wp--custom--color--on-plane);
	opacity: 0.85;
}

.insert-card__text > h3 {
		font-size: var(--wp--preset--font-size--x-large);
	}

	.insert-card > .wp-block-buttons {
		grid-column: 1 / -1;
	}

	.insert-card > .wp-block-buttons .wp-block-button {
		flex: 1;
	}

	.insert-card > .wp-block-buttons .wp-block-button__link {
		inline-size: 100%;
	}
}

/* Newest articles: three rows in the list column and one quiet button to all articles. */
.wp-block-group.latest-posts {
	margin-block-start: var(--wp--preset--spacing--80);
}

.latest-posts > .wp-block-query.overview {
	margin-block-start: var(--wp--preset--spacing--30);
}

.latest-posts > .latest-posts__more {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* Newsletter band: a calm sand band near the end of the page. */
.wp-block-group.newsletter {
	margin-block-start: var(--wp--preset--spacing--80);
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40);
	background: var(--wp--custom--color--plane-sand);
	color: var(--wp--preset--color--contrast);
}

.wp-block-group.newsletter > h2 {
	margin-block-end: var(--wp--preset--spacing--20);
}

.wp-block-group.alignfull.newsletter + .wp-block-group.alignfull {
	margin-block-start: 0;
}
