@font-face {
  font-family: ShopDisplay;
  src: url("assets/shop-display.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #243e38;
  --muted: #53665e;
  --ground: #f4f5ef;
  --mint: #badcd0;
  --mint-light: #e3eee6;
  --dark: #254b41;
  --yellow: #f5ca65;
  --coral: #c94f3d;
  --paper: #fffcf2;
  --line: #cbd4ca;
  --display: ShopDisplay, "Microsoft YaHei", sans-serif;
  --body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 6px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}
button {
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
::selection {
  color: var(--paper);
  background: var(--dark);
}
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 5px;
}
input {
  caret-color: var(--coral);
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--mint-light);
}
::-webkit-scrollbar-thumb {
  background: #75978a;
  border: 2px solid var(--mint-light);
}
[hidden] {
  display: none !important;
}
svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.small-icon {
  width: 16px;
  height: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 20;
  padding: 10px 18px;
  background: var(--paper);
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4.5%;
  background: var(--ground);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 18px;
  white-space: nowrap;
}
.wordmark > svg {
  width: 25px;
  height: 25px;
  transform: rotate(-10deg);
}
.wordmark-suffix {
  font-size: 14px;
  font-weight: 500;
  margin-left: 6px;
}
.site-header nav {
  display: flex;
  align-self: stretch;
  gap: 32px;
}
.nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  position: relative;
}
.nav-link.active:after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--coral);
}
.github-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.site-header a:hover,
.footer-links a:hover {
  color: var(--coral);
}
.workshop {
  height: 580px;
  position: relative;
  isolation: isolate;
  background: var(--mint);
  overflow: hidden;
}
#room-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  image-rendering: pixelated;
  z-index: -1;
}
.shop-intro {
  position: absolute;
  left: 5.2%;
  top: 30px;
  max-width: 660px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 66px;
  line-height: 1.25;
  letter-spacing: 0;
}
.shop-intro p {
  margin-top: 8px;
  font-size: 17px;
}
.shop-directory {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  margin-top: 13px;
  font-weight: 650;
}
.shop-directory svg {
  width: 16px;
  height: 16px;
}
.shop-directory:hover {
  color: var(--coral);
}
.proprietor {
  position: absolute;
  right: 5.2%;
  top: 38px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 12px 14px 16px;
  background: var(--paper);
  transform: rotate(2deg);
  max-width: 300px;
}
.proprietor:before {
  content: "";
  position: absolute;
  width: 46px;
  height: 14px;
  top: -7px;
  left: 42%;
  background: #d3ab5b;
  opacity: 0.8;
  transform: rotate(-5deg);
}
.proprietor img {
  object-fit: cover;
  border-radius: 2px;
}
.proprietor strong {
  font-size: 14px;
  display: block;
}
.proprietor span {
  font-size: 13px;
  display: block;
  color: var(--muted);
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius);
}
.icon-button:hover {
  background: var(--mint-light);
}
.lamp-switch {
  position: absolute;
  top: 195px;
  left: 7%;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 2px;
}
.lamp-switch[aria-pressed="false"] {
  background: #a0baae;
}
.lamp-switch:hover {
  transform: translateY(-2px);
}
.machine-picks {
  position: absolute;
  left: 28%;
  right: 5.2%;
  bottom: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.machine-pick {
  background: var(--paper);
  padding: 8px 10px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 2px;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  transition:
    transform 0.18s ease-out,
    background 0.18s ease-out;
}
.machine-pick span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.machine-pick svg {
  width: 16px;
  height: 16px;
}
.machine-pick[aria-pressed="true"] {
  background: var(--yellow);
}
.machine-pick:hover {
  transform: translateY(-4px);
}
.mobile-selector {
  display: none;
}
.scene-note {
  position: absolute;
  bottom: 14px;
  left: 5.2%;
  font-size: 13px;
  color: #e0eade;
}
.bench-readout {
  background: var(--dark);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 5.2%;
  min-height: 112px;
}
.bench-project {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.readout-indicator {
  height: 10px;
  width: 10px;
  flex: 0 0 10px;
  background: var(--yellow);
}
.bench-project h2 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.bench-project p {
  font-size: 14px;
  color: #d4e4d7;
  margin-top: 5px;
  max-width: 66ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bench-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transition:
    transform 0.18s ease-out,
    background 0.18s ease-out;
}
.solid-button:hover {
  background: #ffda84;
  transform: translateY(-2px);
}
.solid-button:active {
  transform: translateY(1px);
}
.bench-actions .text-button {
  color: var(--paper);
}
.text-button {
  background: transparent;
  padding: 8px 0;
  min-height: 44px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.text-button:hover {
  text-decoration: underline;
}
.shop-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 64px;
  padding: 54px 5.2% 76px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.3;
  font-weight: 400;
}
.section-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.section-heading > svg,
.shelf-mark svg {
  width: 26px;
  height: 26px;
}
.shelf-mark {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e1e8dc;
  border-radius: 50%;
}
.catalog-toolbar {
  display: flex;
  gap: 12px;
}
.search-box {
  background: #e5eae0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 46px;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius);
}
.search-box input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 14px;
  min-height: 46px;
  min-width: 0;
}
.search-box:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.sort-control {
  position: relative;
  display: flex;
  align-items: center;
  background: #e5eae0;
  border-radius: var(--radius);
}
.sort-control select {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 46px;
  padding: 0 36px 0 14px;
  font-size: 14px;
  cursor: pointer;
  max-width: 155px;
}
.sort-control svg {
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filters button {
  background: transparent;
  font-size: 13px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 4px;
  white-space: nowrap;
}
.filters button[aria-pressed="true"] {
  background: var(--dark);
  color: var(--paper);
}
.filters button:hover:not([aria-pressed="true"]) {
  background: var(--mint-light);
}
.fork-toggle {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}
.fork-toggle input {
  accent-color: var(--dark);
  width: 16px;
  height: 16px;
  margin: 0;
}
.result-count {
  font-size: 13px;
  color: var(--muted);
  min-height: 40px;
  padding: 12px 0 8px;
}
.project-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}
.project-card {
  min-width: 0;
  position: relative;
  padding-bottom: 16px;
  border-bottom: 5px solid #9daf9f;
  animation: stock-in 0.4s ease-out both;
  animation-delay: var(--delay, 0ms);
}
.project-visual {
  position: relative;
  display: block;
  width: 100%;
  height: 156px;
  background: #d9e6dc;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  padding: 0;
}
.project-visual canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  transition: transform 0.25s ease-out;
}
.project-visual:hover canvas {
  transform: translateY(-5px);
}
.project-visual:active canvas {
  transform: translateY(1px);
}
.project-visual:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 6%;
  right: 6%;
  height: 6px;
  background: #a4bcae;
}
.project-kind {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 12px;
  background: var(--paper);
  padding: 2px 7px;
  border-radius: 2px;
}
.project-visual .inspect-icon {
  position: absolute;
  bottom: 13px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 50%;
}
.project-card h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 14px;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.project-card h3 button {
  font: inherit;
  background: none;
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
  line-height: inherit;
}
.project-card h3 button:hover {
  color: var(--coral);
}
.project-description {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  min-height: 45px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}
.project-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-owner {
  flex-basis: 100%;
  overflow-wrap: anywhere;
}
.update-repo-owner {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.project-meta svg {
  width: 13px;
  height: 13px;
}
.language-dot {
  width: 7px;
  height: 7px;
  background: var(--language-color, #597b6b);
  border-radius: 50%;
  display: inline-block;
}
.project-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.project-links a {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  font-weight: 650;
}
.project-links a:hover {
  color: var(--coral);
  text-decoration: underline;
}
.project-links svg {
  width: 14px;
  height: 14px;
}
.empty-state,
.data-error {
  padding: 48px 20px;
  text-align: center;
  background: var(--mint-light);
}
.empty-state > svg {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}
.empty-state h3,
.data-error h3 {
  font-size: 19px;
}
.empty-state p,
.data-error p {
  font-size: 14px;
  margin: 8px 0;
}
.data-error a {
  margin-left: 16px;
  text-decoration: underline;
}
.loading-state {
  font-size: 14px;
  color: var(--muted);
  padding: 20px 0;
}
.updates {
  min-width: 0;
}
.updates .section-heading {
  margin-bottom: 22px;
}
.printer {
  height: 43px;
  background: #4b665e;
  position: relative;
  border-radius: 6px 6px 0 0;
  padding: 20px 22px 0;
}
.printer:before {
  content: "";
  position: absolute;
  top: 6px;
  left: 22px;
  width: 44px;
  height: 4px;
  background: #a4b7a8;
}
.printer-slot {
  height: 10px;
  background: #243e38;
  border-radius: 4px;
}
.printer-light {
  position: absolute;
  right: 18px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
}
.receipt {
  background: var(--paper);
  margin: 0 16px;
  padding: 20px 22px 26px;
  position: relative;
}
.receipt:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--ground);
  clip-path: polygon(
    0 100%,
    0 0,
    3% 80%,
    6% 0,
    9% 80%,
    12% 0,
    15% 80%,
    18% 0,
    21% 80%,
    24% 0,
    27% 80%,
    30% 0,
    33% 80%,
    36% 0,
    39% 80%,
    42% 0,
    45% 80%,
    48% 0,
    51% 80%,
    54% 0,
    57% 80%,
    60% 0,
    63% 80%,
    66% 0,
    69% 80%,
    72% 0,
    75% 80%,
    78% 0,
    81% 80%,
    84% 0,
    87% 80%,
    90% 0,
    93% 80%,
    96% 0,
    100% 80%,
    100% 100%
  );
}
.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.receipt-header svg {
  width: 17px;
  height: 17px;
}
.update-item {
  padding: 18px 0;
  display: block;
}
.update-item + .update-item {
  background-image: none;
  border-top: 2px dashed #dde0d1;
}
.update-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.update-top span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.update-top svg {
  width: 13px;
  height: 13px;
}
.update-item strong {
  display: block;
  font-size: 14px;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-weight: 650;
  line-height: 1.45;
}
.update-message {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.update-item:hover strong {
  color: var(--coral);
  text-decoration: underline;
}
.receipt-end {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: 18px;
  color: var(--muted);
}
.barcode {
  height: 25px;
  width: 100px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 9px,
    var(--ink) 9px 13px,
    transparent 13px 15px
  );
  opacity: 0.8;
}
.sync-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 28px 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.sync-info svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.sync-info time {
  font-variant-numeric: tabular-nums;
}
footer {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  margin: 0 5.2%;
  padding: 32px 0 38px;
  border-top: 2px solid var(--line);
}
.footer-owner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-owner img {
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.8);
}
.footer-owner strong {
  font-size: 14px;
}
.footer-owner p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}
.footer-links svg {
  width: 16px;
  height: 16px;
}
.back-top {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-light);
  border-radius: 4px;
}
.back-top:hover {
  background: var(--mint);
}
dialog {
  border: 0;
  border-radius: 8px;
  background: var(--ground);
  color: var(--ink);
  max-width: 620px;
  width: calc(100% - 32px);
  padding: 38px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
dialog::backdrop {
  background: #18342bc4;
}
dialog[open] {
  animation: dialog-in 0.2s ease-out;
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
}
dialog h2 {
  font-size: 26px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  padding-right: 18px;
}
dialog p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 15px;
}
.detail-canvas {
  width: 100%;
  height: 200px;
  display: block;
  image-rendering: pixelated;
  background: var(--mint-light);
  margin-bottom: 24px;
  border-radius: 4px;
}
.detail-meta {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  margin: 24px 0;
  font-size: 14px;
}
.detail-meta dt {
  color: var(--muted);
}
.detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-meta a {
  text-decoration: underline;
}
.detail-actions,
.about-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.about-avatar {
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}
.noscript {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: var(--paper);
  z-index: 10;
  font-size: 14px;
}
.noscript a {
  text-decoration: underline;
}
@keyframes stock-in {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes dialog-in {
  from {
    transform: translateY(10px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .workshop {
    height: 650px;
  }
  .shop-intro {
    top: 44px;
  }
  .machine-picks {
    bottom: 80px;
  }
}
@media (max-width: 1100px) {
  .wordmark-suffix {
    display: none;
  }
  .shop-content {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .machine-picks {
    gap: 16px;
    left: 27%;
    right: 4%;
  }
  .shop-intro h1 {
    font-size: 56px;
  }
  .proprietor {
    right: 4%;
    top: 35px;
  }
  .bench-actions {
    gap: 12px;
  }
  .bench-project p {
    max-width: 44ch;
  }
  .project-visual {
    height: 140px;
  }
  .filter-row {
    gap: 2px;
  }
  .filters button {
    padding: 10px 8px;
  }
  .footer-links {
    gap: 14px;
  }
}
@media (max-width: 850px) {
  .site-header {
    padding: 0 24px;
    gap: 16px;
    min-height: 68px;
  }
  .site-header nav {
    gap: 20px;
  }
  .github-nav span,
  .github-nav .small-icon {
    display: none;
  }
  .workshop {
    height: 520px;
  }
  .shop-intro {
    left: 5%;
    top: 25px;
  }
  .shop-intro h1 {
    font-size: 48px;
  }
  .shop-intro p {
    font-size: 15px;
  }
  .proprietor {
    padding: 10px;
    max-width: 230px;
    top: 28px;
    right: 4%;
  }
  .proprietor img {
    width: 36px;
    height: 36px;
  }
  .proprietor .icon-button {
    display: none;
  }
  .proprietor strong,
  .proprietor span {
    font-size: 12px;
  }
  .lamp-switch {
    top: 173px;
    left: 6%;
  }
  .machine-picks {
    bottom: 58px;
    gap: 14px;
  }
  .machine-pick {
    font-size: 12px;
    min-height: 54px;
    padding: 7px;
  }
  .bench-readout {
    padding: 22px 5%;
    gap: 20px;
  }
  .bench-project {
    gap: 12px;
  }
  .bench-project h2 {
    font-size: 18px;
  }
  .bench-project p {
    font-size: 13px;
  }
  .bench-actions .solid-button {
    padding: 10px 12px;
  }
  .bench-actions .text-button {
    font-size: 13px;
  }
  .shop-content {
    padding: 42px 5% 56px;
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }
  .project-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .project-visual {
    height: 140px;
  }
  .project-card h3 {
    font-size: 15px;
  }
  .updates {
    max-width: 100%;
  }
  .receipt {
    margin: 0 20px;
  }
  .printer {
    max-width: 100%;
  }
  #update-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .receipt-end {
    margin-top: 12px;
  }
  .sync-info {
    margin-top: 24px;
  }
  .footer-owner p {
    max-width: 25ch;
  }
  .footer-links {
    gap: 16px;
  }
  footer {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 12px;
  }
  .site-header {
    min-height: 64px;
    padding: 0 18px;
    gap: 10px;
  }
  .wordmark {
    font-size: 15px;
    gap: 6px;
  }
  .wordmark > svg {
    width: 21px;
    height: 21px;
  }
  .site-header nav {
    gap: 14px;
  }
  .nav-link {
    font-size: 12px;
    white-space: nowrap;
  }
  .github-nav {
    display: none;
  }
  .nav-link.active:after {
    bottom: 11px;
  }
  .workshop {
    height: 575px;
  }
  .shop-intro {
    left: 24px;
    right: 20px;
    top: 24px;
  }
  .shop-intro h1 {
    font-size: 44px;
  }
  .shop-intro p {
    font-size: 14px;
    margin-top: 5px;
  }
  .shop-directory {
    font-size: 13px;
    margin-top: 10px;
  }
  .proprietor {
    top: 159px;
    left: 26px;
    right: auto;
    transform: rotate(-3deg);
    padding: 7px 10px;
    gap: 8px;
  }
  .proprietor img {
    width: 28px;
    height: 28px;
  }
  .proprietor strong {
    font-size: 12px;
  }
  .proprietor span {
    display: none;
  }
  .proprietor:before {
    width: 30px;
    height: 9px;
    top: -5px;
  }
  .lamp-switch {
    top: 176px;
    left: auto;
    right: 28px;
    width: 42px;
    height: 42px;
  }
  .machine-picks {
    display: none;
  }
  .mobile-selector {
    display: block;
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 49px;
  }
  .mobile-selector label {
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
  }
  .mobile-selector select {
    width: 100%;
    border: 2px solid var(--ink);
    background: var(--paper);
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 14px;
    min-height: 46px;
    font-weight: 650;
  }
  .scene-note {
    bottom: 12px;
    left: 24px;
    font-size: 12px;
  }
  .bench-readout {
    display: block;
    padding: 22px 24px;
  }
  .bench-project {
    align-items: flex-start;
    gap: 10px;
  }
  .readout-indicator {
    margin-top: 8px;
    width: 7px;
    height: 7px;
    flex-basis: 7px;
  }
  .bench-project h2 {
    font-size: 18px;
  }
  .bench-project p {
    font-size: 13px;
    margin-top: 7px;
    -webkit-line-clamp: 3;
  }
  .bench-actions {
    margin-top: 18px;
    justify-content: flex-start;
    padding-left: 17px;
    gap: 24px;
  }
  .bench-actions .solid-button {
    padding: 10px 16px;
  }
  .shop-content {
    padding: 36px 20px 48px;
    gap: 46px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .section-heading p {
    font-size: 13px;
    max-width: 28ch;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .catalog-toolbar {
    gap: 8px;
  }
  .search-box {
    padding: 0 12px;
  }
  .sort-control select {
    padding-left: 10px;
    padding-right: 29px;
    font-size: 13px;
    max-width: 115px;
  }
  .filter-row {
    margin-top: 10px;
  }
  .filters {
    gap: 2px;
  }
  .filters button {
    padding: 9px 8px;
    font-size: 12px;
  }
  .fork-toggle {
    font-size: 12px;
    gap: 5px;
  }
  .fork-toggle input {
    width: 14px;
    height: 14px;
  }
  .project-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .project-visual {
    height: 128px;
  }
  .project-kind {
    left: 8px;
    top: 8px;
    font-size: 11px;
    padding: 1px 5px;
  }
  .project-card h3 {
    font-size: 14px;
    margin-top: 10px;
  }
  .project-description {
    font-size: 12px;
    min-height: 39px;
  }
  .project-meta {
    font-size: 11px;
    gap: 6px 9px;
  }
  .project-links {
    gap: 12px;
    margin-top: 5px;
  }
  .project-links a {
    font-size: 12px;
    gap: 3px;
  }
  .project-links svg {
    width: 12px;
    height: 12px;
  }
  .project-visual .inspect-icon {
    width: 26px;
    height: 26px;
    right: 8px;
    bottom: 11px;
  }
  .inspect-icon svg {
    width: 15px;
    height: 15px;
  }
  .result-count {
    font-size: 12px;
  }
  .receipt {
    margin: 0 12px;
    padding: 20px 24px 26px;
  }
  #update-list {
    display: block;
  }
  .update-item strong {
    font-size: 15px;
  }
  .update-message {
    font-size: 13px;
  }
  .updates .section-heading {
    margin-bottom: 18px;
  }
  .receipt-header {
    font-size: 15px;
  }
  .sync-info {
    font-size: 12px;
  }
  .footer-owner p {
    max-width: none;
  }
  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-links a,
  .footer-links button {
    font-size: 13px;
  }
  footer {
    margin: 0 20px;
    padding: 26px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }
  .footer-owner {
    grid-column: 1/-1;
  }
  .footer-links {
    grid-row: 2;
  }
  .back-top {
    grid-column: 2;
    grid-row: 2;
  }
  .footer-owner p {
    font-size: 12px;
  }
  dialog {
    padding: 30px 24px;
  }
  dialog h2 {
    font-size: 22px;
  }
  .detail-canvas {
    height: 170px;
  }
  .detail-meta {
    grid-template-columns: 80px 1fr;
  }
  .about-links {
    gap: 16px;
  }
}
@media (max-width: 360px) {
  .site-header {
    padding: 0 12px;
  }
  .site-header nav {
    gap: 10px;
  }
  .wordmark {
    font-size: 14px;
  }
  .shop-intro h1 {
    font-size: 39px;
  }
  .shop-intro {
    left: 20px;
  }
  .filter-row {
    align-items: flex-start;
  }
  .fork-toggle {
    margin-left: 7px;
  }
  .project-shelf {
    gap: 20px 12px;
  }
  .project-visual {
    height: 118px;
  }
}
.shop-intro p {
  font-size: 18px;
}
.bench-project p,
.project-description,
.update-message {
  font-size: 16px;
}
.project-description {
  min-height: 52px;
}
.project-kind,
.project-meta,
.result-count,
.receipt-end,
.sync-info,
.update-top,
.footer-owner p {
  font-size: 13px;
}
.project-card h3 {
  font-size: 16px;
}
.project-card h3 button {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-links a,
.footer-links button,
.filters button,
.fork-toggle,
.project-links a,
.machine-pick {
  font-size: 14px;
}
.back-top {
  width: 44px;
  height: 44px;
}
@media (max-width: 850px) {
  .project-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proprietor strong,
  .proprietor span {
    font-size: 13px;
  }
  .machine-pick {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .workshop {
    height: 515px;
  }
  .bench-project p {
    -webkit-line-clamp: 2;
  }
  .section-heading p,
  .mobile-selector label,
  .scene-note {
    font-size: 13px;
  }
  .lamp-switch {
    width: 44px;
    height: 44px;
  }
  .filters button,
  .fork-toggle,
  .project-links a {
    font-size: 13px;
  }
  .project-visual {
    height: 142px;
  }
  .project-meta {
    gap: 8px 10px;
  }
  .project-description {
    -webkit-line-clamp: 3;
    min-height: 77px;
  }
  .proprietor {
    top: 164px;
  }
  .bench-project p {
    font-size: 16px;
  }
  .project-links {
    gap: 10px;
  }
  .shop-content {
    padding-top: 32px;
  }
  .wordmark {
    font-size: 15px;
  }
}
@media (max-width: 360px) {
  .project-shelf {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-visual {
    height: 164px;
  }
  .project-description {
    -webkit-line-clamp: 2;
    min-height: 0;
  }
  .project-card h3 button {
    min-height: 44px;
  }
  .project-meta {
    font-size: 13px;
  }
  .project-links {
    gap: 20px;
  }
  .project-kind {
    font-size: 13px;
  }
  .fork-toggle {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .mobile-selector label {
    width: fit-content;
    padding-right: 6px;
    background: var(--mint);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .project-visual:hover canvas {
    transform: none;
  }
}
