/*
 * Inner pages (/start/, the service pages): the front page's design language in one place.
 * Ink hero with the 23deg cut and the leaning mark, two-column sections, brass-barred headings, ruled lines.
 * Logical properties only.
 */

/*
 * The /start/ page (meeting request). Follows the front page's design language: ink hero with the 23deg cut and
 * the leaning mark, ivory sections, brass lines. The form's markup comes from the ayh-site plugin; its look is here.
 * Logical properties only, so one file serves RTL and LTR.
 */

/* Reveal animations start items offset sideways; the page has 1.25rem of root padding, so let <main> span the
 * full width (padding goes back inside) and the dark hero bleeds. Same trick as the front page. */
.ayh-page {
	--ayh-skew: -23deg; /* the logo lean: buttons and section cuts */
	overflow-x: clip;
	margin-inline: -1.25rem;
	padding-inline: 1.25rem;
}

/* ---------------------------------------------------------------- Hero */

.ayh-page-hero {
	--ayh-skew: -23deg;
	--ayh-cut-h: 3rem;
	--ayh-cut-x: 40%;
	--ayh-sr: 1rem;
	position: relative;
	isolation: isolate;
	overflow: clip;
	display: flex;
	align-items: center;
	margin-inline: -1.25rem;
	margin-block: 0;
	min-block-size: min(34rem, 70svh);
	padding: 4.5rem 1.25rem calc(var(--ayh-cut-h) + 2.5rem);
}

/* The slanted cut into the ivory section below */
.ayh-page-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: -1px;
	z-index: 3;
	block-size: var(--ayh-cut-h);
	background: var(--wp--preset--color--ivory);
	clip-path: polygon(0 0, calc(var(--ayh-cut-x) + var(--ayh-cut-h) * 0.4245) 0, var(--ayh-cut-x) 100%, 0 100%);
}

@supports (clip-path: shape(from 0 0, line to 10px 0, close)) {
	.ayh-page-hero::after {
		--ayh-rk: calc(var(--ayh-sr) * 0.4245);
		clip-path: shape(
			from 0 0,
			line to calc(var(--ayh-cut-x) + var(--ayh-cut-h) * 0.4245 - var(--ayh-sr)) 0,
			curve to calc(var(--ayh-cut-x) + var(--ayh-cut-h) * 0.4245 - var(--ayh-rk)) var(--ayh-sr) with calc(var(--ayh-cut-x) + var(--ayh-cut-h) * 0.4245) 0,
			line to calc(var(--ayh-cut-x) + var(--ayh-rk)) calc(100% - var(--ayh-sr)),
			curve to calc(var(--ayh-cut-x) + var(--ayh-sr)) 100% with var(--ayh-cut-x) 100%,
			line to 0 100%,
			close
		);
	}
}

@media (min-width: 64rem) {
	.ayh-page-hero {
		--ayh-cut-h: 4.5rem;
		--ayh-cut-x: 56%;
		--ayh-sr: 1.5rem;
		padding-block-start: 6rem;
	}
}

.ayh-page-hero__inner {
	position: relative;
	z-index: 2;
	inline-size: 100%;
}

.ayh-page-hero__inner > * {
	max-inline-size: 46rem;
}

.ayh-page-hero h1 {
	margin-block: 0 1rem;
}

.ayh-page-hero .ayh-lead {
	margin-block: 0;
	color: color-mix(in srgb, var(--wp--preset--color--ivory) 78%, transparent);
	max-inline-size: 36rem;
}

/* The leaning mark, enlarged and cropped, with a soft brass light: the same set piece as the closing section */
.ayh-page-hero__glow {
	position: absolute;
	z-index: -2;
	inset-inline-end: -10%;
	inset-block-start: 5%;
	inline-size: min(60rem, 110vw);
	aspect-ratio: 1;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--brass-light) 24%, transparent) 0%, transparent 62%);
	pointer-events: none;
}

.ayh-page-hero__mark {
	position: absolute;
	z-index: -1;
	inset-inline-end: -6%;
	inset-block-end: -18%;
	block-size: min(120%, 58rem);
	inline-size: auto;
	aspect-ratio: 1;
	pointer-events: none;
}

.ayh-page-hero__bar--ink {
	fill: var(--wp--preset--color--ivory);
	fill-opacity: 0.07;
}

.ayh-page-hero__bar--brass {
	fill: var(--wp--preset--color--brass);
	fill-opacity: 0.55;
}

/* ---------------------------------------------------------------- Sections */

.ayh-split {
	display: grid;
	gap: 1.5rem 4rem;
	align-items: start;
}

@media (min-width: 64rem) {
	.ayh-split {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	}
}

.ayh-split__title {
	position: relative;
	margin: 0;
	padding-block-start: 1.25rem;
}

.ayh-split__title::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0.5rem;
	inline-size: 4rem;
	block-size: 2px;
	background: var(--wp--preset--color--brass);
	border-radius: 999px;
	transform: skewX(var(--ayh-skew-el));
}

.ayh-split__body > * {
	margin-block: 0;
}

/* What happens in the meeting: four lines, each with a small leaning brass bar */
.ayh-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ayh-lines li {
	position: relative;
	padding-block: 1.1rem;
	padding-inline-start: 2rem;
	font-size: var(--wp--preset--font-size--large);
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.ayh-lines li:first-child {
	padding-block-start: 0;
}

.ayh-lines li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0.5rem;
	inset-block-start: 1.45rem;
	inline-size: 3px;
	block-size: 1.2rem;
	background: var(--wp--preset--color--brass);
	border-radius: 999px;
	transform: skewX(var(--ayh-skew-el));
}

.ayh-lines li:first-child::before {
	inset-block-start: 0.35rem;
}

.ayh-note {
	margin-block-start: 1.25rem !important;
	max-inline-size: 36rem;
	color: var(--wp--preset--color--stone);
}

/* The header already sits flush on the hero: no block gap between them */
.ayh-page {
	margin-block-start: 0;
}
