/*
 * Design «Обкладинка»: the logobook's cover and its white pages, set as a
 * magazine. The front page opens on the cover of p. 1 — darkened portraits,
 * the white full logo at the bottom centre — and goes on as an issue: the
 * letter with the gold bar of p. 2, the works first as a lookbook, the
 * services as spreads «photo / bar / list», the courses on black (the black
 * card of p. 10), the studio on beige (pp. 5, 7) and the footer's ribbon of
 * p. 11 — the white wordmark across the whole width of black. Built on
 * designs/_base (the contract — site/CLAUDE.md, «Дизайни»): these rules are
 * outside the base's layer, so they win over it.
 *
 * Colour: white is the ground; paper (#faf7f2) the services; black the
 * courses, the inner pages' small covers and the footer; beige the studio and
 * the booking block. Gold is only the vertical bar and never text or a
 * button's outline. Photos keep their colours: they are darkened only where
 * the logo and text lie on them — the cover's header band and its lower part
 * (black at 60 %, so white text keeps 5.7:1 even over a white pixel).
 */

:root {
	--c-paper: #faf7f2;
	--c-shade: 0.6;
	--c-bar: 4px;
	--c-ease: cubic-bezier(0.2, 0.7, 0.1, 1);

	--sr-bg: var(--sr-white);
	--sr-surface: var(--sr-beige);
	--sr-text: var(--sr-black);
	--sr-muted: color-mix(in srgb, var(--sr-text) 68%, transparent);
	--sr-line: color-mix(in srgb, var(--sr-text) 15%, transparent);
	--sr-button-bg: var(--sr-black);
	--sr-button-text: var(--sr-white);
	--sr-header-bg: var(--sr-white);
	--sr-header-text: var(--sr-black);
	--sr-size-title: clamp(2.125rem, 1.375rem + 3.8vw, 5rem);
	--sr-size-h2: clamp(2.125rem, 1.5rem + 2.6vw, 4rem);
	--sr-size-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	--sr-section: clamp(2.75rem, 1.25rem + 6.5vw, 6rem);
}

@media (min-width: 1024px) {
	:root {
		--c-bar: 6px;
	}
}

/* The editor's palette (theme.json) speaks in the design's colours. */
.design-c {
	--wp--preset--color--base: var(--sr-white);
	--wp--preset--color--contrast: var(--sr-black);
}

/*
 * The black grounds: the courses, the small covers of inner pages and the
 * footer. Muted text and lines are mixed again from the new text colour;
 * the main button turns white.
 */
.sr-courses,
.c-minicover,
.sr-footer,
.sr-lightbox {
	--sr-bg: var(--sr-black);
	--sr-surface: #161616;
	--sr-text: var(--sr-white);
	--sr-muted: color-mix(in srgb, var(--sr-text) 72%, transparent);
	--sr-line: color-mix(in srgb, var(--sr-text) 24%, transparent);
	--sr-button-bg: var(--sr-white);
	--sr-button-text: var(--sr-black);
	background: var(--sr-bg);
	color: var(--sr-text);
}

/* Type: the serif's light weight only from 32 px and only on a light ground. */
h1,
h2,
h3 {
	letter-spacing: -0.005em;
}

.sr-eyebrow {
	margin-bottom: 1rem;
	font-size: 0.875rem;
	letter-spacing: 0.16em;
}

.sr-head {
	margin-bottom: clamp(1.5rem, 1rem + 2vw, 3.5rem);
}

.sr-head__lead {
	margin-top: 1rem;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.sr-section {
	border-top: 0;
}

.sr-more {
	margin-top: clamp(1.5rem, 0.75rem + 3vw, 3rem);
}

/* The gold bar of p. 2: a vertical stroke beside a block of text. */
.c-bar {
	position: relative;
	padding-left: calc(var(--c-bar) + clamp(1rem, 0.6rem + 1.6vw, 2.25rem));
}

.c-bar::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--c-bar);
	background: var(--sr-gold);
}

/* Hover: a button darkens a little; an outlined one fills with its colour. */
@media (hover: hover) {
	.sr-button:hover {
		background: color-mix(in srgb, var(--sr-button-bg) 80%, var(--sr-button-text));
	}

	.sr-button--soft:hover {
		border-color: var(--sr-text);
		background: var(--sr-text);
		color: var(--sr-bg);
	}

	.sr-chip:not([aria-current="page"], [aria-pressed="true"]):hover {
		background: color-mix(in srgb, var(--sr-text) 8%, var(--sr-bg));
	}

	.sr-link:hover,
	.sr-course__name a:hover,
	.sr-service__name a:hover {
		text-decoration: underline;
	}
}

/* The phone's booking bar is black: a line keeps its edge over a black section. */
.sr-bookbar {
	box-shadow: 0 -1px 0 color-mix(in srgb, var(--sr-white) 24%, transparent);
}

/*
 * Focus: the ground's text colour, not the element's — a white button on
 * black keeps a white ring, a black chip on white a black one.
 */
:focus-visible {
	outline-color: var(--sr-text);
}

.sr-work__link:focus-visible {
	outline-offset: 4px;
}

.sr-bookbar__button:focus-visible {
	outline-color: var(--sr-white);
	outline-offset: -4px;
}

/* Header: white with the full logo; once scrolled, the wordmark. */
.sr-header {
	transition: transform var(--sr-fast) ease-out, background-color var(--sr-fast) ease-out, color var(--sr-fast) ease-out;
}

.sr-nav__link {
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* From 1280 px the logo stands in the middle, the menu left, booking right. */
@media (min-width: 1280px) {
	.sr-header__bar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 0 2rem;
	}

	.sr-logo {
		grid-area: 1 / 2;
		margin: 0;
	}

	.sr-nav {
		grid-area: 1 / 1;
	}

	.sr-nav__list {
		gap: 0 1.5rem;
	}

	.sr-header__book {
		grid-area: 1 / 3;
		justify-self: end;
	}
}

/*
 * The front page: the cover already carries the full logo, so the header
 * over it has none — the menu in white on the photos, booking filled white so
 * it leads — and shows the wordmark once the page is scrolled (brand.md,
 * rule 2). Without JS the header stays white above the cover, still without
 * a mark.
 */
.home .sr-logo__full {
	display: none;
}

html:not(.is-scrolled) .home .sr-logo {
	visibility: hidden;
}

.js .home .c-cover {
	margin-top: calc(-1 * var(--sr-header-h));
}

.js:not(.is-scrolled) .home .sr-header {
	--sr-text: var(--sr-white);
	--sr-button-bg: var(--sr-white);
	--sr-button-text: var(--sr-black);
	background: transparent;
	box-shadow: none;
	color: var(--sr-white);
}

/*
 * The cover (p. 1): up to three photos of «Фото першого екрана» side by side,
 * each at most 640 px wide (black beside them on a wider screen); a phone
 * shows the middle one — the first in the markup — a tablet it and the left.
 * The logo, the title, the line, booking and the jumps stand at the bottom
 * centre. The faces stay clear: black lies only under the header and under
 * the text, fading in above the logo. Nothing moves on load.
 */
.c-cover {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 84svh;
	min-height: 34rem;
	max-height: 60rem;
	background: var(--sr-black);
	color: var(--sr-white);
	--sr-text: var(--sr-white);
	--sr-button-bg: var(--sr-white);
	--sr-button-text: var(--sr-black);
}

.c-cover__photos {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: grid;
	grid-auto-columns: minmax(0, 40rem);
	grid-auto-flow: column;
	justify-content: center;
}

/* The header's band: as dark as the text's shade under the menu, easing out below it. */
.js .c-cover__photos::after {
	--c-band: calc(var(--sr-header-h) - 4px);
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		rgb(0 0 0 / var(--c-shade)) var(--c-band),
		rgb(0 0 0 / calc(var(--c-shade) * 0.6)) calc(var(--c-band) + 1.25rem),
		rgb(0 0 0 / calc(var(--c-shade) * 0.25)) calc(var(--c-band) + 3rem),
		rgb(0 0 0 / 0) calc(var(--c-band) + 5.5rem)
	);
}

.c-cover__photo {
	min-width: 0;
	margin: 0;
	overflow: hidden;
}

.c-cover__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.c-cover__photo:nth-child(n + 2) {
	display: none;
}

/*
 * The text's shade: full under the text, and above the logo a fade of
 * --c-fade that eases in, so no edge crosses the photos.
 */
.c-cover__inner {
	--c-fade: clamp(5rem, 3rem + 6vw, 9rem);
	padding-top: var(--c-fade);
	background: linear-gradient(
		rgb(0 0 0 / 0),
		rgb(0 0 0 / calc(var(--c-shade) * 0.08)) calc(var(--c-fade) * 0.3),
		rgb(0 0 0 / calc(var(--c-shade) * 0.3)) calc(var(--c-fade) * 0.55),
		rgb(0 0 0 / calc(var(--c-shade) * 0.65)) calc(var(--c-fade) * 0.8),
		rgb(0 0 0 / var(--c-shade)) var(--c-fade)
	);
}

.c-cover__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-block: 0 clamp(1rem, 3svh, 2rem);
	text-align: center;
}

.c-cover__logo {
	margin: 0;
	line-height: 0;
}

.c-cover__logo .sr-mark {
	width: clamp(9.5rem, 5.5rem + 10.5vw, 15rem);
	height: auto;
}

/* The logo alone as the h1 (no title) keeps the cover's size of p. 1. */
h1.c-cover__logo .sr-mark {
	width: clamp(13.75rem, 9rem + 12vw, 18.75rem);
}

.c-cover__title {
	max-width: 22ch;
	margin: clamp(1rem, 0.75rem + 1vw, 1.5rem) 0 0;
	font-size: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
	line-height: 1.08;
}

.c-cover__line {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.c-cover__action {
	align-self: stretch;
	margin: 1.25rem 0 0;
}

.c-cover__action .sr-button {
	width: 100%;
}

.c-cover__jumps {
	justify-content: center;
	gap: 0 1.5rem;
	margin-top: 0.25rem;
}

.c-cover__jumps a {
	justify-content: center;
	min-width: 44px;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: inherit;
	text-decoration: underline;
}

/*
 * The cover is as tall as the logo, the line and booking need to stay below
 * the faces: most of a tablet's height, a desktop's whole screen.
 */
@media (min-width: 768px) {
	.c-cover {
		height: min(80svh, 110vw);
	}

	.c-cover__line {
		margin-top: 1rem;
	}

	.c-cover__photo:nth-child(2) {
		display: block;
		order: -1;
	}

	.c-cover__action {
		align-self: center;
	}

	.c-cover__action .sr-button {
		width: auto;
		min-width: 16rem;
	}
}

@media (min-width: 1024px) {
	.c-cover {
		height: 100svh;
	}

	.c-cover__photo:nth-child(3) {
		display: block;
	}

	/* The header's menu is in sight: the jumps would repeat it. */
	.c-cover__jumps {
		display: none;
	}
}

/*
 * The letter (p. 2): the subtitle of «Налаштування студії» in the serif on
 * white, the bar beside it. The works under it bring their own space.
 */
.c-letter {
	padding-top: var(--sr-section);
}

.c-letter__lead {
	max-width: 40rem;
	margin: 0;
	font-family: var(--sr-font-heading);
	font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem);
	line-height: 1.35;
}

@media (min-width: 1024px) {
	/* One column of the 12 in. */
	.c-letter__inner {
		margin-left: calc((100% - 11 * var(--sr-gap)) / 12 + var(--sr-gap));
	}
}

/*
 * Works. A caption under each photo: the title in the serif, the category
 * under it. The portfolio is an even grid (the filter hides any of them); a
 * lookbook sets the scale by place from 768 px — a big photo beside a small
 * one, the pair mirrored, then a row. A service's page («--pair», up to six)
 * keeps the rows full from 1024 px: one pair, then a row of three or four,
 * and three works are one row, a big photo beside two small. A phone keeps
 * two even columns: a small photo there would be too small to show the work.
 */
.sr-work-grid {
	gap: 1.5rem 0.75rem;
}

.c-work {
	margin: 0;
}

.sr-work__link {
	background: var(--sr-nude-1);
}

.c-work__caption {
	display: grid;
	gap: 0.125rem;
	margin-top: 0.75rem;
}

.c-work__title {
	font-family: var(--sr-font-heading);
	font-size: 1rem;
	line-height: 1.3;
}

.c-work__category {
	color: var(--sr-muted);
	font-size: 0.875rem;
}

@media (min-width: 768px) {
	.c-work__title {
		font-size: 1.125rem;
	}

	.c-work__category {
		font-size: 0.9375rem;
	}
}

@media (min-width: 1024px) {
	.sr-work-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3.5rem var(--sr-gap);
	}

	/* The portfolio's middle column stands lower, as on a magazine's page. */
	.sr-work-grid:not(.c-lookbook__list) {
		padding-bottom: 5rem;
	}

	.sr-work-grid:not(.c-lookbook__list) > :nth-child(3n + 2 of .sr-work:not([hidden])) {
		translate: 0 5rem;
	}
}

/* A phone shows six of them (the UX budget: the front page within 8 screens). */
@media (max-width: 767.98px) {
	.c-lookbook__list > :nth-child(n + 7) {
		display: none;
	}
}

@media (min-width: 768px) {
	.c-lookbook__list {
		grid-template-columns: repeat(8, minmax(0, 1fr));
		align-items: end;
	}

	.c-lookbook__list > .sr-work {
		grid-column: span 4;
	}

	.c-lookbook__list > :nth-child(8n + 1) {
		grid-column: 1 / span 5;
	}

	.c-lookbook__list > :nth-child(8n + 2) {
		grid-column: 6 / span 3;
	}

	.c-lookbook__list > :nth-child(8n + 3) {
		grid-column: 1 / span 3;
	}

	.c-lookbook__list > :nth-child(8n + 4) {
		grid-column: 4 / span 5;
	}
}

@media (min-width: 1024px) {
	.c-lookbook__list {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		row-gap: clamp(2.5rem, 4vw, 4rem);
	}

	.c-lookbook__list > .sr-work {
		grid-column: span 3;
	}

	.c-lookbook__list > :nth-child(8n + 1) {
		grid-column: 1 / span 5;
	}

	.c-lookbook__list > :nth-child(8n + 2) {
		grid-column: 8 / span 4;
	}

	.c-lookbook__list > :nth-child(8n + 3) {
		grid-column: 2 / span 4;
	}

	.c-lookbook__list > :nth-child(8n + 4) {
		grid-column: 8 / span 5;
	}

	.c-lookbook__list--pair:has(> :nth-child(5)) > :nth-child(n + 3) {
		grid-column: span 3;
	}

	.c-lookbook__list--pair:has(> :nth-child(5):last-child) > :nth-child(n + 3) {
		grid-column: span 4;
	}

	.c-lookbook__list--pair:has(> :nth-child(3):last-child) > :nth-child(1) {
		grid-column: 1 / span 6;
	}

	.c-lookbook__list--pair:has(> :nth-child(3):last-child) > :nth-child(2) {
		grid-column: 7 / span 3;
	}

	.c-lookbook__list--pair:has(> :nth-child(3):last-child) > :nth-child(3) {
		grid-column: 10 / span 3;
	}
}

/*
 * Services on paper, as spreads: the photo, the gold bar, the list. On a
 * phone and a tablet the photo stands beside the group's name, the bar
 * between them as tall as the photo, and the rows run under both; from
 * 1024 px the photo holds its column while the list goes on beside it.
 * Every other spread of the services page is mirrored.
 */
.sr-services,
.sr-page--services {
	--sr-bg: var(--c-paper);
	background: var(--c-paper);
}

.c-spread {
	--c-photo: 0.42;
	display: flow-root;
}

.c-spread__photo {
	float: left;
	width: calc(var(--c-photo) * 100%);
	margin: 0 1rem 1.5rem 0;
}

.c-spread__photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.c-spread > .c-spread__photo + .c-spread__list > .sr-group__head,
.c-spread__photo + .c-spread__list > .sr-group:first-child .sr-group__head {
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: flex-start;
	min-height: calc((100vw - 2 * var(--sr-gutter)) * var(--c-photo) * 1.25);
	padding-left: clamp(1rem, 3vw, 1.5rem);
	border-left: var(--c-bar) solid var(--sr-gold);
}

.c-spread .sr-group__list {
	clear: left;
}

.c-spread__list > .sr-group:first-child {
	margin-top: 0;
}

.sr-group {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.sr-group__title {
	font-size: clamp(1.875rem, 1.4rem + 1.6vw, 3rem);
}

.sr-group__list {
	margin-top: 1.25rem;
}

.sr-service {
	padding-block: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem);
}

.sr-service__name {
	font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
}

.sr-service__name a {
	text-decoration: none;
}

.sr-price {
	font-size: 1.0625rem;
}

@media (min-width: 768px) {
	.c-spread {
		--c-photo: 0.34;
	}
}

@media (min-width: 1024px) {
	.c-spread {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: start;
		column-gap: var(--sr-gap);
	}

	.c-spread__photo {
		position: sticky;
		top: calc(var(--sr-header-h) + 2rem);
		grid-area: 1 / 1 / auto / span 5;
		width: auto;
		margin: 0;
	}

	.c-spread__list {
		position: relative;
		grid-area: 1 / 7 / auto / span 6;
		padding-left: calc(var(--c-bar) + 2.5rem);
	}

	.c-spread__list::before {
		content: "";
		position: absolute;
		inset: 0 auto 0 0;
		width: var(--c-bar);
		background: var(--sr-gold);
	}

	.c-spread > .c-spread__photo + .c-spread__list > .sr-group__head,
	.c-spread__photo + .c-spread__list > .sr-group:first-child .sr-group__head {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: baseline;
		min-height: 0;
		padding-left: 0;
		border-left: 0;
	}

	.c-spread--text .c-spread__list {
		grid-column: 1 / -1;
	}

	/* Every other spread with a photo is mirrored; one without a photo stays whole. */
	.c-spread:nth-child(2n of .c-spread:not(.c-spread--text)) .c-spread__photo {
		grid-column: 8 / span 5;
	}

	.c-spread:nth-child(2n of .c-spread:not(.c-spread--text)) .c-spread__list {
		grid-column: 1 / span 6;
		padding-right: calc(var(--c-bar) + 2.5rem);
		padding-left: 0;
	}

	.c-spread:nth-child(2n of .c-spread:not(.c-spread--text)) .c-spread__list::before {
		inset: 0 0 0 auto;
	}
}

/* Reviews: no cards — a line over each quote, the quote in the serif. */
.sr-review-list {
	gap: 2rem var(--sr-gap);
}

.sr-review {
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--sr-text);
	border-radius: 0;
	background: none;
}

.sr-review__text {
	font-family: var(--sr-font-heading);
	font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.625rem);
	line-height: 1.35;
}

.sr-review__by {
	margin-top: 1rem;
}

/*
 * Courses: a row each, the photo beside the name set large. The front page
 * shows the names without photos (course-card.php).
 */
.sr-course-list {
	gap: 0;
}

.sr-course-list > li {
	border-top: 1px solid var(--sr-line);
}

.sr-course-list > li:last-child {
	border-bottom: 1px solid var(--sr-line);
}

.sr-course {
	grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
	align-items: start;
	gap: 1rem;
	padding: 1.5rem 0;
	border: 0;
}

.sr-course.c-course--text {
	grid-template-columns: minmax(0, 1fr);
}

.sr-course__img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.sr-course__name {
	font-size: clamp(1.75rem, 0.9rem + 3.4vw, 4.5rem);
	line-height: 1.05;
}

.sr-course__name a {
	text-decoration: none;
}

.sr-course__desc {
	margin-top: 0.75rem;
}

.sr-course .sr-facts {
	margin-top: 0.75rem;
	color: var(--sr-muted);
}

.sr-course .sr-price {
	color: var(--sr-text);
}

/* On a phone the photo stands beside the name and facts; the actions run under both. */
@media (max-width: 767.98px) {
	.sr-course {
		grid-template-rows: auto auto 1fr auto;
		grid-template-areas:
			"img name"
			"img desc"
			"img facts"
			"actions actions";
		row-gap: 0;
	}

	.sr-course__text {
		display: contents;
	}

	.sr-course__img {
		grid-area: img;
	}

	.sr-course__name {
		grid-area: name;
	}

	.sr-course__desc {
		grid-area: desc;
		margin-top: 0.5rem;
	}

	.sr-course .sr-facts {
		grid-area: facts;
		margin-top: 0.5rem;
	}

	.sr-course__actions {
		grid-area: actions;
		margin-top: 1rem;
	}

	.c-course--text {
		grid-template-areas:
			"name"
			"desc"
			"facts"
			"actions";
	}
}

@media (min-width: 768px) {
	.sr-course-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.sr-course {
		grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
		gap: 2rem;
		padding: 2.5rem 0;
	}
}

@media (min-width: 1024px) {
	.sr-course {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: center;
		gap: var(--sr-gap);
	}

	.sr-course__img {
		grid-column: 1 / span 3;
	}

	.sr-course__text {
		grid-column: 5 / span 8;
	}

	.c-course--text .sr-course__text {
		grid-column: 1 / -1;
	}

	/* On the front page two names to a row, as a contents page; each column keeps its rules. */
	.sr-courses .sr-course-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(2rem, 4vw, 4rem);
	}

	.sr-courses .sr-course-list > li:nth-child(odd):nth-last-child(2) {
		border-bottom: 1px solid var(--sr-line);
	}

	.sr-courses .sr-course {
		align-content: start;
	}

	.sr-courses .sr-course__name {
		font-size: clamp(2.25rem, 1rem + 2.4vw, 3.25rem);
	}
}

/* About the studio on beige, the black emblem beside (pp. 5, 7). */
.sr-about {
	background: var(--sr-beige);
}

.sr-about .sr-mark--emblem {
	height: clamp(5.5rem, 2rem + 13vw, 15rem);
}

@media (min-width: 768px) {
	.sr-about__inner {
		gap: 4rem;
	}
}

/* Contacts and hours. */
.sr-contact__address {
	font-family: var(--sr-font-heading);
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
	line-height: 1.25;
}

.sr-contact__title {
	color: var(--sr-muted);
	font-size: 0.875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* The booking block that closes an inner page, on beige. */
.sr-book {
	background: var(--sr-beige);
}

/*
 * Inner pages. Where a visitor chooses and books — the services, a service,
 * the courses, a course, a lost address — the page opens on a small cover
 * in black with the title beside the gold bar, and a service's or course's
 * photo beside it, not darkened (no text lies on it). Reading pages — the
 * portfolio, the studio, the contacts, the policy — open white, the title
 * beside the bar.
 */
.sr-page {
	padding-top: 0;
}

.c-minicover {
	padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.c-minicover__inner {
	display: grid;
	gap: 2rem;
}

.c-minicover .sr-page__title {
	margin: 0;
}

.c-minicover .sr-back + .sr-page__title {
	margin-top: 0.5rem;
}

.c-minicover .sr-page__lead,
.c-minicover .sr-single__lead {
	max-width: 36rem;
	margin: 1rem 0 0;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.c-minicover .sr-facts {
	margin-top: 1rem;
	font-size: 1.125rem;
}

.c-minicover .sr-actions {
	margin-top: 2rem;
}

.c-minicover .sr-single__action {
	margin: 1.75rem 0 0;
}

.c-minicover__photo {
	margin: 0;
}

.c-minicover__photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.c-minicover + .sr-container,
.c-minicover + .sr-single {
	padding-top: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 768px) {
	.c-minicover--photo .c-minicover__inner {
		grid-template-columns: minmax(0, 1fr) 40%;
		align-items: end;
		gap: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.c-minicover--photo .c-minicover__inner {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: var(--sr-gap);
	}

	.c-minicover__text {
		grid-column: 1 / span 7;
	}

	.c-minicover__photo {
		grid-column: 9 / span 4;
	}
}

.c-pagehead {
	margin: clamp(2rem, 1rem + 4vw, 4.5rem) 0 clamp(1.75rem, 1rem + 2.5vw, 3rem);
}

.c-pagehead .sr-page__title {
	margin: 0;
	font-weight: 300;
}

.c-pagehead .sr-page__lead {
	margin: 1rem 0 0;
}

.sr-single > .c-pagehead {
	max-width: none;
}

.sr-page--404 .sr-actions {
	margin-bottom: clamp(2rem, 6vw, 5rem);
}

.sr-page--text .sr-single > :not(.c-pagehead) {
	max-width: 42.5rem;
}

.sr-content {
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
	line-height: 1.65;
}

.sr-content h2,
.sr-program h2 {
	margin: 2.5rem 0 0.75rem;
	font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2.25rem);
}

.sr-program {
	margin-bottom: 2.5rem;
}

.sr-program h2 {
	margin-top: 0;
}

.sr-program__list {
	padding-left: 1.5rem;
}

/* Footer: black, its parts in columns, then the white wordmark across the whole width (p. 11). */
.sr-footer {
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 1.5rem;
}

.sr-footer__top,
.sr-footer--thin .sr-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

.sr-footer__brand {
	order: 1;
	grid-column: 1 / -1;
	margin-top: clamp(1rem, 4vw, 3.5rem);
}

.sr-footer__brand .sr-mark {
	width: 100%;
	height: auto;
}

.sr-footer__title {
	margin-bottom: 0.5rem;
	color: var(--sr-muted);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sr-footer a {
	text-decoration: none;
}

@media (hover: hover) {
	.sr-footer a:hover {
		text-decoration: underline;
	}
}

.sr-footer__bottom {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
	color: var(--sr-muted);
}

@media (min-width: 768px) {
	.sr-footer__top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sr-footer--thin .sr-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.sr-footer--thin .sr-footer__nav ul {
		gap: 0 2rem;
	}
}

/*
 * The one-time reveal: a block rises into place once it comes into view
 * (500 ms, once). Only with html.is-motion — set by site.js for a visitor
 * who has not asked for less motion — so without JS everything is shown.
 */
.is-motion [data-reveal] {
	transition: opacity 500ms var(--c-ease), transform 500ms var(--c-ease);
}

.is-motion [data-reveal]:not(.is-revealed) {
	opacity: 0;
	transform: translateY(1.5rem);
}
