/*
 * WPCE Demo: the look of the start page and of the pages of the entry points.
 *
 * Hand-written, no build step, nothing loaded from elsewhere. It follows the
 * product website (wp-club-elements.de): the same palette "Bordeaux & Ocker"
 * under the same token names, Fraunces for headings and Asap for text, the
 * same radius, button and link. Like the website it has a switch for light and
 * dark: <html data-theme> carries the scheme (assets/theme.js sets it, from
 * the visitor's choice or else their system). Without JavaScript the
 * attribute is missing and the system's setting decides, by the media query
 * below; the dark values stand there twice, by attribute and by media query.
 *
 * Rules that come with the palette (as in the website's tokens.css):
 * - In the dark scheme the brand colour is a fill only; text and links take
 *   the light tint (--link).
 * - Ochre (--accent) never carries meaning alone on a light ground: it is a
 *   fill under dark text (--on-accent) or decoration. Ochre text on a light
 *   ground is --accent-text.
 *
 * Fonts (self-hosted, SIL OFL, see fonts/OFL-*.txt): Fraunces for headings,
 * Asap for text.
 */

@font-face {
	font-family: "Fraunces";
	src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Fraunces";
	src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Asap";
	src: url("fonts/asap-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--bg: #fff;
	--paper: #f6f1ec;
	--paper-subtle: #fbf8f5;
	--heading: #1a1316;
	--text: #272023;
	--muted: #62575b;
	--border: #ded4d0;
	--border-strong: #92858a;
	--brand: #7a1f3f;
	--brand-deep: #4e1128;
	--brand-tint: #f6e2e9;
	--link: #7a1f3f;
	--link-hover: #4e1128;
	--accent: #c9952b;
	--accent-text: #7a5600;
	--on-accent: #272023;
	--btn-bg: #7a1f3f;
	--btn-bg-hover: #4e1128;
	--btn-fg: #fff;
	--focus: #7a1f3f;
	--mark-a: #7a1f3f;
	--mark-b: #c9952b;
	--field: #7a1f3f;
	--ink: #1a1316;
	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--font-body: "Asap", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: .375rem;
	--shadow: 0 0 0 1px rgb(26 19 22 / .1), 0 1.5rem 3rem -1.25rem rgb(26 19 22 / .4);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--maxw: 76rem;
	--measure: 36rem;
	--gutter: 1.25rem;
	--header-h: 3.5rem;
	/* How far the first club reaches up into the brand field. */
	--lap: clamp(4.5rem, 11vw, 9rem);
	/* Clear space between the headline block and the picture that hangs out of the field. */
	--lap-air: clamp(2.75rem, 5vw, 4rem);
}

@media (min-width: 50rem) {
	:root {
		--gutter: 2rem;
		--header-h: 4rem;
	}
}

/* Light, by the visitor's choice: the base values above, and the browser's own parts in light. */
:root[data-theme="light"] {
	color-scheme: light;
}

/* Dark, by the visitor's choice (or the system's, which theme.js has read). */
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #171214;
	--paper: #2a1f23;
	--paper-subtle: #2a1f23;
	--heading: #fff;
	--text: #eee6e9;
	--muted: #b3a6aa;
	--border: #3b2f33;
	--border-strong: #7c6d72;
	--brand-deep: #451426;
	--brand-tint: #451426;
	--link: #f2a7c0;
	--link-hover: #fbf3f6;
	--accent: #e3b655;
	--accent-text: #e3b655;
	--on-accent: #171214;
	--btn-bg: #f2a7c0;
	--btn-bg-hover: #fbf3f6;
	--btn-fg: #171214;
	--focus: #f2a7c0;
	--mark-a: #fbf8f5;
	--mark-b: #e3b655;
	--ink: #0d090b;
	--shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 1.5rem 3rem -1.25rem rgb(0 0 0 / .7);
}

/* Dark, without JavaScript: no data-theme, so the system decides. The same values as above. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #171214;
		--paper: #2a1f23;
		--paper-subtle: #2a1f23;
		--heading: #fff;
		--text: #eee6e9;
		--muted: #b3a6aa;
		--border: #3b2f33;
		--border-strong: #7c6d72;
		--brand-deep: #451426;
		--brand-tint: #451426;
		--link: #f2a7c0;
		--link-hover: #fbf3f6;
		--accent: #e3b655;
		--accent-text: #e3b655;
		--on-accent: #171214;
		--btn-bg: #f2a7c0;
		--btn-bg-hover: #fbf3f6;
		--btn-fg: #171214;
		--focus: #f2a7c0;
		--mark-a: #fbf8f5;
		--mark-b: #e3b655;
		--ink: #0d090b;
		--shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 1.5rem 3rem -1.25rem rgb(0 0 0 / .7);
	}
}

/* Text on the brand field: the same roles, other values (all AA, see the website's tokens.css). */
.on-brand {
	--heading: #fff;
	--text: #fff;
	--muted: #f6e2e9;
	--link: #fff;
	--link-hover: #fff;
	--border: rgb(255 255 255 / .3);
	--accent: #e3b655;
	--accent-text: #e3b655;
	--btn-bg: #e3b655;
	--btn-bg-hover: #fff;
	--btn-fg: #1a1316;
	--btn-shadow: #1a1316;
	--focus: #fff;
	color: var(--text);
}

@view-transition {
	navigation: auto;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main {
	flex: 1 0 auto;
}

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

h1,
h2,
h3 {
	font-family: var(--font-display);
	color: var(--heading);
	margin: 0;
	font-weight: 500;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.125rem, 1.1rem + 4.6vw, 4.75rem);
	line-height: 1.02;
	letter-spacing: -.022em;
}

h2 {
	font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: -.018em;
}

h3 {
	font-size: 1.4375rem;
	line-height: 1.2;
	font-weight: 560;
	letter-spacing: -.005em;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	transition: color .15s, text-decoration-color .15s, text-underline-offset .2s var(--ease);
}

a:hover {
	color: var(--link-hover);
	text-decoration-thickness: 2px;
	text-decoration-color: var(--accent);
	text-underline-offset: .3em;
}

strong {
	color: var(--heading);
	font-weight: 650;
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.wrap {
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.lead {
	font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.3125rem);
	line-height: 1.5;
}

/* A note in the margin: the italic of the display face. */
.note {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.2;
	color: var(--link);
	margin: 0;
}

/* Header and foot ------------------------------------------------------- */

.head {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.head__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 2rem;
	min-height: var(--header-h);
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	min-height: 2.75rem;
	color: var(--heading);
	text-decoration: none;
	white-space: nowrap;
}

.brand:hover {
	color: var(--heading);
}

.brand .mark {
	flex: none;
	transition: transform .25s var(--ease);
}

.brand:hover .mark {
	transform: rotate(-6deg);
}

.brand__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -.01em;
	line-height: 1;
}

/* "Demo" is the note of the display face: the name, and what this is. */
.brand__sub {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--link);
	padding-left: .65rem;
	border-left: 1px solid var(--border-strong);
}

.mark__a {
	fill: var(--mark-a);
}

.mark__b {
	fill: var(--mark-b);
}

.head__nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-left: -.35rem;
}

.head__nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding-inline: .85rem;
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}

/* A short rule under the link, drawn on hover. */
.head__nav a::after {
	content: "";
	position: absolute;
	inset: auto .85rem .45rem;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease);
}

.head__nav a:hover {
	color: var(--heading);
}

.head__nav a:hover::after {
	transform: none;
}

/* On a wide screen the menu is no box of its own: links and switch stand in the bar, the switch at its right end. */
.head__menu {
	display: contents;
}

.head__look {
	margin-left: auto;
}

.head__look-label,
.menu-button {
	display: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* The light/dark switch: the website's button (2.5rem, hairline, same focus ring), at the right end of the bar. */
.theme-toggle {
	display: inline-grid;
	place-items: center;
	flex: none;
	position: relative;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: transparent;
	color: var(--heading);
	cursor: pointer;
}

.theme-toggle:hover {
	border-color: currentColor;
}

.theme-toggle:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
}

.theme-toggle svg {
	grid-area: 1 / 1;
}

.theme-toggle .moon,
:root[data-theme="dark"] .theme-toggle .sun {
	display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
	display: block;
}

/* Without JavaScript (theme.js sets the attribute) the button would do nothing, so it is not shown; the system decides. */
:root:not([data-theme]) .theme-toggle,
:root:not([data-theme]) .head__look {
	display: none;
}

.foot {
	margin-top: clamp(4rem, 9vw, 8rem);
	background: var(--ink);
	color: var(--muted);
	font-size: .9375rem;
	padding-block: 2.5rem 3rem;
	--heading: #fff;
	--text: #eee6e9;
	--muted: #b3a6aa;
	--link: #f2a7c0;
	--link-hover: #fbf3f6;
	--border: #3b2f33;
	--accent: #e3b655;
	--mark-a: #fbf8f5;
	--mark-b: #e3b655;
}

.foot__in {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem 3rem;
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 2.5rem var(--gutter) 0;
	border-top: 1px solid var(--border);
}

.foot__who {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.foot__who .mark {
	flex: none;
	width: 33px;
	height: 38px;
}

.foot__who p {
	margin: 0;
}

.foot a {
	color: var(--text);
}

.foot__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.75rem;
	margin-block: -.6rem;
}

.foot__links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	text-decoration: none;
}

.foot a:hover {
	color: var(--heading);
	text-decoration: underline;
	text-decoration-color: var(--accent);
}

/* Buttons ----------------------------------------------------------------- */

/* The one button. On hover it lifts off a block of the second colour. */
.btn,
.try .wpce-demo-start__button,
.wpce-demo-plain button:not(.theme-toggle):not(.menu-button) {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	min-height: 3.25rem;
	padding: .6rem 1.5rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 650 1.0625rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 0 0 var(--btn-shadow, var(--accent));
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .15s;
}

.btn::after,
.try .wpce-demo-start__button::after {
	content: "→";
	transition: transform .2s var(--ease);
}

.btn:hover,
.try .wpce-demo-start__button:hover,
.wpce-demo-plain button:not(.theme-toggle):not(.menu-button):hover {
	background: var(--btn-bg-hover);
	color: var(--btn-fg);
	transform: translate(-3px, -3px);
	box-shadow: 5px 5px 0 var(--btn-shadow, var(--accent));
}

.btn:hover::after,
.try .wpce-demo-start__button:hover::after {
	transform: translateX(3px);
}

.btn:active,
.try .wpce-demo-start__button:active,
.wpce-demo-plain button:not(.theme-toggle):not(.menu-button):active {
	transform: none;
	box-shadow: 0 0 0 var(--btn-shadow, var(--accent));
}

.try .wpce-demo-start__button:disabled {
	opacity: .6;
	cursor: progress;
	transform: none;
	box-shadow: none;
}

.try {
	display: inline-block;
	margin: 0;
}

.try .wpce-demo-start__status,
.try .wpce-demo-start__noscript {
	display: block;
	margin-top: .6em;
	font-size: .9375rem;
	color: var(--muted);
}

.try .wpce-demo-start__noscript {
	display: none;
}

/* Resume ------------------------------------------------------------------ */

.resume {
	background: var(--brand-tint);
	border-bottom: 1px solid var(--border);
}

.resume[hidden] {
	display: none;
}

.resume__in {
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--gutter));
	margin-inline: auto;
	padding: .75rem var(--gutter);
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
}

.resume__text {
	margin: 0;
}

html.has-demo .try {
	display: none;
}

/* Opening: the brand field, and the first club running out of it ----------- */

.hero {
	background: var(--field);
	padding-block: clamp(1.75rem, 5vw, 4.5rem) calc(var(--lap) + var(--lap-air));
}

.hero__in {
	display: grid;
	gap: 1.25rem 3.5rem;
}

.hero__title {
	font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.9rem);
}

.hero__title em {
	display: block;
	font-style: italic;
	font-weight: 420;
	color: var(--accent);
}

.hero__lede {
	max-width: 34rem;
	margin: 0;
}

.notice {
	margin: 1.5rem 0 0;
	padding: .9rem 1.1rem;
	background: var(--brand-tint);
	color: var(--text);
	border-radius: var(--radius);
	max-width: 36em;
}

.hero .notice {
	background: rgb(0 0 0 / .22);
	color: #fff;
}

/* Clubs --------------------------------------------------------------------- */

.clubs {
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--gutter));
	margin: calc(-1 * var(--lap)) auto 0;
	padding-inline: var(--gutter);
	position: relative;
}

.club {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 2.4vw, 2rem);
	row-gap: 1.75rem;
	margin-top: clamp(4rem, 9vw, 8rem);
	align-items: center;
}

.club:first-child {
	margin-top: 0;
}

.club__pictures,
.club__text {
	grid-column: 1 / -1;
}

.club__name {
	font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.625rem);
	line-height: 1.06;
	margin-bottom: .45em;
}

.club__sentence {
	color: var(--muted);
	font-size: 1.125rem;
	line-height: 1.55;
	max-width: 30em;
	margin-bottom: 1.5rem;
}

.club__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.75rem;
}

.club__view {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 600;
}

.club__view span[aria-hidden] {
	display: inline-block;
	transition: transform .3s var(--ease);
	margin-left: .3em;
}

.club__view:hover span[aria-hidden] {
	transform: translateX(5px);
}

.shots {
	position: relative;
}

.shot {
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.shot--desktop {
	width: 100%;
	transition: transform .6s var(--ease);
}

.club:hover .shot--desktop {
	transform: translateY(-4px);
}

.shot--phone {
	position: absolute;
	width: 25%;
	right: 3%;
	bottom: -7%;
	border-radius: .6rem;
	transition: transform .7s var(--ease) .05s;
}

.club:hover .shot--phone {
	transform: translateY(-8px);
}

/* One field of the quartered shield, in the second colour, behind the first club's pictures. */
.club:first-child .shots::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -1rem;
	bottom: -1.25rem;
	width: 38%;
	height: 62%;
	background: var(--accent);
}

.shots--wide .shot--phone {
	display: none;
}

/* Beside each other on wide screens, each club in its own arrangement. */
@media (min-width: 62rem) {
	.club--overlap .club__pictures {
		grid-column: 1 / 9;
	}

	.club--overlap .club__text {
		grid-column: 9 / 13;
		align-self: end;
	}

	.club--phone-first .club__text {
		grid-column: 1 / 5;
		grid-row: 1;
	}

	.club--phone-first .club__pictures {
		grid-column: 5 / 13;
		grid-row: 1;
		padding-left: 8%;
	}

	.shots--phone-first .shot--phone {
		right: auto;
		left: 0;
		bottom: auto;
		top: 14%;
		width: 24%;
	}

	.club--wide .club__pictures {
		grid-column: 1 / -1;
	}

	.club--wide .club__text {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: clamp(1rem, 2.4vw, 2rem);
		align-items: end;
	}

	.club--wide .club__name {
		grid-column: 1 / 7;
		margin: 0;
	}

	.club--wide .club__sentence,
	.club--wide .club__actions {
		grid-column: 8 / 13;
	}

	.club--wide .club__sentence {
		margin-bottom: 1em;
	}

	.club--pair .club__text {
		grid-column: 1 / 5;
		grid-row: 1;
		align-self: start;
		padding-top: 6%;
	}

	.club--pair .club__pictures {
		grid-column: 5 / 13;
		grid-row: 1;
	}

	.shots--pair {
		display: grid;
		grid-template-columns: 74% 1fr;
		gap: 3%;
		align-items: end;
	}

	.shots--pair .shot--phone {
		position: static;
		width: 100%;
	}

	.club--tall .club__pictures {
		grid-column: 1 / 8;
		padding-bottom: 8%;
	}

	.club--tall .club__text {
		grid-column: 9 / 13;
	}

	.shots--tall .shot--desktop {
		width: 74%;
		margin-left: auto;
	}

	.shots--tall .shot--phone {
		right: auto;
		left: 2%;
		bottom: -10%;
		width: 24%;
	}

	.hero__in {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: end;
	}
}

@media (max-width: 61.99rem) {
	.shots--pair .shot--phone,
	.shots--tall .shot--phone,
	.shots--phone-first .shot--phone,
	.shots--overlap .shot--phone {
		width: 27%;
		right: 4%;
		left: auto;
		top: auto;
		bottom: -6%;
	}

	.club__pictures {
		margin-bottom: .75rem;
	}
}

/* Example ------------------------------------------------------------------- */

.example {
	margin-top: clamp(5rem, 11vw, 9rem);
	padding-block: clamp(3.5rem, 8vw, 7rem);
	background: var(--paper);
}

.example__in {
	display: grid;
	gap: 2.5rem clamp(2rem, 6vw, 6rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	align-items: center;
}

.example h2 {
	font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
	line-height: 1.04;
	margin-bottom: 1.25rem;
}

.example h2 .note {
	display: block;
	margin-bottom: .5rem;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
	font-weight: 400;
	letter-spacing: 0;
}

.example p {
	max-width: var(--measure);
}

.example__figure {
	margin: 0;
}

.example__figure img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.example figcaption {
	margin-top: .75rem;
	font-size: .9375rem;
	color: var(--muted);
}

/* Limits -------------------------------------------------------------------- */

.limits {
	margin-top: clamp(4rem, 9vw, 8rem);
}

.limits__in {
	display: grid;
	gap: 3rem clamp(2rem, 6vw, 6rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.limits h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
	margin-bottom: 1.25rem;
}

/* A dry list: hairlines between the lines, a dash in front. */
.plain {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 1.125rem;
	line-height: 1.55;
	border-bottom: 1px solid var(--border);
}

.plain li {
	position: relative;
	padding: 1.1rem 0 1.1rem 2rem;
	border-top: 1px solid var(--border);
}

.plain li::before {
	content: "–";
	position: absolute;
	left: 0;
	color: var(--muted);
}

.limits__notice {
	font-weight: 650;
	color: var(--heading);
	padding-left: 1rem;
	border-left: 3px solid var(--accent);
}

.limits__sender {
	color: var(--muted);
	margin-top: 1.6em;
}

/* The way on: the close of the page, on the brand field ------------------------ */

.next {
	margin-top: clamp(4rem, 9vw, 8rem);
	background: var(--field);
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.next__in {
	display: grid;
	gap: 1.75rem 3.5rem;
	align-items: end;
}

.next h2 {
	font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
}

.next .lead {
	max-width: var(--measure);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.75rem;
	margin-top: 1.75rem;
}

.actions a:not(.btn) {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

@media (min-width: 62rem) {
	.next__in {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

/* The brand field closes the page: the foot follows without a gap. */
.main:has(> .next:last-child) + .foot {
	margin-top: 0;
}

/* Moving in ------------------------------------------------------------------ */

.js .reveal {
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* The first club is there from the first frame: it is what the page is for. */
.js .club:first-child.reveal {
	opacity: 1;
	transform: none;
	transition: none;
}

.js .reveal .shot--phone {
	opacity: 0;
	translate: 0 3rem;
	transition: opacity .9s var(--ease) .25s, translate .9s var(--ease) .25s, transform .7s var(--ease);
}

.js .reveal.is-in .shot--phone,
.js .club:first-child.reveal .shot--phone {
	opacity: 1;
	translate: 0 0;
}

@keyframes wpce-settle {
	from {
		opacity: 0;
		transform: translateY(2rem);
	}
}

.club:first-child .shot--desktop {
	animation: wpce-settle .9s var(--ease) both;
}

.club:first-child .shot--phone {
	animation: wpce-settle .9s var(--ease) .18s both;
}

/* The moment after the click ---------------------------------------------- */

.opening {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	background: var(--bg);
	opacity: 0;
	transition: opacity .45s var(--ease);
	padding: var(--gutter);
	text-align: center;
}

.opening[hidden] {
	display: none;
}

.opening.is-on {
	opacity: 1;
}

.opening__in {
	max-width: 32em;
}

.opening .mark {
	width: 56px;
	height: 64px;
}

.opening__title {
	font: 500 clamp(1.75rem, 1.2rem + 2vw, 2.625rem)/1.1 var(--font-display);
	letter-spacing: -.015em;
	color: var(--heading);
	margin: 1.4rem 0 .5rem;
}

.opening__club {
	font-weight: 650;
	color: var(--heading);
	margin: 0 0 .4rem;
}

.opening__hint {
	color: var(--muted);
}

.opening__bar {
	display: block;
	height: 3px;
	margin: 1.75rem auto 0;
	width: min(260px, 70vw);
	background: var(--border);
	border-radius: 3px;
	overflow: hidden;
	position: relative;
}

.opening__bar::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--accent);
	transform-origin: left;
	animation: wpce-fill 9s cubic-bezier(.1, .6, .2, 1) forwards;
}

.opening .mark path,
.lead--pulse .mark path {
	animation: wpce-quad 1.6s var(--ease) infinite;
}

.opening .mark path:nth-child(2),
.lead--pulse .mark path:nth-child(2) {
	animation-delay: .5s;
}

@keyframes wpce-fill {
	from {
		transform: scaleX(.04);
	}

	to {
		transform: scaleX(.92);
	}
}

@keyframes wpce-quad {
	0%,
	100% {
		opacity: 1;
	}

	45% {
		opacity: .25;
	}
}

html.is-opening .try .wpce-demo-start__status {
	display: none;
}

/* Plain pages: waiting, full, ended, link, error ------------------------------ */

/* Head of these pages: a paper ground with the title, the quartering of the mark as a corner. */
.page-hero {
	position: relative;
	overflow: hidden;
	background: var(--paper);
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}

.page-hero::before,
.page-hero::after {
	content: "";
	position: absolute;
	right: 0;
	width: clamp(3rem, 9vw, 8rem);
	height: 50%;
}

.page-hero::before {
	top: 0;
	background: var(--field);
}

.page-hero::after {
	bottom: 0;
	background: var(--accent);
}

.page-hero .wrap {
	position: relative;
	padding-right: calc(var(--gutter) + clamp(3rem, 9vw, 8rem));
}

.page-title {
	font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
	max-width: 18em;
}

.lead--pulse {
	margin-bottom: 1.25rem;
}

.lead--pulse .mark {
	width: 40px;
	height: 46px;
}

.plain-body {
	padding-block: clamp(2rem, 4vw, 3.5rem) 0;
	font-size: 1.125rem;
}

.plain-body > * {
	max-width: var(--measure);
}

.plain-body label {
	display: block;
	font-weight: 650;
	color: var(--heading);
	margin-bottom: .3em;
}

.plain-body input[type="text"] {
	width: 100%;
	font: inherit;
	padding: .7em .85em;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--text);
}

.plain-body input[type="text"]:focus {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.plain-body .links {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.75rem;
	margin-top: 1.6em;
}

.plain-body .links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.plain-body form {
	margin: 1.4em 0;
}

.wpce-demo-plain [data-wpce-demo-status] {
	margin-left: .8em;
	color: var(--muted);
	font-size: .9375rem;
}

/* Reduced motion: everything stands still and is simply there. ------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.js .reveal,
	.js .reveal .shot--phone {
		opacity: 1 !important;
		transform: none !important;
		translate: none !important;
	}

	.opening__bar::after {
		transform: scaleX(.5);
	}

	@view-transition {
		navigation: none;
	}
}

/* The menu of the phone layout, as on the product website (SiteHeader.astro): below 50rem the links and the switch move into a panel behind the button in the right corner. Without JavaScript the button stays hidden (theme.js shows it) and the links stand in a second row. */
@media (max-width: 49.99rem) {
	.head__in {
		column-gap: 0;
	}

	.brand {
		gap: .4rem;
		min-width: 0;
	}

	/* Name and "Demo" stay on one line down to 320 px: the size follows the width. */
	.brand__name,
	.brand__sub {
		font-size: clamp(.9375rem, 4.6vw, 1.25rem);
	}

	.brand__sub {
		padding-left: .4rem;
	}

	/* Without JavaScript: the links under the name, wrapping if need be. */
	.head__menu {
		display: block;
		flex: 0 0 100%;
		padding-bottom: .5rem;
	}

	.head__nav {
		margin-left: -.5rem;
		gap: 0;
	}

	/* The same button as the light/dark switch, in the right corner. */
	.menu-button:not([hidden]) {
		position: relative;
		display: inline-grid;
		place-items: center;
		flex: none;
		width: 2.5rem;
		height: 2.5rem;
		margin-left: auto;
		padding: 0;
		border: 1px solid var(--border-strong);
		border-radius: var(--radius);
		background: transparent;
		color: var(--heading);
		cursor: pointer;
	}

	.menu-button:hover {
		border-color: currentColor;
	}

	.menu-button:focus-visible {
		outline: 2px solid var(--focus);
		outline-offset: 3px;
	}

	/* The square is 2.5rem like the website's; the touch area reaches 44 px. */
	.menu-button::before,
	.theme-toggle::before {
		content: "";
		position: absolute;
		inset: -2px;
	}

	.menu-button svg {
		grid-area: 1 / 1;
	}

	.menu-button .close,
	.head[data-menu="open"] .menu-button .bars {
		display: none;
	}

	.head[data-menu="open"] .menu-button .close {
		display: block;
	}

	/* With the script: closed the panel is gone (and out of the tab order), open it lies over the page instead of pushing it down. */
	.head[data-menu] .head__menu {
		padding-bottom: 0;
	}

	.head[data-menu="closed"] .head__menu {
		display: none;
	}

	.head[data-menu="open"] .head__menu {
		position: absolute;
		inset: 100% 0 auto;
		max-height: calc(100dvh - 100%);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: .5rem var(--gutter) 1rem;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: 0 1.5rem 2rem -1.5rem rgb(0 0 0 / .35);
	}

	.head[data-menu] .head__nav {
		flex-direction: column;
		margin-left: 0;
	}

	.head[data-menu] .head__nav a {
		min-height: 3.25rem;
		padding-inline: 0;
		font-size: 1.1875rem;
		border-bottom: 1px solid var(--border);
	}

	.head[data-menu] .head__nav a::after {
		content: none;
	}

	.head__nav a {
		padding-inline: .5rem;
	}

	.head__look {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: .75rem 0 0;
	}

	.head__look-label {
		display: inline;
		color: var(--muted);
	}
}

@media (max-width: 49.99rem) and (prefers-reduced-motion: no-preference) {
	.head[data-menu="open"] .head__menu {
		animation: wpce-menu .2s var(--ease) both;
	}
}

@keyframes wpce-menu {
	from {
		opacity: 0;
		transform: translateY(-.5rem);
	}
}

@media (max-width: 20.5rem) {
	:root {
		--gutter: 1rem;
	}

	.head__nav a {
		padding-inline: .3rem;
	}
}
