body.home,
.ar-gallery-home {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ar-gallery-home {
	--ar-gutter: clamp(20px, 2.92vw, 42px);
	--ar-display: var(--wp--preset--font-family--oswald);
	--ar-ink: var(--wp--preset--color--ink);
	--ar-paper: var(--wp--preset--color--paper);
	--ar-muted: var(--wp--preset--color--muted);
	--ar-wall: var(--wp--preset--color--wall);
}

.home .atelier-footer .atelier-footer-wordmark {
	letter-spacing: -0.03em;
}

.ar-gallery-home > .ar-section-links .wp-block-navigation__container {
	max-inline-size: calc(1440px - 2 * var(--ar-gutter));
	margin-inline: auto;
}

.ar-gallery-home .ar-section-links a.wp-block-navigation-item__content {
	font-size: 25px;
	letter-spacing: -0.02em;
}

.ar-gallery-home > *,
.ar-studio > *,
.ar-home-section > * {
	margin-block: 0;
}

.ar-gallery-home > .wp-block-post-content:empty {
	display: none;
}

.ar-gallery-home img {
	display: block;
}

.ar-studio {
	container-type: inline-size;
	position: relative;
	max-width: 1440px;
	aspect-ratio: 1440 / 892;
	margin-inline: auto;
}

.ar-studio h1 {
	margin: 0;
}

.ar-studio h1 span,
.ar-studio figure,
.ar-studio p {
	position: absolute;
	margin: 0;
}

.ar-studio h1 span {
	z-index: 1;
	font: 700 8.333cqw/1 var(--ar-display);
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.ar-studio h1 span:first-child {
	left: 4.445%;
	top: 4.48%;
}

.ar-studio h1 span:last-child {
	right: 4.445%;
	top: 68.16%;
}

.ar-studio figure {
	width: 22.5%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.ar-studio figure:has(img[src]) {
	background: var(--ar-wall);
}

.ar-studio figure:has(img[data-ar-image])::after {
	position: absolute;
	inset: 0;
	border: 1px solid rgb(30 26 20 / 10%);
	content: "";
	pointer-events: none;
}

.ar-studio figure img {
	position: absolute;
	max-width: none;
	width: var(--tile-size);
	height: calc(var(--tile-size) * 0.8);
	left: var(--tile-left);
	top: var(--tile-top);
	object-fit: cover;
}

.ar-studio-roller {
	--tile-size: 149.98%;
	--tile-left: -16.81%;
	--tile-top: -12.39%;
}

.ar-studio-drying {
	--tile-size: 125.56%;
	--tile-left: -19.8%;
	--tile-top: -0.21%;
}

.ar-studio-impression {
	--tile-size: 125%;
	--tile-left: -16.69%;
	--tile-top: 0;
}

.ar-studio .ar-studio-roller {
	left: 14.583%;
	top: 35.76%;
}

.ar-studio .ar-studio-drying {
	left: 62.916%;
	top: 7.175%;
}

.ar-studio .ar-studio-impression {
	left: 36.111%;
	top: 16.14%;
	width: 27.778%;
}

.ar-studio p {
	right: 4.445%;
	font: 400 clamp(14px, 1.667cqw, 24px) / 1.3333 var(--ar-display);
	letter-spacing: -0.02em;
}

.ar-studio-kicker {
	top: 64.57%;
	text-transform: uppercase;
}

.ar-studio-caption {
	top: 81.61%;
}

.ar-home-section {
	box-sizing: border-box;
	max-width: 1440px;
	margin-inline: auto;
	padding: 40px var(--ar-gutter) 44px;
}

.ar-home-section h2,
.ar-home-section h3 {
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.ar-home-section h2 {
	font-size: clamp(44px, 5.9vw, 85px);
	margin: 0 0 40px;
}

.ar-home-works,
.ar-home-arrivals {
	padding: 32px clamp(20px, 3.055vw, 44px) 44px;
}

.ar-home-works h2,
.ar-home-arrivals h2 {
	font-size: clamp(42px, 5.21vw, 75px);
	line-height: 1.3;
	margin-bottom: 34px;
}

.ar-home-grid,
.ar-story-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
}

.ar-home-section a:not(.ar-home-button) {
	text-decoration: none;
}

.ar-home-section a:hover :is(.ar-by, h3, strong) {
	text-decoration: underline;
}

.ar-home-grid .ar-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: anywhere;
}

.ar-home-grid .ar-image {
	aspect-ratio: 435 / 314;
}

.ar-home-grid .ar-by {
	font-weight: 600;
	font-size: 19px;
	line-height: 24px;
	margin-top: 15px;
}

.ar-home-grid .ar-name {
	margin: 6px 0 12px;
	line-height: 21px;
	color: var(--ar-muted);
}

.ar-home-grid .ar-price {
	font-size: 18px;
	line-height: 22px;
	font-weight: 600;
	margin-top: auto;
	padding-bottom: 8px;
}

.ar-price small {
	padding: 2px 5px;
	background: var(--ar-wall);
	font-size: 0.75em;
}

.ar-home-grid .ar-price del {
	color: var(--ar-muted);
	font-size: 0.86em;
	font-weight: 400;
}

.ar-home-grid .ar-price ins {
	text-decoration: none;
}

.ar-home-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 44px;
}

.ar-home-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 20px;
	background: var(--ar-ink);
	border: 1px solid var(--ar-ink);
	color: var(--ar-paper);
	font: inherit;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
}

.ar-home-grid + .ar-home-actions .ar-home-button {
	width: 180px;
	font-size: 14px;
	line-height: 20px;
}

.ar-home-button.is-secondary {
	color: var(--ar-ink);
	background: var(--ar-paper);
}

.ar-home-exhibitions {
	padding-bottom: 66px;
}

.ar-home-exhibitions h2 {
	font-size: clamp(43px, 5.8333vw, 84px);
	margin-bottom: 48px;
}

.ar-home-exhibitions .ar-story-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

/* stylelint-disable-next-line no-descending-specificity --
   The studio collage positions its own images. */
.ar-story img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.ar-home-exhibitions .ar-story img {
	aspect-ratio: 662 / 405;
}

.ar-story :is(h3, p) {
	margin: 0;
}

/* stylelint-disable no-descending-specificity --
   Artist links also need the shared section link decoration. */
.ar-story,
.ar-home-artist-grid > a {
	overflow-wrap: anywhere;
}
/* stylelint-enable no-descending-specificity */

.ar-home-exhibitions small {
	display: block;
	margin: 14px 0 6px;
	font-size: 14px;
	white-space: pre-wrap;
}

.ar-home-exhibitions h3 {
	font-size: clamp(30px, 3.33vw, 48px);
}

.ar-home-exhibitions .ar-story p {
	margin-top: 16px;
	font-size: 17px;
}

.ar-home-artists {
	max-width: none;
	padding: 44px max(var(--ar-gutter), calc((100% - 1356px) / 2)) 54px;
	background: var(--ar-ink);
	color: var(--ar-paper);
}

.ar-home-artists h2 {
	margin-bottom: 22px;
}

.ar-home-artist-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 4.28%;
}

/* stylelint-disable-next-line no-descending-specificity --
   The artist grid owns link layout. */
.ar-home-artist-grid > a {
	grid-column: 2;
	display: grid;
	grid-template-columns: 30.25% 1fr;
	gap: clamp(12px, 1.67vw, 24px);
	align-items: center;
	color: inherit;
}

/* stylelint-disable-next-line no-descending-specificity --
   Artist thumbnails have a different crop from the studio collage. */
.ar-home-artist-grid img {
	width: 100%;
	height: auto;
	aspect-ratio: 196 / 108;
	object-fit: cover;
}

.ar-home-artist-grid strong,
.ar-home-artist-grid small {
	display: block;
}

.ar-home-artist-grid strong {
	font-size: clamp(20px, 1.875vw, 27px);
	font-weight: 500;
	line-height: 1.2593;
	letter-spacing: -0.02em;
}

.ar-home-artist-grid small {
	margin-top: 4px;
	font-size: 16px;
	line-height: 22px;
	color: var(--wp--preset--color--line);
}

.ar-home-artist-grid > a:first-child {
	display: block;
	grid-column: 1;
	grid-row: 1 / span 5;
}

.ar-home-artist-grid > a:first-child img {
	aspect-ratio: 650 / 444;
}

.ar-home-artist-grid > a:first-child strong {
	font-size: clamp(30px, 2.92vw, 42px);
	line-height: 1.2857;
	margin-top: 14px;
}

.ar-home-artist-grid > a:first-child small {
	font-size: 18px;
	line-height: 24px;
}

/* stylelint-disable-next-line no-descending-specificity --
   The artist grid caption sits outside exhibition stories. */
.ar-home-artist-grid > p {
	grid-column: 2;
	margin: 12px 0 0 34%;
}

/* stylelint-disable-next-line no-descending-specificity --
   The credits link overrides the shared section link decoration. */
.ar-home-artist-grid > p a {
	display: inline-flex;
	font-weight: 500;
	align-items: center;
	min-height: 48px;
	color: inherit;
	text-decoration: underline !important;
	text-underline-offset: 6px;
}

.ar-home-journal {
	padding: 60px clamp(20px, 4.45vw, 64px) 64px;
}

.ar-home-journal h2 {
	font-size: clamp(44px, 5.5556vw, 80px);
	line-height: 1;
	margin-bottom: 20px;
}

.ar-home-journal .ar-story-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.ar-home-journal .ar-story {
	min-width: 0;
	min-height: 368px;
	background: var(--ar-wall);
}

/* stylelint-disable-next-line no-descending-specificity --
   Journal stories and featured artists have different crops. */
.ar-home-journal .ar-story img {
	aspect-ratio: 322 / 240;
}

.ar-home-journal .ar-story div {
	padding: 16px;
}

.ar-home-journal h3 {
	font-size: 21px;
	line-height: 26px;
	letter-spacing: normal;
}

.ar-home-journal .ar-story p {
	margin-top: 8px;
	color: var(--ar-muted);
	line-height: 22px;
}

.ar-home-journal .ar-home-actions {
	margin-top: 20px;
}

.ar-home-contact {
	padding: 62px var(--ar-gutter) 30px;
}

.ar-home-contact h2 {
	font-size: clamp(36px, 5vw, 72px);
	margin-bottom: 40px;
	text-align: center;
}

.ar-contact-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	max-width: 696px;
	margin-inline: auto;
}

.ar-contact-fields label {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
}

/* stylelint-disable no-descending-specificity --
   Form notes sit outside the featured artist card. */
.ar-contact-fields label:last-of-type,
.ar-contact-fields button,
.ar-contact-fields small {
	grid-column: 1 / -1;
}
/* stylelint-enable no-descending-specificity */

.ar-contact-fields input,
.ar-contact-fields textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 45px;
	padding: 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	border: 1px solid #737373;
	border-radius: 0;
	color: var(--ar-ink);
	background: var(--ar-paper);
}

.ar-contact-fields textarea {
	min-height: 120px;
	resize: vertical;
}

.ar-contact-fields button {
	justify-self: center;
	margin-top: 12px;
}

/* stylelint-disable-next-line no-descending-specificity --
   The contact note uses its own alignment and muted color. */
.ar-contact-fields small {
	text-align: center;
	color: var(--ar-muted);
}

@media (width <= 700px) {

	.ar-gallery-home .ar-section-links a.wp-block-navigation-item__content {
		font-size: 15px;
	}

	.ar-studio-roller {
		--tile-size: 138.1%;
		--tile-left: -11.42%;
		--tile-top: -5.24%;
	}

	.ar-studio-drying {
		--tile-size: 150%;
		--tile-left: -36.4%;
		--tile-top: -10%;
	}

	.ar-studio-impression {
		--tile-size: 132.35%;
		--tile-left: -29.89%;
		--tile-top: -2.94%;
	}

	.ar-studio {
		aspect-ratio: 390 / 534;
	}

	.ar-studio h1 span {
		font-size: 14.87cqw;
	}

	.ar-studio h1 span:first-child {
		top: 3.56%;
		left: 5.13%;
	}

	.ar-studio h1 span:last-child {
		top: 63.86%;
		right: 5.13%;
	}

	.ar-studio figure {
		width: 26.667%;
	}

	.ar-studio .ar-studio-roller {
		top: 37.265%;
		left: 5.13%;
	}

	.ar-studio .ar-studio-drying {
		top: 13.11%;
		left: 68.205%;
	}

	.ar-studio .ar-studio-impression {
		top: 21.16%;
		left: 28.718%;
		width: 42.564%;
	}

	.ar-studio p {
		right: 5.13%;
		font-size: 4.103cqw;
		line-height: 1.375;
	}

	.ar-studio-kicker {
		top: 59.74%;
	}

	.ar-studio-caption {
		top: 74.72%;
	}

	.ar-home-section {
		padding: 20px var(--ar-gutter) 32px;
	}

	.ar-home-section h2 {
		font-size: 43px;
		line-height: 1.3;
		margin-bottom: 12px;
	}

	.ar-home-works h2,
	.ar-home-arrivals h2 {
		font-size: 38px;
		line-height: 56px;
	}

	.ar-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 12px;
	}

	.ar-home-grid .ar-image {
		aspect-ratio: 169 / 156;
	}

	.ar-home-grid .ar-by {
		font-size: 14px;
		line-height: 18px;
		margin-top: 10px;
	}

	.ar-home-grid .ar-name {
		font-size: 13px;
		line-height: 17px;
		min-height: 34px;
		margin: 4px 0 8px;
	}

	.ar-home-grid .ar-price {
		font-size: 14px;
		line-height: 18px;
		padding-bottom: 14px;
	}

	.ar-home-actions {
		margin-top: 32px;
	}

	.ar-home-grid + .ar-home-actions .ar-home-button {
		width: min(48%, 180px);
	}

	.ar-home-exhibitions {
		padding-bottom: 44px;
	}

	.ar-home-exhibitions h2 {
		margin-bottom: 32px;
	}

	.ar-home-exhibitions .ar-story-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.ar-home-exhibitions .ar-story img {
		aspect-ratio: 350 / 255;
	}

	.ar-home-exhibitions .ar-story + .ar-story img {
		aspect-ratio: 350 / 202;
	}

	.ar-home-exhibitions small {
		font-size: 12px;
		margin: 8px 0 4px;
	}

	.ar-home-exhibitions h3 {
		font-size: 31px;
	}

	.ar-home-exhibitions .ar-story + .ar-story h3 {
		font-size: 28px;
	}

	.ar-home-exhibitions .ar-story p {
		font-size: 14px;
		margin-top: 10px;
	}

	.ar-home-exhibitions .ar-story + .ar-story p {
		display: none;
	}

	.ar-home-artists {
		padding-top: 24px;
		padding-bottom: 36px;
	}

	.ar-home-artists h2 {
		font-size: 44px;
		margin-bottom: 16px;
	}

	.ar-home-artist-grid {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.ar-home-artist-grid > a {
		grid-template-columns: 36% 1fr;
		gap: 16px;
	}

	/* stylelint-disable-next-line no-descending-specificity --
	   Artist thumbnails sit outside the exhibition stories. */
	.ar-home-artist-grid img {
		aspect-ratio: 126 / 96;
	}

	.ar-home-artist-grid strong {
		font-size: 19px;
		line-height: 25px;
	}

	.ar-home-artist-grid small {
		font-size: 14px;
		line-height: 19px;
	}

	.ar-home-artist-grid > a:first-child {
		margin-bottom: 16px;
	}

	/* stylelint-disable-next-line no-descending-specificity --
	   The featured artist and second exhibition use different crops. */
	.ar-home-artist-grid > a:first-child img {
		aspect-ratio: 350 / 240;
	}

	.ar-home-artist-grid > a:first-child strong {
		font-size: 30px;
		line-height: 38px;
		margin-top: 10px;
	}

	.ar-home-artist-grid > a:first-child small {
		font-size: 15px;
		line-height: 20px;
	}

	/* stylelint-disable-next-line no-descending-specificity --
	   Artist captions and exhibition stories have separate spacing. */
	.ar-home-artist-grid > p {
		margin: 8px auto 0;
	}

	.ar-home-journal {
		padding-block: 36px 40px;
	}

	.ar-home-journal h2 {
		font-size: 44px;
		line-height: 52px;
		margin-bottom: 20px;
	}

	.ar-home-journal .ar-story-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	.ar-home-journal .ar-story {
		min-height: 275px;
	}

	.ar-home-journal .ar-story div {
		padding: 10px;
	}

	/* stylelint-disable-next-line no-descending-specificity --
	   Journal headings sit outside the exhibition stories. */
	.ar-home-journal h3 {
		font-size: 17px;
		line-height: 21px;
	}

	/* stylelint-disable-next-line no-descending-specificity --
	   Journal text and exhibition captions use separate spacing. */
	.ar-home-journal .ar-story p {
		margin-top: 7px;
		font-size: 14px;
		line-height: 19px;
	}

	.ar-home-contact {
		padding-block: 28px 16px;
	}

	.ar-home-contact h2 {
		font-size: min(10.77vw, 42px);
		line-height: normal;
		margin: 0 calc(-1 * var(--ar-gutter)) 24px;
	}

	.ar-contact-fields {
		grid-template-columns: 1fr;
	}
}
