@font-face {
	font-family: "Study Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("/node_modules/@fontsource-variable/space-grotesk/files/space-grotesk-latin-wght-normal.woff2")
		format("woff2");
}

:root {
	font-family:
		"Study Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-synthesis: none;
	color-scheme: light;
	--paper: #f6f5f0;
	--ink: #243128;
	--muted: #5f6b62;
	--line: #dce0d6;
	--well: #eeeee7;
	--panel: #fbfcf8;
	--checker: #e0e4da;
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
}
body[data-theme="dark"] {
	color-scheme: dark;
	--paper: #111b16;
	--ink: #e8ecdf;
	--muted: #a8b6a9;
	--line: #304037;
	--well: #19261e;
	--panel: #1d2c23;
	--checker: #2b3d30;
}
a {
	color: inherit;
	text-underline-offset: 4px;
}
button {
	color: inherit;
	font: inherit;
	cursor: pointer;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
	outline: 2px solid #6a973f;
	outline-offset: 5px;
}
button,
a,
summary {
	-webkit-tap-highlight-color: transparent;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
figure,
p,
h1,
h2 {
	margin: 0;
}

.masthead,
main,
footer {
	width: min(1240px, calc(100% - 80px));
	margin-inline: auto;
}
.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 26px;
	border-bottom: 1px solid var(--line);
}
.brand {
	font-size: 17px;
	font-weight: 650;
	text-decoration: none;
	letter-spacing: -0.4px;
}
.brand span {
	color: var(--muted);
	font-weight: 400;
}
.theme-switch {
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 9px 15px;
	background: transparent;
	font-size: 12px;
}
.intro {
	padding-block: 57px 39px;
}
.eyebrow {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1.7px;
	font-weight: 600;
	color: var(--muted);
}
.intro-row {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 28px;
	margin-top: 17px;
}
h1 {
	font-size: clamp(48px, 5.8vw, 76px);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -4px;
}
.study-number {
	color: var(--muted);
	font-weight: 300;
}
.lead {
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--muted);
	max-width: 580px;
}
.status {
	flex: none;
	padding-bottom: 2px;
	text-align: right;
	font-size: 11px;
	line-height: 1.9;
}
.status span {
	color: var(--muted);
}
.comparison-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
	font-size: 11px;
	color: var(--muted);
}
.view-switch {
	display: flex;
	margin: 0;
	min-width: 0;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
}
.view-switch button {
	font-size: 11px;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
}
.view-switch button[aria-pressed="true"] {
	background: var(--ink);
	color: var(--paper);
}
.comparison-grid,
.alpha-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.art-well {
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	padding: 10.5%;
	background: var(--well);
	border: 1px solid var(--line);
	border-radius: 24px;
}
.display-tile {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 23%;
	box-shadow:
		0 2px 3px #20341b0a,
		0 14px 26px -12px #344d3f4a,
		0 32px 54px -27px #263c304f;
}
.display-tile img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.original-tile {
	background-image: var(--study-background);
	background-size: cover;
}
.original-tile img {
	filter: drop-shadow(2px 5px 5px #31441f26);
}
body[data-view="transparent"] .display-tile {
	background-color: var(--panel);
	background-image: repeating-conic-gradient(
		var(--checker) 0% 25%,
		transparent 0% 50%
	);
	background-size: 18px 18px;
	border-radius: 10px;
	box-shadow: none;
}
body[data-view="white"] .display-tile {
	background: white;
	border-radius: 10px;
	box-shadow: none;
}
body[data-view="transparent"] .original-tile img,
body[data-view="white"] .original-tile img {
	filter: none;
}
figcaption {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	font-size: 11px;
	line-height: 1.5;
}
figcaption strong {
	font-weight: 600;
}
figcaption span {
	color: var(--muted);
	text-align: right;
}
.direction-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 42px;
	padding-block: 48px 54px;
	border-bottom: 1px solid var(--line);
}
.direction-grid h2 {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.5px;
	margin-block: 13px 11px;
}
.direction-grid article > p:last-child {
	font-size: 12px;
	line-height: 1.8;
	color: var(--muted);
}
.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 26px;
}
.section-heading h2 {
	font-size: 27px;
	font-weight: 500;
	letter-spacing: -1px;
}
.section-heading p {
	font-size: 11px;
	color: var(--muted);
	line-height: 1.7;
	text-align: right;
}
.size-section,
.palette-section {
	padding-block: 50px;
	border-bottom: 1px solid var(--line);
}
.size-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.size-well {
	height: 170px;
	display: grid;
	place-items: center;
	background: var(--well);
	border: 1px solid var(--line);
	border-radius: 18px;
}
.size-well img {
	border-radius: 23%;
	box-shadow: 0 6px 14px #233d2421;
}
.size-well img.foreground-mark {
	border-radius: 0;
	box-shadow: none;
}
.context-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 30px;
}
.sidebar-sample,
.browser-sample {
	min-width: 0;
	padding: 22px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
}
.context-label {
	display: block;
	margin-bottom: 16px;
	color: var(--muted);
	font-size: 10px;
}
.sidebar-sample > div,
.browser-sample > div {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	min-height: 38px;
}
.sidebar-sample img {
	border-radius: 6px;
}
.sidebar-sample img.foreground-mark,
.browser-sample img.foreground-mark {
	border-radius: 0;
}
.sidebar-sample strong {
	font-weight: 500;
}
.sidebar-sample > div > span {
	color: var(--muted);
	font-size: 10px;
	margin-left: auto;
}
.browser-sample > div {
	padding-inline: 12px;
	background: var(--well);
	border-radius: 10px 10px 0 0;
	max-width: 300px;
}
.browser-sample img {
	border-radius: 4px;
}
.browser-sample > div > span:last-child {
	margin-left: auto;
	color: var(--muted);
}
.caption {
	color: var(--muted);
	font-size: 11px;
	line-height: 1.8;
	margin-top: 20px;
	max-width: 820px;
}
.swatches {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 14px;
}
.swatches button {
	padding: 0;
	background: none;
	border: 0;
	text-align: left;
	min-width: 0;
}
.swatches button > span {
	display: block;
	height: 82px;
	border: 1px solid #2431280a;
	border-radius: 10px;
	background: var(--swatch);
	margin-bottom: 14px;
}
.swatches strong,
.swatches code,
.swatches small {
	display: block;
}
.swatches strong {
	font-size: 10px;
	font-weight: 500;
}
.swatches code {
	font-size: 10px;
	color: var(--muted);
	margin-top: 6px;
}
.swatches small {
	font-size: 9px;
	color: var(--muted);
	margin-top: 5px;
}
.palette-section + section {
	padding-top: 50px;
}
.alpha-grid img {
	border-radius: 18px;
	border: 1px solid var(--line);
}
.archive {
	padding-block: 52px 20px;
}
.download-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 28px;
}
.download-links a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 19px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 9px;
	text-decoration: none;
	font-size: 11px;
}
.download-links a:hover {
	border-color: var(--muted);
}
details {
	border-top: 1px solid var(--line);
}
summary {
	cursor: pointer;
	padding-block: 20px;
	font-size: 12px;
}
pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	padding: 22px;
	margin: 0 0 22px;
	background: var(--well);
	border-radius: 10px;
	font-size: 11px;
	line-height: 1.8;
}
.reference-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 24px;
	padding-bottom: 26px;
}
.reference-grid img {
	width: 100%;
	border-radius: 8px;
}
footer {
	padding-block: 25px 35px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	font-size: 10px;
	color: var(--muted);
}

@media (max-width: 760px) {
	.masthead,
	main,
	footer {
		width: calc(100% - 40px);
	}
	.masthead {
		padding-block: 18px;
	}
	.brand {
		font-size: 15px;
	}
	.brand span {
		font-size: 11px;
	}
	.intro {
		padding-block: 38px 30px;
	}
	h1 {
		letter-spacing: -2.5px;
	}
	.intro-row {
		align-items: start;
		flex-direction: column;
		gap: 12px;
	}
	.lead {
		font-size: 13px;
		margin-top: 13px;
	}
	.status {
		text-align: left;
	}
	.status br {
		display: none;
	}
	.status span {
		margin-left: 10px;
	}
	.comparison-toolbar {
		align-items: start;
		flex-direction: column;
		gap: 14px;
	}
	.comparison-grid {
		gap: 14px;
	}
	.art-well {
		border-radius: 13px;
		padding: 7%;
	}
	figcaption {
		flex-direction: column;
		gap: 3px;
		padding-top: 11px;
		font-size: 10px;
	}
	figcaption span {
		text-align: left;
	}
	.direction-grid {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-block: 34px;
	}
	.direction-grid h2 {
		margin-block: 8px;
	}
	.section-heading {
		align-items: start;
		flex-direction: column;
		gap: 10px;
		margin-bottom: 22px;
	}
	.section-heading p {
		text-align: left;
	}
	.size-section,
	.palette-section {
		padding-block: 34px;
	}
	.size-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
	.size-well {
		height: 158px;
	}
	.context-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.swatches {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px 10px;
	}
	.swatches button > span {
		height: 60px;
	}
	.alpha-grid {
		gap: 14px;
	}
	.alpha-grid img {
		border-radius: 10px;
	}
	.palette-section + section {
		padding-top: 34px;
	}
	.download-links {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.download-links a {
		padding: 14px 12px;
		font-size: 10px;
	}
	.archive {
		padding-top: 36px;
	}
	.reference-grid {
		grid-template-columns: 1fr;
	}
	footer {
		flex-direction: column;
		gap: 10px;
	}
}
