/*
 * Design «Ательє»: morning light in the studio — the brand's beige, ivory and
 * white taking turns section by section, the black logo on beige (logobook
 * p. 7 and the avatars), cards with rounded corners (p. 4), the emblem in a
 * beige circle with a white ring and a soft shadow (moodboard, p. 6), photos
 * flat and square-cornered, one black strip of the wordmark (p. 11). Gold is
 * only ever a line.
 *
 * Built on designs/_base (site/CLAUDE.md, «Контракт основи для дизайнів»):
 * the role variables below, the parts of this folder for the other
 * compositions, and unlayered rules here over the base's `@layer base`.
 */

:root {
	/* Ivory: the bouclé of the salon's interior (hub/Systems/brand.md). */
	--a-ivory: #fbf7f1;
	/* The soft shadow of the emblem's circle on p. 6, the design's only shadow. */
	--a-shadow: 0 12px 32px rgb(0 0 0 / 8%);
	--a-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--a-label: 0.875rem;

	--sr-bg: var(--a-ivory);
	--sr-surface: var(--sr-beige);
	--sr-text: var(--sr-black);
	--sr-button-bg: var(--sr-black);
	--sr-button-text: var(--sr-beige);
	--sr-header-bg: var(--sr-beige);
	--sr-header-text: var(--sr-black);
	--sr-radius: 12px;

	--sr-size-h1: clamp(2.5rem, 1.25rem + 5.2vw, 6rem);
	--sr-size-title: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
	--sr-size-h2: clamp(2rem, 1.4rem + 2.2vw, 3.5rem);
	--sr-size-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	--sr-section: clamp(3rem, 1rem + 6vw, 7.5rem);
}

@media (min-width: 1024px) {
	:root {
		--sr-header-h: 80px;
	}
}

/* From 1280 the header grows to give the 72 px logo room above and below. */
@media (min-width: 1280px) {
	:root {
		--sr-header-h: 96px;
	}
}

/* Type. */
h1,
h2,
h3,
h4 {
	letter-spacing: -0.01em;
}

.sr-eyebrow {
	margin: 0 0 1rem;
	color: var(--sr-muted);
	font-size: var(--a-label);
	font-weight: 600;
	letter-spacing: 0.16em;
}

.sr-head {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sr-head__title {
	line-height: 1.08;
}

.sr-head__lead,
.sr-page__lead {
	max-width: 36rem;
	margin: 1.25rem 0 0;
	color: var(--sr-muted);
	font-size: var(--a-lead);
	line-height: 1.5;
}

a {
	text-underline-offset: 0.3em;
}

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

/* Buttons: black with beige text; the soft one is a hairline outline. */
.sr-button {
	min-height: 48px;
	padding: 0.25rem 1.5rem;
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.sr-button:hover {
	background: var(--sr-graphite);
}

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

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

.sr-button--big {
	min-height: 56px;
	padding-inline: 2rem;
}

@media (min-width: 768px) {
	.sr-button--big {
		min-height: 52px;
	}
}

.sr-link {
	text-decoration: underline 1px;
	text-underline-offset: 0.4em;
}

.sr-link:hover {
	text-decoration-thickness: 2px;
}

/* Chips are text tabs: an underline marks the current one. */
.sr-chips,
.sr-jumps {
	gap: 0 1.75rem;
}

.sr-chip,
.sr-jumps a {
	min-width: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-weight: 500;
	text-decoration: underline 1px transparent;
	text-underline-offset: 0.55em;
	transition: text-decoration-color var(--sr-fast) ease-out;
}

.sr-chip:hover,
.sr-jumps a {
	text-decoration-color: currentColor;
}

.sr-chip[aria-current="page"],
.sr-chip[aria-pressed="true"] {
	background: none;
	color: var(--sr-text);
	font-weight: 700;
	text-decoration: underline 2px;
}

.sr-sticky {
	box-shadow: inset 0 -1px 0 var(--sr-line);
}

/*
 * Header: the full logo in the middle, as on a sign. A phone and a tablet:
 * «Меню» on the left, «Записатися» on the right; from 1024 the logo moves to
 * the left and the menu's links stand in the middle; from 1280, wide enough
 * for the links on one side, the links take the left and the logo the
 * middle again. Without JS below 1024 the links wrap under it.
 */
.sr-header {
	box-shadow: none;
}

.is-scrolled .sr-header {
	box-shadow: inset 0 -1px 0 var(--sr-line);
}

.sr-header__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-areas:
		"toggle logo book"
		"nav nav nav";
	align-items: center;
	gap: 0 0.75rem;
}

.sr-logo {
	grid-area: logo;
	justify-items: center;
	margin: 0;
}

.sr-logo__full {
	height: 40px;
}

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

.sr-header__book {
	grid-area: book;
	justify-self: end;
	min-height: 44px;
	padding-inline: 1rem;
}

.sr-menu-toggle {
	grid-area: toggle;
	justify-self: start;
	padding: 0 0.25rem;
	border: 0;
	font-size: var(--a-label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sr-nav__link {
	font-weight: 500;
	text-decoration: underline 1px transparent;
	text-underline-offset: 0.5em;
	transition: text-decoration-color var(--sr-fast) ease-out;
}

.sr-nav__link:hover,
.sr-nav__link[aria-current="page"] {
	text-decoration: underline 1px currentColor;
}

@media (min-width: 768px) {
	.sr-logo__full {
		height: 56px;
	}

	.sr-header__book {
		padding-inline: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.sr-header__bar {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "logo nav book";
		gap: 0 2rem;
	}

	.sr-nav {
		justify-self: center;
	}

	.sr-logo__full {
		height: 62px;
	}

	.sr-logo__compact {
		height: 1.375rem;
	}

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

@media (min-width: 1280px) {
	.sr-header__bar {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		grid-template-areas: "nav logo book";
	}

	.sr-nav {
		justify-self: start;
	}

	.sr-logo__full {
		height: 72px;
	}
}

/* The full-screen menu: beige, the links in the heading face between hairlines. */
@media (max-width: 1023.98px) {
	.js .sr-menu {
		background: var(--sr-beige);
	}
}

.sr-menu__nav {
	padding-block: 1rem 2rem;
}

.sr-menu__list li {
	border-bottom: 1px solid var(--sr-line);
}

.sr-menu__link {
	min-height: 64px;
	font-size: 2rem;
}

/* The phone's booking bar: the black button, its focus ring drawn inside. */
.sr-bookbar__button:focus-visible {
	outline-color: var(--sr-beige);
	outline-offset: -6px;
}

/* Sections take turns: beige, ivory, white; no lines between them. */
.sr-section {
	border-top: 0;
}

.sr-hero,
.sr-works,
.sr-about,
.a-band,
.sr-footer {
	background: var(--sr-beige);
}

.sr-services,
.sr-courses {
	background: var(--a-ivory);
}

.sr-reviews,
.sr-contacts,
.sr-book {
	background: var(--sr-white);
}

.sr-more {
	margin-top: 2.5rem;
}

/*
 * First screen. A phone: the collage, then the text. From 768: the text on
 * the left, the collage on the right.
 */
.sr-hero {
	padding-block: 1.25rem 3rem;
}

.sr-hero__inner {
	gap: 1.75rem;
}

.sr-hero__title {
	font-weight: 350;
	letter-spacing: -0.015em;
	line-height: 1.02;
}

.sr-hero__lead {
	max-width: 30rem;
	margin-top: 1.25rem;
	font-size: var(--a-lead);
	line-height: 1.5;
}

.sr-hero__action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.75rem;
	margin: 1.75rem 0 0;
}

.sr-jumps {
	margin-top: 0.25rem;
}

.a-hero__today {
	margin: 0.75rem 0 0;
	color: var(--sr-muted);
	font-size: var(--sr-size-small);
}

/*
 * The collage (p. 6): photo A at the top right, B in front of its lower
 * left corner, the circle on A's lower right corner. Sizes are shares of the
 * box's width; the box keeps 100 : 96.
 */
.a-collage {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 100 / 96;
}

.sr-hero .a-collage {
	order: -1;
}

.a-collage__photo {
	position: absolute;
	top: 0;
	right: 0;
	width: 62%;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--sr-white);
}

.a-collage__photo + .a-collage__photo {
	top: auto;
	right: auto;
	bottom: 0;
	left: 0;
	width: 43.5%;
}

.a-collage__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.a-collage .a-seal {
	position: absolute;
	top: 64%;
	right: 3%;
	width: 26%;
}

/* One photo (a course): it stands in the middle, the circle on its corner. */
.a-collage[data-count="1"] .a-collage__photo {
	right: 12%;
	width: 70%;
	aspect-ratio: auto;
	height: 100%;
}

.a-collage[data-count="1"] .a-seal {
	top: auto;
	right: 0;
	bottom: 6%;
}

/* The emblem in a beige circle with a white ring (p. 6). */
.a-seal {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border: clamp(5px, 0.4vw + 3px, 10px) solid var(--sr-white);
	border-radius: 50%;
	background: var(--sr-beige);
	box-shadow: var(--a-shadow);
	color: var(--sr-black);
}

.a-seal .sr-mark {
	width: 64%;
	height: auto;
}

@media (min-width: 768px) {
	.sr-hero {
		padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
	}

	.sr-hero__inner {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		align-items: center;
		gap: var(--sr-gap);
	}

	.sr-hero .a-collage {
		order: 0;
	}

	.sr-hero__action .sr-button {
		min-width: 13rem;
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.sr-hero__title {
		font-size: 3.25rem;
	}
}

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

/* Services: the head on the left, the groups as white cards on the right. */
.a-split {
	display: grid;
	gap: 0.5rem;
}

@media (min-width: 1024px) {
	.a-split {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 4rem;
	}

	.a-split__head {
		position: sticky;
		top: calc(var(--sr-header-h) + 2.5rem);
		align-self: start;
	}
}

.sr-group {
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border-radius: var(--sr-radius);
	background: var(--sr-white);
}

.sr-group + .sr-group {
	margin-top: var(--sr-gap);
}

.sr-group__head {
	justify-content: space-between;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--sr-gold);
}

.sr-group__count {
	font-size: var(--a-label);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sr-group__list {
	margin: 0;
	border-top: 0;
}

.sr-group__list > li:last-child {
	border-bottom: 0;
}

.sr-service {
	padding-block: 1.5rem;
}

.sr-group__list > li:last-child .sr-service {
	padding-bottom: 0.25rem;
}

.sr-service__name a {
	text-decoration: underline 1px transparent;
	text-underline-offset: 0.25em;
	transition: text-decoration-color var(--sr-fast) ease-out;
}

.sr-service__name a:hover {
	text-decoration-color: currentColor;
}

.sr-service__desc {
	color: var(--sr-muted);
}

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

/* «Записатися →» of a row: only its word is underlined (the base's label). */
.sr-service__book {
	text-decoration: none;
}

.sr-service__book:hover .sr-service__book-label {
	text-decoration-thickness: 2px;
}

/* Cards side by side on the services page. */
.a-cards {
	display: grid;
	gap: var(--sr-gap);
	align-items: start;
}

.a-cards .sr-group + .sr-group {
	margin-top: 0;
}

@media (min-width: 1280px) {
	.a-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Works: prints in a white mat with square corners, the category under the photo. */
.sr-work-grid {
	--a-print-gap: clamp(0.625rem, 1.6vw, 1.5rem);
	gap: var(--a-print-gap);
}

.sr-work__link.a-print {
	display: block;
	padding: clamp(0.5rem, 1.1vw, 1rem) clamp(0.5rem, 1.1vw, 1rem) 0;
	overflow: visible;
	aspect-ratio: auto;
	border-radius: 0;
	background: var(--sr-white);
	text-decoration: none;
}

.a-print__photo {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--sr-beige);
}

.a-print__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.a-print__label {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--sr-muted);
	font-size: var(--a-label);
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

/*
 * The front page shows two full rows of works at every width — four on a
 * phone, six on a tablet, eight from 1024; «Усі роботи» leads to the rest.
 */
@media (max-width: 767.98px) {
	.sr-works .sr-work:nth-child(n + 5) {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.sr-works .sr-work:nth-child(n + 7) {
		display: none;
	}
}

@media (min-width: 768px) {
	.a-print__label {
		min-height: 3.25rem;
		letter-spacing: 0.14em;
	}
}

/*
 * A service's works (part «service-works»): up to six prints. A phone: two
 * to a row, an odd last one in the middle of its own. From 768: three to a
 * row; from 1024 the head and «Усі роботи» on the left, the prints on the
 * right, as the services on the front page.
 */
@media (max-width: 767.98px) {
	.sr-service-works .sr-work:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc((100% - var(--a-print-gap)) / 2);
	}
}

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

@media (min-width: 1024px) {
	.sr-service-works .sr-container {
		display: grid;
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		grid-template-rows: auto 1fr;
		column-gap: 4rem;
	}

	.sr-service-works .sr-head {
		grid-area: 1 / 1;
	}

	.sr-service-works .sr-work-grid {
		grid-area: 1 / 2 / span 2;
	}

	.sr-service-works .sr-more {
		grid-area: 2 / 1;
		align-self: start;
		margin-top: 0;
	}
}

.a-body > .sr-chips {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Reviews: beige cards on white, the words in the heading face. */
.sr-review-list {
	gap: var(--sr-gap);
}

.sr-review {
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	background: var(--sr-beige);
}

.sr-review__text p {
	font-family: var(--sr-font-heading);
	font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.625rem);
	line-height: 1.35;
}

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

.sr-review__by {
	flex-direction: column;
	margin-top: auto;
	padding-top: clamp(1rem, 2vw, 1.75rem);
	font-size: var(--sr-size-small);
}

/* Courses: beige cards, the photo on the left. */
.sr-course-list {
	gap: var(--sr-gap);
}

.sr-course {
	grid-template-columns: 7rem minmax(0, 1fr);
	grid-template-areas:
		"img text"
		"actions actions";
	gap: 1.25rem 1rem;
	padding: 1rem;
	border: 0;
	background: var(--sr-beige);
}

.sr-courses .sr-course,
.a-body .sr-course {
	background: var(--sr-beige);
}

.sr-course__img {
	grid-area: img;
	width: 100%;
	aspect-ratio: 4 / 5;
}

/*
 * A course without a photo: the text takes the photo's column too. Its rows
 * stay those of a card with a photo, so beside one the lines keep level.
 */
.sr-course.a-course--text {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	grid-template-areas:
		"text"
		"actions";
}

.sr-course__text {
	grid-area: text;
	align-self: center;
}

.sr-course__name {
	line-height: 1.12;
}

.sr-course__name a {
	text-decoration: underline 1px transparent;
	text-underline-offset: 0.25em;
}

.sr-course__name a:hover {
	text-decoration-color: currentColor;
}

.sr-course__desc {
	margin-top: 0.5rem;
	color: var(--sr-muted);
}

.sr-course .sr-facts {
	margin-top: 0.75rem;
}

.sr-course__actions {
	grid-area: actions;
	margin: 0;
	gap: 0.25rem 1.75rem;
}

.sr-course__actions .sr-button {
	flex: 1 1 auto;
}

@media (min-width: 600px) {
	.sr-course__actions .sr-button {
		flex: 0 0 auto;
	}
}

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

	.sr-course {
		grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
		grid-template-rows: 1fr auto;
		grid-template-areas:
			"img text"
			"img actions";
		gap: 1.5rem 2rem;
		padding: 1.25rem;
	}

	.sr-course__img {
		height: 100%;
		min-height: 100%;
		object-fit: cover;
	}

	.sr-course__text {
		align-self: end;
		padding-top: 1rem;
	}

	.sr-course__actions {
		padding-bottom: 0.75rem;
	}
}

/* Two cards side by side only where each keeps its photo at 4:5 or so. */
@media (min-width: 1280px) {
	.sr-course-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* About: the heading large, the emblem beige on beige beside it. */
.sr-about {
	overflow: hidden;
}

.sr-about__inner {
	position: relative;
}

.sr-about__body {
	position: relative;
	z-index: 1;
}

.sr-about__inner {
	gap: 2.5rem;
}

/* A narrow measure; the heading's dash keeps to its word (a no-break space in the string). */
.a-about__title {
	max-width: 11em;
	font-size: clamp(1.875rem, 1.4rem + 2vw, 3.25rem);
	font-weight: 350;
	line-height: 1.12;
}

.sr-about__text {
	max-width: 34rem;
	margin-top: 1.5rem;
	font-size: var(--a-lead);
	line-height: 1.55;
}

.a-watermark {
	width: 100%;
	height: auto;
	color: var(--sr-nude-2);
}

/* A phone: the emblem stands whole behind the heading's right corner. */
.a-about__side {
	position: absolute;
	top: 0;
	right: 0;
	width: 9rem;
}

@media (min-width: 768px) {
	.sr-about__inner {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--sr-gap);
	}

	.a-about__side {
		position: static;
		width: auto;
	}
}

/* The black strip of the wordmark (p. 11): still, decorative. */
.a-ribbon {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4.5rem;
	height: 3.5rem;
	overflow: hidden;
	background: var(--sr-black);
}

.a-ribbon__mark {
	flex: none;
	width: 6.75rem;
	height: 1.375rem;
	background: var(--sr-white);
	-webkit-mask: var(--a-wordmark) center / contain no-repeat;
	mask: var(--a-wordmark) center / contain no-repeat;
}

/* Contacts: the address and the actions as they are, the hours and the map in a card. */
.sr-contact {
	gap: 2.5rem var(--sr-gap);
}

.sr-contact__side {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--sr-radius);
	background: var(--sr-beige);
}

.a-body .sr-contact__side {
	background: var(--sr-white);
}

.sr-contact__address {
	font-family: var(--sr-font-heading);
	font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
	line-height: 1.15;
}

.sr-contact__actions {
	margin-top: 2rem;
}

.sr-contact__title {
	margin-bottom: 0.75rem;
	color: var(--sr-muted);
	font-size: var(--a-label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sr-hours {
	max-width: none;
}

.sr-hours__row {
	padding-block: 0.75rem;
}

.sr-hours__row:last-child {
	border-bottom: 0;
}

.sr-map {
	margin-top: 1.75rem;
}

.sr-map__facade {
	display: grid;
	justify-items: start;
	gap: 0.25rem;
	padding: 1.25rem;
	border: 1px solid var(--sr-line);
	border-radius: var(--sr-radius);
}

.sr-map__frame {
	border-radius: var(--sr-radius);
}

.sr-contact__how {
	margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 1024px) {
	.sr-contact {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

/* The booking block that closes an inner page. */
.sr-book .sr-container {
	display: grid;
	align-items: center;
}

.sr-book__text {
	margin-bottom: 2rem;
	color: var(--sr-muted);
	font-size: var(--a-lead);
}

@media (min-width: 1024px) {
	.sr-book .sr-container {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 4rem;
	}

	.sr-book .sr-container > :not(.sr-actions) {
		grid-column: 1;
	}

	.sr-book__text {
		margin-bottom: 0;
	}

	.sr-book .sr-actions {
		grid-column: 2;
		grid-row: 1 / span 3;
	}
}

/* Inner pages: the title on a beige band, the rest on ivory. */
.sr-page {
	padding-top: 0;
}

.a-band {
	padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
}

.a-band .sr-page__title {
	margin: 0;
}

.a-band .sr-back {
	margin: 0 0 0.75rem;
}

.a-band .sr-single__lead {
	max-width: 34rem;
	margin: 1.25rem 0 0;
	font-size: var(--a-lead);
	line-height: 1.5;
}

.a-band .sr-facts {
	margin: 1.5rem 0 0;
	font-size: 1.1875rem;
}

.a-band .sr-service__note {
	margin-top: 0.5rem;
}

.a-band .sr-single__action {
	margin: 2rem 0 0;
}

.a-band .sr-content {
	max-width: 34rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sr-gold);
}

.a-band__grid {
	display: grid;
	gap: 2.5rem;
}

.a-band__media {
	width: 100%;
	max-width: 28rem;
}

.a-band--tall {
	padding-block: clamp(3rem, 8vw, 7rem);
}

.sr-page--404 .a-band {
	background: var(--a-ivory);
}

.a-band .sr-actions {
	margin-top: 2rem;
}

.a-seal--large {
	width: min(100%, 12rem);
}

@media (min-width: 768px) {
	.a-seal--large {
		width: min(100%, 20rem);
		margin-inline: auto;
	}
}

.a-band__media.a-print {
	margin: 0;
	padding: clamp(0.75rem, 1.4vw, 1.25rem);
	background: var(--sr-white);
}

.a-band__media .sr-single__img {
	max-width: none;
	margin: 0;
}

@media (min-width: 768px) {
	.a-band__grid:has(> .a-band__media) {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
		gap: var(--sr-gap);
	}

	.a-band__media {
		justify-self: end;
	}
}

.a-body {
	padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem);
}

.a-card {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--sr-radius);
	background: var(--sr-white);
}

/* A course's text, then its programme: one column, as wide as the band's text. */
.a-body--column {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.a-body--column > .sr-program {
	max-width: 47rem;
}

.a-body--column .sr-content {
	font-size: var(--a-lead);
}

.sr-program h2 {
	margin: 0 0 1rem;
}

.sr-program__list {
	margin: 0;
	padding-left: 1.75rem;
}

.sr-program__list li {
	margin: 0;
	padding: 0.75rem 0 0.75rem 0.5rem;
	border-bottom: 1px solid var(--sr-line);
}

.sr-program__list li:last-child {
	border-bottom: 0;
}

.sr-program__list li::marker {
	color: var(--sr-muted);
	font-family: var(--sr-font-heading);
}

/* A page's text: a reading column, the emblem or the page's photo beside it. */
.a-reading {
	display: grid;
	gap: 3rem;
}

.a-reading__side {
	width: 10rem;
}

.sr-content {
	max-width: 42.5rem;
}

.sr-content > :first-child {
	margin-top: 0;
}

.sr-content h2 {
	margin-top: 2.5rem;
}

.sr-content li {
	margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
	.a-reading {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 4rem;
	}

	.a-reading__side {
		position: sticky;
		top: calc(var(--sr-header-h) + 2.5rem);
		align-self: start;
		width: 100%;
		max-width: 26rem;
		justify-self: end;
	}

	.a-page--plain .a-reading {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Footer: the columns, the wordmark across the width, © and the policy. */
.sr-footer {
	padding-block: clamp(3rem, 6vw, 5rem) 1.25rem;
}

.sr-footer__top {
	gap: 2rem;
}

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

.sr-footer a {
	text-decoration: underline 1px transparent;
	text-underline-offset: 0.35em;
	transition: text-decoration-color var(--sr-fast) ease-out;
}

.sr-footer a:hover {
	text-decoration-color: currentColor;
}

.sr-footer .sr-hours {
	max-width: 24rem;
}

.sr-footer .sr-hours__row {
	padding-block: 0.625rem;
}

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

.sr-footer__brand {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

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

.sr-footer__bottom {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
	padding-top: 1rem;
	border-top: 1px solid var(--sr-gold);
	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 {
		display: block;
	}
}

/* The photo viewer is black: its button and focus ring turn light. */
.sr-lightbox .sr-button {
	background: var(--sr-beige);
	color: var(--sr-black);
}

.sr-lightbox :focus-visible {
	outline-color: var(--sr-white);
}

/* Sections rise once into place; the first screen never moves (site.js: is-motion). */
.is-motion [data-reveal] {
	transition: opacity 500ms ease-out, transform 500ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

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