/* What comes out, as a carousel: a card in the middle and its neighbours fading off either edge.
   Above each card, the sources Infograph drew on; below it, Infograph's mark and how much data it
   took. The two lines and everything in the card share one left edge (--inset), one size of mark
   and one grey, so the three read as one column. In the app's design language (its tokens, Geist,
   the connectors' own marks from kit/marks/), at an illustration's scale: this is shown at about
   a third of its size. On a see-through page. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../../kit/fonts/geist-400.woff2) format("woff2"); }

:root {
	--background: transparent;
	--foreground: #0a0a0a;
	--muted: #f4f4f4;
	--muted-foreground: #737373;
	--quiet: #8f8f8f;
	--border: #e2e2e2;
	/* A card's width, the distance from one card's middle to the next, and the left edge that
	   the card's contents and the lines above and below it all keep. */
	--card: 660px;
	--pitch: 740px;
	--inset: 44px;
}

*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; color: var(--foreground); font-family: "Geist", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h2, p, ol, ul { margin: 0; padding: 0; list-style: none; }

/* The page: the kit's window size, with no window drawn. (body.framed and html.embed, to outrank
   the kit's own in frame.css, which is linked after this.) */
body.framed, html.embed body.framed { background: transparent; }
body.framed .window { border-radius: 0; background: transparent; box-shadow: none; }

/* The carousel: every slide sits in the middle and is moved --at places along; the two edges of
   the page fade out, so a neighbour reads as "there is more". */
.carousel { position: relative; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 21%, #000 79%, transparent); mask-image: linear-gradient(to right, transparent, #000 21%, #000 79%, transparent); }
.slide { position: absolute; left: 50%; top: 50%; width: var(--card); margin-left: calc(var(--card) / -2); transform: translate(calc(var(--at) * var(--pitch)), -50%); will-change: transform, opacity; }

/* The line above the card (its sources) and the line below (what it took): the same height, the
   same distance from the card, the same edge. */
.card-from, .card-ran { display: flex; align-items: center; height: 36px; padding: 0 var(--inset); font-size: 25px; line-height: 36px; color: var(--quiet); white-space: nowrap; }
.card-from { gap: 30px; margin-bottom: 24px; font-weight: 500; }
.card-from span { display: flex; align-items: center; gap: 11px; }
.card-from img { width: 30px; height: 30px; object-fit: contain; filter: grayscale(1); opacity: 0.62; }
.card-ran { gap: 13px; margin-top: 24px; }
.card-ran img { width: 30px; height: 30px; }

.card { display: flex; flex-direction: column; height: 690px; overflow: hidden; padding: 40px var(--inset) var(--inset); border-radius: 34px; background: #fff; box-shadow: 0 0 0 2px var(--border), 0 4px 10px rgb(0 0 0 / 0.03), 0 30px 60px -22px rgb(0 0 0 / 0.16); }
.card h2 { font-size: 38px; font-weight: 600; line-height: 47px; letter-spacing: -0.025em; text-wrap: balance; }

/* A capture of a real dashboard, or of one of its panels: the full width of the card's column,
   standing on its foot. A whole page is framed, keeps its full width and runs off the foot, where the card cuts it; a tall panel is held to
   the room there is and centred. */
.shot { display: block; width: 100%; margin: auto 0; }
.shot.is-page { flex: none; margin: 28px 0 calc(var(--inset) * -1); border: 2px solid #ebe7e1; border-bottom: 0; border-radius: 16px 16px 0 0; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
.shot.is-tall { width: auto; max-width: 100%; height: 478px; margin: auto auto 0; }

/* ---------- Used in the flow of work: who did what, then what was sent ---------- */
/* Two steps on one rail: Infograph worked the numbers out, another tool only sent them. */
.how { position: relative; margin-top: 30px; font-size: 26px; line-height: 36px; }
.how::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 44px; width: 2px; background: var(--border); }
.how li { display: flex; align-items: center; gap: 18px; }
.how li + li { margin-top: 22px; }
.how img, .how svg { position: relative; flex: none; width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 2px var(--border); }
.how svg { fill: none; stroke: var(--foreground); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.how strong { font-weight: 600; }
.how span { color: var(--muted-foreground); }

.mail { margin-top: auto; padding: 26px 28px 28px; border-radius: 18px; background: var(--muted); font-size: 25px; line-height: 38px; }
.mail-subject { margin-bottom: 8px; font-weight: 600; }
.mail b { font-weight: 600; }
