/* Kinesis Zero. A cool fog ground so dark checkout screens and bright one-shot sites both sit on it like devices on a
   bench. One family in two cuts: Big Shoulders Display for names and counts, Big Shoulders Text for everything else.
   The ring is the only bold thing on the page; its colours come from the pages themselves. */
:root {
  --fog: #e3e6e0;
  --paper: #f3f4f0;
  --ink: #1d2521;
  --slate: #56625d;
  --hair: #c5cbc4;
  --signal: #c7760f;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Big Shoulders Text", "Arial Narrow", sans-serif;
  --turn: cubic-bezier(.22, .9, .24, 1);
}
* { box-sizing: border-box; }
html { background: var(--fog); color: var(--ink); }
body { margin: 0; font: 500 17px/1.45 var(--text); -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, ol { margin: 0; }
button, a { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.zero { display: grid; grid-template-columns: minmax(340px, 38vw) 1fr; min-height: 100vh; }

/* ---- the dial: the Zero ring, and the same projects as a list ---- */
.dial { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto auto 1fr; gap: 18px; padding: 28px 28px 24px; border-right: 1px solid var(--hair); overflow: hidden; }
.mark { font: 700 18px/1 var(--display); letter-spacing: .01em; }
.ring-wrap { position: relative; width: min(100%, 58vh, 520px); aspect-ratio: 1; margin: 0 auto; }
.ring { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; overflow: visible; }
.ring:active { cursor: grabbing; }
.ring:focus-visible { outline-offset: 10px; border-radius: 50%; }
#spin { transition: transform .8s var(--turn); }
.ring.dragging #spin { transition: none; }
.notch { fill: var(--signal); }
.arc { cursor: pointer; }
.arc .tick { stroke-linecap: round; transition: opacity .3s var(--turn), stroke-width .3s var(--turn); }
.arc .rail { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0; transition: opacity .3s var(--turn); }
.arc .hit { fill: transparent; stroke: transparent; }
.arc.dim .tick { opacity: .62; }
.arc.on .rail { opacity: 1; }
.arc.peek .tick { opacity: 1; }
.readout { position: absolute; inset: 25%; display: grid; place-content: center; text-align: center; pointer-events: none; }
.readout-name { font: 800 clamp(26px, 3.4vw, 46px)/.9 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.readout-count { margin-top: 10px; color: var(--slate); font-size: 15px; }

.list { list-style: none; padding: 0; align-self: end; display: grid; gap: 2px; max-height: 100%; overflow: auto; }
.list button { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; }
.list button:hover { background: #d8dcd5; }
.list button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.list .n { font-variant-numeric: tabular-nums; color: var(--slate); font-size: 15px; }
.list button[aria-current="true"] .n { color: #b9c2bd; }
.list .name { font-weight: 600; }

/* ---- the viewer ---- */
.view { padding: 44px clamp(20px, 4vw, 64px) 96px; min-width: 0; outline: none; }
.loading, .empty { color: var(--slate); max-width: 52ch; }
.head { max-width: 72ch; margin-bottom: 40px; }
.head h1 { font: 800 clamp(44px, 5.6vw, 84px)/.9 var(--display); letter-spacing: -.01em; }
.head .blurb { margin-top: 14px; font-size: 19px; max-width: 62ch; }
.head .facts { margin-top: 10px; color: var(--slate); font-size: 15px; }
.group + .group { margin-top: 56px; }
.group h2 { font: 700 30px/1 var(--display); }
.group .note { margin-top: 6px; color: var(--slate); max-width: 64ch; }
.shelf { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 28px 24px; align-items: flex-start; }

.screen { width: var(--w); display: grid; gap: 10px; cursor: pointer; border: 0; padding: 0; background: none; text-align: left; }
.screen.phone { --w: 200px; }
.screen.desktop { --w: 330px; }
.frame { position: relative; width: 100%; overflow: hidden; background: #cfd4ce; box-shadow: 0 1px 0 #fff8 inset, 0 18px 36px -22px #1d252180, 0 2px 6px -2px #1d252140; transition: transform .35s var(--turn), box-shadow .35s var(--turn); }
.screen.phone .frame { aspect-ratio: 390 / 844; border-radius: 26px; border: 5px solid var(--ink); }
.screen.desktop .frame { aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid #b5bcb4; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.screen:hover .frame, .screen:focus-visible .frame { transform: translateY(-3px); box-shadow: 0 1px 0 #fff8 inset, 0 24px 40px -22px #1d2521a0, 0 2px 6px -2px #1d252140; }
.screen .t { font-weight: 600; line-height: 1.25; }
.screen .c { color: var(--slate); font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.screen .score { font-variant-numeric: tabular-nums; }

/* ---- a screen, close up ---- */
.lightbox { width: min(1320px, 96vw); height: min(920px, 94vh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: 1fr 340px; overflow: hidden; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: #1d2521b8; }
.lb-shot { overflow: auto; background: #d9ddd6; display: grid; justify-items: center; align-content: start; padding: 28px; }
.lb-shot img { display: block; max-width: 100%; height: auto; box-shadow: 0 20px 40px -24px #1d2521aa; }
.lb-shot.phone img { width: 390px; border-radius: 22px; border: 5px solid var(--ink); }
.lb-shot.desktop img { border-radius: 8px; }
.lb-side { padding: 28px; display: grid; align-content: start; gap: 12px; border-left: 1px solid var(--hair); overflow: auto; }
.lb-where { color: var(--slate); font-size: 15px; }
.lb-side h2 { font: 800 36px/.95 var(--display); }
.lb-caption { font-size: 17px; }
.lb-actions { display: grid; gap: 10px; margin-top: 12px; }
.lb-step { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

@media (max-width: 999px) {
  .zero { grid-template-columns: 1fr; }
  .dial { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--hair); padding: 18px 16px 14px; gap: 12px; }
  .ring-wrap { width: min(86vw, 420px); }
  .list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .list::-webkit-scrollbar { display: none; }
  .list li { flex: none; }
  .list button { width: auto; white-space: nowrap; border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px; }
  .view { padding: 28px 16px 72px; }
  .screen.phone { --w: calc(50% - 12px); }
  .screen.desktop { --w: 100%; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; width: 100vw; height: 100dvh; border-radius: 0; }
  .lb-shot { padding: 14px; }
  .lb-shot.phone img { width: min(390px, 100%); }
  .lb-side { border-left: 0; border-top: 1px solid var(--hair); padding: 16px; }
  .lb-side h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #spin, .frame, .arc .tick, .arc .rail { transition: none !important; }
}
