/*
 * /desktop/: the desktop app's own page. The room is the site's (paper and ink, from
 * styles.css); the app's bands are its graphite (the .desk tokens in desktop.css), so the
 * hero and the download read like the homepage's desktop section. Screenshots are the app
 * itself, framed like its window. Signal yellow only on focus and the playing sound.
 */

/* The hero: the desk section with an h1, and the app below it. */
.dp-hero .desk-wrap { padding-top: clamp(56px, 9vh, 104px); padding-bottom: clamp(56px, 8vh, 96px); }
.dp-hero h1 {
	margin: 0; font: 800 clamp(3.1rem, 8.6cqi, 9rem)/0.86 var(--d-sans); font-stretch: 68%; letter-spacing: -0.012em;
	color: var(--d-text); text-wrap: balance;
}

/* A screenshot, framed like the app's window. */
.dp-shot { margin: 0; min-width: 0; }
.dp-shot img {
	width: 100%; height: auto; border-radius: 10px; background: #18191a;
	border: 1px solid var(--graphite-line); box-shadow: 0 30px 80px rgb(0 0 0 / 0.28);
}
.dp-shot-hero { margin-top: clamp(48px, 6cqi, 88px); }
.desk .dp-shot img { border-color: var(--d-line); box-shadow: 0 40px 120px rgb(0 0 0 / 0.55); }

/* On this page. */
.dp-toc {
	display: flex; flex-wrap: wrap; gap: 4px 22px; padding-block: 18px; border-bottom: 1px solid var(--rule);
	font-size: 0.95rem; font-weight: 500;
}
.dp-toc a { text-decoration: none; padding-block: 4px; }
.dp-toc a:hover { text-decoration: underline; }

/* The features: words beside a screenshot, alternating sides. */
.dp-num { margin: 0 0 14px; font: 400 0.78rem/1 var(--mono); font-stretch: 87.5%; letter-spacing: 0.06em; color: var(--steel); }
.dp-feature, .dp-rest {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center;
	padding-top: clamp(88px, 13vh, 150px);
}
.dp-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.dp-flip .dp-copy { order: 2; }
.dp-feature h2, .dp-band h2, .dp-rest h2, .dp-get h2 {
	margin: 0 0 24px; font: 800 clamp(2.5rem, 5vw, 4.5rem)/0.9 var(--sans); font-stretch: 68%;
	letter-spacing: -0.005em; text-wrap: balance;
}
.dp-copy > p, .dp-band-head > p:last-child, .dp-rewind > p { margin: 0; max-width: 34rem; font-size: 1.15rem; color: var(--ink); }
.dp-facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 34rem; }
.dp-facts li { padding-top: 12px; border-top: 1px solid var(--rule); font-size: 1rem; color: var(--steel); }
.dp-facts b { color: var(--ink); font-weight: 600; }
.dp-shot-tall { justify-self: center; max-width: 560px; width: 100%; }
.dp-shot-panel { justify-self: center; max-width: 720px; width: 100%; }

/* The four layouts, drawn small. */
.dp-layouts { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 28px 0 0; padding: 0; font-size: 0.85rem; color: var(--steel); }
.dp-layouts li { display: grid; justify-items: center; gap: 6px; }
.dp-lay { position: relative; display: block; width: 64px; height: 42px; border-radius: 4px; background: var(--graphite); overflow: hidden; }
.dp-lay i { position: absolute; display: block; border-radius: 2px; }
.dp-lay i:first-child { background: #2a4fb8; }
.dp-lay i:last-child { background: var(--graphite-dim); }
.dp-lay-below i:first-child { inset: 4px 4px 16px; }
.dp-lay-below i:last-child { inset: auto 4px 4px; height: 9px; }
.dp-lay-left i:first-child { inset: 4px 4px 4px 24px; }
.dp-lay-left i:last-child { inset: 4px auto 4px 4px; width: 17px; }
.dp-lay-right i:first-child { inset: 4px 24px 4px 4px; }
.dp-lay-right i:last-child { inset: 4px 4px 4px auto; width: 17px; }
.dp-lay-float i:first-child { inset: 4px; }
.dp-lay-float i:last-child { inset: auto 7px 7px auto; width: 20px; height: 16px; outline: 2px solid var(--graphite); }

/* Direction: a graphite band with the lookbook's real frames. */
.dp-band { margin-top: clamp(88px, 13vh, 150px); padding-block: clamp(80px, 11vh, 128px); background: var(--graphite); color: var(--on-graphite); }
.dp-band .dp-num { color: var(--graphite-dim); }
.dp-band-head { max-width: 46rem; }
.dp-band-head > p:last-child { color: var(--on-graphite); }
.dp-looks { margin-top: 48px; }
.dp-look-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dp-look-grid figure, .dp-format-row figure { margin: 0; }
.dp-look-grid img, .dp-format-row img { width: 100%; height: auto; border-radius: 6px; display: block; }
.dp-look-grid figcaption { padding-top: 10px; font-size: 0.95rem; color: var(--graphite-dim); }
.dp-look-grid figcaption b { display: block; color: var(--on-graphite); font-weight: 600; }
.dp-formats { margin-top: 56px; }
.dp-formats-head { margin: 0 0 18px; color: var(--graphite-dim); }
.dp-formats-head b { color: var(--on-graphite); font-weight: 600; }
.dp-format-row { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 20px; }
.dp-format-row li { min-width: 0; }
.dp-format-row li:nth-child(1) { flex: 16 1 0; }
.dp-format-row li:nth-child(2) { flex: 5.06 1 0; }
.dp-format-row li:nth-child(3) { flex: 9 1 0; }
.dp-format-row figcaption { padding-top: 8px; font: 400 0.75rem var(--mono); font-stretch: 87.5%; color: var(--graphite-dim); }
.dp-shot-wide { margin-top: 64px; }
.dp-band .dp-shot img { border-color: var(--graphite-line); box-shadow: 0 40px 120px rgb(0 0 0 / 0.5); }
.dp-kinds { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.dp-kinds li { padding-top: 12px; border-top: 1px solid var(--graphite-line); color: var(--graphite-dim); font-size: 0.98rem; }
.dp-kinds b { display: block; margin-bottom: 4px; color: var(--on-graphite); font-weight: 600; }

/* The library, below its screenshot. */
.dp-lib { grid-column: 1 / -1; }
.dp-lib h3 { margin: 24px 0 4px; font: 800 1.85rem/1 var(--sans); font-stretch: 68%; }
.dp-lib-note { margin: 0 0 18px; color: var(--steel); }
.dp-hdri { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dp-hdri img { width: 100%; height: auto; border-radius: 6px; background: var(--graphite); }
.dp-hdri span { display: block; padding-top: 8px; font-size: 0.92rem; color: var(--steel); }
.dp-hdri b { display: block; color: var(--ink); font-weight: 600; }
.dp-sfx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dp-sound {
	display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 40px; gap: 10px 12px; align-items: center;
	width: 100%; padding: 14px; border: 0; border-radius: var(--r); background: var(--graphite); color: var(--on-graphite);
	font: inherit; text-align: left; cursor: pointer;
}
.dp-sound:hover { background: var(--graphite-2); }
.dp-sound svg { grid-column: 1 / -1; width: 100%; height: 40px; fill: var(--graphite-dim); }
.dp-sound[aria-pressed="true"] svg { fill: var(--signal); }
.dp-sound-name b { display: block; font-size: 0.98rem; font-weight: 600; }
.dp-sound-name small { font: 400 0.72rem var(--mono); font-stretch: 87.5%; color: var(--graphite-dim); }
.dp-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--on-graphite); }
.dp-play::before { content: ""; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--graphite); }
.dp-sound[aria-pressed="true"] .dp-play::before { margin: 0; width: 10px; height: 12px; border: 0; border-inline: 3.5px solid var(--graphite); }
.dp-sound:focus-visible { outline: 2px solid var(--on-graphite); outline-offset: 2px; box-shadow: 0 0 0 5px var(--signal); }

/* Rewind, and the smaller things. */
.dp-rest { align-items: start; }
.dp-timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; max-width: 26rem; }
.dp-timeline li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--rule); }
.dp-timeline li.gone span { color: var(--steel); text-decoration: line-through; }
.dp-timeline em { font: normal 600 0.85rem var(--sans); padding: 3px 10px; border-radius: var(--r); background: var(--ink); color: var(--paper); }
.dp-small { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 32px; }
.dp-small li { padding-top: 14px; border-top: 2px solid var(--ink); color: var(--steel); }
.dp-small b { display: block; margin-bottom: 6px; color: var(--ink); font: 800 1.6rem/1 var(--sans); font-stretch: 68%; }

/* The download. */
.dp-get { margin-top: clamp(104px, 15vh, 168px); }
.dp-get h2 { max-width: 16ch; color: var(--d-text); font-size: clamp(2.75rem, 7cqi, 6.5rem); }
.dp-get-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; margin-top: 40px; align-items: start; }
.dp-builds h3 { margin: 0 0 8px; font: 600 0.78rem/1.4 var(--d-mono); font-stretch: 87.5%; letter-spacing: 0.04em; text-transform: uppercase; color: var(--d-dim); }
.dp-builds .desk-dl-others { margin: 0; font-size: 1rem; }
.dp-builds .desk-dl-others a { color: var(--d-text); }
.dp-notes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; color: var(--d-dim); font-size: 0.95rem; }
.dp-notes b { color: var(--d-text); font-weight: 600; }
.dp-notes a { color: var(--d-text); }
.dp-notes code { color: var(--d-code); }
.dp + .footer, .dp .footer { margin-top: 0; }

@media (max-width: 960px) {
	.dp-feature, .dp-rest, .dp-flip { grid-template-columns: minmax(0, 1fr); }
	.dp-flip .dp-copy { order: 0; }
	.dp-look-grid, .dp-hdri, .dp-sfx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dp-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dp-get-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.dp-hero .desk-wrap, .dp-get .desk-wrap { padding-inline: 16px; }
	.dp-look-grid, .dp-hdri, .dp-sfx, .dp-kinds, .dp-small { grid-template-columns: minmax(0, 1fr); }
	.dp-format-row { gap: 10px; }
	.dp-format-name { display: none; }
	.dp-shot img { border-radius: 6px; }
}
