{
 "schema": "consumable-deck-model/1",
 "format": "consumable-deck",
 "version": 1,
 "summary": "A deck is a list of slides {template, slots, ground?, footer?}. Pick a template and fill its named slots. Positions, type, colours and the logo are locked by the foundation below. Input outside the limits (unknown template or slot, too many characters or lines, a trailing period on a headline, an unsourced stat, a banned name, a misspelled EASI Ads ...) is rejected with a machine-readable error list and exit code 3. Nothing is auto-shrunk: if it doesn't fit, cut copy or split the slide.",
 "input": {
  "shape": {
   "format": "consumable-deck",
   "v": 1,
   "deck": {
    "name": "string (optional, max 80)",
    "runningTitle": "string (optional, max 40): left side of the deck footer; default Consumable",
    "slides": [
     {
      "template": "template id",
      "slots": {
       "<slot>": "string"
      },
      "ground": "optional ground id from the template's grounds list",
      "footer": "optional boolean: false hides the deck footer on this slide"
     }
    ]
   }
  },
  "bareForm": "{name, runningTitle, slides} is accepted without the format/deck wrapper",
  "maxSlides": 60,
  "imageMaxBytes": 4000000,
  "highlight": "Wrap one phrase in ==double equals== in a slot that allows it to get the Chartreuse marker. Max one per slide.",
  "images": "image slots take an https URL, a same-site path, a data: URL, or a preset: \"preset:apps\" (official app icons on the blue-tint panel)"
 },
 "foundation": {
  "canvas": {
   "w": 1920,
   "h": 1080
  },
  "grid": {
   "cols": 6,
   "columnWidth": 240,
   "gutter": 48,
   "marginX": 120,
   "marginTop": 120,
   "marginBottom": 120,
   "baseline": 24,
   "major": 72,
   "rows": 35,
   "rule": "column c (1-6) starts at x = 120 + (c-1) x 288; row r (1-35) starts at y = 120 + (r-1) x 24. Blocks are placed by {cols:\"a-b\", rows:\"a-b\"} only. Stacks place their items top-down with gaps of 24, 48 or 72; every text block height is lines x line-height, all multiples of 24.",
   "liveArea": {
    "x": 120,
    "y": 120,
    "w": 1680,
    "h": 840
   },
   "footerRow": {
    "y": 1008,
    "h": 24,
    "owner": "deck",
    "content": "runningTitle on the left (column 1), slide number on the right (column 6 right edge). Slides may only hide it (footer:false)."
   }
  },
  "typeScale": {
   "display": {
    "weight": 800,
    "size": 138,
    "lineHeight": 144,
    "letterSpacing": -0.03
   },
   "h1": {
    "weight": 800,
    "size": 92,
    "lineHeight": 96,
    "letterSpacing": -0.025
   },
   "h2": {
    "weight": 800,
    "size": 70,
    "lineHeight": 72,
    "letterSpacing": -0.02
   },
   "h3": {
    "weight": 800,
    "size": 42,
    "lineHeight": 48,
    "letterSpacing": -0.01
   },
   "lead": {
    "weight": 400,
    "size": 42,
    "lineHeight": 48,
    "letterSpacing": 0
   },
   "body": {
    "weight": 400,
    "size": 32,
    "lineHeight": 48,
    "letterSpacing": 0,
    "note": "deliberate: 1.5 body ratio at slide scale so line-height stays on the 24px baseline"
   },
   "label": {
    "weight": 500,
    "size": 32,
    "lineHeight": 48,
    "letterSpacing": 0,
    "note": "deliberate: as body"
   },
   "caption": {
    "weight": 500,
    "size": 16,
    "lineHeight": 24,
    "letterSpacing": 0
   },
   "stat": {
    "weight": 800,
    "size": 288,
    "lineHeight": 288,
    "letterSpacing": -0.03,
    "tabular": true
   },
   "glyph": {
    "weight": 800,
    "size": 96,
    "lineHeight": 96,
    "letterSpacing": 0
   }
  },
  "colors": "brand/brand-rules.json grounds; text roles: text, sub, accent",
  "radius": {
   "card": 24,
   "image": 24
  },
  "locked": true
 },
 "templates": [
  {
   "id": "title",
   "name": "Title",
   "description": "Opening slide: the lockup top left, a big headline and a one or two line subtitle anchored to the bottom of the live area. White on Signal Blue by default.",
   "grounds": [
    "signal",
    "forest",
    "marble"
   ],
   "footer": false,
   "slots": [
    {
     "name": "headline",
     "role": "headline",
     "style": "display",
     "required": true,
     "maxChars": 64,
     "maxLines": 3,
     "highlight": true
    },
    {
     "name": "subtitle",
     "role": "body",
     "style": "lead",
     "required": false,
     "maxChars": 140,
     "maxLines": 2
    },
    {
     "name": "meta",
     "role": "label",
     "style": "label",
     "required": false,
     "maxChars": 48,
     "maxLines": 1,
     "color": "sub"
    }
   ],
   "blocks": [
    {
     "type": "logo",
     "kind": "lockup",
     "cols": "1-2",
     "rows": "1-2"
    },
    {
     "type": "stack",
     "cols": "1-5",
     "rows": "6-35",
     "anchor": "bottom",
     "items": [
      {
       "slot": "headline"
      },
      {
       "slot": "subtitle",
       "gap": 48,
       "cols": "1-4"
      },
      {
       "slot": "meta",
       "gap": 48
      }
     ]
    }
   ]
  },
  {
   "id": "section",
   "name": "Section",
   "description": "Divider between parts of a deck: one headline and an optional lede, bottom left. Marble on Ink by default.",
   "grounds": [
    "ink",
    "signal",
    "forest"
   ],
   "footer": true,
   "slots": [
    {
     "name": "headline",
     "role": "headline",
     "style": "h1",
     "required": true,
     "maxChars": 60,
     "maxLines": 3,
     "highlight": true
    },
    {
     "name": "lede",
     "role": "body",
     "style": "lead",
     "required": false,
     "maxChars": 150,
     "maxLines": 3
    }
   ],
   "blocks": [
    {
     "type": "stack",
     "cols": "1-5",
     "rows": "1-35",
     "anchor": "bottom",
     "items": [
      {
       "slot": "headline"
      },
      {
       "slot": "lede",
       "gap": 48,
       "cols": "1-4"
      }
     ]
    }
   ]
  },
  {
   "id": "stat",
   "name": "Stat",
   "description": "One sourced number that carries the slide: the number in Signal Blue, what it measures, the source line, and optional context in columns 5-6. The source slot is required.",
   "grounds": [
    "marble",
    "white",
    "signal"
   ],
   "footer": true,
   "slots": [
    {
     "name": "value",
     "role": "stat",
     "style": "stat",
     "required": true,
     "maxChars": 8,
     "maxLines": 1,
     "color": "accent"
    },
    {
     "name": "label",
     "role": "body",
     "style": "h3",
     "required": true,
     "maxChars": 90,
     "maxLines": 3
    },
    {
     "name": "source",
     "role": "source",
     "style": "caption",
     "required": true,
     "maxChars": 80,
     "maxLines": 1,
     "color": "sub"
    },
    {
     "name": "context",
     "role": "body",
     "style": "body",
     "required": false,
     "maxChars": 220,
     "maxLines": 9,
     "multiline": true,
     "color": "sub"
    }
   ],
   "blocks": [
    {
     "type": "stack",
     "cols": "1-4",
     "rows": "1-35",
     "anchor": "bottom",
     "items": [
      {
       "slot": "value"
      },
      {
       "slot": "label",
       "gap": 48
      },
      {
       "slot": "source",
       "gap": 24
      }
     ]
    },
    {
     "type": "stack",
     "cols": "5-6",
     "rows": "1-35",
     "anchor": "bottom",
     "items": [
      {
       "slot": "context"
      }
     ]
    }
   ]
  },
  {
   "id": "quote",
   "name": "Quote",
   "description": "A real quote with attribution. A Signal Blue quote glyph, the quote, then name and role. Only quote real people or published Consumable copy.",
   "grounds": [
    "white",
    "marble",
    "signal"
   ],
   "footer": true,
   "slots": [
    {
     "name": "quote",
     "role": "quote",
     "style": "h2",
     "required": true,
     "maxChars": 180,
     "maxLines": 5,
     "highlight": true
    },
    {
     "name": "name",
     "role": "attribution",
     "style": "h3",
     "required": true,
     "maxChars": 48,
     "maxLines": 1
    },
    {
     "name": "role",
     "role": "label",
     "style": "body",
     "required": false,
     "maxChars": 70,
     "maxLines": 1,
     "color": "sub"
    },
    {
     "name": "source",
     "role": "source",
     "style": "caption",
     "required": false,
     "maxChars": 80,
     "maxLines": 1,
     "color": "sub"
    }
   ],
   "blocks": [
    {
     "type": "stack",
     "cols": "1-5",
     "rows": "1-35",
     "anchor": "bottom",
     "items": [
      {
       "glyph": "“",
       "style": "glyph",
       "color": "accent"
      },
      {
       "slot": "quote",
       "gap": 24
      },
      {
       "slot": "name",
       "gap": 72
      },
      {
       "slot": "role"
      },
      {
       "slot": "source",
       "gap": 24
      }
     ]
    }
   ]
  },
  {
   "id": "image-text",
   "name": "Image and text",
   "description": "Image in columns 1-3 (full live-area height, 24px radius), headline and body in columns 4-6, vertically centred on the baseline grid. Use official logos and app icons only.",
   "grounds": [
    "marble",
    "white"
   ],
   "footer": true,
   "slots": [
    {
     "name": "image",
     "kind": "image",
     "role": "image",
     "required": true,
     "presets": [
      "preset:apps"
     ]
    },
    {
     "name": "headline",
     "role": "headline",
     "style": "h2",
     "required": true,
     "maxChars": 70,
     "maxLines": 4,
     "highlight": true
    },
    {
     "name": "body",
     "role": "body",
     "style": "body",
     "required": false,
     "maxChars": 260,
     "maxLines": 8,
     "multiline": true,
     "color": "sub"
    },
    {
     "name": "source",
     "role": "source",
     "style": "caption",
     "required": false,
     "maxChars": 80,
     "maxLines": 1,
     "color": "sub"
    }
   ],
   "blocks": [
    {
     "type": "image",
     "slot": "image",
     "cols": "1-3",
     "rows": "1-35",
     "radius": 24
    },
    {
     "type": "stack",
     "cols": "4-6",
     "rows": "1-35",
     "anchor": "center",
     "items": [
      {
       "slot": "headline"
      },
      {
       "slot": "body",
       "gap": 48
      },
      {
       "slot": "source",
       "gap": 24
      }
     ]
    }
   ]
  },
  {
   "id": "closing",
   "name": "Closing",
   "description": "End slide: lockup top left, a call-to-action headline, one supporting line and the action (URL or next step) at the bottom.",
   "grounds": [
    "signal",
    "forest",
    "chartreuse"
   ],
   "footer": false,
   "slots": [
    {
     "name": "headline",
     "role": "headline",
     "style": "display",
     "required": true,
     "maxChars": 64,
     "maxLines": 3,
     "highlight": true
    },
    {
     "name": "body",
     "role": "body",
     "style": "lead",
     "required": false,
     "maxChars": 140,
     "maxLines": 2
    },
    {
     "name": "cta",
     "role": "cta",
     "style": "h3",
     "required": false,
     "maxChars": 40,
     "maxLines": 1,
     "color": "accent"
    }
   ],
   "blocks": [
    {
     "type": "logo",
     "kind": "lockup",
     "cols": "1-2",
     "rows": "1-2"
    },
    {
     "type": "stack",
     "cols": "1-5",
     "rows": "6-35",
     "anchor": "bottom",
     "items": [
      {
       "slot": "headline"
      },
      {
       "slot": "body",
       "gap": 48,
       "cols": "1-4"
      },
      {
       "slot": "cta",
       "gap": 72
      }
     ]
    }
   ]
  }
 ]
}