/* Shared by farey's small demos in the case study: the site's paper and ink,
   and a plain drawn phone screen - a ride app reduced to its fields and
   buttons, so what farey does to it is the only thing to look at. */
@font-face { font-family: Inter; src: url(/fonts/Inter-latin.woff2) format('woff2'); font-weight: 100 900; }
:root {
  --ink: #2a2a28; --ink-soft: #41413d; --faint: #75756e; --line: #e6e6e0; --wash: #f4f4f0; --paper: #fcfcfa;
  --tap: #2f6fe4; --tap-soft: rgba(47, 111, 228, .14); --read: #1f9d55; --read-soft: rgba(31, 157, 85, .13);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
html, body { margin: 0; background: transparent; }
/* each demo's frame is sized to it, so it never scrolls; a rounding pixel would otherwise show a scrollbar on Macs set to always show them */
html { overflow: hidden; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 14.5px; line-height: 1.5; }
button { font: inherit; color: inherit; }

/* a quiet control: play, replay */
.go { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 11px; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-size: 13px; }
.go:hover { border-color: #d4d4cc; }
.go svg { width: 11px; height: 11px; fill: currentColor; }

/* the drawn phone */
.ph { position: relative; width: 100%; aspect-ratio: 9 / 18.5; border: 1px solid var(--line); border-radius: 26px; background: #fff; overflow: hidden; font-size: 11.5px; line-height: 1.3; box-shadow: 0 10px 24px rgba(24, 24, 34, .06); }
.ph .sb { height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 10px; font-weight: 600; color: var(--ink-soft); }
.ph .sb i { width: 30px; height: 7px; border-radius: 3px; background: #d9d9d2; }
.ph .pg { position: absolute; inset: 26px 0 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.ph h4 { margin: 2px 0 2px; font-size: 13px; font-weight: 600; }
.ph .fl { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--wash); color: var(--faint); min-height: 15px; white-space: nowrap; overflow: hidden; }
.ph .fl.on { color: var(--ink); background: #fff; }
.ph .fl b { font-weight: 500; color: var(--ink); }
.ph .rw { padding: 6px 2px; border-bottom: 1px solid var(--line); }
.ph .rw small { display: block; color: var(--faint); font-size: 10px; }
.ph .bt { border-radius: 99px; background: var(--ink); color: #fff; text-align: center; padding: 9px; font-weight: 600; }
.ph .tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ph .tl span { aspect-ratio: 1; border-radius: 12px; background: var(--wash); display: grid; place-items: end center; padding-bottom: 6px; font-size: 10px; color: var(--ink-soft); }
.ph .map { flex: 1; border-radius: 10px; background:
  linear-gradient(115deg, transparent 46%, #e9e9e2 46% 50%, transparent 50%),
  linear-gradient(20deg, transparent 60%, #ececE6 60% 63%, transparent 63%), #f5f5f0; position: relative; }
.ph .map::after { content: ""; position: absolute; left: 48%; top: 44%; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px rgba(42, 42, 40, .15); }
.ph .fr { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.ph .fr b { font-weight: 600; }
.ph .sk { height: 10px; border-radius: 4px; background: linear-gradient(90deg, #efefea, #f7f7f3, #efefea); background-size: 200% 100%; animation: sk 1s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.ph .caret { display: inline-block; width: 1px; height: 1.05em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* a tap: a ring that lands and fades */
.ph .ring { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--tap-soft); border: 2px solid var(--tap); pointer-events: none; animation: ring .5s var(--ease) forwards; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } 60% { opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
.ph .mark { outline: 2px solid var(--read); outline-offset: 2px; border-radius: 4px; background: var(--read-soft); }

@media (prefers-reduced-motion: reduce) { .ph .ring, .ph .sk, .ph .caret { animation: none; } }

/* Sean's Pixel 9 Pro, the same frame the case study's cover uses: its back, the
   screen set into it, and the mask that rounds the screen's corners and punches the camera */
.px { position: relative; aspect-ratio: 352 / 744; filter: drop-shadow(0 14px 20px rgba(24, 24, 34, .16)) drop-shadow(0 2px 5px rgba(24, 24, 34, .1)); }
.px > img.body { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.px > .scr, .px > img.mask { position: absolute; left: 4.2614%; top: 2.0511%; width: 90.9091%; height: 96.0323%; }
/* a black hairline round the screen hides the sliver of page in the seam (as on roomote) */
.px > .scr { border-radius: 4.6875% / 2.1008%; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #000; }
.px > img.mask { pointer-events: none; display: block; }
