Skip to content

armgit / bygga

Public Imported from GitHub
0

IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.

TypeScript
41.5 KB
Raw Blame
/* ================= site frame ================= */

.site {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -28px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.head-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.045em;
  line-height: 1;
  padding-bottom: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  border-radius: 2px;
  background: var(--line-2);
  transform: scaleX(0);
  transition:
    transform 0.25s var(--ease),
    background 0.2s;
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link.on {
  color: var(--ink);
}
.nav-link.on::after {
  transform: scaleX(1);
  background: var(--ink);
}
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(18, 18, 18, 0.07);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* GitHub: a two-part pill, the star fills in and turns on hover */
.gh {
  display: inline-flex;
  align-items: stretch;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.gh:hover {
  box-shadow: 0 0 0 1px var(--ink-3);
}
.gh:active {
  transform: scale(0.97);
}
.gh-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 11px;
}
.gh-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px 0 10px;
  background: var(--sunk);
  box-shadow: inset 1px 0 0 var(--line-2);
  font-variant-numeric: tabular-nums;
}
.gh-star {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 1.9;
  stroke-linejoin: round;
  transition:
    fill 0.2s,
    transform 0.5s var(--spring);
}
.gh:hover .gh-star {
  transform: rotate(72deg) scale(1.15);
}

.lead {
  font-size: clamp(17px, 1.4vw, 19.5px);
  letter-spacing: -0.016em;
  color: var(--ink-2);
  margin: 16px 0 0;
  line-height: 1.5;
  max-width: 34em;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.sec-title,
.page-head h1,
.ws-head h1 {
  font-family: var(--display);
  font-size: clamp(30px, 3.1vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}
.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.sec-link:hover {
  color: var(--ink);
}
.sec-link svg {
  transition: transform 0.25s var(--ease);
}
.sec-link:hover svg {
  transform: translateX(3px);
}

/* chips get a lighter touch on site pages */
.site .chip {
  height: 34px;
  padding: 0 13px;
  font-weight: 500;
  font-size: 14px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.site .chip:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

/* ================= hero ================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 48px;
  align-items: center;
  min-height: min(740px, calc(100dvh - 60px));
  padding: 12px 0 56px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(46px, 4.9vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0;
}
.hero .lead {
  margin: 20px 0 28px;
  max-width: 28em;
}

/* the credit above the headline: flat, a hairline, the mark held still in its badge */
.tg-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  margin: 0 0 24px;
  padding: 0 12px 0 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.15s var(--ease);
}
.tg-pill:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px #cbc7bd;
  color: var(--ink);
}
.tg-pill:active {
  transform: scale(0.98);
}
.tg-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tg-badge svg {
  display: block;
}
.tg-text b {
  color: var(--ink);
  font-weight: 600;
}
.tg-go {
  color: var(--ink-3);
  transition: color 0.3s var(--ease);
}
.tg-pill:hover .tg-go {
  color: var(--ink);
}
.tg-word {
  display: block;
  color: var(--ink);
  overflow: visible;
}

.search {
  position: relative;
  max-width: 560px;
  z-index: 10;
}
.search-box {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 7px 0 22px;
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px var(--line-2),
    0 6px 16px -14px rgba(18, 18, 18, 0.14);
  transition: box-shadow 0.25s var(--ease);
}
.search-box:focus-within {
  box-shadow:
    0 0 0 2px var(--ink),
    0 6px 16px -14px rgba(18, 18, 18, 0.14);
}
.search-ico {
  flex: 0 0 auto;
  color: var(--ink-3);
}
.search-box input {
  flex: 1;
  min-width: 0;
  /* a text box is as wide as its size attribute unless told otherwise, which pushed phones sideways */
  width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  padding: 0 12px;
  color: var(--ink);
}
.search-box input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}
.cam-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition:
    background 0.2s,
    color 0.2s;
  flex: 0 0 auto;
}
.cam-btn:hover {
  background: var(--sunk);
  color: var(--ink);
}
.cam-btn.busy {
  color: var(--ink-3);
}
.cam-btn.busy::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.go-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: 4px;
  transition:
    background 0.2s,
    transform 0.15s var(--ease);
}
.go-btn svg {
  transition: transform 0.25s var(--ease);
}
.go-btn:hover {
  background: #000;
}
.go-btn:hover svg {
  transform: translateX(2px);
}
.go-btn:active {
  transform: scale(0.95);
}
.search-msg {
  margin: 10px 0 0 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  list-style: none;
  margin: 0;
  padding: 6px;
  transform-origin: 50% 0;
  max-height: min(460px, 60dvh);
  overflow-y: auto;
}
.suggest-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px 6px 6px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.suggest-row.active {
  background: var(--sunk);
}
.s-thumb {
  width: 72px;
  flex: 0 0 auto;
}
.s-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.s-text b {
  font-size: 16px;
  font-weight: 800;
}
.s-text span {
  font-size: 13.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-min {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}
.s-ai {
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sunk);
}
.resume {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--ink);
  text-decoration: none;
  transition:
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.resume:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.resume:active {
  transform: scale(0.98);
}
.resume > span {
  display: grid;
  line-height: 1.25;
}
.resume b {
  font-size: 15px;
  font-weight: 600;
}
.resume span span {
  font-size: 13.5px;
  color: var(--ink-2);
}
.resume > svg:last-child {
  margin-left: 6px;
  transition: transform 0.25s var(--ease);
}
.resume:hover > svg:last-child {
  transform: translateX(2px);
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 16px;
}
.quick > span {
  font-size: 14px;
  color: var(--ink-3);
  margin-right: 4px;
}
.scan-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.scan-link svg {
  color: var(--ink-3);
  transition: color 0.2s;
}
.scan-link u {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.scan-link:hover {
  color: var(--ink);
}
.scan-link:hover svg {
  color: var(--ink);
}
.scan-link:hover u {
  text-decoration-color: var(--ink);
}

.hero-visual {
  display: grid;
  gap: 14px;
}
.hero-sheet {
  position: relative;
  aspect-ratio: 1 / 0.94;
  max-height: 640px;
  width: 100%;
  background: #fff;
  border-radius: 32px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  isolation: isolate;
}
.hero-stage {
  position: absolute !important;
  inset: 0;
}
.hero-stage .stage-canvas {
  cursor: default;
}
.hero-cap {
  position: absolute;
  left: 26px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.hero-cap-text {
  min-width: 0;
}
.hero-cap-text b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-cap-text span {
  color: var(--ink-2);
  font-size: 14px;
}
.hero-go {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.2s;
}
.hero-go svg {
  transition: transform 0.25s var(--ease);
}
.hero-go:hover {
  background: #000;
}
.hero-go:hover svg {
  transform: translateX(2px);
}
.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  justify-self: center;
}
.hero-tab {
  position: relative;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  isolation: isolate;
  transition: color 0.25s;
}
.hero-tab:hover {
  color: var(--ink);
}
.hero-tab.on {
  color: var(--ink);
}
.hero-tab-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  z-index: -1;
}

/* ================= how ================= */

.how {
  padding: 48px 0 40px;
  scroll-margin-top: 80px;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.how-steps li {
  position: relative;
  padding: 22px 32px 6px;
}
.how-steps li:first-child {
  padding-left: 0;
}
.how-steps li:last-child {
  padding-right: 0;
}
.how-steps li + li {
  border-left: 1px solid var(--line-2);
}
.how-n {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.how-steps h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.how-steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 24em;
}
.how-art {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}
.how-fig {
  position: absolute;
  left: 4%;
  bottom: 0;
}
.how-art.tools {
  gap: 2px;
  padding-top: 12px;
}
.how-hw {
  position: absolute;
  right: 4%;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.8px var(--ink);
}
.how-hw b {
  font-size: 14px;
}
.how-drop {
  animation: drop 2.8s var(--ease) infinite;
}
@keyframes drop {
  0%,
  12% {
    transform: translate(-18px, -34px);
    opacity: 0;
  }
  50%,
  82% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

/* ================= catalog ================= */

.popular {
  padding: 48px 0 40px;
  scroll-margin-top: 80px;
}
.catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.cat-tab {
  position: relative;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-2);
  cursor: pointer;
  isolation: isolate;
  transition: color 0.2s;
}
.cat-tab:hover {
  color: var(--ink);
}
.cat-tab.on {
  color: var(--ink);
}
.cat-n {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cat-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  z-index: -1;
}
.cat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  order: -1;
  flex: 1 1 100%;
  max-width: 560px;
  height: 52px;
  padding: 0 8px 0 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--ink-3);
  transition: box-shadow 0.2s;
}
.cat-search:focus-within {
  box-shadow: 0 0 0 2px var(--ink);
}
.cat-search input {
  border: 0;
  outline: none;
  background: none;
  font-size: 16px;
  flex: 1;
  min-width: 0;
  height: 100%;
  color: var(--ink);
}
.cat-search input::-webkit-search-cancel-button {
  display: none;
}
.cat-search input::placeholder {
  color: var(--ink-3);
}
.cat-clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--sunk);
  color: var(--ink-2);
  cursor: pointer;
}
.cat-clear:hover {
  color: var(--ink);
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s var(--ease);
  height: 100%;
}
.pcard:hover {
  box-shadow:
    0 0 0 1px var(--line-2),
    0 10px 22px -18px rgba(18, 18, 18, 0.16);
}
.pcard-art {
  display: block;
  padding: 12px 12px 0;
}
.pcard-thumb {
  border-radius: 16px;
  transition: transform 0.6s var(--ease);
}
.pcard:hover .pcard-thumb {
  transform: scale(1.03);
}
.pcard-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 20px 20px;
}
.pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pcard-top b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pcard-go {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition:
    transform 0.3s var(--ease),
    color 0.2s,
    background 0.2s;
}
.pcard:hover .pcard-go {
  color: var(--ink);
  background: var(--sunk);
  transform: translateX(2px);
}
.pcard-variant {
  color: var(--ink-2);
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.pcard-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.pcard-meta .pcard-cat {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--ink-2);
  text-align: center;
  padding: 40px 0;
}
.empty p {
  margin: 0;
}
.empty-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.cat-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 8px;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cat-more-btn {
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.16s var(--ease);
}
.cat-more-btn:hover {
  box-shadow: 0 0 0 1.5px var(--ink);
}
.cat-more-btn:active {
  transform: scale(0.97);
}

/* ================= compare: the paper manual, explained ================= */

.compare {
  padding: 104px 0 40px;
}
.cmp-head {
  max-width: 40em;
}
.cmp-sub {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.016em;
  text-wrap: pretty;
}
.cmp-pair {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
}
.cmp-card {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.cmp-card.paper {
  background: #f1ece0;
  box-shadow: 0 0 0 1px #e2dbcb;
}
.cmp-art {
  position: relative;
  width: 100%;
}
.cmp-art > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.cmp-tag {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cmp-tag.paper {
  background: rgba(255, 253, 247, 0.85);
  color: #5d5a53;
  box-shadow: inset 0 0 0 1px #d9d2c2;
}
.cmp-tag.bygga {
  background: var(--ink);
  color: #fff;
}
.cmp-num {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.cmp-hw {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1.8px var(--ink);
}
.cmp-hw b {
  font-size: 14px;
  font-weight: 800;
}
.cmp-hw .cmp-pin {
  position: absolute;
  top: -10px;
  right: -12px;
  translate: none;
}
/* a pin's hit area is a little bigger than the pin */
.cmp-spot {
  position: absolute;
  width: 40px;
  height: 40px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
}
.cmp-pin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition:
    transform 0.3s var(--spring),
    box-shadow 0.3s var(--ease);
}
.cmp-pin.paper {
  background: #fffdf7;
  color: #5d5a53;
  box-shadow: inset 0 0 0 1.5px #a59d8c;
}
.cmp-pin.bygga {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 3px #fff;
}
.cmp-pin.lit {
  transform: scale(1.22);
}
.cmp-pin.paper.lit {
  box-shadow:
    inset 0 0 0 1.5px #5d5a53,
    0 0 0 5px rgba(93, 90, 83, 0.14);
}
.cmp-pin.bygga.lit {
  background: var(--accent);
  color: var(--ink);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--ink);
}
/* Bygga's divider settles onto the dowels, the paper one stays put */
.sc-bygga .sc-drop {
  animation: settle 3.2s var(--ease) infinite;
}
@keyframes settle {
  0%,
  100% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
}
.cmp-qa {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.cmp-qa li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-content: start;
  padding: 22px 28px 4px;
  transition: background 0.25s;
}
.cmp-qa li:first-child {
  padding-left: 0;
}
.cmp-qa li:last-child {
  padding-right: 0;
}
.cmp-qa li + li {
  border-left: 1px solid var(--line-2);
}
.cmp-qa-n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition:
    background 0.25s,
    color 0.25s;
}
.cmp-qa li.lit .cmp-qa-n {
  background: var(--accent);
  color: var(--ink);
}
.cmp-q {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 14.5px;
  font-style: italic;
}
.cmp-a {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cmp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin: 40px 0 0;
  padding: 14px 14px 14px 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.cmp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cmp-facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.cmp-facts li svg {
  flex: none;
  color: var(--ink);
}
.cmp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 48px;
  padding: 0 20px 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.cmp-cta svg {
  transition: transform 0.25s var(--ease);
}
.cmp-cta:hover svg {
  transform: translateX(3px);
}
.cmp-cta:active {
  transform: scale(0.97);
}
@media (max-width: 900px) {
  .cmp-qa {
    grid-template-columns: 1fr;
    border-top: 0;
    gap: 18px;
  }
  .cmp-qa li,
  .cmp-qa li:first-child,
  .cmp-qa li:last-child {
    padding: 0;
  }
  .cmp-qa li + li {
    border-left: 0;
  }
  .cmp-foot {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 24px;
  }
  .cmp-facts {
    flex-direction: column;
    gap: 12px;
  }
  .cmp-cta {
    justify-content: center;
  }
}
@media (max-width: 700px) {
  .compare {
    padding-top: 72px;
  }
  .cmp-pair {
    grid-template-columns: 1fr !important;
    margin-top: 24px;
    gap: 10px;
  }
  .cmp-card {
    border-radius: 22px;
  }
  .cmp-tag {
    bottom: 12px;
    left: 12px;
    font-size: 12px;
  }
  .cmp-pin {
    width: 24px;
    height: 24px;
    font-size: 12.5px;
  }
  .cmp-hw {
    padding: 6px 8px 3px;
    border-radius: 12px;
  }
  .cmp-hw b {
    font-size: 12.5px;
  }
}

/* ================= footer ================= */

.site-foot {
  margin-top: 112px;
  padding-bottom: 36px;
}
.foot-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    "brand cols"
    "credit credit";
  gap: 44px 48px;
  padding: 44px 48px 0;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.foot-brand {
  grid-area: brand;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 18px;
}
.foot-brand .wordmark {
  font-size: 23px;
}
.foot-brand p {
  margin: 0;
  max-width: 25em;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}
.foot-cols {
  grid-area: cols;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  width: min(100%, 380px);
}
.foot-cols > div {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 11px;
}
.foot-cols h2 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}
.foot-cols a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s;
}
.foot-cols a:hover {
  text-decoration-color: var(--ink);
}
.foot-cols a .arrow-out {
  color: var(--ink-3);
  transition: color 0.3s var(--ease);
}
.foot-cols a:hover .arrow-out {
  color: var(--ink);
}
/* the credit: the two of us stand on the card's bottom edge, holding up the names */
.foot-credit {
  grid-area: credit;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin: 0 -48px;
  padding: 30px 48px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #faf9f6);
}
.foot-crew {
  display: block;
  flex: none;
  margin-bottom: -1px;
}
/* one line, as big as the footer's wordmark, level with the two of us */
.foot-credit-text {
  align-self: center;
  margin: 0;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
/* the names wear a yellow marker line that fills in behind them on hover */
.foot-credit-text a {
  color: inherit;
  text-decoration: none;
  padding: 0 2px;
  margin: 0 -2px;
  border-radius: 4px;
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 100% 0.22em no-repeat;
  transition: background-size 0.35s var(--ease);
}
.foot-credit-text a:hover {
  background-size: 100% 100%;
}
.crew-a,
.crew-b,
.crew-board {
  transform-box: view-box;
}
.foot-credit:hover .crew-a,
.foot-credit:hover .crew-board {
  animation: crew-hop 0.6s var(--ease);
}
.foot-credit:hover .crew-b {
  animation: crew-hop-b 0.6s var(--ease) 0.08s;
}
@keyframes crew-hop {
  40% {
    transform: translateY(-5px);
  }
}
@keyframes crew-hop-b {
  40% {
    transform: translate(66px, -5px);
  }
  0%,
  100% {
    transform: translate(66px, 0);
  }
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 22px 8px 0;
}
.foot-base p {
  margin: 0;
  max-width: 46em;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.foot-powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .foot-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "cols"
      "credit";
    gap: 30px;
    padding: 30px 24px 0;
    border-radius: 26px;
  }
  .foot-cols {
    justify-self: start;
  }
  .foot-credit {
    gap: 16px;
    margin: 0 -24px;
    padding: 22px 20px 0;
  }
  .foot-crew {
    width: auto;
    height: 88px;
  }
  .foot-base {
    padding: 18px 4px 0;
  }
}

/* ================= browse ================= */

.browse {
  padding: 28px 0 40px;
}
.page-head {
  margin-bottom: 26px;
}
.page-head .lead {
  margin-top: 10px;
}

/* ================= workshop ================= */

.ws-loading {
  min-height: 60vh;
}
.workshop {
  padding: 28px 0 24px;
}
.ws-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.ws-head .lead {
  margin-top: 10px;
}
.ws-stats {
  display: flex;
  margin: 0;
}
.ws-stats > div {
  padding: 2px 22px;
}
.ws-stats > div:last-child {
  padding-right: 0;
}
.ws-stats > div + div {
  border-left: 1px solid var(--line-2);
}
.ws-stats dt {
  font-size: 13px;
  color: var(--ink-3);
}
.ws-stats dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
}

.showroom {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.sr-stage {
  position: relative;
  width: 100%;
}
.sr-img {
  position: absolute;
  inset: 0;
}
.sr-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.sr-person {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.scale-person {
  height: 100%;
  width: auto;
}
/* the floor the pieces stand on: a skirting line and a soft floor below it */
.sr-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #f3f1ec, #faf9f6 70%);
  box-shadow: inset 0 1.5px 0 var(--line-2);
}
.sr-person span {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.sr-tag {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, 8px);
  padding: 4px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.25;
  transition: background 0.2s;
}
.sr-tag b {
  font-size: 13.5px;
  font-weight: 700;
}
.sr-tag span {
  font-size: 12px;
  color: var(--ink-3);
}
.sr-tag:hover {
  background: var(--sunk);
}

.ws-section {
  margin-top: 40px;
}
.ws-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
}
.ws-sec-head h2 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 0;
}
.ws-sec-head span {
  color: var(--ink-3);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.x-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: #fff;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s,
    background 0.2s,
    color 0.2s;
}
.going:hover .x-btn,
.built:hover .x-btn,
.x-btn:focus-visible {
  opacity: 1;
}
.x-btn:hover {
  background: var(--sunk);
  color: var(--ink);
}

.ws-going {
  display: grid;
  gap: 8px;
}
.going {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.going-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px 20px 8px 8px;
  text-decoration: none;
  color: var(--ink);
}
.going-thumb {
  width: 96px;
  border-radius: 12px;
}
.going-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.going-text b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.going-text span {
  font-size: 14px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.going-progress {
  display: grid;
  gap: 7px;
}
.going-status {
  font-size: 13.5px;
  color: var(--ink-2);
}
.going-bar {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.going-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--ink);
}
.going-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.going-go svg {
  transition: transform 0.25s var(--ease);
}
.going-link:hover .going-go {
  background: #000;
}
.going-link:hover .going-go svg {
  transform: translateX(2px);
}
.going .x-btn {
  top: 50%;
  right: auto;
  left: 10px;
  margin-top: -14px;
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.built {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s var(--ease);
}
.built:hover {
  box-shadow:
    0 0 0 1px var(--line-2),
    0 10px 22px -18px rgba(18, 18, 18, 0.16);
}
.built-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.built-thumb {
  margin: 8px 8px 0;
  border-radius: 14px;
}
.built-text {
  display: flex;
  flex-direction: column;
  padding: 4px 16px 16px;
  min-width: 0;
}
.built-text b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.built-text > span {
  font-size: 13.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.built-text > .built-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
}
.built-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 24px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.badge-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-weight: 800;
}
.badge.on .badge-ico {
  color: var(--ink);
  background: var(--accent);
  box-shadow: inset 0 0 0 1.8px var(--ink);
}
.badge-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.badge-text b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
}
.badge.on .badge-text b {
  color: var(--ink);
}
.badge-text span {
  font-size: 13px;
  color: var(--ink-3);
}
.bi {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
}

.ws-floor {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 28px 20px 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.ws-floor-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  width: 100%;
}
.ws-ghosts {
  width: min(70%, 440px);
  height: auto;
}
.ws-floor-fig .figure {
  display: block;
  height: clamp(96px, 18vw, 150px);
  width: auto;
}
.ws-floor p {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}
.ws-empty {
  display: grid;
  gap: 30px;
}
.ws-empty-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}
.ws-empty-copy h2 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 0;
}
.ws-empty-copy > p {
  margin: 8px 0 22px;
  color: var(--ink-2);
  max-width: 30em;
}
.ws-starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 10px;
}
.starter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 40px 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  transition: box-shadow 0.25s var(--ease);
}
.starter b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.starter span {
  font-size: 13.5px;
  color: var(--ink-2);
}
.starter svg {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -8px;
  color: var(--ink-3);
  transition:
    transform 0.25s var(--ease),
    color 0.2s;
}
.starter:hover {
  box-shadow:
    0 0 0 1px var(--line-2),
    0 10px 22px -18px rgba(18, 18, 18, 0.16);
}
.starter:hover svg {
  color: var(--ink);
  transform: translateX(2px);
}
.ws-browse {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
.ws-browse:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* ================= responsive ================= */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    min-height: 0;
    padding: 18px 0 36px;
  }
  .hero-sheet {
    aspect-ratio: 4 / 3.3;
  }
  .pgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* the tabs scroll in their own row instead of wrapping or widening the page */
  .cat-tabs {
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .cat-tabs::-webkit-scrollbar {
    display: none;
  }
  .cat-tab {
    flex: none;
  }
}

@media (max-width: 820px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
  .how-steps li,
  .how-steps li:first-child,
  .how-steps li:last-child {
    padding: 20px 0 22px;
  }
  .how-steps li + li {
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }
  .going-link {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }
  .going-thumb {
    width: 72px;
  }
  .going-progress {
    grid-column: 2 / 4;
    grid-row: 2;
    padding-bottom: 6px;
  }
  .ws-starters {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .site {
    padding: 0 16px;
  }
  .site-head {
    height: 56px;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .head-left {
    gap: 14px;
  }
  .wordmark {
    display: none;
  }
  .gh-label {
    display: none;
  }
  .gh-main {
    padding: 0 10px;
  }
  .foot-brand .wordmark {
    display: inline;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero .lead {
    margin: 14px 0 22px;
  }
  .search-box {
    height: 58px;
    padding-left: 16px;
    padding-right: 5px;
  }
  .search-box input {
    font-size: 16.5px;
    padding: 0 8px;
  }
  .cam-btn {
    width: 42px;
    height: 42px;
  }
  .go-btn {
    width: 46px;
    height: 46px;
  }
  .s-min {
    display: none;
  }
  .hero-sheet {
    aspect-ratio: 1 / 1.06;
    border-radius: 26px;
  }
  .hero-cap {
    left: 18px;
    right: 14px;
    bottom: 14px;
  }
  .hero-cap-text b {
    font-size: 20px;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  /* two cards a row on phones, with smaller type */
  .pgrid {
    gap: 10px;
  }
  .pcard {
    border-radius: 18px;
  }
  .pcard-art {
    padding: 7px 7px 0;
  }
  .pcard-thumb {
    border-radius: 12px;
  }
  .pcard-text {
    padding: 2px 11px 13px;
  }
  .pcard-top b {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pcard-go,
  .pcard-meta .pcard-cat {
    display: none;
  }
  .pcard-variant {
    font-size: 12.5px;
    line-height: 1.35;
  }
  .pcard-meta {
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
  }
  .cat-search {
    max-width: none;
  }
  .site-foot {
    margin-top: 72px;
  }
  .ws-head {
    flex-direction: column;
    align-items: stretch;
  }
  .ws-stats > div {
    padding: 2px 14px;
  }
  .ws-stats > div:first-child {
    padding-left: 0;
  }
  .ws-stats dd {
    font-size: 21px;
  }
  .going-go {
    width: 36px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .x-btn {
    opacity: 1;
  }
}

/* ================= lost: 404 and errors ================= */

.lost {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 0 96px;
  text-align: center;
}
.lost h1 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lost .lead {
  margin: 0;
}
.lost-search {
  width: 100%;
  margin-top: 10px;
  text-align: left;
}
.lost-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* phones: the five examples fit one row under the search */
@media (max-width: 420px) {
  .quick {
    flex-wrap: nowrap;
    gap: 5px;
  }
  .quick > span {
    display: none;
  }
  .quick .chip {
    padding: 0 10px;
    font-size: 13.5px;
  }
}
/* the smallest phones (320 px) can't fit five: let them wrap */
@media (max-width: 350px) {
  .quick {
    flex-wrap: wrap;
  }
}

/* ================= privacy and terms ================= */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 0 72px;
}
.legal h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.legal .lead {
  margin: 14px 0 8px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}
.legal h2 {
  margin: 36px 0 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.legal ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}
.legal li,
.legal p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.legal p {
  margin: 10px 0 0;
}
.legal b {
  color: var(--ink);
  font-weight: 600;
}
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}