{
  "capabilityId": "procedural.create",
  "input": {
    "seed": 42,
    "baseInk": {
      "color": "#1f2937",
      "width": 2
    },
    "recipe": {
      "schema": "scribe.procedural/1",
      "parameters": [
        {
          "id": "card-width",
          "type": "number",
          "unit": "logical-unit",
          "min": 80,
          "max": 240,
          "default": 160
        }
      ],
      "frames": [],
      "attachments": [],
      "motionChannels": [],
      "marks": [
        {
          "id": "card-guide",
          "geometry": {
            "op": "polyline",
            "points": [
              {
                "space": "world",
                "x": -10,
                "y": 40
              },
              {
                "space": "world",
                "x": {
                  "op": "add",
                  "left": {
                    "op": "parameter",
                    "id": "card-width"
                  },
                  "right": 10
                },
                "y": 40
              }
            ],
            "closed": false
          },
          "direction": "forward",
          "drawOrder": 0,
          "paintOrder": 0,
          "styleRole": "construction"
        },
        {
          "id": "card-outline",
          "geometry": {
            "op": "polyline",
            "points": [
              {
                "space": "world",
                "x": 0,
                "y": 0
              },
              {
                "space": "world",
                "x": {
                  "op": "parameter",
                  "id": "card-width"
                },
                "y": 0
              },
              {
                "space": "world",
                "x": {
                  "op": "parameter",
                  "id": "card-width"
                },
                "y": 80
              },
              {
                "space": "world",
                "x": 0,
                "y": 80
              }
            ],
            "closed": true
          },
          "direction": "forward",
          "drawOrder": 1,
          "paintOrder": 1,
          "styleRole": "outlinePrimary"
        },
        {
          "id": "card-accent",
          "geometry": {
            "op": "polyline",
            "points": [
              {
                "space": "world",
                "x": 20,
                "y": 60
              },
              {
                "space": "world",
                "x": {
                  "op": "subtract",
                  "left": {
                    "op": "parameter",
                    "id": "card-width"
                  },
                  "right": 20
                },
                "y": 60
              }
            ],
            "closed": false
          },
          "direction": "forward",
          "drawOrder": 2,
          "paintOrder": 2,
          "styleRole": "accentPrimary"
        }
      ],
      "fills": []
    },
    "x": 300,
    "y": 220,
    "width": 450,
    "name": "Procedural card",
    "objectId": "procedural-card",
    "drawingScore": {
      "schema": "scribe.procedural-drawing-score/1",
      "parts": [
        {
          "id": "card-part",
          "label": "Card"
        }
      ],
      "layers": [
        {
          "id": "guide-layer",
          "lifecycle": {
            "finalBehavior": "ghost",
            "retireAfterStepId": "outline-step",
            "finalOpacity": 0.08,
            "fadeFraction": 0.05
          }
        },
        {
          "id": "ink-layer",
          "lifecycle": {
            "finalBehavior": "keep"
          }
        }
      ],
      "steps": [
        {
          "id": "placement-step",
          "phase": "placement",
          "markIds": [
            "card-guide"
          ]
        },
        {
          "id": "outline-step",
          "phase": "contours",
          "markIds": [
            "card-outline"
          ]
        },
        {
          "id": "accent-step",
          "phase": "accents",
          "markIds": [
            "card-accent"
          ]
        }
      ],
      "marks": [
        {
          "markId": "card-guide",
          "partId": "card-part",
          "layerId": "guide-layer",
          "kind": "guide"
        },
        {
          "markId": "card-outline",
          "partId": "card-part",
          "layerId": "ink-layer",
          "kind": "contour",
          "after": [
            "card-guide"
          ]
        },
        {
          "markId": "card-accent",
          "partId": "card-part",
          "layerId": "ink-layer",
          "kind": "accent",
          "after": [
            "card-outline"
          ]
        }
      ]
    },
    "palette": {
      "schema": "scribe.procedural-palette/1",
      "roles": {
        "outlinePrimary": {
          "markStyle": {
            "color": "#1f2937",
            "width": 2
          }
        },
        "construction": {
          "markStyle": {
            "color": "#94a3b8",
            "opacity": 0.35
          }
        },
        "accentPrimary": {
          "markStyle": {
            "color": "#2563eb",
            "width": 3
          }
        },
        "shadow": {
          "markStyle": {
            "color": "#475569",
            "opacity": 0.45
          }
        }
      }
    }
  }
}
