:root {
  --canvas: #e9ecf1;
  --dot: #cfd4dd;
  --frame: #ffffff;
  --ink: #161a22;
  --muted: #646b7a;
  --select: #0d99ff;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1d2027;
    --dot: #2e323b;
    --frame: #2a2e36;
    --ink: #eef0f4;
    --muted: #9aa1ae;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 20px 20px;
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }

.top, .tabs, .canvas, .foot { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.top { padding-top: 64px; padding-bottom: 28px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark span { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.intro { max-width: 34em; margin: 20px 0 0; font-size: 18px; color: var(--muted); }

.tabs { display: flex; gap: 4px; padding-bottom: 28px; }
.tabs button {
  appearance: none; border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: 6px;
  background: transparent; color: var(--muted);
  font: 500 14px/1.4 var(--font);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--frame); color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.06); }

.canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 40px;
  padding-bottom: 72px;
}

.frame-label {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.frame-kind { opacity: .8; }

.frame-body {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  background: var(--frame);
  box-shadow: 0 1px 2px rgba(22,26,34,.08);
  text-decoration: none;
}
.frame-body img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* selection, as in a design tool: outline, corner handles and a size badge */
a.frame-body::before, a.frame-body::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0;
}
a.frame-body::before { border: 1.5px solid var(--select); }
a.frame-body::after {
  inset: -4px;
  --h: linear-gradient(var(--select), var(--select));
  --w: linear-gradient(#fff, #fff);
  background:
    var(--w) calc(0% + 1px) calc(0% + 1px) / 5px 5px no-repeat,
    var(--w) calc(100% - 1px) calc(0% + 1px) / 5px 5px no-repeat,
    var(--w) calc(0% + 1px) calc(100% - 1px) / 5px 5px no-repeat,
    var(--w) calc(100% - 1px) calc(100% - 1px) / 5px 5px no-repeat,
    var(--h) 0 0 / 7px 7px no-repeat,
    var(--h) 100% 0 / 7px 7px no-repeat,
    var(--h) 0 100% / 7px 7px no-repeat,
    var(--h) 100% 100% / 7px 7px no-repeat;
}
.badge {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  padding: 0 6px; border-radius: 3px;
  background: var(--select); color: #fff;
  font: 600 11px/18px var(--font); font-variant-numeric: tabular-nums;
  white-space: nowrap; opacity: 0;
}
a.frame-body:hover::before, a.frame-body:hover::after, a.frame-body:hover .badge,
a.frame-body:focus-visible::before, a.frame-body:focus-visible::after { opacity: 1; }
a.frame-body:focus-visible { outline: none; }

.frame-meta { padding-top: 18px; max-width: 36em; }
.frame-meta p { margin: 0 0 6px; }
.frame-meta .credit { font-size: 14px; color: var(--muted); }
.sep { display: inline-block; width: 3px; height: 3px; margin: 0 6px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.links { display: flex; gap: 18px; margin-top: 10px !important; font-size: 14px; font-weight: 600; }
.links a { text-decoration: none; color: var(--select); }
.links a:hover { text-decoration: underline; }

.frame-empty .frame-body {
  display: grid; place-items: center; padding: 24px;
  background: transparent; box-shadow: none;
  border: 1.5px dashed var(--dot);
  color: var(--muted); text-align: center; font-size: 15px;
}
.frame-empty .frame-body p { margin: 0; max-width: 20em; }

.foot { padding-bottom: 56px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0; }

@media (max-width: 760px) {
  .top, .tabs, .canvas, .foot { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 40px; }
  .canvas { grid-template-columns: 1fr; gap: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  a.frame-body::before, a.frame-body::after, .badge { transition: opacity .12s; }
}
