/*
Theme Name: Quiet Things
Description: An illustrated Studio and interactive Playground for Quiet Things.
Author: Quiet Things
Version: 1.9.52
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: quiet-things
*/

@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/plex.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Caveat; src: url("assets/fonts/caveat.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	--paper: #f2efe6;
	--ink: #252420;
	--notebook-ink: #535638;
	--night: #161719;
	--cream: #f9f6e9;
	--acid: #e6fa42;
	--cobalt: #2446e3;
	--line: #25242043;
	--dark-line: #f9f6e943;
	--gutter: clamp(1.25rem, 4.4vw, 4.75rem);
	--header-logo-width: clamp(10rem, 16vw, 14rem);
	--header-space: clamp(1rem, 2vw, 1.6rem);
	--header-inset: var(--gutter);
	--header-height: calc(var(--header-logo-width) * 787 / 2048 + 2 * var(--header-space));
	--footer-bottom: max(1.15rem, env(safe-area-inset-bottom));
	--display: "Instrument Serif", Georgia, serif;
	--body: "Space Grotesk", Arial, sans-serif;
	--mono: "IBM Plex Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.55 var(--body); }
.qt-light { color: var(--ink); background: var(--paper) url("assets/grain.webp"); }
.qt-dark { color: var(--cream); background: var(--night); color-scheme: dark; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button, input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 5px; }
.qt-dark :focus-visible, .qt-landing-play :focus-visible { outline-color: var(--acid); }
.qt-skip { position: fixed; z-index: 99999; top: .75rem; left: .75rem; padding: .7em 1em; background: var(--paper); color: var(--ink); transform: translateY(-200%); }
.qt-skip:focus { transform: none; }
.qt-shell { width: min(100% - var(--gutter) * 2, 90rem); margin-inline: auto; }
.qt-header { border-bottom: 1px solid var(--line); }
.qt-dark .qt-header { border-color: var(--dark-line); }
.qt-bar { width: min(100% - 2 * var(--header-inset), 90rem); min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; }
.qt-brand { display: block; width: var(--header-logo-width); }
.qt-brand img { width: 100%; }
.qt-dark .qt-header .qt-brand img { filter: brightness(0) invert(1); }
.qt-menu-button {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #41403c;
	cursor: pointer;
}
.qt-menu-button[hidden] { display: none; }
.qt-menu-button[data-pointer-focus]:focus { outline: none; }
.qt-torn-home .qt-menu-open {
	position: absolute;
	top: calc((var(--header-height) - 2.75rem) / 2);
	right: var(--header-inset);
	z-index: 5;
}
.qt-dark .qt-menu-button,
.qt-torn-home:not([data-home-view="studio"]) .qt-menu-button { color: var(--acid); }
.qt-menu-icon { position: relative; display: block; width: 1.4rem; height: 1.4rem; }
.qt-menu-icon::before, .qt-menu-icon::after {
	position: absolute;
	inset: 50% 0 auto;
	height: 2px;
	content: "";
	background: currentColor;
	transform: translateY(-50%);
}
.qt-menu-icon::after { transform: translateY(-50%) rotate(90deg); }
.qt-menu {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--paper) url("assets/grain.webp");
	color: var(--ink);
}
.qt-dark .qt-menu, .qt-torn-home:not([data-home-view="studio"]) .qt-menu {
	background: var(--night);
	color: var(--cream);
}
.qt-menu[open] { animation: qt-menu-drop 440ms cubic-bezier(.22, .75, .28, 1); }
.qt-menu[open][data-closing] { animation: qt-menu-rise 440ms cubic-bezier(.55, .05, .72, .35) forwards; }
body:has(.qt-menu[open]) { overflow: hidden; }
.qt-menu-close {
	position: absolute;
	top: var(--qt-menu-top, 1rem);
	right: var(--qt-menu-right, var(--gutter));
	z-index: 1;
}
.qt-menu-close .qt-menu-icon { transform: rotate(45deg); }
.qt-menu[open] .qt-menu-close .qt-menu-icon { animation: qt-menu-to-cross 520ms cubic-bezier(.24, .68, .23, 1); }
.qt-menu-return .qt-menu-icon { animation: qt-menu-to-plus 520ms cubic-bezier(.24, .68, .23, 1); }
.qt-menu-links {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: .75rem;
	min-height: 100%;
	width: min(100% - 2 * var(--gutter), 46rem);
	margin-inline: auto;
	padding-block: 5.5rem 3rem;
	font: 400 clamp(3.55rem, 11vw, 8.1rem)/.95 var(--display);
}
.qt-menu-links a { text-decoration: none; }
.qt-menu-links a:hover { text-decoration: underline; text-underline-offset: .1em; }
@keyframes qt-menu-drop {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}
@keyframes qt-menu-rise {
	from { transform: translateY(var(--qt-menu-close-from, 0px)); }
	to { transform: translateY(-100%); }
}
@keyframes qt-menu-to-cross {
	from { transform: rotate(0deg); }
	to { transform: rotate(765deg); }
}
@keyframes qt-menu-to-plus {
	from { transform: rotate(45deg); }
	to { transform: rotate(720deg); }
}
@media (prefers-reduced-motion: reduce) {
	.qt-menu[open],
	.qt-menu[open][data-closing],
	.qt-menu[open] .qt-menu-close .qt-menu-icon,
	.qt-menu-return .qt-menu-icon { animation: none; }
}
.qt-kicker { color: var(--notebook-ink); font: 500 .875rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1rem; }
.qt-kicker a { text-decoration: none; }
.qt-kicker a:hover { text-decoration: underline; }
.qt-dark .qt-kicker { color: var(--acid); }
.qt-hand { color: var(--notebook-ink); font: 600 1.8rem/1 var(--note-font, Caveat), cursive; transform: rotate(-4deg); transform-origin: left; margin: 1.5rem 0 .5rem; }

.qt-torn-home {
	--tear-width: clamp(5rem, 15vw, 12rem);
	--qt-split: 53%;
	--qt-studio-rest: 112%;
	--qt-column: 62%;
	--tear-left: calc(var(--qt-split) - var(--tear-width) / 2);
	--home-header-height: var(--header-height); /* Also used by WordPress Additional CSS. */
	--landing-top: calc(var(--header-height) + clamp(3.1rem, 4vw, 4rem));
	--landing-side: clamp(1.1rem, 4.2vw, 4rem);
	--split-footer-height: calc(1px + .85rem + 1.2rem + var(--footer-bottom));
	position: relative;
	min-height: 100svh;
	background: var(--night);
	touch-action: pan-y pinch-zoom;
}
.qt-torn-paper { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.qt-torn-paper::before, .qt-torn-paper::after {
	position: absolute;
	content: "";
	top: 0;
	bottom: 0;
	pointer-events: none;
}
.qt-torn-paper::before { left: 0; width: max(0px, calc(var(--qt-split) - var(--tear-width) * .33)); background: var(--paper) url("assets/grain.webp"); }
.qt-torn-paper::after {
	left: var(--tear-left);
	width: var(--tear-width);
	background: url("assets/ivory-paper-tear.webp") center/100% 100% no-repeat;
	mask-image: linear-gradient(to right, transparent, #000 16%);
	filter: saturate(.17) contrast(1.065) brightness(1.19) drop-shadow(5px 1px 5px #0007);
	z-index: 2;
}
.qt-landing { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100svh; }
.qt-landing-studio, .qt-landing-play { position: relative; display: flex; align-items: center; padding: var(--landing-top) var(--landing-side) clamp(2.2rem, 5vw, 5rem); }
.qt-landing-masthead {
	position: absolute;
	inset: 0 var(--header-inset) auto;
	height: var(--header-height);
	z-index: 4;
	pointer-events: none;
	mix-blend-mode: difference;
}
.qt-landing-masthead::after {
	position: absolute;
	inset: auto 0 0;
	content: "";
	height: 1px;
	background: linear-gradient(90deg, #fff2, #fff4 24%, #fff3 82%, #fff1);
}
.qt-landing-masthead .qt-brand {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	pointer-events: auto;
}
.qt-landing-masthead .qt-brand img { filter: brightness(0) invert(1); }
.qt-split-footer { display: none; }
.qt-torn-home[data-home-view="split"]:not([data-home-moving]) .qt-split-footer {
	position: relative;
	z-index: 4;
	display: block;
	margin-inline: var(--landing-side);
	padding-block: .85rem var(--footer-bottom);
	border-top: 1px solid #fff4;
	color: #fff;
	font: 500 clamp(.72rem, 2.6vw, .85rem)/1.2rem var(--mono);
	text-align: center;
	mix-blend-mode: difference;
}
.qt-split-footer p { margin: 0; }
.qt-page-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: .5rem clamp(.375rem, 2vw, 1.25rem);
	padding-block: .85rem var(--footer-bottom);
	border-top: 1px solid var(--line);
	color: var(--ink);
	font: 500 clamp(.72rem, 2.6vw, .85rem)/1.2rem var(--mono);
}
.qt-footer { width: min(100% - 2 * var(--header-inset), 90rem); margin-inline: auto; }
.qt-revealed-footer,
.qt-revealed-footer a { display: none; }
.qt-torn-home:is([data-home-view="studio"], [data-home-view="playground"]):not([data-home-moving]) .qt-revealed-footer {
	position: relative;
	z-index: 4;
	display: flex;
	margin-inline: var(--landing-side);
}
.qt-dark .qt-page-footer,
.qt-torn-home[data-home-view="playground"]:not([data-home-moving]) .qt-revealed-footer {
	border-top-color: var(--dark-line);
	color: var(--cream);
}
.qt-torn-home[data-home-view="studio"] .qt-studio-footer-link,
.qt-torn-home[data-home-view="playground"] .qt-play-footer-link { display: inline-block; }
.qt-footer-clock { display: inline-flex; gap: .5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qt-footer-clock[hidden] { display: none; }
.qt-dark .qt-footer-clock,
.qt-torn-home[data-home-view="playground"] .qt-footer-clock { color: var(--acid); }
.qt-play-footer-link { color: var(--acid); }
.qt-play-footer-link:focus-visible { outline-color: var(--acid); }
.qt-studio-content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 42rem;
	margin: auto 0 auto auto;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	align-items: center;
	gap: clamp(1.1rem, 2.5vw, 2.6rem);
}
.qt-home-copy { position: relative; z-index: 1; }
.qt-home-copy h1 { font: 400 clamp(3.8rem, 5.6vw, 6.9rem)/.83 var(--display); letter-spacing: -.02em; margin: .55rem 0 1.35rem; }
.qt-home-copy .qt-mobile-heading-break { display: none; }
.qt-home-copy > p:not([class]) { max-width: 24rem; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.qt-home-intro {
	max-width: 24rem;
	font-size: clamp(1rem, 1.35vw, 1.18rem);
}
.qt-home-intro p { margin: 0; }
.qt-studio-signoff {
	grid-column: 1 / -1;
	grid-row: 5;
	width: min(100%, 34rem);
	justify-self: end;
	margin-top: clamp(1.5rem, 4vw, 3.5rem);
}
.qt-studio-signoff > p { margin: 0 0 1rem; }
.qt-studio-reveal {
	display: grid;
	width: fit-content;
	min-height: 2.85rem;
	align-items: center;
	justify-items: start;
	text-decoration: none;
}
.qt-studio-reveal > span { grid-area: 1 / 1; }
.qt-reveal-line { font-size: clamp(1.1rem, 2.25vw, 1.7rem); font-weight: 700; line-height: 1.2; }
.qt-reveal-word, .qt-reveal-word > span { display: inline-block; }
#home-studio .qt-reveal-cta { opacity: 0; background: var(--acid); color: var(--ink); }
.qt-studio-reveal[data-revealed] .qt-reveal-line { opacity: 0; }
#home-studio .qt-studio-reveal[data-revealed] .qt-reveal-cta { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.qt-studio-reveal[data-cue]:not([data-revealed]) .qt-reveal-line { animation: qt-reveal-nudge 3.6s ease-in-out; }
	.qt-studio-reveal[data-revealed] .qt-reveal-line { opacity: 1; }
	.qt-studio-reveal[data-revealed] .qt-reveal-word > span { animation: qt-float-letter .85s var(--delay) ease-out both; }
	.qt-studio-reveal[data-revealed] .qt-reveal-cta { animation: qt-reveal-button .45s .75s ease-out both; }
}
@keyframes qt-reveal-nudge {
	0%, 19%, 38%, 68%, 90%, 100% { transform: none; }
	27%, 78% { transform: translate(2px, -2px); }
}
@keyframes qt-float-letter { to { opacity: 0; transform: translate(var(--drift), var(--lift)) rotate(12deg); filter: blur(1.5px); } }
@keyframes qt-reveal-button { from { opacity: 0; } to { opacity: 1; } }
.qt-home-photo { width: 100%; max-width: 20rem; justify-self: center; transform: rotate(5deg); }
.qt-mounted { padding: .65rem .65rem 1rem; background: #fcf9ef; box-shadow: 1px 2px 4px #28211540, 8px 13px 24px #28211523; }
.qt-mounted img { width: 100%; object-fit: cover; }
.qt-home-photo img { aspect-ratio: .81; object-position: center 47%; }
.qt-hand.qt-home-studio-link { justify-self: start; margin: 1.4rem 0 0; }
.qt-home-studio-prints {
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	align-items: start;
	pointer-events: none;
}
.qt-studio-print {
	grid-row: 1;
	min-width: 0;
	padding: clamp(.22rem, .75vw, .6rem);
	padding-bottom: clamp(.45rem, 1.35vw, 1rem);
	background: #faf6eb;
	box-shadow: 0 .28rem .65rem #32291b33;
}
.qt-studio-print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.qt-studio-print:nth-child(1) { grid-column: 1 / 5; margin-top: 27%; transform: translateX(clamp(-5.25rem, -10vw, -1.75rem)) rotate(-11deg); }
.qt-studio-print:nth-child(2) { grid-column: 3 / 8; transform: translateY(clamp(-2.25rem, -5.5vw, -1rem)) rotate(-5deg); }
.qt-studio-print:nth-child(3) { grid-column: 6 / -1; margin-top: 19%; transform: translateX(clamp(1rem, 6vw, 3.5rem)) rotate(8deg); }
.qt-project-link {
	--project-accent: #863a36;
	grid-column: 1/-1;
	position: relative;
	display: grid;
	justify-items: start;
	gap: .75rem;
	border-block: 1px solid var(--line);
	text-decoration: none;
	padding: .95rem 0 .8rem;
	margin-top: .4rem;
}
.qt-project-link::before {
	position: absolute;
	inset: -1px auto auto 0;
	width: 2.15rem;
	height: 2px;
	background: var(--project-accent);
	content: "";
}
.qt-project-link small {
	display: block;
	color: var(--project-accent);
	font: 500 clamp(.625rem, 2.55vw, .75rem)/1.25 var(--mono);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: .45rem;
}
.qt-project-link strong {
	font: 700 clamp(1.3rem, 3vw, 2.55rem)/.96 var(--body);
	letter-spacing: -.035em;
	overflow-wrap: anywhere;
}
.qt-project-verb {
	color: var(--project-accent);
	font-weight: 700;
	font-size: .875rem;
	text-decoration: underline;
}
.qt-project-link:hover .qt-project-verb { color: var(--ink); }
.qt-landing-play { color: var(--cream); padding-left: max(var(--landing-side), var(--tear-width) * .26); }
.qt-play-content { position: relative; z-index: 3; width: min(100%, 31rem); }
.qt-play-content h2 { font: 700 clamp(2.5rem, 4.9vw, 5.5rem)/.91 var(--body); letter-spacing: -.065em; margin-bottom: 1.5rem; }
.qt-play-content > p { margin: 1rem 0 .65rem; }
.qt-crop-art { position: relative; background: #22232a; padding: .48rem; border: 1px solid var(--dark-line); }
.qt-crop-art img { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: 52% 48%; }
.qt-crop-art span { position: absolute; width: 43%; height: 77%; left: 36%; top: 12%; border: 2px solid var(--acid); pointer-events: none; }
.qt-crop-art span::after { content: ""; position: absolute; width: .55rem; height: .55rem; right: -.3rem; bottom: -.3rem; background: var(--cobalt); border: 1px solid var(--cream); }
.qt-text-link { display: inline-block; padding: .36rem 0; font-weight: 700; }
.qt-landing-play .qt-text-link, .qt-dark .qt-text-link { color: var(--acid); }
.qt-button {
	display: inline-flex; justify-content: center; align-items: center; gap: .65rem;
	min-height: 2.85rem; padding: .65rem 1rem; border: 1px solid transparent;
	background: var(--acid); color: var(--ink); font: 700 .9375rem/1.2 var(--body);
	text-align: center; text-decoration: none; cursor: pointer;
}
.qt-home-tab {
	position: absolute;
	z-index: 5;
	top: var(--landing-top);
	display: inline-grid;
	min-height: 2.75rem;
	align-content: center;
	padding-inline: .65rem;
	font: 500 .78rem/1 var(--mono);
	text-decoration: none;
	touch-action: pan-y pinch-zoom;
	box-shadow: 1px 3px 5px #0004;
}
.qt-home-tab.qt-open-studio {
	left: max(0px, calc(var(--qt-split) - .5rem));
	border-bottom: 2px solid #833332;
	border-radius: 0 2px 2px 0;
	background: repeating-linear-gradient(0deg, #fff0 0 1px, #fff1 1px 2px), repeating-linear-gradient(90deg, #0000 0 1px, #0002 1px 3px), #983e38;
	color: #fff9ee;
}
.qt-open-studio::before {
	position: absolute;
	inset: 4px auto 4px 4px;
	content: "";
	border-left: 1px dashed #fff5;
}
.qt-home-tab.qt-open-studio:hover { background-color: #aa463e; }
.qt-button:hover { background: #f2fc86; }
.qt-home-tab:focus-visible { outline-color: var(--cobalt); outline-offset: -4px; }
.qt-light .qt-button { background: var(--ink); color: var(--paper); }
.qt-light .qt-button:hover { background: #454035; }
.qt-dark .qt-secondary { background: transparent; color: var(--cream); border-color: var(--dark-line); }
.qt-dark .qt-secondary:hover { background: #ffffff15; }
.qt-button:disabled { opacity: .55; cursor: default; }

.qt-inner { min-height: calc(100svh - 11.5rem); max-width: 73rem; padding-block: clamp(2.5rem, 6vw, 6rem); }
.qt-prose > h1, .qt-collection h1 { font: 400 clamp(4.25rem, 9.5vw, 8.4rem)/.86 var(--display); letter-spacing: -.02em; margin: 0 0 1.5rem; }
.qt-prose > h2, .qt-notes h2 { font: 400 clamp(2.2rem, 5vw, 3.6rem)/1 var(--display); margin: 1.6rem 0 .6rem; }
.qt-prose > p:not(.qt-kicker) { max-width: 41rem; font-size: clamp(1rem, 1.7vw, 1.16rem); }
.qt-prose > .qt-project-line { font-weight: 700; }
.qt-prose > .qt-manifesto { font: italic 400 clamp(2rem, 4.2vw, 3.2rem)/1.1 var(--display); margin: 1.5rem 0; border-left: 1px solid var(--notebook-ink); padding-left: .85rem; }
.qt-prose > .qt-credit { font-size: .875rem; color: var(--notebook-ink); }
.qt-project-top { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 8rem); }
.qt-collection { max-width: 48rem; }
.qt-collection-copy p { max-width: 27rem; font-size: 1.15rem; }
.qt-inner:has(.qt-collection-copy > .alignfull) {
	width: 100%;
	max-width: none;
	container-type: inline-size;
}
.qt-collection:has(> .qt-collection-copy > .alignfull) {
	--collection-inset: max(var(--gutter), calc((100cqw - 73rem) / 2));
	margin-inline: var(--collection-inset);
}
.qt-collection-copy > .alignfull {
	width: 100cqw;
	max-width: none;
	margin-inline: calc(-1 * var(--collection-inset));
}
.qt-collection-copy > .wp-block-image.alignfull img { width: 100%; height: auto; }
.qt-dazzle { margin-block: clamp(1.5rem, 4vw, 3rem) 0; }
.qt-dazzle-surface { position: relative; display: block; width: 100%; aspect-ratio: 4.5; min-height: 6rem; padding: 0; border: 0; overflow: hidden; background: #0a0a0b; touch-action: pan-y; }
.qt-dazzle-surface:enabled { cursor: ew-resize; }
.qt-dazzle-surface:focus-visible { outline-offset: -4px; }
.qt-dazzle-surface img, .qt-dazzle-surface canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qt-dazzle-surface img { display: block; object-fit: cover; }
.qt-project-directory { margin-block: clamp(2.25rem, 6vw, 4rem) 1.4rem; }
.qt-project-directory h2 { margin-bottom: .7rem; font: 500 .8rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.qt-project-directory ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.qt-project-directory li { border-bottom: 1px solid var(--line); }
.qt-project-directory a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: clamp(.5rem, 2vw, 1rem); min-height: 3.25rem; padding: .75rem .5rem; font: 500 clamp(.95rem, 1.8vw, 1.12rem)/1.35 var(--mono); text-decoration: none; }
.qt-project-directory a > :first-child { overflow-wrap: anywhere; }
.qt-project-directory time { font-size: .8em; opacity: .8; white-space: nowrap; }
.qt-project-directory a:hover, .qt-project-directory a:focus-visible { background: #2524200c; text-decoration: underline; }
.qt-dark .qt-project-directory ul, .qt-dark .qt-project-directory li { border-color: var(--dark-line); }
.qt-dark .qt-project-directory a > :last-child { color: var(--acid); }
.qt-dark .qt-project-directory a:hover, .qt-dark .qt-project-directory a:focus-visible { background: #ffffff0b; }
.qt-project-photo { transform: rotate(3deg); max-width: 25rem; justify-self: center; }
.qt-dark .qt-collection h1, .qt-dark .qt-prose h1 { font: 700 clamp(3rem, 9vw, 7rem)/.92 var(--body); letter-spacing: -.06em; }
.qt-dark .qt-collection h1 em { color: var(--acid); font-style: normal; }
.qt-project-photo { align-self: start; margin: 1.5rem 0; }
.qt-project-photo img { aspect-ratio: .79; }
.qt-project-photo figcaption, .qt-gallery figcaption { font: 600 1.45rem/1.15 var(--note-font, Caveat), cursive; color: var(--notebook-ink); padding: .6rem .25rem 0; }
.qt-notes { border-top: 1px solid var(--line); margin-top: clamp(2rem, 7vw, 5rem); }
.qt-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.3rem, 3vw, 2.5rem); padding-top: .7rem; }
.qt-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.qt-experiment-intro > p:not(.qt-kicker) { color: #d8d5cb; }
.qt-lab { margin: 1.75rem 0 1.15rem; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.qt-art { max-width: 37rem; border: 1px solid var(--dark-line); padding: .5rem; background: #22232a; }
.qt-art canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.qt-art canvas:active { cursor: grabbing; }
.qt-controls { display: grid; gap: 1rem; }
.qt-controls fieldset { border: 1px solid var(--dark-line); padding: .7rem .8rem .9rem; margin: 0; min-width: 0; }
.qt-controls legend { padding: 0 .4rem; font: 500 .875rem/1.3 var(--mono); color: var(--acid); }
.qt-samples { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem; }
.qt-sample { min-width: 0; border: 1px solid var(--dark-line); background: #232429; color: var(--cream); padding: 0; font-weight: 700; font-size: .875rem; cursor: pointer; }
.qt-sample img { width: 100%; object-fit: cover; aspect-ratio: 1.7; }
.qt-sample span { display: block; padding: .4rem .15rem; }
.qt-sample[aria-pressed="true"] { background: var(--cobalt); border-color: #9aaeff; color: #fff; }
.qt-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.qt-file:focus-visible + label { outline: 2px solid var(--acid); outline-offset: 3px; }
.qt-sliders label { display: grid; gap: .2rem; margin-top: .45rem; }
.qt-sliders input { width: 100%; margin: 0; accent-color: var(--acid); min-height: 1.6rem; }
.qt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.qt-status { min-height: 2.3em; font-size: .875rem; color: #d8d5cb; margin-bottom: 0; }


@media (max-width: 840px) {
	.qt-landing-studio, .qt-landing-play { align-items: start; }
	.qt-studio-content { grid-template-columns: minmax(0, 1fr); margin: 0; }
	.qt-home-photo { max-width: 15rem; transform: rotate(4deg); }
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
	:root {
		--header-logo-width: min(44vw, 14rem);
		--header-space: clamp(.95rem, 4vw, 1.25rem);
		--header-inset: var(--header-space);
	}
	.qt-torn-home {
		--landing-side: clamp(.85rem, 3.5vw, 1.75rem);
	}
	.qt-landing-studio { padding-right: calc(var(--landing-side) + .25rem); }
	.qt-landing-play { padding-left: calc(var(--landing-side) + .4rem); }
	.qt-studio-content, .qt-play-content { display: grid; gap: .85rem; }
	.qt-home-copy { display: contents; }
	.qt-home-copy h1, .qt-play-content h2 { display: grid; align-content: end; min-height: clamp(6.4rem, 28vw, 10rem); margin: 0; }
	.qt-home-copy h1 { display: block; align-content: end; font-size: clamp(2.6rem, 10vw, 4.8rem); }
	.qt-play-content h2 { display: block; font-size: clamp(1.23rem, 6.2vw, 3rem); }
	.qt-home-copy > p:not([class]), .qt-play-content > p { margin: .15rem 0 0; }
	.qt-home-copy > p:not([class]) { grid-row: 3; }
	.qt-hand { margin: 0; font-size: clamp(1.2rem, 6vw, 1.55rem); }
	.qt-home-photo, .qt-play-content .qt-crop-art { grid-row: 2; align-self: start; }
	.qt-home-photo { max-width: 15rem; margin: 0; transform: rotate(-3deg); }
	.qt-home-photo .qt-mounted { padding: .35rem .35rem .7rem; }
	.qt-project-link { display: grid; justify-content: start; margin: 0; gap: .35rem; }
	.qt-project-link strong { font-size: clamp(1.3rem, 6vw, 2.25rem); }
	.qt-project-verb { font-size: .8rem; }
	.qt-play-content .qt-crop-art { margin-right: auto; width: min(100%, 15rem); }
	.qt-play-content .qt-crop-art img { aspect-ratio: .81; }
	.qt-play-content .qt-text-link { justify-self: start; }
	.qt-project-top, .qt-lab { grid-template-columns: 1fr; }
	.qt-project-photo { margin: .2rem 0; width: min(86%, 22rem); }
	.qt-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }

	.qt-torn-home { --tear-width: clamp(5rem, 24vw, 8.5rem); }
	.qt-torn-paper::after {
		filter: saturate(.2) contrast(1.1) brightness(1.17) drop-shadow(8px 1px 6px #000a);
	}
}

.qt-torn-home[data-home-view] { overflow-x: clip; }
.qt-torn-home[data-home-view] .qt-torn-paper { z-index: 2; }
.qt-torn-home[data-home-view] .qt-landing { grid-template-columns: minmax(0, 1fr); overflow: clip; }
.qt-torn-home[data-home-view] .qt-landing-studio,
.qt-torn-home[data-home-view] .qt-landing-play {
	grid-area: 1 / 1;
	width: 100%;
	align-items: flex-start;
}
.qt-torn-home[data-home-view] .qt-landing-studio {
	z-index: 3;
	transform: translateX(calc(var(--qt-split) - var(--qt-studio-rest)));
	pointer-events: none;
	padding: 0;
}
.qt-torn-home[data-home-view] .qt-studio-sheet {
	--mask-bleed: 24vw;
	--mask-offset: calc(var(--mask-bleed) * 1.12);
	--tear-texture: url("assets/ivory-paper-tear.webp");
	--sheet-tear-height: 100%;
	position: relative;
	width: calc(100% + var(--mask-bleed));
	flex: none;
	align-self: stretch;
	padding: var(--landing-top) calc(var(--landing-side) + var(--mask-bleed)) clamp(2.2rem, 5vw, 5rem) var(--landing-side);
	/* Give the tear room to paint beyond the Studio's content width. */
	mask-image: linear-gradient(#000, #000), var(--tear-texture);
	mask-size: calc(var(--qt-studio-rest) - var(--mask-offset) - var(--tear-width) * .33) 100%, var(--tear-width) var(--sheet-tear-height);
	mask-position: left top, calc(var(--qt-studio-rest) - var(--mask-offset) + var(--tear-width) * .62) top;
	mask-repeat: no-repeat;
}
.qt-torn-home[data-home-view="split"]:not([data-home-moving]) .qt-studio-sheet {
	/* The paper texture continues behind the footer, below the sheet. */
	--sheet-tear-height: calc(100% + var(--split-footer-height));
}
@supports (mask-composite: subtract) {
	.qt-torn-home[data-home-view] .qt-studio-sheet::after {
		position: absolute;
		inset-block: 0;
		left: calc(var(--qt-studio-rest) - var(--mask-offset) - var(--tear-width) / 2);
		z-index: 4;
		width: var(--tear-width);
		content: "";
		pointer-events: none;
		background: var(--tear-texture) top center / 100% var(--sheet-tear-height) no-repeat;
		filter: saturate(.2) contrast(1.1) brightness(1.17);
		/* Subtract a shifted copy to expose only the fibres along the edge. */
		mask-image: var(--tear-texture), var(--tear-texture);
		mask-size: 100% var(--sheet-tear-height);
		mask-position: left top, -2.5px top;
		mask-repeat: no-repeat;
		mask-composite: subtract;
	}
}
.qt-torn-home[data-home-view] .qt-landing-studio a { pointer-events: auto; }
.qt-torn-home[data-home-view] .qt-landing-play {
	z-index: 1;
	padding-inline: var(--landing-side);
	clip-path: inset(0 0 0 clamp(0%, calc(var(--qt-split) - var(--tear-width) * .31), 100%));
}
.qt-torn-home[data-home-view] .qt-studio-content,
.qt-torn-home[data-home-view] .qt-play-content {
	width: 100%;
	max-width: none;
	margin: 0;
	display: grid;
	grid-template-columns: minmax(0, var(--qt-column)) minmax(0, 1fr);
	gap: .95rem 0;
	align-items: start;
}
.qt-torn-home[data-home-view] .qt-home-copy {
	display: block;
	grid-column: 2;
	grid-row: 1;
	padding-inline-end: calc(var(--tear-width) * .09);
}
.qt-torn-home[data-home-view] .qt-home-copy h1,
.qt-torn-home[data-home-view] .qt-play-content h2 { min-height: 0; margin-block: 0 .85rem; }
.qt-torn-home[data-home-view] .qt-home-photo {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: min(84%, 25rem);
	justify-self: end;
	margin: .8rem clamp(1.75rem, 8vw, 8rem) 0 0;
}
.qt-torn-home[data-home-view] .qt-project-link {
	grid-column: 2;
	grid-row: 2;
	margin-top: 0;
	padding-inline-end: calc(var(--tear-width) * .09);
}
.qt-torn-home[data-home-view] .qt-home-studio-link { grid-column: 1; grid-row: 3; }
.qt-torn-home[data-home-view] .qt-home-studio-prints {
	--print-overhang: min(18vw, 8rem);
	grid-column: 1 / -1;
	grid-row: 3;
	justify-self: end;
	width: min(calc(77% + var(--print-overhang)), 42rem);
	margin: .5rem calc(-1 * (var(--landing-side) + var(--print-overhang))) 0 0;
}
.qt-play-heading {
	grid-column: 1;
	grid-row: 1;
	padding-inline-end: .65rem;
}
.qt-torn-home[data-home-view] .qt-play-content h2 { font-size: clamp(1.42rem, 5.3vw, 5.2rem); }
.qt-play-heading > p {
	max-width: 18ch;
	margin: clamp(1.3rem, 3vw, 2.25rem) 0 0;
	color: var(--acid);
	font: 500 clamp(.75rem, 1.45vw, 1rem)/1.45 var(--mono);
}
.qt-torn-home[data-home-view] .qt-play-content .qt-crop-art {
	grid-column: 1 / -1;
	grid-row: 2;
	width: min(100%, 58rem);
	justify-self: end;
	margin: 0;
}
.qt-torn-home[data-home-view] .qt-play-content .qt-crop-art img { aspect-ratio: 2.3; }
.qt-torn-home[data-home-view] .qt-play-content > p {
	grid-column: 2;
	grid-row: 1;
	max-width: 32ch;
	padding-inline-start: .55rem;
	margin: 0;
	font-size: clamp(1rem, 1.7vw, 1.38rem);
	line-height: 1.45;
}
.qt-play-feature {
	grid-column: 1;
	grid-row: 3;
	display: grid;
	justify-items: start;
	gap: .15rem;
	padding-inline-end: .65rem;
}
.qt-play-feature small {
	color: var(--cream);
	font: 500 .72rem/1.4 var(--mono);
	letter-spacing: .04em;
	text-transform: uppercase;
}
.qt-play-feature p { max-width: 28ch; margin: .2rem 0 0; font-size: .9rem; line-height: 1.45; }
.qt-play-entry {
	grid-column: 2;
	grid-row: 3;
	display: grid;
	justify-items: center;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	padding-block: clamp(1.25rem, 2.5vw, 2.5rem) clamp(.75rem, 2vw, 1.5rem);
}
.qt-play-hook {
	width: min(88%, 15rem);
	padding: 0;
	border: 0;
	background: none;
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-touch-callout: none;
}
.qt-play-hook > img {
	width: 100%;
	pointer-events: none;
	transform: rotate(var(--qt-hook-angle, 0rad));
}
.qt-play-hook[data-rotating] { cursor: grabbing; }
.qt-torn-home .qt-landing-play .qt-enter-playground {
	display: inline-flex;
	align-items: center;
	width: min(100%, 19rem);
	min-height: 3.25rem;
	gap: .65rem;
	text-align: left;
	background: var(--acid);
	color: #161719;
}
.qt-torn-home .qt-landing-play .qt-enter-playground:hover { background: #f2fc86; }
.qt-enter-playground [aria-hidden] { font: 500 1.2em/1 var(--mono); }

.qt-torn-home[data-home-view="studio"]:not([data-home-moving]) .qt-landing-play,
.qt-torn-home[data-home-view="playground"]:not([data-home-moving]) .qt-landing-studio { visibility: hidden; }
.qt-torn-home[data-home-view]:not([data-home-view="split"]):not([data-home-moving]) .qt-open-studio:not(.qt-return-studio) { display: none; }
.qt-torn-home[data-home-view][data-home-moving] .qt-open-studio { left: calc(var(--qt-split) - .5rem); }
.qt-home-tab.qt-return-studio,
.qt-torn-home[data-home-view="playground"] .qt-open-studio:not(.qt-return-studio) { display: none; }
.qt-torn-home[data-home-view="playground"] .qt-home-tab.qt-return-studio {
	top: auto;
	bottom: clamp(2.2rem, 6vw, 5rem);
	left: max(0px, calc(var(--qt-split) - .5rem));
	display: inline-grid;
}

.qt-tear-grip { display: none; }
@media (hover: hover) and (pointer: fine) {
	.qt-torn-home[data-home-view] .qt-tear-grip {
		display: block;
		position: absolute;
		inset-block: 7rem 0;
		width: clamp(1rem, 4vw, 3.8rem);
		left: clamp(0px, calc(var(--qt-split) - min(2.7rem, var(--tear-width) * .3)), calc(100% - clamp(1rem, 4vw, 3.8rem)));
		z-index: 3;
		cursor: grab;
		user-select: none;
	}
	.qt-torn-home[data-home-view] .qt-home-tab { cursor: grab; user-select: none; }
	.qt-torn-home[data-home-dragging] .qt-landing,
	.qt-torn-home[data-home-dragging] .qt-home-tab,
	.qt-torn-home[data-home-dragging] .qt-tear-grip { cursor: grabbing; }
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
	.qt-torn-home[data-home-view] .qt-studio-content { grid-template-rows: max-content 1fr auto auto; }
	.qt-torn-home[data-home-view] .qt-home-copy { display: contents; }
	.qt-torn-home[data-home-view] .qt-home-copy > :not(h1) { grid-column: 1 / -1; grid-row: auto; margin: 0; }
	.qt-torn-home[data-home-view] .qt-home-copy > p:first-of-type { grid-row: 3; max-width: none; }
	.qt-torn-home[data-home-view] .qt-home-copy > .qt-home-intro { grid-row: 3; max-width: none; }
	.qt-torn-home[data-home-view] .qt-home-copy h1 {
		grid-column: 2;
		grid-row: 1;
		padding-left: .75rem;
		font-size: clamp(1.9rem, 8.8vw, 4.4rem);
		overflow-wrap: anywhere;
		margin-bottom: 0;
	}
	.qt-torn-home[data-home-view] .qt-home-copy h1 > em {
		font-size: min(.84em, 6.1vw);
		white-space: nowrap;
	}
	.qt-torn-home[data-home-view] .qt-home-photo { width: 91%; justify-self: start; margin: .6rem 0 0; }
	.qt-torn-home[data-home-view] .qt-home-studio-link,
	.qt-torn-home[data-home-view] .qt-home-studio-prints { grid-row: 4; }
	.qt-torn-home[data-home-view] .qt-home-studio-prints { margin-top: 2rem; }
	.qt-torn-home[data-home-view] .qt-project-link { gap: .55rem; margin-top: .9rem; padding-inline: .75rem 0; }
	.qt-torn-home[data-home-view] .qt-project-link::before { inset-inline-start: .75rem; }
	.qt-torn-home[data-home-view] .qt-play-content h2 { font-size: clamp(1.35rem, 5.3vw, 3rem); }
	.qt-torn-home[data-home-view] .qt-play-content {
		grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
	}
	.qt-play-heading { grid-column: 1 / -1; padding-inline-end: 0; text-align: left; }
	.qt-play-heading > p { max-width: none; margin-top: .65rem; }
	.qt-torn-home[data-home-view] .qt-play-content > p {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
		padding: 0;
		text-align: left;
		font-size: clamp(.95rem, 4.2vw, 1.1rem);
	}
	.qt-torn-home[data-home-view] .qt-play-content .qt-crop-art { grid-row: 3; }
	.qt-play-feature { grid-row: 4; }
	.qt-play-entry { grid-row: 4; }
	.qt-torn-home .qt-landing-play .qt-enter-playground {
		gap: .35rem;
		padding-inline: .45rem;
		font-size: .8rem;
	}
	.qt-torn-home[data-home-view] .qt-play-content .qt-crop-art img { aspect-ratio: 1.42; }
}

@media (prefers-reduced-motion: reduce) {
	.qt-torn-home[data-home-view="studio"] .qt-studio-content,
	.qt-torn-home[data-home-view="playground"] .qt-play-content {
		animation: qt-home-fade 140ms ease-out;
	}
}

@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
	.qt-torn-home[data-home-view] .qt-studio-content,
	.qt-torn-home[data-home-view] .qt-play-content { row-gap: clamp(1rem, 1.7vw, 1.6rem); }

	.qt-torn-home[data-home-view] .qt-home-copy { display: contents; }
	.qt-torn-home[data-home-view] .qt-home-copy h1 {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		font-size: clamp(2.7rem, 5vw, 5.25rem);
	}
	.qt-torn-home[data-home-view] .qt-home-copy > :not(h1) {
		grid-column: 2;
		grid-row: 3;
		max-width: 36ch;
		margin: 0;
	}
	.qt-torn-home[data-home-view] .qt-home-photo {
		grid-row: 1 / span 3;
		width: min(76%, 25rem);
		justify-self: center;
		margin-inline: 0;
	}
	.qt-torn-home[data-home-view] .qt-home-studio-link,
	.qt-torn-home[data-home-view] .qt-home-studio-prints { grid-row: 4; }
	.qt-torn-home[data-home-view] .qt-home-studio-prints { margin-top: 1.75rem; }

	.qt-play-heading {
		grid-column: 2;
		padding-inline: .55rem 0;
	}
	.qt-torn-home[data-home-view] .qt-play-content h2 {
		font-size: clamp(2rem, 4vw, 4.6rem);
		margin-bottom: .65rem;
	}
	.qt-play-heading > p { max-width: none; margin-top: .65rem; }
	.qt-torn-home[data-home-view] .qt-play-content > p {
		grid-row: 2;
		max-width: 33ch;
		font-size: clamp(1rem, 1.45vw, 1.25rem);
	}
	.qt-torn-home[data-home-view] .qt-play-content .qt-crop-art {
		grid-row: 3;
		width: min(100%, 76rem);
		justify-self: center;
	}
	.qt-torn-home[data-home-view] .qt-play-content .qt-crop-art img { aspect-ratio: 2.15; }
	.qt-play-feature, .qt-play-entry { grid-row: 4; }
}

@keyframes qt-home-fade {
	from { opacity: .74; }
	to { opacity: 1; }
}
