/* ---------- The text pages made rich (page-kit.js): About's timeline (a
	spine with a node per year, each game's thumbnail and its visits as a violet bar scaled to the biggest game, the
	product icons under it) and Press's dark toggles and colour cards. Everything here is drawn full without scripts. ---------- */
.page { --violet: #cc9af2; --tl-gap: 20px; --tl-col: 52px; --tl-node: 30px; --tl-row: 41px; }

/* ---------- About: the timeline ---------- */
.page .tl { display: grid; gap: var(--tl-gap); margin-top: 30px; padding: 0; list-style: none; }
.page .tl > li { margin: 0; }
.tl-year { display: grid; grid-template-columns: var(--tl-col) var(--tl-node) minmax(0, 1fr); align-items: start; }
.tl-year .year { grid-column: 1; grid-row: 1; font-weight: 900; font-size: 17px; line-height: var(--tl-row); color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-node { position: relative; display: block; grid-column: 2; grid-row: 1; align-self: stretch; }
.tl-dot, .tl-line { position: absolute; left: 50%; display: block; }
.tl-dot { top: calc(var(--tl-row) / 2); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 3px var(--ink); transition: scale .6s var(--ease); }
.tl-year .tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--violet); opacity: 0; transition: opacity .6s var(--ease); }
@media (hover: hover) {
	.tl-year:has(.tl-link:hover) .tl-dot { scale: 1.3; transition-duration: .35s; }
	.tl-year:has(.tl-link:hover) .tl-dot::after { opacity: 1; transition-duration: .35s; }
}
.tl-line { top: calc(var(--tl-row) / 2); bottom: calc(-1 * var(--tl-gap) - var(--tl-row) / 2); width: 2px; margin-left: -1px; border-radius: 1px; background: color-mix(in srgb, var(--ink) 16%, transparent); transform-origin: 50% 0; }
.tl-year:last-child .tl-line { bottom: calc(-1 * var(--tl-gap) - 12.8px); background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--ink) 22%, transparent) 0 4px, transparent 4px 9px); }
.tl .year-items { grid-column: 3; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }  /* a long name wraps in its column (247 px rows in a 218 px column at 320) */
.tl .tl-game { position: relative; display: block; min-width: 0; min-height: var(--tl-row); padding-left: 86px; font-size: 16px; line-height: 1.375; }
.page a.tl-link { font-weight: 650; -webkit-tap-highlight-color: transparent; }
.tl-thumb { position: absolute; left: 0; top: 0; width: 72px; height: var(--tl-row); border-radius: 10px; object-fit: cover; background: var(--soft); box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .14);
	transition: opacity .7s var(--ease), scale .6s var(--ease), rotate .6s var(--ease); }
@media (hover: hover) { .tl-link:hover .tl-thumb { scale: 1.07; rotate: -2deg; transition-duration: .7s, .35s, .35s; } }
.tl-link:active .tl-thumb { scale: .95; rotate: 0deg; transition-duration: .7s, .4s, .4s; }
.tl-bar { display: flex; align-items: center; gap: 8px; height: 17px; margin-top: 2px; padding-right: 7.2em; font-size: 13px; line-height: 1; }
.tl-fill { flex: none; display: block; height: 8px; min-width: 8px; border-radius: 4px; overflow: hidden; }
.tl-ink { display: block; height: 100%; border-radius: 4px; background: var(--violet); }
.tl-bar b { flex: none; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* "Now in development": the spine's last node, the product icons beside their names */
.page .tl-now { position: relative; margin-top: var(--tl-gap); padding-left: calc(var(--tl-col) + var(--tl-node)); }
.tl-now .tl-node { position: static; display: inline; }
.tl-now .tl-dot { left: calc(var(--tl-col) + var(--tl-node) / 2); top: 12.8px; background: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 55%, transparent); }
.page a.tl-prod { white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.tl-prod img { display: inline-block; width: auto; height: 1.15em; margin-right: .32em; vertical-align: -.2em; transition: opacity .7s var(--ease), translate .6s var(--ease), scale .6s var(--ease); }
@media (hover: hover) { .tl-prod:hover img { translate: 0 -2px; scale: 1.14; transition-duration: .7s, .35s, .35s; } }
.tl-prod:active img { translate: 0 0; scale: .9; transition-duration: .7s, .4s, .4s; }
/* under it, what each one is: the home page's line under its Projects pills, word for word */
.page .tl-say { margin-top: 8px; padding-left: calc(var(--tl-col) + var(--tl-node)); color: var(--muted); }
.tl-say span { display: inline-block; }  /* each one wraps whole */

@media (max-width: 600px) {
	.page { --tl-node: 26px; --tl-gap: 18px; }
	.tl-year { grid-template-columns: var(--tl-node) minmax(0, 1fr); }
	.tl-year .year { grid-column: 2; line-height: 24px; }
	.tl-node { grid-column: 1; grid-row: 1 / span 2; }
	.tl-dot, .tl-line { top: 12px; }
	.tl-line { bottom: calc(-1 * var(--tl-gap) - 12px); }
	.tl .year-items { grid-column: 2; grid-row: 2; margin-top: 8px; }
	.tl .tl-game { padding-left: 80px; font-size: 15px; }
	.tl-bar { padding-right: 7em; font-size: 12.5px; }
	.page .tl-now { padding-left: var(--tl-node); }
	.tl-now .tl-dot { left: calc(var(--tl-node) / 2); }
	.page .tl-say { padding-left: var(--tl-node); }
	.tl-say span { display: block; }
}

/* the bars' lengths, as a share of the biggest game's (the build writes tl-w<percent>; markup may carry no style) */
.tl-w1 { width: 1%; } .tl-w2 { width: 2%; } .tl-w3 { width: 3%; } .tl-w4 { width: 4%; } .tl-w5 { width: 5%; } .tl-w6 { width: 6%; } .tl-w7 { width: 7%; } .tl-w8 { width: 8%; } .tl-w9 { width: 9%; } .tl-w10 { width: 10%; }
.tl-w11 { width: 11%; } .tl-w12 { width: 12%; } .tl-w13 { width: 13%; } .tl-w14 { width: 14%; } .tl-w15 { width: 15%; } .tl-w16 { width: 16%; } .tl-w17 { width: 17%; } .tl-w18 { width: 18%; } .tl-w19 { width: 19%; } .tl-w20 { width: 20%; }
.tl-w21 { width: 21%; } .tl-w22 { width: 22%; } .tl-w23 { width: 23%; } .tl-w24 { width: 24%; } .tl-w25 { width: 25%; } .tl-w26 { width: 26%; } .tl-w27 { width: 27%; } .tl-w28 { width: 28%; } .tl-w29 { width: 29%; } .tl-w30 { width: 30%; }
.tl-w31 { width: 31%; } .tl-w32 { width: 32%; } .tl-w33 { width: 33%; } .tl-w34 { width: 34%; } .tl-w35 { width: 35%; } .tl-w36 { width: 36%; } .tl-w37 { width: 37%; } .tl-w38 { width: 38%; } .tl-w39 { width: 39%; } .tl-w40 { width: 40%; }
.tl-w41 { width: 41%; } .tl-w42 { width: 42%; } .tl-w43 { width: 43%; } .tl-w44 { width: 44%; } .tl-w45 { width: 45%; } .tl-w46 { width: 46%; } .tl-w47 { width: 47%; } .tl-w48 { width: 48%; } .tl-w49 { width: 49%; } .tl-w50 { width: 50%; }
.tl-w51 { width: 51%; } .tl-w52 { width: 52%; } .tl-w53 { width: 53%; } .tl-w54 { width: 54%; } .tl-w55 { width: 55%; } .tl-w56 { width: 56%; } .tl-w57 { width: 57%; } .tl-w58 { width: 58%; } .tl-w59 { width: 59%; } .tl-w60 { width: 60%; }
.tl-w61 { width: 61%; } .tl-w62 { width: 62%; } .tl-w63 { width: 63%; } .tl-w64 { width: 64%; } .tl-w65 { width: 65%; } .tl-w66 { width: 66%; } .tl-w67 { width: 67%; } .tl-w68 { width: 68%; } .tl-w69 { width: 69%; } .tl-w70 { width: 70%; }
.tl-w71 { width: 71%; } .tl-w72 { width: 72%; } .tl-w73 { width: 73%; } .tl-w74 { width: 74%; } .tl-w75 { width: 75%; } .tl-w76 { width: 76%; } .tl-w77 { width: 77%; } .tl-w78 { width: 78%; } .tl-w79 { width: 79%; } .tl-w80 { width: 80%; }
.tl-w81 { width: 81%; } .tl-w82 { width: 82%; } .tl-w83 { width: 83%; } .tl-w84 { width: 84%; } .tl-w85 { width: 85%; } .tl-w86 { width: 86%; } .tl-w87 { width: 87%; } .tl-w88 { width: 88%; } .tl-w89 { width: 89%; } .tl-w90 { width: 90%; }
.tl-w91 { width: 91%; } .tl-w92 { width: 92%; } .tl-w93 { width: 93%; } .tl-w94 { width: 94%; } .tl-w95 { width: 95%; } .tl-w96 { width: 96%; } .tl-w97 { width: 97%; } .tl-w98 { width: 98%; } .tl-w99 { width: 99%; } .tl-w100 { width: 100%; }

/* ---------- Press: a logo on paper or on its brand's ink ---------- */
/* no overflow clip on the art: the Dark toggle sits 5 px (phones 4) in from its corner and the site's focus ring needs
	7 px, so a clip cut the ring; the ink keeps the art's corners itself (an svg's drawing is cut to its own rounded edge) */
.pk-art { position: relative; isolation: isolate; }
.pk-art > svg, .pk-art > img { grid-area: 1 / 1; }
.press-logo-art.pk-art img { max-height: 86px; }
.pk-ink { place-self: stretch; width: 100%; height: 100%; border-radius: inherit; opacity: 0; transition: opacity .6s var(--ease); }
.pk-art .pk-light, .pk-art .pk-dark { transition: opacity .6s var(--ease); }
.pk-art .pk-dark { opacity: 0; }
.pk-art.is-dark .pk-ink, .pk-art.is-dark .pk-dark { opacity: 1; }
.pk-art.is-dark .pk-light { opacity: 0; }
.pk-toggle { position: absolute; top: 5px; right: 5px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer;
	box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .16), 0 3px 10px rgb(var(--shadow-rgb) / .1); -webkit-tap-highlight-color: transparent; transition: scale .6s var(--ease); }
.pk-toggle[hidden] { display: none; }
.pk-toggle::before { content: ""; position: absolute; inset: -4px -4px -19px -19px; border-radius: 12px; }  /* 44 px inside the art's clip */
.pk-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: rotate .6s var(--ease); }
.pk-toggle .pk-half { fill: currentColor; stroke: none; }
.pk-toggle[aria-pressed="true"] svg { rotate: 180deg; }
@media (hover: hover) {
	.pk-toggle:hover { scale: 1.12; transition-duration: .35s; }
	.pk-toggle:hover svg { rotate: -25deg; transition-duration: .35s; }
	.pk-toggle[aria-pressed="true"]:hover svg { rotate: 155deg; }
}
.pk-toggle:active { scale: .88; transition-duration: .4s; }

/* ---------- Press: a colour card per brand, each swatch copies its hex ---------- */
.page .pk-colours { margin-top: 12px; }
.press-logo.pk-brand { grid-template-rows: 150px auto; }
.pk-chips { display: grid; gap: 4px; min-height: 0; }
.pk-chip { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; min-width: 0; padding: 0 9px 7px 11px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
	-webkit-tap-highlight-color: transparent; transition: scale .6s var(--ease); }
.pk-chip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(var(--shadow-rgb) / .08); pointer-events: none; }
.pk-chip.on-dark { color: #fff; }
.pk-chip.on-bright { color: #2e2f38; } /* a bright chip white can't read on (the ShotScript orange): 4.52:1 */
.pk-fill { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; border-radius: inherit; }
.pk-hex { font-weight: 750; font-size: 13px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pk-copy { display: grid; flex: none; width: 17px; height: 17px; opacity: .6; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.pk-copy svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .35s var(--ease), scale .35s var(--ease); }
.pk-copy .i-done { opacity: 0; scale: .6; stroke-width: 2.4; }
.pk-chip.done .pk-copy { opacity: 1; }
.pk-chip.done .i-copy { opacity: 0; scale: .6; }
.pk-chip.done .i-done { opacity: 1; scale: 1; }
@media (hover: hover) {
	.pk-copy { opacity: 0; translate: 3px 0; }
	.pk-chip:hover { z-index: 1; scale: 1.04; transition-duration: .35s; }
	.pk-chip:hover .pk-copy, .pk-chip:focus-visible .pk-copy, .pk-chip.done .pk-copy { opacity: 1; translate: 0 0; transition-duration: .35s; }
}
.pk-chip:active { scale: .96; transition-duration: .4s; }
.pk-hp { position: fixed; top: 0; left: -9999px; opacity: 0; }

@media (max-width: 700px) {
	.press-logo.pk-brand { grid-template-rows: 128px auto; }  /* swatches 44 px apart for their tap boxes */
	.press-logo-art.pk-art img { max-width: 62%; max-height: 64px; }
	.pk-toggle { top: 4px; right: 4px; width: 22px; height: 22px; }
	.pk-toggle svg { width: 12px; height: 12px; }
	.pk-chip { padding: 0 7px 6px 9px; }
	.pk-hex { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.tl-dot, .tl-dot::after, .tl-thumb, .tl-prod img, .pk-ink, .pk-art .pk-light, .pk-art .pk-dark, .pk-toggle, .pk-toggle svg, .pk-chip, .pk-copy, .pk-copy svg { transition-duration: 0s !important; }
}
