/* The home page's kit (21 Oct 2026, the Web Director's craft): paper and ink, the site's drop shadows. home-kit.js plays
	the section marks, lights the Project cards in their product's accent and writes the "updated" lines. */

/* section marks: an ink line glyph beside each heading (glyphs.py, drawn by marks.py) */
.sec-head:has(.hk-mark) { width: fit-content; }
.sec-h.hk-marked { display: flex; align-items: center; gap: .3em; }
.hk-mark { flex: none; display: block; width: 1.1em; height: 1.1em; margin: -.1em 0 -.1em -.04em; color: var(--ink);
	filter: drop-shadow(0 2px 3px rgb(var(--shadow-rgb) / calc(.12 * var(--shadow-k)))); }
.hk-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* the Project cards (18 Nov 2026): one compact card per product, a 16:10 picture thumb on the left and the logo disc,
	name, status and "updated" lines beside it, two side by side across the games' width and stacked on phones, so the Games
	header stays on the first screen; the whole card is the link; the game cards' paper, radius, shadows and lift. A card
	sizes its type by its own width (a container, like the game cards): narrow cards take the smaller type */
.projects { width: min(100%, calc(1240px - 2 * var(--gutter))); }
.pcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-self: stretch; }
.pc-col { display: grid; min-width: 0; }
.pc { position: relative; container-type: inline-size; display: flex; align-items: center; min-width: 0; padding: var(--pad); border-radius: var(--radius);
	background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); -webkit-touch-callout: none; -webkit-user-select: none;
	user-select: none; -webkit-tap-highlight-color: transparent; transition: translate .6s var(--ease), box-shadow .6s var(--ease), scale .6s var(--ease); }
.pc-thumb { position: relative; flex: none; display: block; width: 46%; max-width: 252px; aspect-ratio: 16 / 10; overflow: clip;
	border-radius: max(0px, calc(var(--radius) - var(--pad) / 1.4)); background: var(--soft);
	box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / calc(.08 * var(--thumb-shadow))), 0 3px 10px rgb(var(--shadow-rgb) / calc(.12 * var(--thumb-shadow))); }
.pc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease), opacity .7s var(--ease); }
.pc-thumb img.hk-wait { opacity: 0; }
.pc[data-accent="shotscript"] .pc-thumb img { transform-origin: 0 50%; }
.pc-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; margin-left: 14px; padding: 2px 2px 0 0; text-align: center; }
.pc-name { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; margin-bottom: 9px; font-weight: 800; font-size: 19px; line-height: 1.2; }
.pc .pill-ico { position: relative; }
.pc-foot { position: relative; display: flex; flex-direction: column; align-items: center; align-self: stretch; padding-top: 9px; }
.pc-foot::before { content: ""; position: absolute; top: 0; left: 50%; width: calc(var(--divider-w) * 100%); height: 1px; translate: -50% 0;
	background: color-mix(in srgb, var(--ink) calc(var(--divider-a) * 100%), transparent); }
.pc-status { display: block; max-width: 100%; color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.3; text-wrap: balance; }
.pc-status svg { display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; }
.pc-status circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.pc-status path { fill: currentColor; }
@media (hover: hover) {
	.pc:hover { translate: 0 calc(var(--lift) * -1); box-shadow: var(--shadow-md); transition-duration: .35s; }
	.pc:hover .pc-thumb img { scale: 1.04; transition-duration: .5s; }
	.pc:hover .pill-ico { scale: 1.06; transition-duration: .35s; }
}
.pc:active { scale: .98; transition-duration: .35s, .35s, .4s; }
.hk-when { display: none; }
@media (scripting: enabled) {
	.hk-when { position: relative; display: block; align-self: stretch; height: 15px; margin-top: 8px; font-weight: 400; font-size: 11px; line-height: 15px;
		color: var(--age-color); opacity: var(--age-a); pointer-events: none; }
}
.hk-when-t { position: absolute; top: 0; left: 50%; translate: -50% 0; white-space: nowrap; opacity: 0; }
.pc .hk-when { margin-top: 3px; }
/* narrow cards (two columns on a tablet, one on a phone): the smaller disc and type; the status line may take two lines */
@container (max-width: 400px) {
	.pc-thumb { border-radius: 17px; }
	.pc-body { margin-left: 12px; padding: 0; }
	.pc-name { gap: 7px; margin-bottom: 7px; font-size: 16px; }
	.pc .pill-ico { width: 32px; height: 32px; }
	.pc .pill-ico img { height: 20px; max-width: 24px; }
	.pc-foot { padding-top: 7px; }
	.pc-status { font-size: 12px; line-height: 1.25; }
	.pc-status svg { width: 13px; height: 13px; margin-right: 5px; }
}
@container (max-width: 300px) {
	.pc-thumb { width: 40%; border-radius: 14px; }
	.pc-body { margin-left: 10px; }
	.pc-name { gap: 6px; font-size: 15px; }
	.pc .pill-ico { width: 28px; height: 28px; }
	.pc .pill-ico img { height: 17px; max-width: 21px; }
	.pc-status { font-size: 11.5px; }
}

/* the accents (home-kit.js writes their opacity and transform), on the Project cards and any pill that has one */
.pill[data-accent] { position: relative; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pill[data-accent] .pill-ico { position: relative; }
.hk-edge { position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
	box-shadow: inset 0 0 0 2px #d23a7e, 0 10px 26px rgb(210 58 126 / .16); }
.pill-ico .hk-reticle { position: absolute; left: 50%; top: 50%; width: 150%; height: 150%; translate: -50% -50%; overflow: visible; color: #ff6b1a;
	opacity: 0; pointer-events: none; }
.hk-on .pill[data-accent="mime"]:focus-visible, .hk-on .pill[data-accent="mimestudio"]:focus-visible { outline-color: transparent; }
.hk-trace { position: absolute; left: -6px; top: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; color: #000;
	opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
	.hk-when { height: 14px; margin-top: 7px; font-size: 10.5px; line-height: 14px; }
	.pcs { grid-template-columns: minmax(0, 1fr); }
}

/* the newest live article, one quiet line under the Projects pills (22 Oct 2026, the Articles job; articles/render.py fill()
	puts it into index.html only while an article is live): the size and grey of the "updated" lines, its product's icon.
	The hero centres .projects at its content's width, and the title's nowrap width counts there, so a long title pushed
	the phone page 2 px sideways (29 Oct 2026): capped to the hero, the title ellipsizes instead */
.projects { max-width: 100%; }
.hk-article { position: relative; display: inline-flex; align-items: center; gap: 7px; max-width: min(100%, 560px); margin-top: 4px; padding: 5px 11px 5px 9px; border-radius: 999px;
	color: var(--age-color); font-weight: 400; font-size: 11px; line-height: 15px; text-decoration: none; -webkit-tap-highlight-color: transparent;
	transition: color .6s var(--ease), background-color .6s var(--ease), scale .6s var(--ease); }
.hk-article-ico { flex: none; width: auto; height: 13px; max-width: 16px; opacity: var(--age-a); transition: opacity .6s var(--ease), rotate .6s var(--ease); }
.hk-article-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: var(--age-a); transition: opacity .6s var(--ease); }
@media (hover: hover) {
	.hk-article:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); transition-duration: .35s; }
	.hk-article:hover .hk-article-ico, .hk-article:hover .hk-article-t { opacity: 1; transition-duration: .35s; }
	.hk-article:hover .hk-article-ico { rotate: -8deg; }
}
.hk-article:active { scale: .96; transition-duration: .35s, .35s, .4s; }
.hk-article:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* a 44 px tall tap box on the small line */
.hk-article::before { content: ""; position: absolute; inset: 50% 0 auto; height: 44px; translate: 0 -50%; }
/* on a phone a title that doesn't fit takes a second line instead of losing its last word (21 Nov 2026); one that fits
	stays one line, and wider screens keep the one line with its ellipsis */
@media (max-width: 640px) { .hk-article { font-size: 10.5px; line-height: 14px; } .hk-article-t { white-space: normal; } }

/* the pills' taglines (home-kit.js places and fades them) */
.hk-tip { position: fixed; z-index: 60; left: 0; top: 0; padding: 7px 11px; border-radius: 10px; background: var(--ink); color: var(--paper);
	font-weight: 700; font-size: 12.5px; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden;
	box-shadow: 0 2px 6px rgb(var(--shadow-rgb) / .14), 0 8px 24px rgb(var(--shadow-rgb) / .16); }

/* a card's hold veil covers its picture only, so the title, visits and age stay readable while it is pointed at (17 Nov 2026) */
.card .hold-veil { inset: var(--hp) var(--hp) auto; aspect-ratio: 16 / 9; border-radius: max(0px, calc(var(--radius) - var(--pad) / 1.4)); }

/* the Videos window clips its cards (overflow and its edge fades), so a video card's ring sits inside the card instead of
	4 px out, where the window cut its bottom */
.vid-window .card:focus-visible { outline-offset: -3px; }

/* the hold cards' one status line (hold.js): read out, never seen (20 Nov 2026) */
.hold-say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
