Grid and layout
ConfirmedThe 12 column screen grid and the US Letter document grid with its margins and footer.
Primary render. Select it to open full size.
Every render from the champion round
How to use it, from the piece README
Two grids. The US Letter document grid for quotes, reports, proposals, and one-sheets. The screen grid for the website and all 14 internal apps. Both live in grid.css, which reads tokens.css and nothing else.
What is in here
| File | What it is |
|---|---|
grid.css | The grid. Copy it into an app or a document template. This is the file you use. |
grid-layout.html | The spec book, nine US Letter pages. Open it and Cmd+P to PDF. |
renders/grid-layout.pdf | The spec book as a PDF. renders/pages/ has every page at 150dpi. |
renders/primary.png | Page 2, the dimensioned Letter construction drawing. |
site-sample.html | A home page section built only on grid.css. Add ?grid=1 to the URL to see the columns. |
book.css, gen.py, build.sh | What builds the spec book. You only touch these to change the book. |
Use it in an app (Workers and Pages)
- Copy
grid.cssinto the app's/brand/folder, next totokens.css. Copy, never hotlink. - In the head, load
tokens.cssfirst, thengrid.css. - Wrap the page in
<div class="mc-container">and lay blocks out in<div class="mc-grid">. - A block with no span class is full width. Add widths per screen size:
mc-span-1to4on phones,mc-md-span-1to8from 768px,mc-lg-span-1to12from 1024px. - To push a block over, pair a start class with the span:
mc-lg-span-4 mc-lg-start-5. - While building, add
mc-show-gridto the body to see the columns. Take it off before it ships.
The file has no backticks and no dollar-brace, so it is safe inside a String.raw page template.
Use it in a document
- Each page is
<section class="mc-doc-page">. Margins, page size, and page breaks come with it. - Inside, use
<div class="mc-doc-grid">andmc-doc-span-1to12. Start a new row withmc-doc-start-1. - Add
<footer class="mc-doc-footer"><span>Document name</span><span>Page 1 of 2</span></footer>as the last child. - Photos and navy fills that run to the edge get
mc-doc-bleed. Type never does. - Cmd+P, Save as PDF, margins None, background graphics on.
The approved splits are 12, 8 and 4, 6 and 6, three 4s, four 3s, and 3 and 9. Page 3 of the spec book has every span width in points, inches, and millimetres for InDesign or a print vendor.
Rebuild the spec book
From the repo root: sh build/grid-layout/v/r01/build.sh. It captures the site sample, writes grid-layout.html, prints the PDF, rasterizes every page, and refreshes renders/primary.png.
For Jacob to confirm
- The 0.75in top margin. The brand guide sets sides, bottom, and footer only.
- Every price in the worked quote, every figure in the worked report, and the 24 hour turnaround on the one-sheet. They are working figures, flagged with editor notes on the pages.
- The column counts per screen size: 4 under 768px, 8 from 768px, 12 from 1024px. They are derived from
--mc-screen-columns, not new tokens.
Files to download and code to copy
- Whole piece, source files7 files, zip, 36.8 KB. Paths inside follow the repo layout, so put tokens.css beside them as the README says.Download
- grid-layout.pdfPDF, 7.2 MBDownload
Copy-paste code
grid.css227 lines, 10.5 KB
/* Marathon Creative grid.css, v1.0.0. Grid and layout, Tier 0.
Load AFTER tokens.css. Every value below is a token from tokens.css or is derived from one.
No hex, no font name, no build step. Safe inside a String.raw template: no backticks, no dollar-brace.
Copy it into the app next to tokens.css. Never hotlink it.
Two grids live here.
1. Screen grid, mobile first: 4 columns under 768px, 8 columns from 768px, 12 columns from 1024px.
Content caps at --mc-container (1180px) and centres.
2. Document grid, US Letter: 12 columns, 14pt gutter, 0.65in sides, 0.85in bottom,
footer 0.4in from the bottom edge.
Breakpoints are typed as px inside @media because CSS cannot read a variable there.
They mirror --mc-bp-sm 420px, --mc-bp-md 768px, --mc-bp-lg 1024px, --mc-bp-xl 1280px. */
/* Grid-local values. Derived from tokens, never retyped. */
:root {
--mcg-cols: calc(var(--mc-screen-columns) / 3);
--mcg-gutter: var(--mc-screen-gutter-sm);
--mcg-margin: var(--mc-screen-margin);
--mcg-logo: var(--mc-screen-header-logo-sm);
--mcg-overlay: rgb(var(--mc-red-100-rgb) / 0.1);
--mcg-overlay-edge: rgb(var(--mc-red-100-rgb) / 0.45);
--mcg-doc-live-w: calc(var(--mc-doc-page-width) - 2 * var(--mc-doc-margin-side));
--mcg-doc-live-h: calc(var(--mc-doc-page-height) - var(--mc-doc-margin-top) - var(--mc-doc-margin-bottom));
--mcg-doc-col: calc((var(--mcg-doc-live-w) - (var(--mc-doc-columns) - 1) * var(--mc-doc-gutter)) / var(--mc-doc-columns));
}
@media (min-width: 420px) {
:root { --mcg-logo: var(--mc-screen-header-logo); }
}
@media (min-width: 768px) {
:root {
--mcg-cols: calc(var(--mc-screen-columns) / 1.5);
--mcg-gutter: var(--mc-screen-gutter);
--mcg-margin: var(--mc-screen-margin-lg);
}
}
@media (min-width: 1024px) {
:root { --mcg-cols: var(--mc-screen-columns); }
}
/* 1. Screen grid */
.mc-container {
box-sizing: border-box;
width: 100%;
max-width: calc(var(--mc-container) + 2 * var(--mcg-margin));
margin-inline: auto;
padding-inline: var(--mcg-margin);
}
.mc-container.mc-bleed { max-width: none; padding-inline: 0; }
.mc-grid {
display: grid;
grid-template-columns: repeat(var(--mcg-cols), minmax(0, 1fr));
column-gap: var(--mcg-gutter);
row-gap: var(--mcg-gutter);
}
.mc-grid > * { grid-column: 1 / -1; min-width: 0; }
.mc-grid.mc-grid-tight { row-gap: 0; }
/* Small, 0 to 767px. 4 columns. Children span all 4 unless told otherwise.
Span classes set the width, start classes set the first column. Use both: class="mc-lg-span-4 mc-lg-start-5".
A start class applies at its own breakpoint and up, until a wider span class resets it. */
.mc-grid > .mc-span-1 { grid-column: auto / span 1; }
.mc-grid > .mc-span-2 { grid-column: auto / span 2; }
.mc-grid > .mc-span-3 { grid-column: auto / span 3; }
.mc-grid > .mc-span-4 { grid-column: auto / span 4; }
.mc-grid > .mc-start-1 { grid-column-start: 1; }
.mc-grid > .mc-start-2 { grid-column-start: 2; }
.mc-grid > .mc-start-3 { grid-column-start: 3; }
.mc-grid > .mc-start-4 { grid-column-start: 4; }
/* Medium, 768px and up. 8 columns. */
@media (min-width: 768px) {
.mc-grid > .mc-md-span-1 { grid-column: auto / span 1; }
.mc-grid > .mc-md-span-2 { grid-column: auto / span 2; }
.mc-grid > .mc-md-span-3 { grid-column: auto / span 3; }
.mc-grid > .mc-md-span-4 { grid-column: auto / span 4; }
.mc-grid > .mc-md-span-5 { grid-column: auto / span 5; }
.mc-grid > .mc-md-span-6 { grid-column: auto / span 6; }
.mc-grid > .mc-md-span-7 { grid-column: auto / span 7; }
.mc-grid > .mc-md-span-8 { grid-column: auto / span 8; }
.mc-grid > .mc-md-start-1 { grid-column-start: 1; }
.mc-grid > .mc-md-start-2 { grid-column-start: 2; }
.mc-grid > .mc-md-start-3 { grid-column-start: 3; }
.mc-grid > .mc-md-start-4 { grid-column-start: 4; }
.mc-grid > .mc-md-start-5 { grid-column-start: 5; }
.mc-grid > .mc-md-start-6 { grid-column-start: 6; }
.mc-grid > .mc-md-start-7 { grid-column-start: 7; }
.mc-grid > .mc-md-start-8 { grid-column-start: 8; }
}
/* Large, 1024px and up. 12 columns. Content stops growing at 1180px. */
@media (min-width: 1024px) {
.mc-grid > .mc-lg-span-1 { grid-column: auto / span 1; }
.mc-grid > .mc-lg-span-2 { grid-column: auto / span 2; }
.mc-grid > .mc-lg-span-3 { grid-column: auto / span 3; }
.mc-grid > .mc-lg-span-4 { grid-column: auto / span 4; }
.mc-grid > .mc-lg-span-5 { grid-column: auto / span 5; }
.mc-grid > .mc-lg-span-6 { grid-column: auto / span 6; }
.mc-grid > .mc-lg-span-7 { grid-column: auto / span 7; }
.mc-grid > .mc-lg-span-8 { grid-column: auto / span 8; }
.mc-grid > .mc-lg-span-9 { grid-column: auto / span 9; }
.mc-grid > .mc-lg-span-10 { grid-column: auto / span 10; }
.mc-grid > .mc-lg-span-11 { grid-column: auto / span 11; }
.mc-grid > .mc-lg-span-12 { grid-column: auto / span 12; }
.mc-grid > .mc-lg-start-1 { grid-column-start: 1; }
.mc-grid > .mc-lg-start-2 { grid-column-start: 2; }
.mc-grid > .mc-lg-start-3 { grid-column-start: 3; }
.mc-grid > .mc-lg-start-4 { grid-column-start: 4; }
.mc-grid > .mc-lg-start-5 { grid-column-start: 5; }
.mc-grid > .mc-lg-start-6 { grid-column-start: 6; }
.mc-grid > .mc-lg-start-7 { grid-column-start: 7; }
.mc-grid > .mc-lg-start-8 { grid-column-start: 8; }
.mc-grid > .mc-lg-start-9 { grid-column-start: 9; }
.mc-grid > .mc-lg-start-10 { grid-column-start: 10; }
.mc-grid > .mc-lg-start-11 { grid-column-start: 11; }
.mc-grid > .mc-lg-start-12 { grid-column-start: 12; }
}
/* Screen overlay. Add class mc-show-grid to body while building, remove before ship. */
body.mc-show-grid { position: relative; }
body.mc-show-grid::after {
content: "";
position: absolute; top: 0; bottom: 0; left: 0; right: 0;
width: calc(100% - 2 * var(--mcg-margin));
max-width: var(--mc-container);
margin-inline: auto;
pointer-events: none;
z-index: var(--mc-z-toast);
--mcg-colw: calc((100% - (var(--mcg-cols) - 1) * var(--mcg-gutter)) / var(--mcg-cols));
background: repeating-linear-gradient(to right,
var(--mcg-overlay) 0, var(--mcg-overlay) var(--mcg-colw),
transparent var(--mcg-colw), transparent calc(var(--mcg-colw) + var(--mcg-gutter)));
border-left: var(--mc-border-width-hairline) solid var(--mcg-overlay-edge);
border-right: var(--mc-border-width-hairline) solid var(--mcg-overlay-edge);
}
/* 2. Document grid, US Letter */
@page { size: 8.5in 11in; margin: 0; }
.mc-doc-page {
box-sizing: border-box;
position: relative;
width: var(--mc-doc-page-width);
height: var(--mc-doc-page-height);
padding: var(--mc-doc-margin-top) var(--mc-doc-margin-side) var(--mc-doc-margin-bottom);
overflow: hidden;
background: var(--mc-surface-page);
break-after: page; page-break-after: always;
-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.mc-doc-page:last-child { break-after: auto; page-break-after: auto; }
.mc-doc-grid {
display: grid;
grid-template-columns: repeat(var(--mc-doc-columns), minmax(0, 1fr));
column-gap: var(--mc-doc-gutter);
row-gap: var(--mc-doc-gutter);
}
.mc-doc-grid > * { grid-column: 1 / -1; min-width: 0; }
.mc-doc-grid > .mc-doc-span-1 { grid-column: auto / span 1; }
.mc-doc-grid > .mc-doc-span-2 { grid-column: auto / span 2; }
.mc-doc-grid > .mc-doc-span-3 { grid-column: auto / span 3; }
.mc-doc-grid > .mc-doc-span-4 { grid-column: auto / span 4; }
.mc-doc-grid > .mc-doc-span-5 { grid-column: auto / span 5; }
.mc-doc-grid > .mc-doc-span-6 { grid-column: auto / span 6; }
.mc-doc-grid > .mc-doc-span-7 { grid-column: auto / span 7; }
.mc-doc-grid > .mc-doc-span-8 { grid-column: auto / span 8; }
.mc-doc-grid > .mc-doc-span-9 { grid-column: auto / span 9; }
.mc-doc-grid > .mc-doc-span-10 { grid-column: auto / span 10; }
.mc-doc-grid > .mc-doc-span-11 { grid-column: auto / span 11; }
.mc-doc-grid > .mc-doc-span-12 { grid-column: auto / span 12; }
.mc-doc-grid > .mc-doc-start-1 { grid-column-start: 1; }
.mc-doc-grid > .mc-doc-start-2 { grid-column-start: 2; }
.mc-doc-grid > .mc-doc-start-3 { grid-column-start: 3; }
.mc-doc-grid > .mc-doc-start-4 { grid-column-start: 4; }
.mc-doc-grid > .mc-doc-start-5 { grid-column-start: 5; }
.mc-doc-grid > .mc-doc-start-6 { grid-column-start: 6; }
.mc-doc-grid > .mc-doc-start-7 { grid-column-start: 7; }
.mc-doc-grid > .mc-doc-start-8 { grid-column-start: 8; }
.mc-doc-grid > .mc-doc-start-9 { grid-column-start: 9; }
.mc-doc-grid > .mc-doc-start-10 { grid-column-start: 10; }
.mc-doc-grid > .mc-doc-start-11 { grid-column-start: 11; }
.mc-doc-grid > .mc-doc-start-12 { grid-column-start: 12; }
/* Full bleed. Runs to the trim on screen and 0.125in past it in press files. */
.mc-doc-bleed {
margin-left: calc(-1 * var(--mc-doc-margin-side));
margin-right: calc(-1 * var(--mc-doc-margin-side));
}
.mc-doc-bleed-top { margin-top: calc(-1 * var(--mc-doc-margin-top)); }
/* Footer. 0.4in from the bottom edge, document name left, page number right. */
.mc-doc-footer {
position: absolute;
left: var(--mc-doc-margin-side); right: var(--mc-doc-margin-side);
bottom: var(--mc-doc-footer-offset);
display: flex; justify-content: space-between; align-items: baseline;
padding-top: var(--mc-space-03);
border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle);
font-family: var(--mc-font);
font-size: var(--mc-print-type-caption-size);
font-weight: var(--mc-weight-semibold);
line-height: 1;
color: var(--mc-text-tertiary);
font-variant-numeric: var(--mc-numeric-tabular);
}
/* Document overlay. Add class mc-show-grid to a .mc-doc-page while building. */
.mc-doc-page.mc-show-grid::after {
content: "";
position: absolute;
top: var(--mc-doc-margin-top); bottom: var(--mc-doc-margin-bottom);
left: var(--mc-doc-margin-side); right: var(--mc-doc-margin-side);
pointer-events: none;
z-index: var(--mc-z-overlay);
background: repeating-linear-gradient(to right,
var(--mcg-overlay) 0, var(--mcg-overlay) var(--mcg-doc-col),
transparent var(--mcg-doc-col), transparent calc(var(--mcg-doc-col) + var(--mc-doc-gutter)));
outline: var(--mc-border-width-hairline) solid var(--mcg-overlay-edge);
}
/* Print. Overlays never reach paper unless the page also carries mc-grid-print,
which only this spec book uses. Blocks never split across pages. */
@media print {
body.mc-show-grid:not(.mc-grid-print)::after,
.mc-doc-page.mc-show-grid:not(.mc-grid-print)::after { display: none; }
.mc-doc-grid > * { break-inside: avoid; }
}
book.css205 lines, 17.3 KB
/* Styles for the grid and layout spec book, grid-layout.html. Tokens only, no hex, no second typeface. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
font-family: var(--mc-font);
color: var(--mc-text-primary);
background: var(--mc-surface-muted);
font-size: var(--mc-print-type-body-size);
line-height: var(--mc-type-body-leading);
}
@media screen { .book > .mc-doc-page { margin: var(--mc-space-08) auto; box-shadow: var(--mc-shadow-2); } }
@media print { body { background: var(--mc-surface-page); } }
p { margin: 0 0 var(--mc-space-03); }
.eyebrow {
margin: 0 0 var(--mc-space-03); color: var(--mc-text-label);
font-size: var(--mc-print-type-eyebrow-size); font-weight: var(--mc-type-eyebrow-weight);
letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: var(--mc-type-eyebrow-case); line-height: var(--mc-type-eyebrow-leading);
}
.eyebrow.inv { color: var(--mc-text-inverse); }
h1 {
margin: 0 0 var(--mc-space-04); color: var(--mc-text-heading);
font-size: var(--mc-print-type-h1-size); font-weight: var(--mc-type-h1-weight);
line-height: var(--mc-type-h1-leading); letter-spacing: var(--mc-type-h1-tracking); text-wrap: balance;
}
h1.cover { font-size: var(--mc-print-type-cover-size); font-weight: var(--mc-type-cover-weight); letter-spacing: var(--mc-type-cover-tracking); line-height: var(--mc-type-cover-leading); }
h2 {
margin: 0 0 var(--mc-space-03); color: var(--mc-text-heading);
font-size: var(--mc-print-type-h2-size); font-weight: var(--mc-type-h2-weight);
line-height: var(--mc-type-h2-leading); letter-spacing: var(--mc-type-h2-tracking);
}
h3 {
margin: 0 0 var(--mc-space-02); color: var(--mc-text-heading);
font-size: var(--mc-print-type-h3-size); font-weight: var(--mc-type-h3-weight); line-height: var(--mc-type-h3-leading);
}
.lede {
margin: 0 0 var(--mc-space-05); color: var(--mc-text-secondary);
font-size: var(--mc-print-type-lede-size); font-weight: var(--mc-type-lede-weight); line-height: var(--mc-type-lede-leading);
}
.small { font-size: var(--mc-print-type-small-size); line-height: var(--mc-type-small-leading); }
.cap { font-size: var(--mc-print-type-caption-size); line-height: var(--mc-type-caption-leading); color: var(--mc-text-secondary); }
.muted { color: var(--mc-text-tertiary); }
strong, b { font-weight: var(--mc-weight-semibold); }
.num { font-variant-numeric: var(--mc-numeric-tabular); }
.right { text-align: right; }
.divider { width: var(--mc-doc-divider-width); height: var(--mc-doc-divider-height); background: var(--mc-border-accent); margin: var(--mc-space-03) 0 var(--mc-space-05); }
code, .code { font-family: var(--mc-font); font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); font-size: 0.92em; }
/* Section head shared by every book page */
.head { margin-bottom: var(--mc-space-05); }
.head .lede { margin-bottom: 0; max-width: 6in; }
/* Tables, per the document system */
table { width: 100%; border-collapse: collapse; font-size: var(--mc-print-type-small-size); line-height: 1.35; }
th {
background: var(--mc-surface-table-header); color: var(--mc-text-on-accent); text-align: left;
font-weight: var(--mc-weight-bold); font-size: var(--mc-print-type-caption-size);
letter-spacing: 0.06em; text-transform: uppercase; padding: var(--mc-space-03) var(--mc-space-03);
}
td { padding: var(--mc-space-02) var(--mc-space-03); border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--mc-surface-row-alt-print); }
td.num, th.num { text-align: right; font-variant-numeric: var(--mc-numeric-tabular); white-space: nowrap; }
tr.total td { font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); background: var(--mc-surface-page); border-bottom: 0; border-top: var(--mc-border-width-strong) solid var(--mc-border-focus); }
/* Containers */
.callout { background: var(--mc-surface-inverse); color: var(--mc-text-inverse); padding: var(--mc-space-05) var(--mc-space-06); }
.callout p { color: var(--mc-text-inverse-secondary); }
.callout h3 { color: var(--mc-text-inverse); }
.callout .rule { width: var(--mc-space-08); height: var(--mc-border-width-bar); background: var(--mc-accent-on-inverse); margin-bottom: var(--mc-space-04); }
.editor { border-left: var(--mc-border-width-bar) solid var(--mc-status-warning); background: var(--mc-surface-muted); padding: var(--mc-space-03) var(--mc-space-04); font-size: var(--mc-print-type-caption-size); line-height: var(--mc-type-caption-leading); color: var(--mc-text-primary); }
.editor b { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.92em; margin-right: var(--mc-space-02); }
.copyblock { background: var(--mc-surface-muted); border: var(--mc-border-width-hairline) solid var(--mc-border-subtle); padding: var(--mc-space-04) var(--mc-space-05); }
.copyblock .ln { display: flex; justify-content: space-between; gap: var(--mc-space-04); padding: var(--mc-space-01) 0; font-size: var(--mc-print-type-small-size); font-variant-numeric: var(--mc-numeric-tabular); }
.copyblock .ln + .ln { border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
.copyblock .ln span:first-child { white-space: nowrap; }
.copyblock .ln span:last-child { font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); white-space: nowrap; }
.stat .v { display: block; color: var(--mc-text-heading); font-size: var(--mc-print-type-stat-size); font-weight: var(--mc-type-stat-weight); line-height: var(--mc-type-stat-leading); letter-spacing: var(--mc-type-stat-tracking); font-variant-numeric: var(--mc-numeric-tabular); }
.stat .v small { font-size: 0.45em; font-weight: var(--mc-weight-bold); letter-spacing: 0; margin-left: var(--mc-space-01); }
.stat .l { display: block; margin-top: var(--mc-space-03); padding-top: var(--mc-space-03); border-top: var(--mc-border-width-bar) solid var(--mc-border-accent); font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-semibold); color: var(--mc-text-secondary); line-height: var(--mc-type-caption-leading); }
/* Contents list */
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { display: grid; grid-template-columns: var(--mc-space-08) 1fr auto; gap: var(--mc-space-03); padding: var(--mc-space-02) 0; border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); font-size: var(--mc-print-type-small-size); align-items: baseline; }
.toc li .n { color: var(--mc-text-label); font-weight: var(--mc-weight-bold); font-variant-numeric: var(--mc-numeric-tabular); }
.toc li .t { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.toc li .t span { color: var(--mc-text-secondary); font-weight: var(--mc-weight-regular); }
.toc li .p { color: var(--mc-text-tertiary); font-variant-numeric: var(--mc-numeric-tabular); }
/* Construction drawings. Inline SVG, 1 unit = 1pt. */
svg.dwg { display: block; width: 100%; height: auto; font-family: var(--mc-font); overflow: visible; }
.dwg .trim { fill: var(--mc-surface-page); stroke: var(--mc-text-heading); stroke-width: 0.75; }
.dwg .bleed { fill: none; stroke: var(--mc-text-tertiary); stroke-width: 0.5; stroke-dasharray: 2 2; }
.dwg .live { fill: none; stroke: var(--mc-accent); stroke-width: 0.6; }
.dwg .col { fill: rgb(var(--mc-red-100-rgb) / 0.12); }
.dwg .colstrong { fill: rgb(var(--mc-red-100-rgb) / 0.22); }
.dwg .gut { fill: var(--mc-surface-page); }
.dwg .shade { fill: var(--mc-surface-muted); }
.dwg .navy { fill: var(--mc-surface-inverse); }
.dwg .frame { fill: var(--mc-surface-page); stroke: var(--mc-text-heading); stroke-width: 0.75; }
.dwg .content { fill: none; stroke: var(--mc-accent); stroke-width: 0.6; stroke-dasharray: 3 2; }
.dwg .foot { stroke: var(--mc-border-strong); stroke-width: 0.5; }
.dwg .dim { stroke: var(--mc-text-heading); stroke-width: 0.5; fill: none; }
.dwg .ext { stroke: var(--mc-text-tertiary); stroke-width: 0.35; stroke-dasharray: 1.5 1.5; }
.dwg .lead { stroke: var(--mc-accent); stroke-width: 0.5; fill: none; }
.dwg .dot { fill: var(--mc-accent); }
.dwg .tick { stroke: var(--mc-text-heading); stroke-width: 0.9; }
.dwg text { fill: var(--mc-text-heading); font-size: 6.5px; font-weight: var(--mc-weight-semibold); font-variant-numeric: var(--mc-numeric-tabular); }
.dwg text.lbl { fill: var(--mc-text-secondary); font-weight: var(--mc-weight-regular); }
.dwg text.hd { font-weight: var(--mc-weight-bold); font-size: 7px; }
.dwg text.eb { fill: var(--mc-text-label); font-weight: var(--mc-weight-bold); font-size: 6px; letter-spacing: 0.18em; text-transform: uppercase; }
.dwg text.cn { fill: var(--mc-accent); font-weight: var(--mc-weight-bold); font-size: 5.5px; text-anchor: middle; }
.dwg text.inv { fill: var(--mc-text-inverse); }
.dwg text.tiny { font-size: 4.5px; fill: var(--mc-text-tertiary); }
.dwg .bg { fill: var(--mc-surface-page); }
/* Worked layouts: a real page, built on grid.css, scaled into the book with the overlay on */
.thumb { position: relative; overflow: hidden; outline: var(--mc-border-width-hairline) solid var(--mc-border-strong); background: var(--mc-surface-page); }
.thumb.doc { width: 100%; aspect-ratio: 8.5 / 11; }
.thumb .mc-doc-page { position: absolute; top: 0; left: 0; break-after: auto; page-break-after: auto; }
.thumb.doc .mc-doc-page { zoom: 0.55708; }
.thumb iframe { position: absolute; top: 0; left: 0; border: 0; }
.mk {
position: absolute; z-index: var(--mc-z-toast); width: 22pt; height: 22pt; margin: -11pt 0 0 -11pt; border-radius: var(--mc-radius-pill);
background: var(--mc-accent); color: var(--mc-text-on-accent); border: 2pt solid var(--mc-surface-page);
font-size: 11pt; font-weight: var(--mc-weight-bold); line-height: 18pt; text-align: center; font-variant-numeric: var(--mc-numeric-tabular);
}
.thumb .mk-s { width: 16pt; height: 16pt; margin: -8pt 0 0 -8pt; font-size: 7.5pt; line-height: 12.5pt; border-width: 1.5pt; }
.notes { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.notes li { position: relative; padding: 0 0 var(--mc-space-04) 22pt; margin-bottom: var(--mc-space-04); border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); font-size: var(--mc-print-type-small-size); line-height: 1.45; color: var(--mc-text-secondary); }
.notes li:last-child { border-bottom: 0; }
.notes li::before {
counter-increment: n; content: counter(n); position: absolute; left: 0; top: 0;
width: 14pt; height: 14pt; border-radius: var(--mc-radius-pill); background: var(--mc-accent); color: var(--mc-text-on-accent);
font-size: 7.5pt; font-weight: var(--mc-weight-bold); line-height: 14pt; text-align: center;
}
.notes li b { display: block; color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.notes .sp { color: var(--mc-text-label); font-weight: var(--mc-weight-bold); font-variant-numeric: var(--mc-numeric-tabular); }
.legend { display: flex; gap: var(--mc-space-05); align-items: center; font-size: var(--mc-print-type-caption-size); color: var(--mc-text-secondary); margin-top: var(--mc-space-03); }
.legend i { display: inline-block; width: var(--mc-space-05); height: var(--mc-space-03); background: rgb(var(--mc-red-100-rgb) / 0.18); margin-right: var(--mc-space-02); vertical-align: middle; }
.legend i.ln { background: none; border: var(--mc-border-width-hairline) solid rgb(var(--mc-red-100-rgb) / 0.6); }
/* Split diagrams on the column math page */
.splits { display: grid; gap: var(--mc-space-03); }
.split { display: grid; grid-template-columns: repeat(var(--mc-doc-columns), minmax(0, 1fr)); column-gap: calc(var(--mc-doc-gutter) * 0.5); }
.split span { height: var(--mc-space-05); background: var(--mc-surface-inverse); color: var(--mc-text-inverse); font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-bold); display: flex; align-items: center; padding-left: var(--mc-space-03); font-variant-numeric: var(--mc-numeric-tabular); }
.split span.alt { background: var(--mc-surface-inverse-raised); }
.split span.acc { background: var(--mc-accent); }
.splitrow { display: grid; grid-template-columns: 2.1in 1fr; gap: var(--mc-space-04); align-items: center; }
.splitrow p { margin: 0; font-size: var(--mc-print-type-caption-size); line-height: var(--mc-type-caption-leading); color: var(--mc-text-secondary); }
.splitrow p b { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.xs { display: grid; grid-template-columns: repeat(var(--mc-doc-columns), minmax(0, 1fr)); border-top: var(--mc-border-width-bar) solid var(--mc-border-accent); }
.xs div { padding: var(--mc-space-02) var(--mc-space-01) var(--mc-space-02) 0; font-size: var(--mc-print-type-caption-size); font-variant-numeric: var(--mc-numeric-tabular); line-height: 1.3; border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
.xs div b { display: block; color: var(--mc-text-label); font-weight: var(--mc-weight-bold); }
/* Code */
pre.code {
margin: 0; padding: var(--mc-space-04) var(--mc-space-05); background: var(--mc-surface-inverse); color: var(--mc-text-inverse);
font-size: 7.5pt; line-height: 1.45; white-space: pre-wrap; font-weight: var(--mc-weight-regular);
}
pre.code .c { color: var(--mc-text-inverse-tertiary); }
pre.code .k { color: var(--mc-text-inverse); font-weight: var(--mc-weight-bold); }
.dont { list-style: none; margin: 0; padding: 0; }
.dont li { padding: var(--mc-space-03) 0 var(--mc-space-03) var(--mc-space-06); position: relative; border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); font-size: var(--mc-print-type-small-size); line-height: 1.45; }
.dont li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: var(--mc-space-04); height: var(--mc-border-width-bar); background: var(--mc-accent); }
.dont li b { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
/* Inside the worked-layout pages (rendered full size, then scaled) */
.wk-logo { height: 0.42in; display: block; }
.wk-meta { text-align: right; font-size: var(--mc-print-type-caption-size); line-height: 1.5; color: var(--mc-text-secondary); font-variant-numeric: var(--mc-numeric-tabular); }
.wk-meta b { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.wk-block .eyebrow { margin-bottom: var(--mc-space-02); }
.wk-block p { font-size: var(--mc-print-type-small-size); line-height: 1.45; margin: 0; }
.wk-block p.nm { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.wk-photo { height: 3.7in; background-size: cover; background-position: center 55%; }
.wk-band { background: var(--mc-surface-inverse); color: var(--mc-text-inverse); padding: 0.28in var(--mc-doc-margin-side) 0.28in; }
.wk-band h1 { color: var(--mc-text-inverse); margin: 0; }
.wk-band .bar { width: var(--mc-space-10); height: var(--mc-border-width-bar); background: var(--mc-accent-on-inverse); margin-bottom: var(--mc-space-04); }
.wk-band .mc-doc-grid { align-items: end; }
.wk-band img { height: 0.36in; display: block; margin-left: auto; }
.card-p { border-top: var(--mc-border-width-bar) solid var(--mc-border-accent); padding-top: var(--mc-space-04); }
.card-p p { font-size: var(--mc-print-type-small-size); line-height: 1.5; color: var(--mc-text-secondary); margin: 0; }
.cta { border: var(--mc-border-width-strong) solid var(--mc-border-focus); padding: var(--mc-space-04) var(--mc-space-05); display: flex; justify-content: space-between; align-items: center; }
.cta p { margin: 0; font-size: var(--mc-print-type-small-size); }
.cta .btn { background: var(--mc-action-primary); color: var(--mc-action-primary-text); font-weight: var(--mc-weight-bold); font-size: var(--mc-print-type-small-size); padding: var(--mc-space-03) var(--mc-space-05); }
.chart .bar1 { fill: var(--mc-data-1); }
.chart .barh { fill: var(--mc-data-highlight); }
.chart .grid { stroke: var(--mc-data-gridline); stroke-width: 0.6; }
.chart .axis { stroke: var(--mc-data-axis); stroke-width: 0.8; }
.chart text { font-family: var(--mc-font); font-size: 7.5px; fill: var(--mc-text-secondary); font-variant-numeric: var(--mc-numeric-tabular); }
.chart text.v { fill: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
.chart text.vh { fill: var(--mc-text-label); font-weight: var(--mc-weight-bold); }
/* Row by row strip under worked layouts */
.rows { display: grid; gap: var(--mc-space-01); }
.rowrow { display: grid; grid-template-columns: 1.3in 1fr; gap: var(--mc-space-04); align-items: center; }
.rowrow p { margin: 0; font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); }
.rows .split span { height: 10px; font-size: 6pt; }
.rowrow p { line-height: 1.2; }
.split span.blank { background: none; color: var(--mc-text-disabled); border: var(--mc-border-width-hairline) dashed var(--mc-border-strong); }
table.tight td { font-size: var(--mc-print-type-caption-size); padding: var(--mc-space-02) var(--mc-space-03); }
.notes2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--mc-doc-gutter); }
.notes2 li { margin-bottom: var(--mc-space-03); padding-bottom: var(--mc-space-03); font-size: var(--mc-print-type-caption-size); }
.notes2 li:last-child { border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); }
grid-layout.html239 lines, 64.4 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon Creative, Grid and Layout v1.0</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="grid.css">
<link rel="stylesheet" href="book.css">
</head>
<body>
<main class="book">
<section class="mc-doc-page ">
<div class="mc-doc-grid">
<div class="mc-doc-span-6"><img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative" style="height:0.46in;display:block"></div>
<div class="mc-doc-span-6 wk-meta"><b>Design system, Tier 0</b><br>Version 1.0, October 2026<br>Owner Taylor Treybig, approver Jacob Dow</div>
</div>
<div style="height:0.55in"></div>
<p class="eyebrow">Grid and layout</p>
<h1 class="cover">Every Marathon<br>page sits on<br>12 columns</h1>
<div class="divider"></div>
<p class="lede" style="max-width:6.2in">Two grids, one rule. Quotes, reports, and one-sheets use the US Letter document grid. The website and all 14 internal apps use the screen grid. Both ship in grid.css, which reads tokens.css and nothing else.</p>
<div style="height:0.15in"></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-3 stat"><span class="v num">12</span><span class="l">Columns, on paper and on screens 1024px and wider</span></div>
<div class="mc-doc-span-3 stat"><span class="v num">14<small>pt</small></span><span class="l">Document gutter. Screens use 24px, 16px on phones</span></div>
<div class="mc-doc-span-3 stat"><span class="v num">0.65<small>in</small></span><span class="l">Side margins on US Letter. 0.85in at the bottom</span></div>
<div class="mc-doc-span-3 stat"><span class="v num">1180<small>px</small></span><span class="l">Widest the screen content ever gets</span></div>
</div>
<div style="height:0.3in"></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-7">
<p class="eyebrow">Contents</p>
<ol class="toc">
<li><span class="n">02</span><span class="t">Letter construction <span>every measurement, drawn</span></span><span class="p">2</span></li>
<li><span class="n">03</span><span class="t">Column math <span>spans, splits, and x positions</span></span><span class="p">3</span></li>
<li><span class="n">04</span><span class="t">Screen grid <span>4, 8, and 12 columns</span></span><span class="p">4</span></li>
<li><span class="n">05</span><span class="t">Worked layout <span>a quote</span></span><span class="p">5</span></li>
<li><span class="n">06</span><span class="t">Worked layout <span>a monthly report</span></span><span class="p">6</span></li>
<li><span class="n">07</span><span class="t">Worked layout <span>a service one-sheet with a photo</span></span><span class="p">7</span></li>
<li><span class="n">08</span><span class="t">Worked layout <span>the website, desktop and phone</span></span><span class="p">8</span></li>
<li><span class="n">09</span><span class="t">Using grid.css <span>classes, code, and what never happens</span></span><span class="p">9</span></li>
</ol>
</div>
<div class="mc-doc-span-5">
<div class="callout">
<div class="rule"></div>
<h3>Why this ships as code</h3>
<p class="small" style="margin:0">Six of 14 Marathon apps drifted off brand because each one hand-built its own layout. grid.css is copied into every app beside tokens.css, so columns, gutters, and margins come from one file.</p>
</div>
</div>
</div>
<footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 1 of 9</span></footer></section>
<section class="mc-doc-page "><div class="mc-doc-grid head"><div class="mc-doc-span-7"><p class="eyebrow">02 · Document grid construction</p><h1 style="margin:0">US Letter, 12 columns</h1></div><div class="mc-doc-span-5" style="align-self:end"><p class="cap" style="margin:0">Every measurement a designer or a print vendor needs to rebuild this page in InDesign, Affinity, or CSS without calling us. Drawn at 0.54 scale. Red fill marks the columns.</p></div></div><svg class="dwg" viewBox="0 0 518.4 566" width="518.4pt" height="566pt" role="img" aria-label="Dimensioned construction of the US Letter 12 column document grid"><rect class="bleed" x="75.14" y="41.14" width="340.20" height="437.40"/><rect class="trim" x="80.00" y="46.00" width="330.48" height="427.68"/><rect class="col" x="105.27" y="75.16" width="16.40" height="365.47"/><text class="cn" x="113.47" y="70.84">1</text><rect class="col" x="129.23" y="75.16" width="16.40" height="365.47"/><text class="cn" x="137.43" y="70.84">2</text><rect class="col" x="153.19" y="75.16" width="16.40" height="365.47"/><text class="cn" x="161.39" y="70.84">3</text><rect class="col" x="177.15" y="75.16" width="16.40" height="365.47"/><text class="cn" x="185.34" y="70.84">4</text><rect class="col" x="201.10" y="75.16" width="16.40" height="365.47"/><text class="cn" x="209.30" y="70.84">5</text><rect class="col" x="225.06" y="75.16" width="16.40" height="365.47"/><text class="cn" x="233.26" y="70.84">6</text><rect class="col" x="249.02" y="75.16" width="16.40" height="365.47"/><text class="cn" x="257.22" y="70.84">7</text><rect class="col" x="272.98" y="75.16" width="16.40" height="365.47"/><text class="cn" x="281.18" y="70.84">8</text><rect class="col" x="296.94" y="75.16" width="16.40" height="365.47"/><text class="cn" x="305.13" y="70.84">9</text><rect class="col" x="320.89" y="75.16" width="16.40" height="365.47"/><text class="cn" x="329.09" y="70.84">10</text><rect class="col" x="344.85" y="75.16" width="16.40" height="365.47"/><text class="cn" x="353.05" y="70.84">11</text><rect class="col" x="368.81" y="75.16" width="16.40" height="365.47"/><text class="cn" x="377.01" y="70.84">12</text><rect class="live" x="105.27" y="75.16" width="279.94" height="365.47"/><rect class="navy" x="105.27" y="91.36" width="184.10" height="8.64"/><rect class="navy" x="105.27" y="103.24" width="112.23" height="8.64"/><rect class="dot" x="105.27" y="82.72" width="40.36" height="2.70"/><rect class="dot" x="105.27" y="118.36" width="32.40" height="1.62"/><line class="foot" x1="105.27" y1="450.30" x2="385.21" y2="450.30"/><text class="tiny" x="105.27" y="457.59">Document name</text><text class="tiny" x="385.21" y="457.59" text-anchor="end">Page 2 of 6</text><circle cx="105.27" cy="75.16" r="15" fill="none" class="lead"/><text class="cn" x="91.27" y="63.16">A</text><line class="ext" x1="80.00" y1="39.14" x2="80.00" y2="8.00"/><line class="ext" x1="410.48" y1="39.14" x2="410.48" y2="8.00"/><line class="ext" x1="105.27" y1="73.16" x2="105.27" y2="26.00"/><line class="ext" x1="385.21" y1="73.16" x2="385.21" y2="26.00"/><line class="dim" x1="80.00" y1="12.00" x2="410.48" y2="12.00"/><line class="tick" x1="78.00" y1="14.00" x2="82.00" y2="10.00"/><line class="tick" x1="408.48" y1="14.00" x2="412.48" y2="10.00"/><rect class="bg" x="201.88" y="3.80" width="86.72" height="7"/><text class="" x="245.24" y="9.40" text-anchor="middle">Trim width 8.5in, 612pt</text><line class="dim" x1="80.00" y1="30.00" x2="105.27" y2="30.00"/><line class="tick" x1="78.00" y1="32.00" x2="82.00" y2="28.00"/><line class="tick" x1="103.27" y1="32.00" x2="107.27" y2="28.00"/><rect class="bg" x="80.22" y="21.80" width="24.84" height="7"/><text class="" x="92.64" y="27.40" text-anchor="middle">0.65in</text><line class="dim" x1="105.27" y1="30.00" x2="385.21" y2="30.00"/><line class="tick" x1="103.27" y1="32.00" x2="107.27" y2="28.00"/><line class="tick" x1="383.21" y1="32.00" x2="387.21" y2="28.00"/><rect class="bg" x="196.42" y="21.80" width="97.64" height="7"/><text class="" x="245.24" y="27.40" text-anchor="middle">Live width 7.20in, 518.4pt</text><line class="dim" x1="385.21" y1="30.00" x2="410.48" y2="30.00"/><line class="tick" x1="383.21" y1="32.00" x2="387.21" y2="28.00"/><line class="tick" x1="408.48" y1="32.00" x2="412.48" y2="28.00"/><rect class="bg" x="385.42" y="21.80" width="24.84" height="7"/><text class="" x="397.84" y="27.40" text-anchor="middle">0.65in</text><line class="ext" x1="74.00" y1="46.00" x2="14.00" y2="46.00"/><line class="ext" x1="74.00" y1="473.68" x2="14.00" y2="473.68"/><line class="ext" x1="103.27" y1="75.16" x2="36.00" y2="75.16"/><line class="ext" x1="103.27" y1="440.63" x2="36.00" y2="440.63"/><line class="ext" x1="103.27" y1="458.13" x2="56.00" y2="458.13"/><line class="dim" x1="18.00" y1="46.00" x2="18.00" y2="473.68"/><line class="tick" x1="16.00" y1="48.00" x2="20.00" y2="44.00"/><line class="tick" x1="16.00" y1="475.68" x2="20.00" y2="471.68"/><g transform="translate(15.40,259.84) rotate(-90)"><rect class="bg" x="-43.36" y="-5.6" width="86.72" height="7"/><text x="0" y="0" text-anchor="middle">Trim height 11in, 792pt</text></g><line class="dim" x1="40.00" y1="46.00" x2="40.00" y2="75.16"/><line class="tick" x1="38.00" y1="48.00" x2="42.00" y2="44.00"/><line class="tick" x1="38.00" y1="77.16" x2="42.00" y2="73.16"/><g transform="translate(37.40,60.58) rotate(-90)"><rect class="bg" x="-12.42" y="-5.6" width="24.84" height="7"/><text x="0" y="0" text-anchor="middle">0.75in</text></g><line class="dim" x1="40.00" y1="75.16" x2="40.00" y2="440.63"/><line class="tick" x1="38.00" y1="77.16" x2="42.00" y2="73.16"/><line class="tick" x1="38.00" y1="442.63" x2="42.00" y2="438.63"/><g transform="translate(37.40,257.90) rotate(-90)"><rect class="bg" x="-50.64" y="-5.6" width="101.28" height="7"/><text x="0" y="0" text-anchor="middle">Live height 9.40in, 676.8pt</text></g><line class="dim" x1="40.00" y1="440.63" x2="40.00" y2="473.68"/><line class="tick" x1="38.00" y1="442.63" x2="42.00" y2="438.63"/><line class="tick" x1="38.00" y1="475.68" x2="42.00" y2="471.68"/><g transform="translate(37.40,457.16) rotate(-90)"><rect class="bg" x="-12.42" y="-5.6" width="24.84" height="7"/><text x="0" y="0" text-anchor="middle">0.85in</text></g><line class="dim" x1="60.00" y1="458.13" x2="60.00" y2="473.68"/><line class="tick" x1="58.00" y1="460.13" x2="62.00" y2="456.13"/><line class="tick" x1="58.00" y1="475.68" x2="62.00" y2="471.68"/><g transform="translate(57.40,465.90) rotate(-90)"><rect class="bg" x="-10.60" y="-5.6" width="21.20" height="7"/><text x="0" y="0" text-anchor="middle">0.4in</text></g><circle class="dot" cx="410.48" cy="46.00" r="1.6"/><polyline class="lead" points="410.48,46.00 436.00,47.80 443.00,47.80"/><text class="hd" x="446.00" y="50.00">Trim</text><text class="lbl" x="446.00" y="58.60">8.5 x 11in, 612 x 792pt</text><text class="lbl" x="446.00" y="67.20">US Letter portrait</text><circle class="dot" cx="415.34" cy="83.80" r="1.6"/><polyline class="lead" points="415.34,83.80 436.00,99.60 443.00,99.60"/><text class="hd" x="446.00" y="101.80">Bleed 0.125in</text><text class="lbl" x="446.00" y="110.40">Press files only.</text><text class="lbl" x="446.00" y="119.00">Screen PDFs stop at trim.</text><circle class="dot" cx="385.21" cy="148.60" r="1.6"/><polyline class="lead" points="385.21,148.60 436.00,166.40 443.00,166.40"/><text class="hd" x="446.00" y="168.60">Live area</text><text class="lbl" x="446.00" y="177.20">7.20 x 9.40in. All type,</text><text class="lbl" x="446.00" y="185.80">rules, and tables stay</text><text class="lbl" x="446.00" y="194.40">inside it.</text><circle class="dot" cx="377.01" cy="224.20" r="1.6"/><polyline class="lead" points="377.01,224.20 436.00,240.00 443.00,240.00"/><text class="hd" x="446.00" y="242.20">Column, 12 of them</text><text class="lbl" x="446.00" y="250.80">30.37pt, 0.422in</text><text class="lbl" x="446.00" y="259.40">All 12 are equal.</text><circle class="dot" cx="365.03" cy="289.00" r="1.6"/><polyline class="lead" points="365.03,289.00 436.00,296.80 443.00,296.80"/><text class="hd" x="446.00" y="299.00">Gutter, 11 of them</text><text class="lbl" x="446.00" y="307.60">14pt, 0.194in</text><text class="lbl" x="446.00" y="316.20">Never narrowed to fit.</text><circle class="dot" cx="374.41" cy="450.30" r="1.6"/><polyline class="lead" points="374.41,450.30 436.00,424.10 443.00,424.10"/><text class="hd" x="446.00" y="426.30">Footer</text><text class="lbl" x="446.00" y="434.90">Text base 0.4in above</text><text class="lbl" x="446.00" y="443.50">trim. Document name left,</text><text class="lbl" x="446.00" y="452.10">page number right, 8.5pt</text><text class="lbl" x="446.00" y="460.70">600, Slate 500.</text><rect class="trim" x="80.00" y="507.68" width="360.00" height="32.00"/><rect class="col" x="192.32" y="515.68" width="72.88" height="24.00"/><text class="cn" x="228.76" y="513.18">1</text><rect class="col" x="298.80" y="515.68" width="72.88" height="24.00"/><text class="cn" x="335.24" y="513.18">2</text><rect class="col" x="405.28" y="515.68" width="34.72" height="24.00"/><text class="cn" x="422.64" y="513.18">3</text><line class="live" x1="192.32" y1="515.68" x2="192.32" y2="539.68"/><line class="live" x1="192.32" y1="515.68" x2="440.00" y2="515.68"/><line class="ext" x1="80.00" y1="507.68" x2="80.00" y2="495.68"/><line class="dim" x1="80.00" y1="499.68" x2="192.32" y2="499.68"/><line class="tick" x1="78.00" y1="501.68" x2="82.00" y2="497.68"/><line class="tick" x1="190.32" y1="501.68" x2="194.32" y2="497.68"/><rect class="bg" x="109.18" y="491.48" width="53.96" height="7"/><text class="" x="136.16" y="497.08" text-anchor="middle">0.65in, 46.8pt</text><line class="ext" x1="192.32" y1="507.68" x2="192.32" y2="495.68"/><line class="dim" x1="192.32" y1="499.68" x2="265.20" y2="499.68"/><line class="tick" x1="190.32" y1="501.68" x2="194.32" y2="497.68"/><line class="tick" x1="263.20" y1="501.68" x2="267.20" y2="497.68"/><rect class="bg" x="214.52" y="491.48" width="28.48" height="7"/><text class="" x="228.76" y="497.08" text-anchor="middle">30.37pt</text><line class="ext" x1="265.20" y1="507.68" x2="265.20" y2="495.68"/><line class="dim" x1="265.20" y1="499.68" x2="298.80" y2="499.68"/><line class="tick" x1="263.20" y1="501.68" x2="267.20" y2="497.68"/><line class="tick" x1="296.80" y1="501.68" x2="300.80" y2="497.68"/><rect class="bg" x="273.22" y="491.48" width="17.56" height="7"/><text class="" x="282.00" y="497.08" text-anchor="middle">14pt</text><line class="ext" x1="298.80" y1="507.68" x2="298.80" y2="495.68"/><line class="dim" x1="298.80" y1="499.68" x2="371.68" y2="499.68"/><line class="tick" x1="296.80" y1="501.68" x2="300.80" y2="497.68"/><line class="tick" x1="369.68" y1="501.68" x2="373.68" y2="497.68"/><rect class="bg" x="321.00" y="491.48" width="28.48" height="7"/><text class="" x="335.24" y="497.08" text-anchor="middle">30.37pt</text><line class="ext" x1="371.68" y1="507.68" x2="371.68" y2="495.68"/><line class="dim" x1="371.68" y1="499.68" x2="405.28" y2="499.68"/><line class="tick" x1="369.68" y1="501.68" x2="373.68" y2="497.68"/><line class="tick" x1="403.28" y1="501.68" x2="407.28" y2="497.68"/><rect class="bg" x="379.70" y="491.48" width="17.56" height="7"/><text class="" x="388.48" y="497.08" text-anchor="middle">14pt</text><line class="ext" x1="405.28" y1="507.68" x2="405.28" y2="495.68"/><text class="hd" x="80.00" y="550.68">Detail A, top left of the live area at 2.4x</text><text class="lbl" x="80.00" y="559.68">Column pitch is 44.37pt. Column n starts 46.8pt + (n minus 1) x 44.37pt from the left trim.</text><text class="eb" x="454.00" y="509.68">The arithmetic</text><text class="lbl" x="454.00" y="519.68">612 - 2 x 46.8 = 518.4pt</text><text class="lbl" x="454.00" y="528.28">11 gutters x 14 = 154pt</text><text class="lbl" x="454.00" y="536.88">(518.4 - 154) / 12</text><text class="hd" x="454.00" y="545.48">= 30.37pt per column</text></svg><footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 2 of 9</span></footer></section>
<section class="mc-doc-page "><div class="head"><p class="eyebrow">03 · Document grid</p><h1>Column math, done once</h1></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-4">
<p class="eyebrow">The page, in numbers</p>
<div class="copyblock">
<div class="ln"><span>Trim</span><span>8.5 x 11in</span></div>
<div class="ln"><span>Sides</span><span>0.65in, 46.8pt</span></div>
<div class="ln"><span>Top</span><span>0.75in, 54pt</span></div>
<div class="ln"><span>Bottom</span><span>0.85in, 61.2pt</span></div>
<div class="ln"><span>Live area</span><span>7.20 x 9.40in</span></div>
<div class="ln"><span>Columns</span><span>12 x 30.37pt</span></div>
<div class="ln"><span>Gutters</span><span>11 x 14pt</span></div>
<div class="ln"><span>Column pitch</span><span>44.37pt</span></div>
<div class="ln"><span>Footer</span><span>0.4in above trim</span></div>
<div class="ln"><span>Bleed, press</span><span>0.125in</span></div>
<div class="ln"><span>Divider</span><span>60 x 3pt, Red</span></div>
</div>
<div style="height:8pt"></div>
<p class="cap">Body copy at 10pt never runs wider than eight columns, 4.735in. That keeps a line near 65 characters, which is as long as a client will read.</p>
<div class="editor"><b>Editor note</b>The 0.75in top margin is a working value. The brand guide sets sides, bottom, and footer only. Jacob to confirm.</div>
</div>
<div class="mc-doc-span-8">
<p class="eyebrow">Span widths</p>
<table>
<thead><tr><th class="num">Span</th><th class="num">Points</th><th class="num">Inches</th><th class="num">mm</th><th>Use it for</th></tr></thead>
<tbody><tr><td class="num">1</td><td class="num">30.37</td><td class="num">0.422</td><td class="num">10.7</td><td>Icons, row numbers</td></tr><tr><td class="num">2</td><td class="num">74.73</td><td class="num">1.038</td><td class="num">26.4</td><td>Stat labels, qty columns</td></tr><tr><td class="num">3</td><td class="num">119.10</td><td class="num">1.654</td><td class="num">42.0</td><td>Stat block, sidebar, four-up cards</td></tr><tr><td class="num">4</td><td class="num">163.47</td><td class="num">2.270</td><td class="num">57.7</td><td>Three-up cards, totals, addresses</td></tr><tr><td class="num">5</td><td class="num">207.83</td><td class="num">2.887</td><td class="num">73.3</td><td>Pull quote beside a 7</td></tr><tr><td class="num">6</td><td class="num">252.20</td><td class="num">3.503</td><td class="num">89.0</td><td>Two-up, compare columns</td></tr><tr><td class="num">7</td><td class="num">296.57</td><td class="num">4.119</td><td class="num">104.6</td><td>Copy beside a 5 column photo</td></tr><tr><td class="num">8</td><td class="num">340.93</td><td class="num">4.735</td><td class="num">120.3</td><td>Body copy maximum, charts</td></tr><tr><td class="num">9</td><td class="num">385.30</td><td class="num">5.351</td><td class="num">135.9</td><td>Main column beside a sidebar</td></tr><tr><td class="num">10</td><td class="num">429.67</td><td class="num">5.968</td><td class="num">151.6</td><td>Rare, wide table plus a note</td></tr><tr><td class="num">11</td><td class="num">474.03</td><td class="num">6.584</td><td class="num">167.2</td><td>Do not use</td></tr><tr><td class="num">12</td><td class="num">518.40</td><td class="num">7.200</td><td class="num">182.9</td><td>Tables, dark callouts, full photos</td></tr></tbody>
</table>
</div>
<div class="mc-doc-span-12" style="margin-top:6pt">
<p class="eyebrow">Column left edges, measured from the left trim</p>
<div class="xs"><div><b>1</b>0.650in<br><span class="muted">46.8pt</span></div><div><b>2</b>1.266in<br><span class="muted">91.2pt</span></div><div><b>3</b>1.882in<br><span class="muted">135.5pt</span></div><div><b>4</b>2.499in<br><span class="muted">179.9pt</span></div><div><b>5</b>3.115in<br><span class="muted">224.3pt</span></div><div><b>6</b>3.731in<br><span class="muted">268.6pt</span></div><div><b>7</b>4.347in<br><span class="muted">313.0pt</span></div><div><b>8</b>4.963in<br><span class="muted">357.4pt</span></div><div><b>9</b>5.580in<br><span class="muted">401.7pt</span></div><div><b>10</b>6.196in<br><span class="muted">446.1pt</span></div><div><b>11</b>6.812in<br><span class="muted">490.5pt</span></div><div><b>12</b>7.428in<br><span class="muted">534.8pt</span></div></div>
</div>
<div class="mc-doc-span-12" style="margin-top:6pt">
<p class="eyebrow">Approved splits</p>
<div class="splits">
<div class="splitrow"><div class="split"><span class="" style="grid-column:span 12">12</span></div><p><b>Full.</b> Tables, dark callouts, photos, the H1.</p></div>
<div class="splitrow"><div class="split"><span class="" style="grid-column:span 8">8</span><span class="alt" style="grid-column:span 4">4</span></div><p><b>Eight and four.</b> Copy with a stat or a totals block. The quote default.</p></div>
<div class="splitrow"><div class="split"><span class="" style="grid-column:span 6">6</span><span class="alt" style="grid-column:span 6">6</span></div><p><b>Six and six.</b> Before and after, option A against option B.</p></div>
<div class="splitrow"><div class="split"><span class="" style="grid-column:span 4">4</span><span class="alt" style="grid-column:span 4">4</span><span class="" style="grid-column:span 4">4</span></div><p><b>Three cards.</b> Services, deliverables, next steps.</p></div>
<div class="splitrow"><div class="split"><span class="" style="grid-column:span 3">3</span><span class="alt" style="grid-column:span 3">3</span><span class="" style="grid-column:span 3">3</span><span class="alt" style="grid-column:span 3">3</span></div><p><b>Four stats.</b> The opener of every monthly report.</p></div>
<div class="splitrow"><div class="split"><span class="acc" style="grid-column:span 3">3</span><span class="" style="grid-column:span 9">9</span></div><p><b>Three and nine.</b> Labels left, content right. SOWs and specs.</p></div>
</div>
</div>
</div>
<footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 3 of 9</span></footer></section>
<section class="mc-doc-page "><div class="mc-doc-grid head"><div class="mc-doc-span-7"><p class="eyebrow">04 · Screen grid</p><h1 style="margin:0">Mobile first: 4, then 8, then 12</h1></div><div class="mc-doc-span-5" style="align-self:end"><p class="cap" style="margin:0">Apps open on a phone at a shoot before they open on a desk, so the small grid is the default and the wider grids switch on at 768px and 1024px. All four frames below share one scale.</p></div></div><div style="margin-top:4pt"><svg class="dwg" viewBox="0 0 518.4 404" width="518.4pt" height="404pt" role="img" aria-label="Screen grid at 1440, 1024, 768, and 375 pixels, drawn to one scale"><text class="hd" x="0.00" y="8.00">Large, 1440px</text><text class="lbl" x="64.96" y="8.00">12 columns. Content stops at 1180px and centres, margins grow.</text><rect class="frame" x="0.00" y="38.00" width="518.40" height="54.00"/><rect class="navy" x="0.00" y="38.00" width="518.40" height="9"/><rect class="col" x="46.80" y="47.00" width="27.48" height="45.00"/><text class="cn" x="60.54" y="54.00">1</text><rect class="col" x="82.92" y="47.00" width="27.48" height="45.00"/><text class="cn" x="96.66" y="54.00">2</text><rect class="col" x="119.04" y="47.00" width="27.48" height="45.00"/><text class="cn" x="132.78" y="54.00">3</text><rect class="col" x="155.16" y="47.00" width="27.48" height="45.00"/><text class="cn" x="168.90" y="54.00">4</text><rect class="col" x="191.28" y="47.00" width="27.48" height="45.00"/><text class="cn" x="205.02" y="54.00">5</text><rect class="col" x="227.40" y="47.00" width="27.48" height="45.00"/><text class="cn" x="241.14" y="54.00">6</text><rect class="col" x="263.52" y="47.00" width="27.48" height="45.00"/><text class="cn" x="277.26" y="54.00">7</text><rect class="col" x="299.64" y="47.00" width="27.48" height="45.00"/><text class="cn" x="313.38" y="54.00">8</text><rect class="col" x="335.76" y="47.00" width="27.48" height="45.00"/><text class="cn" x="349.50" y="54.00">9</text><rect class="col" x="371.88" y="47.00" width="27.48" height="45.00"/><text class="cn" x="385.62" y="54.00">10</text><rect class="col" x="408.00" y="47.00" width="27.48" height="45.00"/><text class="cn" x="421.74" y="54.00">11</text><rect class="col" x="444.12" y="47.00" width="27.48" height="45.00"/><text class="cn" x="457.86" y="54.00">12</text><rect class="content" x="46.80" y="47.00" width="424.80" height="45.00"/><line class="ext" x1="0.00" y1="38.00" x2="0.00" y2="26.00"/><line class="ext" x1="518.40" y1="38.00" x2="518.40" y2="26.00"/><line class="ext" x1="46.80" y1="38.00" x2="46.80" y2="26.00"/><line class="ext" x1="471.60" y1="38.00" x2="471.60" y2="26.00"/><line class="dim" x1="0.00" y1="30.00" x2="46.80" y2="30.00"/><line class="tick" x1="-2.00" y1="32.00" x2="2.00" y2="28.00"/><line class="tick" x1="44.80" y1="32.00" x2="48.80" y2="28.00"/><rect class="bg" x="14.62" y="21.80" width="17.56" height="7"/><text class="" x="23.40" y="27.40" text-anchor="middle">auto</text><line class="dim" x1="471.60" y1="30.00" x2="518.40" y2="30.00"/><line class="tick" x1="469.60" y1="32.00" x2="473.60" y2="28.00"/><line class="tick" x1="516.40" y1="32.00" x2="520.40" y2="28.00"/><rect class="bg" x="486.22" y="21.80" width="17.56" height="7"/><text class="" x="495.00" y="27.40" text-anchor="middle">auto</text><line class="dim" x1="46.80" y1="30.00" x2="471.60" y2="30.00"/><line class="tick" x1="44.80" y1="32.00" x2="48.80" y2="28.00"/><line class="tick" x1="469.60" y1="32.00" x2="473.60" y2="28.00"/><rect class="bg" x="239.50" y="21.80" width="39.40" height="7"/><text class="" x="259.20" y="27.40" text-anchor="middle">1180px max</text><line class="ext" x1="46.80" y1="92.00" x2="46.80" y2="103.00"/><line class="ext" x1="74.28" y1="92.00" x2="74.28" y2="103.00"/><line class="ext" x1="82.92" y1="92.00" x2="82.92" y2="103.00"/><line class="dim" x1="46.80" y1="100.00" x2="74.28" y2="100.00"/><line class="tick" x1="44.80" y1="102.00" x2="48.80" y2="98.00"/><line class="tick" x1="72.28" y1="102.00" x2="76.28" y2="98.00"/><rect class="bg" x="-1.50" y="91.80" width="3.00" height="7"/><text class="" x="0.00" y="97.40" text-anchor="middle"></text><line class="dim" x1="74.28" y1="100.00" x2="82.92" y2="100.00"/><line class="tick" x1="72.28" y1="102.00" x2="76.28" y2="98.00"/><line class="tick" x1="80.92" y1="102.00" x2="84.92" y2="98.00"/><rect class="bg" x="-1.50" y="91.80" width="3.00" height="7"/><text class="" x="0.00" y="97.40" text-anchor="middle"></text><text x="46.80" y="109.00">col 76.33px</text><text class="lbl" x="92.84" y="109.00">gutter 24px</text><text class="hd" x="0.00" y="122.00">Large, 1024px</text><text class="lbl" x="64.96" y="122.00">12 columns, 40px margins.</text><rect class="frame" x="0.00" y="152.00" width="368.64" height="54.00"/><rect class="navy" x="0.00" y="152.00" width="368.64" height="9"/><rect class="col" x="14.40" y="161.00" width="20.40" height="45.00"/><text class="cn" x="24.60" y="168.00">1</text><rect class="col" x="43.44" y="161.00" width="20.40" height="45.00"/><text class="cn" x="53.64" y="168.00">2</text><rect class="col" x="72.48" y="161.00" width="20.40" height="45.00"/><text class="cn" x="82.68" y="168.00">3</text><rect class="col" x="101.52" y="161.00" width="20.40" height="45.00"/><text class="cn" x="111.72" y="168.00">4</text><rect class="col" x="130.56" y="161.00" width="20.40" height="45.00"/><text class="cn" x="140.76" y="168.00">5</text><rect class="col" x="159.60" y="161.00" width="20.40" height="45.00"/><text class="cn" x="169.80" y="168.00">6</text><rect class="col" x="188.64" y="161.00" width="20.40" height="45.00"/><text class="cn" x="198.84" y="168.00">7</text><rect class="col" x="217.68" y="161.00" width="20.40" height="45.00"/><text class="cn" x="227.88" y="168.00">8</text><rect class="col" x="246.72" y="161.00" width="20.40" height="45.00"/><text class="cn" x="256.92" y="168.00">9</text><rect class="col" x="275.76" y="161.00" width="20.40" height="45.00"/><text class="cn" x="285.96" y="168.00">10</text><rect class="col" x="304.80" y="161.00" width="20.40" height="45.00"/><text class="cn" x="315.00" y="168.00">11</text><rect class="col" x="333.84" y="161.00" width="20.40" height="45.00"/><text class="cn" x="344.04" y="168.00">12</text><rect class="content" x="14.40" y="161.00" width="339.84" height="45.00"/><line class="ext" x1="0.00" y1="152.00" x2="0.00" y2="140.00"/><line class="ext" x1="368.64" y1="152.00" x2="368.64" y2="140.00"/><line class="ext" x1="14.40" y1="152.00" x2="14.40" y2="140.00"/><line class="ext" x1="354.24" y1="152.00" x2="354.24" y2="140.00"/><line class="dim" x1="0.00" y1="144.00" x2="14.40" y2="144.00"/><line class="tick" x1="-2.00" y1="146.00" x2="2.00" y2="142.00"/><line class="tick" x1="12.40" y1="146.00" x2="16.40" y2="142.00"/><rect class="bg" x="5.70" y="135.80" width="3.00" height="7"/><text class="" x="7.20" y="141.40" text-anchor="middle"></text><text x="-3.00" y="146.00" text-anchor="end">40</text><line class="dim" x1="354.24" y1="144.00" x2="368.64" y2="144.00"/><line class="tick" x1="352.24" y1="146.00" x2="356.24" y2="142.00"/><line class="tick" x1="366.64" y1="146.00" x2="370.64" y2="142.00"/><rect class="bg" x="359.94" y="135.80" width="3.00" height="7"/><text class="" x="361.44" y="141.40" text-anchor="middle"></text><text x="371.64" y="146.00">40</text><line class="dim" x1="14.40" y1="144.00" x2="354.24" y2="144.00"/><line class="tick" x1="12.40" y1="146.00" x2="16.40" y2="142.00"/><line class="tick" x1="352.24" y1="146.00" x2="356.24" y2="142.00"/><rect class="bg" x="173.72" y="135.80" width="21.20" height="7"/><text class="" x="184.32" y="141.40" text-anchor="middle">944px</text><line class="ext" x1="14.40" y1="206.00" x2="14.40" y2="217.00"/><line class="ext" x1="34.80" y1="206.00" x2="34.80" y2="217.00"/><line class="ext" x1="43.44" y1="206.00" x2="43.44" y2="217.00"/><line class="dim" x1="14.40" y1="214.00" x2="34.80" y2="214.00"/><line class="tick" x1="12.40" y1="216.00" x2="16.40" y2="212.00"/><line class="tick" x1="32.80" y1="216.00" x2="36.80" y2="212.00"/><rect class="bg" x="-1.50" y="205.80" width="3.00" height="7"/><text class="" x="0.00" y="211.40" text-anchor="middle"></text><line class="dim" x1="34.80" y1="214.00" x2="43.44" y2="214.00"/><line class="tick" x1="32.80" y1="216.00" x2="36.80" y2="212.00"/><line class="tick" x1="41.44" y1="216.00" x2="45.44" y2="212.00"/><rect class="bg" x="-1.50" y="205.80" width="3.00" height="7"/><text class="" x="0.00" y="211.40" text-anchor="middle"></text><text x="14.40" y="223.00">col 56.67px</text><text class="lbl" x="60.44" y="223.00">gutter 24px</text><text class="hd" x="0.00" y="236.00">Medium, 768px</text><text class="lbl" x="64.96" y="236.00">8 columns</text><rect class="frame" x="0.00" y="266.00" width="276.48" height="70.00"/><rect class="navy" x="0.00" y="266.00" width="276.48" height="9"/><rect class="col" x="14.40" y="275.00" width="23.40" height="61.00"/><text class="cn" x="26.10" y="282.00">1</text><rect class="col" x="46.44" y="275.00" width="23.40" height="61.00"/><text class="cn" x="58.14" y="282.00">2</text><rect class="col" x="78.48" y="275.00" width="23.40" height="61.00"/><text class="cn" x="90.18" y="282.00">3</text><rect class="col" x="110.52" y="275.00" width="23.40" height="61.00"/><text class="cn" x="122.22" y="282.00">4</text><rect class="col" x="142.56" y="275.00" width="23.40" height="61.00"/><text class="cn" x="154.26" y="282.00">5</text><rect class="col" x="174.60" y="275.00" width="23.40" height="61.00"/><text class="cn" x="186.30" y="282.00">6</text><rect class="col" x="206.64" y="275.00" width="23.40" height="61.00"/><text class="cn" x="218.34" y="282.00">7</text><rect class="col" x="238.68" y="275.00" width="23.40" height="61.00"/><text class="cn" x="250.38" y="282.00">8</text><rect class="content" x="14.40" y="275.00" width="247.68" height="61.00"/><line class="ext" x1="0.00" y1="266.00" x2="0.00" y2="254.00"/><line class="ext" x1="276.48" y1="266.00" x2="276.48" y2="254.00"/><line class="ext" x1="14.40" y1="266.00" x2="14.40" y2="254.00"/><line class="ext" x1="262.08" y1="266.00" x2="262.08" y2="254.00"/><line class="dim" x1="0.00" y1="258.00" x2="14.40" y2="258.00"/><line class="tick" x1="-2.00" y1="260.00" x2="2.00" y2="256.00"/><line class="tick" x1="12.40" y1="260.00" x2="16.40" y2="256.00"/><rect class="bg" x="5.70" y="249.80" width="3.00" height="7"/><text class="" x="7.20" y="255.40" text-anchor="middle"></text><text x="-3.00" y="260.00" text-anchor="end">40</text><line class="dim" x1="262.08" y1="258.00" x2="276.48" y2="258.00"/><line class="tick" x1="260.08" y1="260.00" x2="264.08" y2="256.00"/><line class="tick" x1="274.48" y1="260.00" x2="278.48" y2="256.00"/><rect class="bg" x="267.78" y="249.80" width="3.00" height="7"/><text class="" x="269.28" y="255.40" text-anchor="middle"></text><text x="279.48" y="260.00">40</text><line class="dim" x1="14.40" y1="258.00" x2="262.08" y2="258.00"/><line class="tick" x1="12.40" y1="260.00" x2="16.40" y2="256.00"/><line class="tick" x1="260.08" y1="260.00" x2="264.08" y2="256.00"/><rect class="bg" x="127.64" y="249.80" width="21.20" height="7"/><text class="" x="138.24" y="255.40" text-anchor="middle">688px</text><line class="ext" x1="14.40" y1="336.00" x2="14.40" y2="347.00"/><line class="ext" x1="37.80" y1="336.00" x2="37.80" y2="347.00"/><line class="ext" x1="46.44" y1="336.00" x2="46.44" y2="347.00"/><line class="dim" x1="14.40" y1="344.00" x2="37.80" y2="344.00"/><line class="tick" x1="12.40" y1="346.00" x2="16.40" y2="342.00"/><line class="tick" x1="35.80" y1="346.00" x2="39.80" y2="342.00"/><rect class="bg" x="-1.50" y="335.80" width="3.00" height="7"/><text class="" x="0.00" y="341.40" text-anchor="middle"></text><line class="dim" x1="37.80" y1="344.00" x2="46.44" y2="344.00"/><line class="tick" x1="35.80" y1="346.00" x2="39.80" y2="342.00"/><line class="tick" x1="44.44" y1="346.00" x2="48.44" y2="342.00"/><rect class="bg" x="-1.50" y="335.80" width="3.00" height="7"/><text class="" x="0.00" y="341.40" text-anchor="middle"></text><text x="14.40" y="353.00">col 65.00px</text><text class="lbl" x="60.44" y="353.00">gutter 24px</text><text class="hd" x="326.00" y="236.00">Small, 375px</text><text class="lbl" x="387.04" y="236.00">4 columns</text><rect class="frame" x="326.00" y="266.00" width="135.00" height="118.00"/><rect class="navy" x="326.00" y="266.00" width="135.00" height="9"/><rect class="col" x="333.20" y="275.00" width="25.83" height="109.00"/><text class="cn" x="346.12" y="282.00">1</text><rect class="col" x="364.79" y="275.00" width="25.83" height="109.00"/><text class="cn" x="377.70" y="282.00">2</text><rect class="col" x="396.38" y="275.00" width="25.83" height="109.00"/><text class="cn" x="409.30" y="282.00">3</text><rect class="col" x="427.97" y="275.00" width="25.83" height="109.00"/><text class="cn" x="440.88" y="282.00">4</text><rect class="content" x="333.20" y="275.00" width="120.60" height="109.00"/><line class="ext" x1="326.00" y1="266.00" x2="326.00" y2="254.00"/><line class="ext" x1="461.00" y1="266.00" x2="461.00" y2="254.00"/><line class="ext" x1="333.20" y1="266.00" x2="333.20" y2="254.00"/><line class="ext" x1="453.80" y1="266.00" x2="453.80" y2="254.00"/><line class="dim" x1="326.00" y1="258.00" x2="333.20" y2="258.00"/><line class="tick" x1="324.00" y1="260.00" x2="328.00" y2="256.00"/><line class="tick" x1="331.20" y1="260.00" x2="335.20" y2="256.00"/><rect class="bg" x="328.10" y="249.80" width="3.00" height="7"/><text class="" x="329.60" y="255.40" text-anchor="middle"></text><text x="323.00" y="260.00" text-anchor="end">20</text><line class="dim" x1="453.80" y1="258.00" x2="461.00" y2="258.00"/><line class="tick" x1="451.80" y1="260.00" x2="455.80" y2="256.00"/><line class="tick" x1="459.00" y1="260.00" x2="463.00" y2="256.00"/><rect class="bg" x="455.90" y="249.80" width="3.00" height="7"/><text class="" x="457.40" y="255.40" text-anchor="middle"></text><text x="464.00" y="260.00">20</text><line class="dim" x1="333.20" y1="258.00" x2="453.80" y2="258.00"/><line class="tick" x1="331.20" y1="260.00" x2="335.20" y2="256.00"/><line class="tick" x1="451.80" y1="260.00" x2="455.80" y2="256.00"/><rect class="bg" x="382.90" y="249.80" width="21.20" height="7"/><text class="" x="393.50" y="255.40" text-anchor="middle">335px</text><line class="ext" x1="333.20" y1="384.00" x2="333.20" y2="395.00"/><line class="ext" x1="359.03" y1="384.00" x2="359.03" y2="395.00"/><line class="ext" x1="364.79" y1="384.00" x2="364.79" y2="395.00"/><line class="dim" x1="333.20" y1="392.00" x2="359.03" y2="392.00"/><line class="tick" x1="331.20" y1="394.00" x2="335.20" y2="390.00"/><line class="tick" x1="357.03" y1="394.00" x2="361.03" y2="390.00"/><rect class="bg" x="-1.50" y="383.80" width="3.00" height="7"/><text class="" x="0.00" y="389.40" text-anchor="middle"></text><line class="dim" x1="359.03" y1="392.00" x2="364.79" y2="392.00"/><line class="tick" x1="357.03" y1="394.00" x2="361.03" y2="390.00"/><line class="tick" x1="362.79" y1="394.00" x2="366.79" y2="390.00"/><rect class="bg" x="-1.50" y="383.80" width="3.00" height="7"/><text class="" x="0.00" y="389.40" text-anchor="middle"></text><text x="333.20" y="401.00">col 71.75px</text><text class="lbl" x="379.24" y="401.00">gutter 16px</text><text class="hd" x="386.64" y="170.00">Between 1024 and 1259px</text><text class="lbl" x="386.64" y="178.60">the content is fluid,</text><text class="lbl" x="386.64" y="187.20">viewport minus 80px.</text><text class="lbl" x="386.64" y="195.80">At 1260px it reaches</text><text class="lbl" x="386.64" y="204.40">1180px and stops.</text></svg></div>
<table style="margin-top:2pt">
<thead><tr><th>Size</th><th>Viewport</th><th class="num">Cols</th><th class="num">Gutter</th><th>Margin</th><th>Content</th><th class="num">Column</th><th class="num">Logo</th></tr></thead>
<tbody><tr><td class="">Small</td><td class="">Under 420px</td><td class="num">4</td><td class="num">16px</td><td class="">20px</td><td class="">Fluid</td><td class="num">71.75px at 375</td><td class="num">22px</td></tr><tr><td class="">Small</td><td class="">420 to 767px</td><td class="num">4</td><td class="num">16px</td><td class="">20px</td><td class="">Fluid</td><td class="num">83.00px at 420</td><td class="num">26px</td></tr><tr><td class="">Medium</td><td class="">768 to 1023px</td><td class="num">8</td><td class="num">24px</td><td class="">40px</td><td class="">Fluid</td><td class="num">65.00px at 768</td><td class="num">26px</td></tr><tr><td class="">Large</td><td class="">1024 to 1259px</td><td class="num">12</td><td class="num">24px</td><td class="">40px</td><td class="">Fluid</td><td class="num">56.67px at 1024</td><td class="num">26px</td></tr><tr><td class="">Large, capped</td><td class="">1260px and up</td><td class="num">12</td><td class="num">24px</td><td class="">Auto, 40px min</td><td class="">1180px</td><td class="num">76.33px</td><td class="num">26px</td></tr></tbody>
</table>
<p class="cap" style="margin-top:6pt">Every value is a token: --mc-screen-columns, --mc-screen-gutter, --mc-screen-margin, --mc-container, and the --mc-bp set. Touch targets stay 44px at every size.</p>
<footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 4 of 9</span></footer></section>
<section class="mc-doc-page "><div class="mc-doc-grid head"><div class="mc-doc-span-7"><p class="eyebrow">05 · Worked layout</p><h1 style="margin:0">A quote on the grid</h1></div><div class="mc-doc-span-5" style="align-self:end"><p class="cap" style="margin:0">Jacob prices it and Taylor sends it, so every block has a fixed span and nothing needs a designer to move it.</p></div></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-8"><div class="thumb doc"><div class="mc-doc-page mc-show-grid mc-grid-print">
<div class="mc-doc-grid">
<div class="mc-doc-span-6"><img class="wk-logo" src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"></div>
<div class="mc-doc-span-6 wk-meta"><b>Quote Q-2026-0418</b><br>Issued 17 October 2026<br>Valid until 14 November 2026</div>
<div class="mc-doc-span-8" style="margin-top:0.25in"><p class="eyebrow">Quote</p><h1>Showroom launch media for Cangelosi</h1><div class="divider" style="margin-bottom:0"></div></div>
<div class="mc-doc-span-4 mc-doc-start-1 wk-block"><p class="eyebrow">Prepared for</p><p class="nm">Cangelosi</p><p>Showroom manager<br>Houston, Texas</p></div>
<div class="mc-doc-span-4 wk-block"><p class="eyebrow">Prepared by</p><p class="nm">Jacob Dow</p><p>Founder, Marathon Creative<br>Sent by Taylor Treybig</p></div>
<div class="mc-doc-span-4 wk-block"><p class="eyebrow">Timeline</p><p class="nm">Shoot week of 2 November</p><p>Photos in 5 business days<br>Video in 10 business days</p></div>
<div class="mc-doc-span-12" style="margin-top:0.1in"><table>
<thead><tr><th>Item</th><th class="num">Qty</th><th class="num">Rate</th><th class="num">Amount</th></tr></thead>
<tbody><tr><td><b style="color:var(--mc-text-heading)">Commercial interior photography</b><br><span class="muted">Showroom and slab gallery, 40 retouched images</span></td><td class="num">1</td><td class="num">$1,450.00</td><td class="num">$1,450.00</td></tr><tr><td><b style="color:var(--mc-text-heading)">Aerial stills and video</b><br><span class="muted">FAA Part 107 pilot, 12 stills, 60 seconds of 4K</span></td><td class="num">1</td><td class="num">$650.00</td><td class="num">$650.00</td></tr><tr><td><b style="color:var(--mc-text-heading)">Brand video</b><br><span class="muted">One 60 second cut and three 15 second cuts, DaVinci edit</span></td><td class="num">1</td><td class="num">$3,200.00</td><td class="num">$3,200.00</td></tr><tr><td><b style="color:var(--mc-text-heading)">3D tour and floor plan</b><br><span class="muted">Full showroom, hosted for 12 months</span></td><td class="num">1</td><td class="num">$575.00</td><td class="num">$575.00</td></tr><tr><td><b style="color:var(--mc-text-heading)">Social management</b><br><span class="muted">12 posts and eight stories a month, monthly report</span></td><td class="num">3 mo</td><td class="num">$1,800.00</td><td class="num">$5,400.00</td></tr><tr><td><b style="color:var(--mc-text-heading)">Paid ads management</b><br><span class="muted">Meta and Google. Ad spend billed to you directly</span></td><td class="num">3 mo</td><td class="num">$750.00</td><td class="num">$2,250.00</td></tr><tr class="total"><td>Total, three month engagement</td><td></td><td></td><td class="num">$13,525.00</td></tr></tbody></table></div>
<div class="mc-doc-span-8 callout" style="margin-top:0.1in"><div class="rule"></div><h3>Terms</h3><p class="small" style="margin:0">50% books the shoot date, the balance is due on delivery. Ad spend is paid by Cangelosi straight to Meta and Google, we never mark it up. Raw files stay on our drive for 12 months.</p></div>
<div class="mc-doc-span-4" style="margin-top:0.1in"><div class="copyblock"><div class="ln"><span>Total</span><span>$13,525.00</span></div><div class="ln"><span>Deposit, 50%</span><span>$6,762.50</span></div><div class="ln"><span>Due on delivery</span><span>$6,762.50</span></div></div></div>
<div class="mc-doc-span-12"><div class="editor"><b>Editor note</b>Every rate on this quote is a working figure for Jacob to confirm before Taylor sends it.</div></div>
</div>
<span class="mk" style="left:0.33in;top:0.95in">1</span><span class="mk" style="left:0.33in;top:1.85in">2</span><span class="mk" style="left:0.33in;top:3.4in">3</span><span class="mk" style="left:0.33in;top:4.55in">4</span><span class="mk" style="left:0.33in;top:8.1in">5</span><span class="mk" style="left:8.17in;top:8.1in">6</span>
<footer class="mc-doc-footer"><span>Quote Q-2026-0418, Cangelosi</span><span>Page 1 of 2</span></footer></div></div>
<div class="legend"><span><i></i>Column</span><span><i class="ln"></i>Live area</span><span>Shown at 56% of US Letter</span></div></div>
<div class="mc-doc-span-4"><p class="eyebrow">How it sits on the grid</p><ol class="notes"><li><b>Masthead</b><span class="sp">Span 6 + 6.</span> Logo on column 1, quote number and dates right aligned to column 12.</li><li><b>Opener</b><span class="sp">Span 8.</span> Eyebrow, H1, and the 60 by 3pt red divider. The title wraps inside eight columns, never wider.</li><li><b>Who, who, when</b><span class="sp">Span 4 + 4 + 4.</span> Client, sender, and timeline. The three-up split.</li><li><b>Line items</b><span class="sp">Span 12.</span> Red header bar, banded rows, tabular figures right aligned to the live edge.</li><li><b>Terms</b><span class="sp">Span 8.</span> Dark callout. Navy is the only fill on the page.</li><li><b>Totals</b><span class="sp">Span 4.</span> Sits under the Amount column so the eye drops straight to the number.</li></ol></div>
<div class="mc-doc-span-8"><p class="eyebrow" style="margin-top:8pt">Row by row</p><div class="rows"><div class="rowrow"><p>Masthead</p><div class="split"><span class="" style="grid-column:span 6">6</span><span class="alt" style="grid-column:span 6">6</span></div></div><div class="rowrow"><p>Opener</p><div class="split"><span class="" style="grid-column:span 8">8</span><span class="blank" style="grid-column:span 4">4</span></div></div><div class="rowrow"><p>Who, who, when</p><div class="split"><span class="" style="grid-column:span 4">4</span><span class="alt" style="grid-column:span 4">4</span><span class="" style="grid-column:span 4">4</span></div></div><div class="rowrow"><p>Line items</p><div class="split"><span class="acc" style="grid-column:span 12">12</span></div></div><div class="rowrow"><p>Terms and totals</p><div class="split"><span class="" style="grid-column:span 8">8</span><span class="alt" style="grid-column:span 4">4</span></div></div><div class="rowrow"><p>Editor note</p><div class="split"><span class="alt" style="grid-column:span 12">12</span></div></div></div></div>
</div><footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 5 of 9</span></footer></section>
<section class="mc-doc-page "><div class="mc-doc-grid head"><div class="mc-doc-span-7"><p class="eyebrow">06 · Worked layout</p><h1 style="margin:0">A monthly report on the grid</h1></div><div class="mc-doc-span-5" style="align-self:end"><p class="cap" style="margin:0">The four-stat opener and an eight plus four chart row. The chart is the hero, the commentary sits beside it, not under it.</p></div></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-8"><div class="thumb doc"><div class="mc-doc-page mc-show-grid mc-grid-print">
<div class="mc-doc-grid">
<div class="mc-doc-span-6"><img class="wk-logo" src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"></div>
<div class="mc-doc-span-6 wk-meta"><b>Monthly performance report</b><br>Rosehill Reserve<br>September 2026</div>
<div class="mc-doc-span-8" style="margin-top:0.25in"><p class="eyebrow">September 2026</p><h1>Leads up 22%, cost per lead down</h1><p class="lede" style="margin:0">Paid social did the lifting. We moved budget from search to Meta on 15 September and the last two weeks show it.</p></div>
<div class="mc-doc-span-3 mc-doc-start-1 stat" style="margin-top:0.1in"><span class="v">184</span><span class="l">Leads, up from 151 in August</span></div>
<div class="mc-doc-span-3 stat" style="margin-top:0.1in"><span class="v"><small style="margin:0 1pt 0 0">$</small>28.80</span><span class="l">Cost per lead, down from $34.10</span></div>
<div class="mc-doc-span-3 stat" style="margin-top:0.1in"><span class="v">38</span><span class="l">Model home tours booked</span></div>
<div class="mc-doc-span-3 stat" style="margin-top:0.1in"><span class="v">412K</span><span class="l">People reached across Meta and Google</span></div>
<div class="mc-doc-span-8" style="margin-top:0.1in"><p class="eyebrow">Leads by week</p><svg class="chart" viewBox="0 0 330.0 150.0" style="width:100%;display:block"><line class="axis" x1="22" y1="128.0" x2="330.0" y2="128.0"/><text x="16" y="130.5" text-anchor="end">0</text><line class="grid" x1="22" y1="90.0" x2="330.0" y2="90.0"/><text x="16" y="92.5" text-anchor="end">20</text><line class="grid" x1="22" y1="52.0" x2="330.0" y2="52.0"/><text x="16" y="54.5" text-anchor="end">40</text><line class="grid" x1="22" y1="14.0" x2="330.0" y2="14.0"/><text x="16" y="16.5" text-anchor="end">60</text><rect class="bar1" x="40" y="55.8" width="44" height="72.2"/><text class="v" x="62.0" y="51.8" text-anchor="middle">38</text><text x="62.0" y="139.0" text-anchor="middle">Sep 1 to 7</text><rect class="bar1" x="114" y="50.1" width="44" height="77.9"/><text class="v" x="136.0" y="46.1" text-anchor="middle">41</text><text x="136.0" y="139.0" text-anchor="middle">Sep 8 to 14</text><rect class="bar1" x="188" y="34.9" width="44" height="93.1"/><text class="v" x="210.0" y="30.9" text-anchor="middle">49</text><text x="210.0" y="139.0" text-anchor="middle">Sep 15 to 21</text><rect class="barh" x="262" y="21.6" width="44" height="106.4"/><text class="vh" x="284.0" y="17.6" text-anchor="middle">56</text><text x="284.0" y="139.0" text-anchor="middle">Sep 22 to 30</text></svg></div>
<div class="mc-doc-span-4" style="margin-top:0.1in"><p class="eyebrow">What we do next</p><p class="small">Keep 60% of spend on Meta through October. Test one new creative a week against the aerial carousel, which is still the top ad. We report back on 3 November.</p></div>
<div class="mc-doc-span-12"><table>
<thead><tr><th>Channel</th><th class="num">Spend</th><th class="num">Leads</th><th class="num">Cost per lead</th><th class="num">Tours</th></tr></thead>
<tbody><tr><td>Meta ads</td><td class="num">$3,100</td><td class="num">112</td><td class="num">$27.68</td><td class="num">21</td></tr>
<tr><td>Google search</td><td class="num">$2,200</td><td class="num">58</td><td class="num">$37.93</td><td class="num">14</td></tr>
<tr><td>Organic social</td><td class="num">$0</td><td class="num">14</td><td class="num">n/a</td><td class="num">3</td></tr>
<tr class="total"><td>Total</td><td class="num">$5,300</td><td class="num">184</td><td class="num">$28.80</td><td class="num">38</td></tr></tbody></table></div>
<div class="mc-doc-span-12"><div class="editor"><b>Editor note</b>Figures are illustrative pending the September export from PaceCRM and Meta. Jacob to confirm before this goes to the client.</div></div>
</div>
<span class="mk" style="left:0.33in;top:1.9in">1</span><span class="mk" style="left:0.33in;top:4.15in">2</span><span class="mk" style="left:0.33in;top:5.2in">3</span><span class="mk" style="left:8.17in;top:5.2in">4</span><span class="mk" style="left:0.33in;top:8.2in">5</span>
<footer class="mc-doc-footer"><span>Rosehill Reserve, September 2026</span><span>Page 1 of 4</span></footer></div></div>
<div class="legend"><span><i></i>Column</span><span><i class="ln"></i>Live area</span><span>Shown at 56% of US Letter</span></div></div>
<div class="mc-doc-span-4"><p class="eyebrow">How it sits on the grid</p><ol class="notes"><li><b>Headline finding</b><span class="sp">Span 8.</span> The H1 states the result. The lede says why in one or two sentences.</li><li><b>Four stats</b><span class="sp">Span 3 x 4.</span> Big number, red rule, label. Never more than four in a row.</li><li><b>Chart</b><span class="sp">Span 8.</span> Navy bars, the one bar that matters in red, horizontal gridlines only, tabular figures.</li><li><b>Next step</b><span class="sp">Span 4.</span> Commentary sits beside the chart it explains, top aligned.</li><li><b>Channel table</b><span class="sp">Span 12.</span> Numeric columns right aligned to the live edge, totals rule in navy.</li></ol></div>
<div class="mc-doc-span-8"><p class="eyebrow" style="margin-top:8pt">Row by row</p><div class="rows"><div class="rowrow"><p>Masthead</p><div class="split"><span class="" style="grid-column:span 6">6</span><span class="alt" style="grid-column:span 6">6</span></div></div><div class="rowrow"><p>Finding</p><div class="split"><span class="" style="grid-column:span 8">8</span><span class="blank" style="grid-column:span 4">4</span></div></div><div class="rowrow"><p>Four stats</p><div class="split"><span class="" style="grid-column:span 3">3</span><span class="alt" style="grid-column:span 3">3</span><span class="" style="grid-column:span 3">3</span><span class="alt" style="grid-column:span 3">3</span></div></div><div class="rowrow"><p>Chart and next step</p><div class="split"><span class="" style="grid-column:span 8">8</span><span class="alt" style="grid-column:span 4">4</span></div></div><div class="rowrow"><p>Channel table</p><div class="split"><span class="acc" style="grid-column:span 12">12</span></div></div><div class="rowrow"><p>Editor note</p><div class="split"><span class="alt" style="grid-column:span 12">12</span></div></div></div></div>
</div><footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 6 of 9</span></footer></section>
<section class="mc-doc-page "><div class="mc-doc-grid head"><div class="mc-doc-span-7"><p class="eyebrow">07 · Worked layout</p><h1 style="margin:0">A one-sheet with a full-bleed photo</h1></div><div class="mc-doc-span-5" style="align-self:end"><p class="cap" style="margin:0">The photo runs past the margins and the trim. Everything that has to be read goes back on the grid.</p></div></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-8"><div class="thumb doc"><div class="mc-doc-page mc-show-grid mc-grid-print">
<div class="mc-doc-bleed mc-doc-bleed-top wk-photo" style="background-image:url('../../../../brief/real-photos/mc_fullres_14.jpg')"></div>
<div class="mc-doc-bleed wk-band"><div class="mc-doc-grid">
<div class="mc-doc-span-9"><div class="bar"></div><p class="eyebrow inv">Real estate media</p><h1>Listing media, Zillow Showcase certified</h1></div>
<div class="mc-doc-span-3"><img src="../../../tokens/v/best/logos/marathon-logo-white.svg" alt="Marathon Creative"></div>
</div></div>
<div class="mc-doc-grid" style="margin-top:0.3in">
<div class="mc-doc-span-8"><p class="lede" style="margin:0">Residential, commercial, land, and industrial listings, shot, edited, and delivered by one team. The same people can run the ads and print the signs.</p></div>
<div class="mc-doc-span-4 stat"><span class="v">24<small>hr</small></span><span class="l">Edited listing photos back, shoot to inbox</span></div>
<div class="mc-doc-span-4 card-p"><h3>Listing photography</h3><p>Zillow Showcase certified. Sized for MLS, Zillow, social, and print.</p></div>
<div class="mc-doc-span-4 card-p"><h3>Aerial and land</h3><p>FAA Part 107 pilots. Lot lines drawn on the aerial, as above.</p></div>
<div class="mc-doc-span-4 card-p"><h3>Video and 3D tours</h3><p>Walkthrough video cut in DaVinci, 3D tours, and measured floor plans.</p></div>
<div class="mc-doc-span-12 cta" style="margin-top:0.08in"><p><b style="color:var(--mc-text-heading)">Book a shoot.</b> Tell us the address and the date, we confirm the same day.</p><span class="btn">marathoncreative.co</span></div>
<div class="mc-doc-span-12"><div class="editor"><b>Editor note</b>The 24 hour turnaround is a working figure for Jacob to confirm.</div></div>
</div>
<span class="mk" style="left:0.33in;top:1.2in">1</span><span class="mk" style="left:0.33in;top:4.45in">2</span><span class="mk" style="left:8.17in;top:4.3in">3</span><span class="mk" style="left:0.33in;top:6.05in">4</span><span class="mk" style="left:0.33in;top:7.4in">5</span><span class="mk" style="left:0.33in;top:8.55in">6</span>
<footer class="mc-doc-footer"><span>Real estate media, Marathon Creative</span><span>Page 1 of 1</span></footer></div></div>
<div class="legend"><span><i></i>Column</span><span><i class="ln"></i>Live area</span><span>Shown at 56% of US Letter</span></div></div>
<div class="mc-doc-span-4"><p class="eyebrow">How it sits on the grid</p><ol class="notes"><li><b>Photo</b><span class="sp">Full bleed.</span> Runs 0.125in past trim on three sides in the press file. Use any listing photo, crop from the centre.</li><li><b>Title band</b><span class="sp">Span 9, full bleed fill.</span> Navy fill bleeds, the type does not. Text starts on column 1. White logo, never on the photo itself.</li><li><b>Logo</b><span class="sp">Span 3.</span> Right aligned to column 12, clear space equal to the M height.</li><li><b>Lede and stat</b><span class="sp">Span 8 + 4.</span> Copy left, one number right.</li><li><b>Three services</b><span class="sp">Span 4 x 3.</span> Red rule, H3, two lines of copy. A fourth service goes on page two, not into a fourth column.</li><li><b>Call to action</b><span class="sp">Span 12.</span> One action, one address.</li></ol></div>
<div class="mc-doc-span-8"><p class="eyebrow" style="margin-top:8pt">Row by row</p><div class="rows"><div class="rowrow"><p>Photo, bleed</p><div class="split"><span class="acc" style="grid-column:span 12">12</span></div></div><div class="rowrow"><p>Title band</p><div class="split"><span class="" style="grid-column:span 9">9</span><span class="alt" style="grid-column:span 3">3</span></div></div><div class="rowrow"><p>Lede and stat</p><div class="split"><span class="" style="grid-column:span 8">8</span><span class="alt" style="grid-column:span 4">4</span></div></div><div class="rowrow"><p>Three services</p><div class="split"><span class="" style="grid-column:span 4">4</span><span class="alt" style="grid-column:span 4">4</span><span class="" style="grid-column:span 4">4</span></div></div><div class="rowrow"><p>Call to action</p><div class="split"><span class="" style="grid-column:span 12">12</span></div></div><div class="rowrow"><p>Editor note</p><div class="split"><span class="alt" style="grid-column:span 12">12</span></div></div></div></div>
</div><footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 7 of 9</span></footer></section>
<section class="mc-doc-page "><div class="mc-doc-grid head"><div class="mc-doc-span-7"><p class="eyebrow">08 · Worked layout</p><h1 style="margin:0">The website on the screen grid</h1></div><div class="mc-doc-span-5" style="align-self:end"><p class="cap" style="margin:0">The same page at 1440px and at 375px, captured from site-sample.html with the overlay switched on. Both use the same grid.css.</p></div></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-9"><p class="eyebrow">1440px, 12 columns</p><div class="thumb" style="width:100%;aspect-ratio:1440/1000"><img src="shots/site-1440.png" alt="Home page at 1440px with the 12 column overlay" style="width:100%;display:block"><span class="mk mk-s" style="left:16.1pt;top:8.6pt">1</span><span class="mk mk-s" style="left:16.1pt;top:66.9pt">2</span><span class="mk mk-s" style="left:16.1pt;top:168.6pt">3</span><span class="mk mk-s" style="left:16.1pt;top:235.5pt">4</span></div></div>
<div class="mc-doc-span-3"><p class="eyebrow">375px, 4 columns</p><div class="thumb" style="width:100%;aspect-ratio:375/1000"><img src="shots/site-375.png" alt="Home page at 375px with the 4 column overlay" style="width:100%;display:block"><span class="mk mk-s" style="left:3.2pt;top:104.8pt">5</span></div></div>
<div class="mc-doc-span-12" style="margin-top:4pt"><p class="eyebrow">How it sits on the grid</p><ol class="notes notes2">
<li><b>Header</b><span class="sp">mc-container.</span> Logo on column 1, the CTA ends on column 12. Under 1024px the nav folds into one Menu button.</li>
<li><b>Hero copy</b><span class="sp">mc-md-span-6 mc-lg-span-7.</span> The photo is full bleed, the words stay inside seven columns, so the right of the photo stays clear.</li>
<li><b>Proof strip</b><span class="sp">mc-span-2 mc-md-span-4 mc-lg-span-3.</span> Four across on desktop, two by two on tablet and phone.</li>
<li><b>Service cards</b><span class="sp">mc-md-span-4 mc-lg-span-3.</span> Four across, then two, then one. Two cramped cards on a phone read worse than one clear one.</li>
<li><b>Phone</b><span class="sp">4 columns, 16px gutter, 20px margins.</span> The scrim flips to bottom-up so the headline sits on the darkest part of the photo. Tap targets stay 44px.</li>
</ol></div>
</div><footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 8 of 9</span></footer></section>
<section class="mc-doc-page "><div class="mc-doc-grid head"><div class="mc-doc-span-7"><p class="eyebrow">09 · Using grid.css</p><h1 style="margin:0">Copy two files, then use classes</h1></div><div class="mc-doc-span-5" style="align-self:end"><p class="cap" style="margin:0">grid.css goes in the same /brand/ folder as tokens.css in every app and document template. Copy it in, never link to another Marathon app for it.</p></div></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-6"><p class="eyebrow">A document page</p><pre class="code"><span class="c"><!-- head, in this order --></span>
<link rel="stylesheet" href="/brand/tokens.css">
<link rel="stylesheet" href="/brand/grid.css">
<span class="c"><!-- one US Letter page --></span>
<section class="<span class="k">mc-doc-page</span>">
<div class="<span class="k">mc-doc-grid</span>">
<div class="<span class="k">mc-doc-span-8</span>">Eyebrow, H1</div>
<div class="<span class="k">mc-doc-span-4</span>">Stat</div>
<div class="<span class="k">mc-doc-span-12</span>">Table</div>
</div>
<footer class="<span class="k">mc-doc-footer</span>">
<span>Quote Q-2026-0418</span>
<span>Page 1 of 2</span>
</footer>
</section></pre></div>
<div class="mc-doc-span-6"><p class="eyebrow">A screen layout</p><pre class="code"><span class="c"><!-- mobile first: no class means full width --></span>
<div class="<span class="k">mc-container</span>">
<div class="<span class="k">mc-grid</span>">
<div class="<span class="k">mc-md-span-6 mc-lg-span-7</span>">
Hero copy
</div>
<div class="<span class="k">mc-span-2 mc-md-span-4</span>
<span class="k">mc-lg-span-3</span>">Card</div>
</div>
</div>
<span class="c"><!-- while building only, see the columns --></span>
<body class="<span class="k">mc-show-grid</span>">
<span class="c">Both partials are String.raw safe: no backticks,
no dollar-brace, no build step.</span></pre></div>
<div class="mc-doc-span-7" style="margin-top:6pt"><p class="eyebrow">Classes</p><table class="tight"><thead><tr><th>Class</th><th>What it does</th></tr></thead><tbody>
<tr><td><code>mc-container</code></td><td>Centres content, applies margins, caps at 1180px</td></tr><tr><td><code>mc-grid</code></td><td>4, 8, or 12 columns by viewport, with the matching gutter</td></tr><tr><td><code>mc-span-1 to 4</code></td><td>Span on phones. No class means all four</td></tr><tr><td><code>mc-md-span-1 to 8</code></td><td>Span from 768px</td></tr><tr><td><code>mc-lg-span-1 to 12</code></td><td>Span from 1024px</td></tr><tr><td><code>mc-start-n, mc-md-start-n, mc-lg-start-n</code></td><td>Start a block on column n. Pair it with a span</td></tr><tr><td><code>mc-doc-page</code></td><td>One US Letter page with the document margins</td></tr><tr><td><code>mc-doc-grid, mc-doc-span-1 to 12, mc-doc-start-n</code></td><td>12 columns, 14pt gutter</td></tr><tr><td><code>mc-doc-bleed, mc-doc-bleed-top</code></td><td>Pull a photo or fill out to the trim</td></tr><tr><td><code>mc-doc-footer</code></td><td>Name left, page right, 0.4in from the bottom</td></tr><tr><td><code>mc-show-grid</code></td><td>Red column overlay while building. Never ships</td></tr></tbody></table></div>
<div class="mc-doc-span-5" style="margin-top:6pt"><p class="eyebrow">What never happens</p><ul class="dont">
<li><b>No custom widths.</b> If a block needs 5.3 columns, it gets 5 or 6.</li>
<li><b>No narrower gutters to fit copy.</b> Cut the copy or move it to the next page.</li>
<li><b>No type in the margins</b> except the footer. Bleeds carry photos and fills only.</li>
<li><b>No body copy wider than eight columns</b> on paper or seven on a 1440px screen.</li>
<li><b>No numbers typed into a layout.</b> Widths come from grid.css, colours from tokens.css.</li>
<li><b>No overlay in a file that ships.</b> Remove mc-show-grid before a client sees it.</li>
</ul></div>
</div><footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page 9 of 9</span></footer></section>
</main>
</body>
</html>
site-sample.html98 lines, 7.5 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Marathon Creative, home page on the screen grid</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="grid.css">
<style>
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--mc-font); color: var(--mc-text-primary); background: var(--mc-surface-page);
font-size: var(--mc-type-body-size); line-height: var(--mc-type-body-leading); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.top { background: var(--mc-surface-inverse); color: var(--mc-text-inverse); }
.top .mc-container { display: flex; align-items: center; justify-content: space-between; min-height: var(--mc-space-11); }
.top img { height: var(--mcg-logo); display: block; }
.nav { display: none; gap: var(--mc-space-08); align-items: center; font-size: var(--mc-type-small-size); font-weight: var(--mc-weight-semibold); }
.nav a { color: var(--mc-text-inverse); text-decoration: none; }
.btn { display: inline-flex; align-items: center; min-height: var(--mc-screen-touch-target); padding: 0 var(--mc-space-06);
border-radius: var(--mc-radius-md); font-weight: var(--mc-weight-bold); font-size: var(--mc-type-small-size); text-decoration: none; }
.btn-inv, .nav a.btn-inv { background: var(--mc-action-inverse); color: var(--mc-action-inverse-text); }
.menu { color: var(--mc-text-inverse); font-size: var(--mc-type-eyebrow-size); font-weight: var(--mc-weight-bold);
letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase; border: var(--mc-border-width-hairline) solid var(--mc-border-inverse);
min-height: var(--mc-screen-touch-target); display: inline-flex; align-items: center; padding: 0 var(--mc-space-05); border-radius: var(--mc-radius-md); }
@media (min-width: 1024px) { .nav { display: flex; } .menu { display: none; } }
.hero { position: relative; color: var(--mc-text-inverse); background: var(--mc-surface-inverse) url("../../../../brief/real-photos/mc_rosehill_16.jpg") center 60% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
background: linear-gradient(to right, var(--mc-scrim-photo-strong) 0%, var(--mc-scrim-photo) 45%, var(--mc-scrim-photo-clear) 85%); }
@media (max-width: 767px) { .hero::before { background: linear-gradient(to top, var(--mc-scrim-photo-strong) 0%, var(--mc-scrim-photo) 55%, var(--mc-scrim-photo-clear) 100%); } }
.hero .mc-container { position: relative; padding-top: var(--mc-space-13); padding-bottom: var(--mc-space-12); }
@media (max-width: 767px) { .hero .mc-container { padding-top: var(--mc-space-14); padding-bottom: var(--mc-space-09); } }
.eyebrow { margin: 0 0 var(--mc-space-04); font-size: var(--mc-type-eyebrow-size); font-weight: var(--mc-type-eyebrow-weight);
letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: var(--mc-type-eyebrow-case); line-height: var(--mc-type-eyebrow-leading); color: var(--mc-text-label); }
.hero .eyebrow { color: var(--mc-text-inverse); }
.hero .bar { width: var(--mc-space-10); height: var(--mc-border-width-bar); background: var(--mc-accent-on-inverse); margin-bottom: var(--mc-space-05); }
h1 { margin: 0 0 var(--mc-space-05); font-size: var(--mc-type-h1-size); font-weight: var(--mc-type-h1-weight); line-height: var(--mc-type-h1-leading); letter-spacing: var(--mc-type-h1-tracking); text-wrap: balance; }
.lede { margin: 0 0 var(--mc-space-07); font-size: var(--mc-type-lede-size); font-weight: var(--mc-type-lede-weight); line-height: var(--mc-type-lede-leading); color: var(--mc-text-inverse-secondary); }
.proof { border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); background: var(--mc-surface-subtle); }
.proof .mc-grid { padding: var(--mc-space-06) 0; font-size: var(--mc-type-small-size); color: var(--mc-text-secondary); }
.proof strong { display: block; color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); font-variant-numeric: var(--mc-numeric-tabular); }
.svc { padding: var(--mc-space-11) 0; }
h2 { margin: 0 0 var(--mc-space-08); color: var(--mc-text-heading); font-size: var(--mc-type-h2-size); font-weight: var(--mc-type-h2-weight); line-height: var(--mc-type-h2-leading); letter-spacing: var(--mc-type-h2-tracking); }
.card { border-top: var(--mc-border-width-bar) solid var(--mc-border-accent); padding-top: var(--mc-space-05); }
.card h3 { margin: 0 0 var(--mc-space-03); color: var(--mc-text-heading); font-size: var(--mc-type-h3-size); font-weight: var(--mc-type-h3-weight); line-height: var(--mc-type-h3-leading); }
.card p { margin: 0; font-size: var(--mc-type-small-size); line-height: var(--mc-type-small-leading); color: var(--mc-text-secondary); }
</style>
</head>
<body>
<header class="top">
<div class="mc-container">
<img src="../../../tokens/v/best/logos/marathon-logo-white.svg" alt="Marathon Creative">
<nav class="nav"><a href="#">Services</a><a href="#">Work</a><a href="#">About</a><a href="#">Contact</a><a class="btn btn-inv" href="#">Book a strategy call</a></nav>
<span class="menu">Menu</span>
</div>
</header>
<section class="hero">
<div class="mc-container">
<div class="mc-grid">
<div class="mc-md-span-6 mc-lg-span-7">
<div class="bar"></div>
<p class="eyebrow">Media, marketing, and print in Greater Houston</p>
<h1>One team owns the plan, the shoot, and the print run.</h1>
<p class="lede">Strategy, photo and video, social, paid ads, CRM, web, and print, all in-house. Nothing gets referred out.</p>
<a class="btn btn-inv" href="#">Book a strategy call</a>
</div>
</div>
</div>
</section>
<section class="proof">
<div class="mc-container">
<div class="mc-grid">
<div class="mc-span-2 mc-md-span-4 mc-lg-span-3"><strong>Zillow Showcase</strong>Certified listing photography</div>
<div class="mc-span-2 mc-md-span-4 mc-lg-span-3"><strong>PaceCRM</strong>Pipelines and automations built in-house</div>
<div class="mc-span-2 mc-md-span-4 mc-lg-span-3"><strong>DaVinci post</strong>Video shot and cut by one team</div>
<div class="mc-span-2 mc-md-span-4 mc-lg-span-3"><strong>Print</strong>Signs, mailers, and wraps to press spec</div>
</div>
</div>
</section>
<section class="svc">
<div class="mc-container">
<div class="mc-grid">
<div class="mc-md-span-6 mc-lg-span-8"><p class="eyebrow">What we do</p><h2>Everything in-house, start to finish</h2></div>
</div>
<div class="mc-grid">
<div class="card mc-md-span-4 mc-lg-span-3"><h3>Photo and video</h3><p>Listing, commercial, aerial, and brand shoots, edited in DaVinci by the people who shot them.</p></div>
<div class="card mc-md-span-4 mc-lg-span-3"><h3>Strategy and social</h3><p>A plan first, then social management, paid ads, and monthly reporting against it.</p></div>
<div class="card mc-md-span-4 mc-lg-span-3"><h3>CRM and automation</h3><p>PaceCRM pipelines, email and SMS drips, and follow-up your team actually runs on.</p></div>
<div class="card mc-md-span-4 mc-lg-span-3"><h3>Brand, web, and print</h3><p>Identity, websites, and print from business cards to yard signs and vehicle wraps.</p></div>
</div>
</div>
</section>
<script>
if (new URLSearchParams(location.search).get('grid') === '1') document.body.classList.add('mc-show-grid', 'mc-grid-print');
</script>
</body>
</html>
gen.py607 lines, 41.5 KB
# Builds grid-layout.html, the grid and layout spec book. Run: python3 gen.py
# All drawing values are computed from the document grid spec, so the numbers on the page and the
# geometry in the drawing come from the same arithmetic. Colours come from book.css, which reads tokens.
import os
HERE = os.path.dirname(os.path.abspath(__file__))
TOK = '../../../tokens/v/best/'
PHOTOS = '../../../../brief/real-photos/'
TOTAL = 9
# Document grid, in points. Mirrors tokens: 8.5in x 11in, 0.65in sides, 0.75in top (working),
# 0.85in bottom, 12 columns, 14pt gutter, footer 0.4in from bottom.
PW, PH = 612.0, 792.0
SIDE, TOP, BOT, FOOT = 46.8, 54.0, 61.2, 28.8
COLS, GUT = 12, 14.0
LIVE_W = PW - 2 * SIDE
LIVE_H = PH - TOP - BOT
COL = (LIVE_W - (COLS - 1) * GUT) / COLS
PITCH = COL + GUT
def span(n):
return n * COL + (n - 1) * GUT
def f2(v):
return f'{v:.2f}'
def inch(pt):
return f'{pt / 72:.3f}'
# ---------- svg helpers ----------
def tw(s, size=6.5):
return len(s) * size * 0.56
def hdim(x1, x2, y, label, lx=None, above=True, cls=''):
o = [f'<line class="dim" x1="{x1:.2f}" y1="{y:.2f}" x2="{x2:.2f}" y2="{y:.2f}"/>']
for x in (x1, x2):
o.append(f'<line class="tick" x1="{x-2:.2f}" y1="{y+2:.2f}" x2="{x+2:.2f}" y2="{y-2:.2f}"/>')
cx = (x1 + x2) / 2 if lx is None else lx
ty = y - 2.6 if above else y + 7.5
w = tw(label)
o.append(f'<rect class="bg" x="{cx-w/2-1.5:.2f}" y="{ty-5.6:.2f}" width="{w+3:.2f}" height="7"/>')
o.append(f'<text class="{cls}" x="{cx:.2f}" y="{ty:.2f}" text-anchor="middle">{label}</text>')
return ''.join(o)
def vdim(y1, y2, x, label, ly=None):
o = [f'<line class="dim" x1="{x:.2f}" y1="{y1:.2f}" x2="{x:.2f}" y2="{y2:.2f}"/>']
for y in (y1, y2):
o.append(f'<line class="tick" x1="{x-2:.2f}" y1="{y+2:.2f}" x2="{x+2:.2f}" y2="{y-2:.2f}"/>')
cy = (y1 + y2) / 2 if ly is None else ly
w = tw(label)
o.append(f'<g transform="translate({x-2.6:.2f},{cy:.2f}) rotate(-90)"><rect class="bg" x="{-w/2-1.5:.2f}" y="-5.6" width="{w+3:.2f}" height="7"/>'
f'<text x="0" y="0" text-anchor="middle">{label}</text></g>')
return ''.join(o)
def ext(x1, y1, x2, y2):
return f'<line class="ext" x1="{x1:.2f}" y1="{y1:.2f}" x2="{x2:.2f}" y2="{y2:.2f}"/>'
def callout(fx, fy, tx, ty, head, lines):
o = [f'<circle class="dot" cx="{fx:.2f}" cy="{fy:.2f}" r="1.6"/>',
f'<polyline class="lead" points="{fx:.2f},{fy:.2f} {tx-10:.2f},{ty-2.2:.2f} {tx-3:.2f},{ty-2.2:.2f}"/>',
f'<text class="hd" x="{tx:.2f}" y="{ty:.2f}">{head}</text>']
for i, L in enumerate(lines):
o.append(f'<text class="lbl" x="{tx:.2f}" y="{ty + 8.6 * (i + 1):.2f}">{L}</text>')
return ''.join(o)
# ---------- page 2: Letter construction drawing ----------
def letter_drawing():
s, px, py = 0.54, 80.0, 46.0
X = lambda u: px + u * s
Y = lambda v: py + v * s
o = []
# bleed and trim
b = 9.0
o.append(f'<rect class="bleed" x="{X(-b):.2f}" y="{Y(-b):.2f}" width="{(PW+2*b)*s:.2f}" height="{(PH+2*b)*s:.2f}"/>')
o.append(f'<rect class="trim" x="{X(0):.2f}" y="{Y(0):.2f}" width="{PW*s:.2f}" height="{PH*s:.2f}"/>')
# columns
for n in range(COLS):
x = SIDE + n * PITCH
o.append(f'<rect class="col" x="{X(x):.2f}" y="{Y(TOP):.2f}" width="{COL*s:.2f}" height="{LIVE_H*s:.2f}"/>')
o.append(f'<text class="cn" x="{X(x+COL/2):.2f}" y="{Y(TOP-8):.2f}">{n+1}</text>')
o.append(f'<rect class="live" x="{X(SIDE):.2f}" y="{Y(TOP):.2f}" width="{LIVE_W*s:.2f}" height="{LIVE_H*s:.2f}"/>')
# sample section opener on the grid, so the drawing reads as a page: eyebrow, title, divider
o.append(f'<rect class="navy" x="{X(SIDE):.2f}" y="{Y(TOP+30):.2f}" width="{span(8)*s:.2f}" height="{16*s:.2f}"/>')
o.append(f'<rect class="navy" x="{X(SIDE):.2f}" y="{Y(TOP+52):.2f}" width="{span(5)*s:.2f}" height="{16*s:.2f}"/>')
o.append(f'<rect class="dot" x="{X(SIDE):.2f}" y="{Y(TOP+14):.2f}" width="{span(2)*s:.2f}" height="{5*s:.2f}"/>')
o.append(f'<rect class="dot" x="{X(SIDE):.2f}" y="{Y(TOP+80):.2f}" width="{60*s:.2f}" height="{3*s:.2f}"/>')
# footer
rule_y = PH - FOOT - 8.5 - 6
o.append(f'<line class="foot" x1="{X(SIDE):.2f}" y1="{Y(rule_y):.2f}" x2="{X(PW-SIDE):.2f}" y2="{Y(rule_y):.2f}"/>')
o.append(f'<text class="tiny" x="{X(SIDE):.2f}" y="{Y(PH-FOOT-1):.2f}">Document name</text>')
o.append(f'<text class="tiny" x="{X(PW-SIDE):.2f}" y="{Y(PH-FOOT-1):.2f}" text-anchor="end">Page 2 of 6</text>')
# detail A marker
o.append(f'<circle cx="{X(SIDE):.2f}" cy="{Y(TOP):.2f}" r="15" fill="none" class="lead"/>')
o.append(f'<text class="cn" x="{X(SIDE)-14:.2f}" y="{Y(TOP)-12:.2f}">A</text>')
# top dimensions
o.append(ext(X(0), Y(-b) - 2, X(0), 8))
o.append(ext(X(PW), Y(-b) - 2, X(PW), 8))
o.append(ext(X(SIDE), Y(TOP) - 2, X(SIDE), 26))
o.append(ext(X(PW - SIDE), Y(TOP) - 2, X(PW - SIDE), 26))
o.append(hdim(X(0), X(PW), 12, 'Trim width 8.5in, 612pt'))
o.append(hdim(X(0), X(SIDE), 30, '0.65in'))
o.append(hdim(X(SIDE), X(PW - SIDE), 30, f'Live width 7.20in, {LIVE_W:.1f}pt'))
o.append(hdim(X(PW - SIDE), X(PW), 30, '0.65in'))
# left dimensions
o.append(ext(X(0) - 6, Y(0), 14, Y(0)))
o.append(ext(X(0) - 6, Y(PH), 14, Y(PH)))
o.append(ext(X(SIDE) - 2, Y(TOP), 36, Y(TOP)))
o.append(ext(X(SIDE) - 2, Y(PH - BOT), 36, Y(PH - BOT)))
o.append(ext(X(SIDE) - 2, Y(PH - FOOT), 56, Y(PH - FOOT)))
o.append(vdim(Y(0), Y(PH), 18, 'Trim height 11in, 792pt'))
o.append(vdim(Y(0), Y(TOP), 40, '0.75in'))
o.append(vdim(Y(TOP), Y(PH - BOT), 40, f'Live height 9.40in, {LIVE_H:.1f}pt'))
o.append(vdim(Y(PH - BOT), Y(PH), 40, '0.85in'))
o.append(vdim(Y(PH - FOOT), Y(PH), 60, '0.4in'))
# right callouts
tx = 446
c12 = SIDE + 11 * PITCH
o.append(callout(X(PW), Y(0), tx, Y(0) + 4, 'Trim', ['8.5 x 11in, 612 x 792pt', 'US Letter portrait']))
o.append(callout(X(PW + b), Y(70), tx, Y(70) + 18, 'Bleed 0.125in', ['Press files only.', 'Screen PDFs stop at trim.']))
o.append(callout(X(PW - SIDE), Y(190), tx, Y(190) + 20, 'Live area', ['7.20 x 9.40in. All type,', 'rules, and tables stay', 'inside it.']))
o.append(callout(X(c12 + COL / 2), Y(330), tx, Y(330) + 18, 'Column, 12 of them', [f'{COL:.2f}pt, {COL/72:.3f}in', 'All 12 are equal.']))
o.append(callout(X(c12 - GUT / 2), Y(450), tx, Y(450) + 10, 'Gutter, 11 of them', ['14pt, 0.194in', 'Never narrowed to fit.']))
o.append(callout(X(PW - SIDE - 20), Y(rule_y), tx, Y(rule_y) - 24, 'Footer', ['Text base 0.4in above', 'trim. Document name left,', 'page number right, 8.5pt', '600, Slate 500.']))
# detail A
m, x0, y0, hgt = 2.4, 80.0, py + PH * s + 34, 32.0
U = 150.0
D = lambda u: x0 + u * m
o.append(f'<rect class="trim" x="{D(0):.2f}" y="{y0:.2f}" width="{U*m:.2f}" height="{hgt:.2f}"/>')
edges = [0, SIDE]
for n in range(3):
a = SIDE + n * PITCH
w = min(COL, U - a)
o.append(f'<rect class="col" x="{D(a):.2f}" y="{y0+8:.2f}" width="{w*m:.2f}" height="{hgt-8:.2f}"/>')
o.append(f'<text class="cn" x="{D(a+min(COL, w)/2):.2f}" y="{y0+5.5:.2f}">{n+1}</text>')
edges += [a + COL, a + PITCH]
o.append(f'<line class="live" x1="{D(SIDE):.2f}" y1="{y0+8:.2f}" x2="{D(SIDE):.2f}" y2="{y0+hgt:.2f}"/>')
o.append(f'<line class="live" x1="{D(SIDE):.2f}" y1="{y0+8:.2f}" x2="{D(U):.2f}" y2="{y0+8:.2f}"/>')
labels = [(0, SIDE, '0.65in, 46.8pt'), (SIDE, SIDE + COL, f'{COL:.2f}pt'), (SIDE + COL, SIDE + PITCH, '14pt'),
(SIDE + PITCH, SIDE + PITCH + COL, f'{COL:.2f}pt'), (SIDE + PITCH + COL, SIDE + 2 * PITCH, '14pt')]
for a, z, L in labels:
o.append(ext(D(a), y0, D(a), y0 - 12))
o.append(hdim(D(a), D(z), y0 - 8, L))
o.append(ext(D(SIDE + 2 * PITCH), y0, D(SIDE + 2 * PITCH), y0 - 12))
o.append(f'<text class="hd" x="{x0:.2f}" y="{y0+hgt+11:.2f}">Detail A, top left of the live area at 2.4x</text>')
o.append(f'<text class="lbl" x="{x0:.2f}" y="{y0+hgt+20:.2f}">Column pitch is {PITCH:.2f}pt. Column n starts {SIDE}pt + (n minus 1) x {PITCH:.2f}pt from the left trim.</text>')
# right of detail, formula
fx = D(U) + 14
o.append(f'<text class="eb" x="{fx:.2f}" y="{y0+2:.2f}">The arithmetic</text>')
for i, L in enumerate([f'612 - 2 x 46.8 = {LIVE_W:.1f}pt', f'11 gutters x 14 = 154pt', f'({LIVE_W:.1f} - 154) / 12', f'= {COL:.2f}pt per column']):
o.append(f'<text class="{"hd" if i == 3 else "lbl"}" x="{fx:.2f}" y="{y0+12+i*8.6:.2f}">{L}</text>')
return f'<svg class="dwg" viewBox="0 0 518.4 566" width="518.4pt" height="566pt" role="img" aria-label="Dimensioned construction of the US Letter 12 column document grid">{"".join(o)}</svg>'
# ---------- page 4: screen grid drawing ----------
def screen_frame(vw, cols, g, mg, cap, x0, y0, h, title, sub):
k = 0.36
cw = min(vw - 2 * mg, cap)
left = (vw - cw) / 2
colw = (cw - (cols - 1) * g) / cols
X = lambda px: x0 + px * k
o = [f'<text class="hd" x="{x0:.2f}" y="{y0-30:.2f}">{title}</text>',
f'<text class="lbl" x="{x0 + tw(title, 7) + 14:.2f}" y="{y0-30:.2f}">{sub}</text>',
f'<rect class="frame" x="{x0:.2f}" y="{y0:.2f}" width="{vw*k:.2f}" height="{h:.2f}"/>',
f'<rect class="navy" x="{x0:.2f}" y="{y0:.2f}" width="{vw*k:.2f}" height="9"/>']
for n in range(cols):
a = left + n * (colw + g)
o.append(f'<rect class="col" x="{X(a):.2f}" y="{y0+9:.2f}" width="{colw*k:.2f}" height="{h-9:.2f}"/>')
o.append(f'<text class="cn" x="{X(a+colw/2):.2f}" y="{y0+16:.2f}">{n+1}</text>')
o.append(f'<rect class="content" x="{X(left):.2f}" y="{y0+9:.2f}" width="{cw*k:.2f}" height="{h-9:.2f}"/>')
# dims above
mlabel = 'auto' if cw == cap and vw - 2 * mg > cap else f'{mg}'
o += [ext(X(0), y0, X(0), y0 - 12), ext(X(vw), y0, X(vw), y0 - 12), ext(X(left), y0, X(left), y0 - 12), ext(X(left + cw), y0, X(left + cw), y0 - 12)]
if left * k > 16:
o.append(hdim(X(0), X(left), y0 - 8, mlabel))
o.append(hdim(X(left + cw), X(vw), y0 - 8, mlabel))
else:
o.append(hdim(X(0), X(left), y0 - 8, '', lx=X(left / 2)))
o.append(f'<text x="{X(0)-3:.2f}" y="{y0-6:.2f}" text-anchor="end">{mlabel}</text>')
o.append(hdim(X(left + cw), X(vw), y0 - 8, '', lx=X(vw - left / 2)))
o.append(f'<text x="{X(vw)+3:.2f}" y="{y0-6:.2f}">{mlabel}</text>')
capnote = f'{cw:g}px max' if cw == cap else f'{cw:g}px'
o.append(hdim(X(left), X(left + cw), y0 - 8, capnote))
# dims below, first column and gutter
yb = y0 + h + 8
a1, a2 = left, left + colw
o += [ext(X(a1), y0 + h, X(a1), yb + 3), ext(X(a2), y0 + h, X(a2), yb + 3), ext(X(a2 + g), y0 + h, X(a2 + g), yb + 3)]
o.append(hdim(X(a1), X(a2), yb, '', lx=0))
o.append(hdim(X(a2), X(a2 + g), yb, '', lx=0))
o.append(f'<text x="{X(a1):.2f}" y="{yb+9:.2f}">col {colw:.2f}px</text>')
o.append(f'<text class="lbl" x="{X(a1) + tw("col " + f"{colw:.2f}px") + 6:.2f}" y="{yb+9:.2f}">gutter {g}px</text>')
return ''.join(o)
def screen_drawing():
o = []
o.append(screen_frame(1440, 12, 24, 40, 1180, 0, 38, 54, 'Large, 1440px', '12 columns. Content stops at 1180px and centres, margins grow.'))
o.append(screen_frame(1024, 12, 24, 40, 1180, 0, 152, 54, 'Large, 1024px', '12 columns, 40px margins.'))
o.append(screen_frame(768, 8, 24, 40, 1180, 0, 266, 70, 'Medium, 768px', '8 columns'))
o.append(screen_frame(375, 4, 16, 20, 1180, 326, 266, 118, 'Small, 375px', '4 columns'))
# notes beside the 1024 frame
nx = 1024 * 0.36 + 18
for i, L in enumerate(['Between 1024 and 1259px', 'the content is fluid,', 'viewport minus 80px.', 'At 1260px it reaches', '1180px and stops.']):
o.append(f'<text class="{"hd" if i == 0 else "lbl"}" x="{nx:.2f}" y="{170 + i*8.6:.2f}">{L}</text>')
return f'<svg class="dwg" viewBox="0 0 518.4 404" width="518.4pt" height="404pt" role="img" aria-label="Screen grid at 1440, 1024, 768, and 375 pixels, drawn to one scale">{"".join(o)}</svg>'
# ---------- shared page chrome ----------
def page(n, body, cls=''):
return (f'<section class="mc-doc-page {cls}">{body}'
f'<footer class="mc-doc-footer"><span>Marathon Creative · Grid and Layout v1.0</span><span>Page {n} of {TOTAL}</span></footer></section>')
def head(eb, title, lede=None, split=False):
if split and lede:
return (f'<div class="mc-doc-grid head"><div class="mc-doc-span-7"><p class="eyebrow">{eb}</p><h1 style="margin:0">{title}</h1></div>'
f'<div class="mc-doc-span-5" style="align-self:end"><p class="cap" style="margin:0">{lede}</p></div></div>')
l = f'<p class="lede">{lede}</p>' if lede else ''
return f'<div class="head"><p class="eyebrow">{eb}</p><h1>{title}</h1>{l}</div>'
# ---------- page 1 ----------
P1 = page(1, f'''
<div class="mc-doc-grid">
<div class="mc-doc-span-6"><img src="{TOK}logos/marathon-logo-dark.svg" alt="Marathon Creative" style="height:0.46in;display:block"></div>
<div class="mc-doc-span-6 wk-meta"><b>Design system, Tier 0</b><br>Version 1.0, October 2026<br>Owner Taylor Treybig, approver Jacob Dow</div>
</div>
<div style="height:0.55in"></div>
<p class="eyebrow">Grid and layout</p>
<h1 class="cover">Every Marathon<br>page sits on<br>12 columns</h1>
<div class="divider"></div>
<p class="lede" style="max-width:6.2in">Two grids, one rule. Quotes, reports, and one-sheets use the US Letter document grid. The website and all 14 internal apps use the screen grid. Both ship in grid.css, which reads tokens.css and nothing else.</p>
<div style="height:0.15in"></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-3 stat"><span class="v num">12</span><span class="l">Columns, on paper and on screens 1024px and wider</span></div>
<div class="mc-doc-span-3 stat"><span class="v num">14<small>pt</small></span><span class="l">Document gutter. Screens use 24px, 16px on phones</span></div>
<div class="mc-doc-span-3 stat"><span class="v num">0.65<small>in</small></span><span class="l">Side margins on US Letter. 0.85in at the bottom</span></div>
<div class="mc-doc-span-3 stat"><span class="v num">1180<small>px</small></span><span class="l">Widest the screen content ever gets</span></div>
</div>
<div style="height:0.3in"></div>
<div class="mc-doc-grid">
<div class="mc-doc-span-7">
<p class="eyebrow">Contents</p>
<ol class="toc">
<li><span class="n">02</span><span class="t">Letter construction <span>every measurement, drawn</span></span><span class="p">2</span></li>
<li><span class="n">03</span><span class="t">Column math <span>spans, splits, and x positions</span></span><span class="p">3</span></li>
<li><span class="n">04</span><span class="t">Screen grid <span>4, 8, and 12 columns</span></span><span class="p">4</span></li>
<li><span class="n">05</span><span class="t">Worked layout <span>a quote</span></span><span class="p">5</span></li>
<li><span class="n">06</span><span class="t">Worked layout <span>a monthly report</span></span><span class="p">6</span></li>
<li><span class="n">07</span><span class="t">Worked layout <span>a service one-sheet with a photo</span></span><span class="p">7</span></li>
<li><span class="n">08</span><span class="t">Worked layout <span>the website, desktop and phone</span></span><span class="p">8</span></li>
<li><span class="n">09</span><span class="t">Using grid.css <span>classes, code, and what never happens</span></span><span class="p">9</span></li>
</ol>
</div>
<div class="mc-doc-span-5">
<div class="callout">
<div class="rule"></div>
<h3>Why this ships as code</h3>
<p class="small" style="margin:0">Six of 14 Marathon apps drifted off brand because each one hand-built its own layout. grid.css is copied into every app beside tokens.css, so columns, gutters, and margins come from one file.</p>
</div>
</div>
</div>
''')
# ---------- page 2 ----------
P2 = page(2, head('02 · Document grid construction', 'US Letter, 12 columns',
'Every measurement a designer or a print vendor needs to rebuild this page in InDesign, Affinity, or CSS without calling us. Drawn at 0.54 scale. Red fill marks the columns.', split=True)
+ letter_drawing())
# ---------- page 3 ----------
rows = []
uses = {1: 'Icons, row numbers', 2: 'Stat labels, qty columns', 3: 'Stat block, sidebar, four-up cards', 4: 'Three-up cards, totals, addresses',
5: 'Pull quote beside a 7', 6: 'Two-up, compare columns', 7: 'Copy beside a 5 column photo', 8: 'Body copy maximum, charts',
9: 'Main column beside a sidebar', 10: 'Rare, wide table plus a note', 11: 'Do not use', 12: 'Tables, dark callouts, full photos'}
for n in range(1, 13):
rows.append(f'<tr><td class="num">{n}</td><td class="num">{f2(span(n))}</td><td class="num">{inch(span(n))}</td><td class="num">{span(n)*25.4/72:.1f}</td><td>{uses[n]}</td></tr>')
xs = ''.join(f'<div><b>{n+1}</b>{(SIDE + n*PITCH)/72:.3f}in<br><span class="muted">{SIDE + n*PITCH:.1f}pt</span></div>' for n in range(12))
def split_row(parts, title, text):
cells = ''.join(f'<span class="{c}" style="grid-column:span {w}">{w}</span>' for w, c in parts)
return f'<div class="splitrow"><div class="split">{cells}</div><p><b>{title}</b> {text}</p></div>'
P3 = page(3, head('03 · Document grid', 'Column math, done once', None) + f'''
<div class="mc-doc-grid">
<div class="mc-doc-span-4">
<p class="eyebrow">The page, in numbers</p>
<div class="copyblock">
<div class="ln"><span>Trim</span><span>8.5 x 11in</span></div>
<div class="ln"><span>Sides</span><span>0.65in, 46.8pt</span></div>
<div class="ln"><span>Top</span><span>0.75in, 54pt</span></div>
<div class="ln"><span>Bottom</span><span>0.85in, 61.2pt</span></div>
<div class="ln"><span>Live area</span><span>7.20 x 9.40in</span></div>
<div class="ln"><span>Columns</span><span>12 x {COL:.2f}pt</span></div>
<div class="ln"><span>Gutters</span><span>11 x 14pt</span></div>
<div class="ln"><span>Column pitch</span><span>{PITCH:.2f}pt</span></div>
<div class="ln"><span>Footer</span><span>0.4in above trim</span></div>
<div class="ln"><span>Bleed, press</span><span>0.125in</span></div>
<div class="ln"><span>Divider</span><span>60 x 3pt, Red</span></div>
</div>
<div style="height:8pt"></div>
<p class="cap">Body copy at 10pt never runs wider than eight columns, {inch(span(8))}in. That keeps a line near 65 characters, which is as long as a client will read.</p>
<div class="editor"><b>Editor note</b>The 0.75in top margin is a working value. The brand guide sets sides, bottom, and footer only. Jacob to confirm.</div>
</div>
<div class="mc-doc-span-8">
<p class="eyebrow">Span widths</p>
<table>
<thead><tr><th class="num">Span</th><th class="num">Points</th><th class="num">Inches</th><th class="num">mm</th><th>Use it for</th></tr></thead>
<tbody>{''.join(rows)}</tbody>
</table>
</div>
<div class="mc-doc-span-12" style="margin-top:6pt">
<p class="eyebrow">Column left edges, measured from the left trim</p>
<div class="xs">{xs}</div>
</div>
<div class="mc-doc-span-12" style="margin-top:6pt">
<p class="eyebrow">Approved splits</p>
<div class="splits">
{split_row([(12, '')], 'Full.', 'Tables, dark callouts, photos, the H1.')}
{split_row([(8, ''), (4, 'alt')], 'Eight and four.', 'Copy with a stat or a totals block. The quote default.')}
{split_row([(6, ''), (6, 'alt')], 'Six and six.', 'Before and after, option A against option B.')}
{split_row([(4, ''), (4, 'alt'), (4, '')], 'Three cards.', 'Services, deliverables, next steps.')}
{split_row([(3, ''), (3, 'alt'), (3, ''), (3, 'alt')], 'Four stats.', 'The opener of every monthly report.')}
{split_row([(3, 'acc'), (9, '')], 'Three and nine.', 'Labels left, content right. SOWs and specs.')}
</div>
</div>
</div>
''')
# ---------- page 4 ----------
bp_rows = [
('Small', 'Under 420px', '4', '16px', '20px', 'Fluid', '71.75px at 375', '22px'),
('Small', '420 to 767px', '4', '16px', '20px', 'Fluid', '83.00px at 420', '26px'),
('Medium', '768 to 1023px', '8', '24px', '40px', 'Fluid', '65.00px at 768', '26px'),
('Large', '1024 to 1259px', '12', '24px', '40px', 'Fluid', '56.67px at 1024', '26px'),
('Large, capped', '1260px and up', '12', '24px', 'Auto, 40px min', '1180px', '76.33px', '26px'),
]
bp_html = ''.join('<tr>' + ''.join(f'<td class="{"num" if i in (2,3,6,7) else ""}">{c}</td>' for i, c in enumerate(r)) + '</tr>' for r in bp_rows)
P4 = page(4, head('04 · Screen grid', 'Mobile first: 4, then 8, then 12',
'Apps open on a phone at a shoot before they open on a desk, so the small grid is the default and the wider grids switch on at 768px and 1024px. All four frames below share one scale.', split=True)
+ f'<div style="margin-top:4pt">{screen_drawing()}</div>' + f'''
<table style="margin-top:2pt">
<thead><tr><th>Size</th><th>Viewport</th><th class="num">Cols</th><th class="num">Gutter</th><th>Margin</th><th>Content</th><th class="num">Column</th><th class="num">Logo</th></tr></thead>
<tbody>{bp_html}</tbody>
</table>
<p class="cap" style="margin-top:6pt">Every value is a token: --mc-screen-columns, --mc-screen-gutter, --mc-screen-margin, --mc-container, and the --mc-bp set. Touch targets stay 44px at every size.</p>
''')
# ---------- worked layouts ----------
def rows_strip(rows):
out = []
for label, parts in rows:
cells = ''.join(f'<span class="{c}" style="grid-column:span {w}">{w}</span>' for w, c in parts)
out.append(f'<div class="rowrow"><p>{label}</p><div class="split">{cells}</div></div>')
return '<p class="eyebrow" style="margin-top:8pt">Row by row</p><div class="rows">' + ''.join(out) + '</div>'
def worked(n, eb, title, lede, inner, notes, extra=''):
lis = ''.join(f'<li><b>{t}</b><span class="sp">{sp}</span> {d}</li>' for t, sp, d in notes)
return page(n, head(eb, title, lede, split=True) + f'''
<div class="mc-doc-grid">
<div class="mc-doc-span-8"><div class="thumb doc">{inner}</div>
<div class="legend"><span><i></i>Column</span><span><i class="ln"></i>Live area</span><span>Shown at 56% of US Letter</span></div></div>
<div class="mc-doc-span-4"><p class="eyebrow">How it sits on the grid</p><ol class="notes">{lis}</ol></div>
<div class="mc-doc-span-8">{extra}</div>
</div>''')
def mk(i, l, t):
return f'<span class="mk" style="left:{l}in;top:{t}in">{i}</span>'
LOGO_D = f'<img class="wk-logo" src="{TOK}logos/marathon-logo-dark.svg" alt="Marathon Creative">'
quote_rows = [
('Commercial interior photography', 'Showroom and slab gallery, 40 retouched images', '1', '1,450.00', '1,450.00'),
('Aerial stills and video', 'FAA Part 107 pilot, 12 stills, 60 seconds of 4K', '1', '650.00', '650.00'),
('Brand video', 'One 60 second cut and three 15 second cuts, DaVinci edit', '1', '3,200.00', '3,200.00'),
('3D tour and floor plan', 'Full showroom, hosted for 12 months', '1', '575.00', '575.00'),
('Social management', '12 posts and eight stories a month, monthly report', '3 mo', '1,800.00', '5,400.00'),
('Paid ads management', 'Meta and Google. Ad spend billed to you directly', '3 mo', '750.00', '2,250.00'),
]
qr = ''.join(f'<tr><td><b style="color:var(--mc-text-heading)">{a}</b><br><span class="muted">{b}</span></td><td class="num">{c}</td><td class="num">${d}</td><td class="num">${e}</td></tr>' for a, b, c, d, e in quote_rows)
QUOTE = f'''<div class="mc-doc-page mc-show-grid mc-grid-print">
<div class="mc-doc-grid">
<div class="mc-doc-span-6">{LOGO_D}</div>
<div class="mc-doc-span-6 wk-meta"><b>Quote Q-2026-0418</b><br>Issued 17 October 2026<br>Valid until 14 November 2026</div>
<div class="mc-doc-span-8" style="margin-top:0.25in"><p class="eyebrow">Quote</p><h1>Showroom launch media for Cangelosi</h1><div class="divider" style="margin-bottom:0"></div></div>
<div class="mc-doc-span-4 mc-doc-start-1 wk-block"><p class="eyebrow">Prepared for</p><p class="nm">Cangelosi</p><p>Showroom manager<br>Houston, Texas</p></div>
<div class="mc-doc-span-4 wk-block"><p class="eyebrow">Prepared by</p><p class="nm">Jacob Dow</p><p>Founder, Marathon Creative<br>Sent by Taylor Treybig</p></div>
<div class="mc-doc-span-4 wk-block"><p class="eyebrow">Timeline</p><p class="nm">Shoot week of 2 November</p><p>Photos in 5 business days<br>Video in 10 business days</p></div>
<div class="mc-doc-span-12" style="margin-top:0.1in"><table>
<thead><tr><th>Item</th><th class="num">Qty</th><th class="num">Rate</th><th class="num">Amount</th></tr></thead>
<tbody>{qr}<tr class="total"><td>Total, three month engagement</td><td></td><td></td><td class="num">$13,525.00</td></tr></tbody></table></div>
<div class="mc-doc-span-8 callout" style="margin-top:0.1in"><div class="rule"></div><h3>Terms</h3><p class="small" style="margin:0">50% books the shoot date, the balance is due on delivery. Ad spend is paid by Cangelosi straight to Meta and Google, we never mark it up. Raw files stay on our drive for 12 months.</p></div>
<div class="mc-doc-span-4" style="margin-top:0.1in"><div class="copyblock"><div class="ln"><span>Total</span><span>$13,525.00</span></div><div class="ln"><span>Deposit, 50%</span><span>$6,762.50</span></div><div class="ln"><span>Due on delivery</span><span>$6,762.50</span></div></div></div>
<div class="mc-doc-span-12"><div class="editor"><b>Editor note</b>Every rate on this quote is a working figure for Jacob to confirm before Taylor sends it.</div></div>
</div>
{mk(1, 0.33, 0.95)}{mk(2, 0.33, 1.85)}{mk(3, 0.33, 3.4)}{mk(4, 0.33, 4.55)}{mk(5, 0.33, 8.1)}{mk(6, 8.17, 8.1)}
<footer class="mc-doc-footer"><span>Quote Q-2026-0418, Cangelosi</span><span>Page 1 of 2</span></footer></div>'''
P5 = worked(5, '05 · Worked layout', 'A quote on the grid', 'Jacob prices it and Taylor sends it, so every block has a fixed span and nothing needs a designer to move it.', QUOTE, [
('Masthead', 'Span 6 + 6.', 'Logo on column 1, quote number and dates right aligned to column 12.'),
('Opener', 'Span 8.', 'Eyebrow, H1, and the 60 by 3pt red divider. The title wraps inside eight columns, never wider.'),
('Who, who, when', 'Span 4 + 4 + 4.', 'Client, sender, and timeline. The three-up split.'),
('Line items', 'Span 12.', 'Red header bar, banded rows, tabular figures right aligned to the live edge.'),
('Terms', 'Span 8.', 'Dark callout. Navy is the only fill on the page.'),
('Totals', 'Span 4.', 'Sits under the Amount column so the eye drops straight to the number.'),
], rows_strip([('Masthead', [(6, ''), (6, 'alt')]), ('Opener', [(8, ''), (4, 'blank')]), ('Who, who, when', [(4, ''), (4, 'alt'), (4, '')]),
('Line items', [(12, 'acc')]), ('Terms and totals', [(8, ''), (4, 'alt')]), ('Editor note', [(12, 'alt')])]))
weeks = [('Sep 1 to 7', 38), ('Sep 8 to 14', 41), ('Sep 15 to 21', 49), ('Sep 22 to 30', 56)]
def chart():
W, H, base, top = 330.0, 150.0, 128.0, 14.0
mx = 60
o = []
for v in (0, 20, 40, 60):
y = base - (base - top) * v / mx
o.append(f'<line class="{"axis" if v == 0 else "grid"}" x1="22" y1="{y:.1f}" x2="{W:.1f}" y2="{y:.1f}"/><text x="16" y="{y+2.5:.1f}" text-anchor="end">{v}</text>')
bw = 44
for i, (lab, v) in enumerate(weeks):
x = 40 + i * 74
y = base - (base - top) * v / mx
hl = i == len(weeks) - 1
o.append(f'<rect class="{"barh" if hl else "bar1"}" x="{x}" y="{y:.1f}" width="{bw}" height="{base-y:.1f}"/>')
o.append(f'<text class="{"vh" if hl else "v"}" x="{x+bw/2}" y="{y-4:.1f}" text-anchor="middle">{v}</text>')
o.append(f'<text x="{x+bw/2}" y="{base+11:.1f}" text-anchor="middle">{lab}</text>')
return f'<svg class="chart" viewBox="0 0 {W} {H}" style="width:100%;display:block">{"".join(o)}</svg>'
REPORT = f'''<div class="mc-doc-page mc-show-grid mc-grid-print">
<div class="mc-doc-grid">
<div class="mc-doc-span-6">{LOGO_D}</div>
<div class="mc-doc-span-6 wk-meta"><b>Monthly performance report</b><br>Rosehill Reserve<br>September 2026</div>
<div class="mc-doc-span-8" style="margin-top:0.25in"><p class="eyebrow">September 2026</p><h1>Leads up 22%, cost per lead down</h1><p class="lede" style="margin:0">Paid social did the lifting. We moved budget from search to Meta on 15 September and the last two weeks show it.</p></div>
<div class="mc-doc-span-3 mc-doc-start-1 stat" style="margin-top:0.1in"><span class="v">184</span><span class="l">Leads, up from 151 in August</span></div>
<div class="mc-doc-span-3 stat" style="margin-top:0.1in"><span class="v"><small style="margin:0 1pt 0 0">$</small>28.80</span><span class="l">Cost per lead, down from $34.10</span></div>
<div class="mc-doc-span-3 stat" style="margin-top:0.1in"><span class="v">38</span><span class="l">Model home tours booked</span></div>
<div class="mc-doc-span-3 stat" style="margin-top:0.1in"><span class="v">412K</span><span class="l">People reached across Meta and Google</span></div>
<div class="mc-doc-span-8" style="margin-top:0.1in"><p class="eyebrow">Leads by week</p>{chart()}</div>
<div class="mc-doc-span-4" style="margin-top:0.1in"><p class="eyebrow">What we do next</p><p class="small">Keep 60% of spend on Meta through October. Test one new creative a week against the aerial carousel, which is still the top ad. We report back on 3 November.</p></div>
<div class="mc-doc-span-12"><table>
<thead><tr><th>Channel</th><th class="num">Spend</th><th class="num">Leads</th><th class="num">Cost per lead</th><th class="num">Tours</th></tr></thead>
<tbody><tr><td>Meta ads</td><td class="num">$3,100</td><td class="num">112</td><td class="num">$27.68</td><td class="num">21</td></tr>
<tr><td>Google search</td><td class="num">$2,200</td><td class="num">58</td><td class="num">$37.93</td><td class="num">14</td></tr>
<tr><td>Organic social</td><td class="num">$0</td><td class="num">14</td><td class="num">n/a</td><td class="num">3</td></tr>
<tr class="total"><td>Total</td><td class="num">$5,300</td><td class="num">184</td><td class="num">$28.80</td><td class="num">38</td></tr></tbody></table></div>
<div class="mc-doc-span-12"><div class="editor"><b>Editor note</b>Figures are illustrative pending the September export from PaceCRM and Meta. Jacob to confirm before this goes to the client.</div></div>
</div>
{mk(1, 0.33, 1.9)}{mk(2, 0.33, 4.15)}{mk(3, 0.33, 5.2)}{mk(4, 8.17, 5.2)}{mk(5, 0.33, 8.2)}
<footer class="mc-doc-footer"><span>Rosehill Reserve, September 2026</span><span>Page 1 of 4</span></footer></div>'''
P6 = worked(6, '06 · Worked layout', 'A monthly report on the grid', 'The four-stat opener and an eight plus four chart row. The chart is the hero, the commentary sits beside it, not under it.', REPORT, [
('Headline finding', 'Span 8.', 'The H1 states the result. The lede says why in one or two sentences.'),
('Four stats', 'Span 3 x 4.', 'Big number, red rule, label. Never more than four in a row.'),
('Chart', 'Span 8.', 'Navy bars, the one bar that matters in red, horizontal gridlines only, tabular figures.'),
('Next step', 'Span 4.', 'Commentary sits beside the chart it explains, top aligned.'),
('Channel table', 'Span 12.', 'Numeric columns right aligned to the live edge, totals rule in navy.'),
], rows_strip([('Masthead', [(6, ''), (6, 'alt')]), ('Finding', [(8, ''), (4, 'blank')]), ('Four stats', [(3, ''), (3, 'alt'), (3, ''), (3, 'alt')]),
('Chart and next step', [(8, ''), (4, 'alt')]), ('Channel table', [(12, 'acc')]), ('Editor note', [(12, 'alt')])]))
ONESHEET = f'''<div class="mc-doc-page mc-show-grid mc-grid-print">
<div class="mc-doc-bleed mc-doc-bleed-top wk-photo" style="background-image:url('{PHOTOS}mc_fullres_14.jpg')"></div>
<div class="mc-doc-bleed wk-band"><div class="mc-doc-grid">
<div class="mc-doc-span-9"><div class="bar"></div><p class="eyebrow inv">Real estate media</p><h1>Listing media, Zillow Showcase certified</h1></div>
<div class="mc-doc-span-3"><img src="{TOK}logos/marathon-logo-white.svg" alt="Marathon Creative"></div>
</div></div>
<div class="mc-doc-grid" style="margin-top:0.3in">
<div class="mc-doc-span-8"><p class="lede" style="margin:0">Residential, commercial, land, and industrial listings, shot, edited, and delivered by one team. The same people can run the ads and print the signs.</p></div>
<div class="mc-doc-span-4 stat"><span class="v">24<small>hr</small></span><span class="l">Edited listing photos back, shoot to inbox</span></div>
<div class="mc-doc-span-4 card-p"><h3>Listing photography</h3><p>Zillow Showcase certified. Sized for MLS, Zillow, social, and print.</p></div>
<div class="mc-doc-span-4 card-p"><h3>Aerial and land</h3><p>FAA Part 107 pilots. Lot lines drawn on the aerial, as above.</p></div>
<div class="mc-doc-span-4 card-p"><h3>Video and 3D tours</h3><p>Walkthrough video cut in DaVinci, 3D tours, and measured floor plans.</p></div>
<div class="mc-doc-span-12 cta" style="margin-top:0.08in"><p><b style="color:var(--mc-text-heading)">Book a shoot.</b> Tell us the address and the date, we confirm the same day.</p><span class="btn">marathoncreative.co</span></div>
<div class="mc-doc-span-12"><div class="editor"><b>Editor note</b>The 24 hour turnaround is a working figure for Jacob to confirm.</div></div>
</div>
{mk(1, 0.33, 1.2)}{mk(2, 0.33, 4.45)}{mk(3, 8.17, 4.3)}{mk(4, 0.33, 6.05)}{mk(5, 0.33, 7.4)}{mk(6, 0.33, 8.55)}
<footer class="mc-doc-footer"><span>Real estate media, Marathon Creative</span><span>Page 1 of 1</span></footer></div>'''
P7 = worked(7, '07 · Worked layout', 'A one-sheet with a full-bleed photo', 'The photo runs past the margins and the trim. Everything that has to be read goes back on the grid.', ONESHEET, [
('Photo', 'Full bleed.', 'Runs 0.125in past trim on three sides in the press file. Use any listing photo, crop from the centre.'),
('Title band', 'Span 9, full bleed fill.', 'Navy fill bleeds, the type does not. Text starts on column 1. White logo, never on the photo itself.'),
('Logo', 'Span 3.', 'Right aligned to column 12, clear space equal to the M height.'),
('Lede and stat', 'Span 8 + 4.', 'Copy left, one number right.'),
('Three services', 'Span 4 x 3.', 'Red rule, H3, two lines of copy. A fourth service goes on page two, not into a fourth column.'),
('Call to action', 'Span 12.', 'One action, one address.'),
], rows_strip([('Photo, bleed', [(12, 'acc')]), ('Title band', [(9, ''), (3, 'alt')]), ('Lede and stat', [(8, ''), (4, 'alt')]),
('Three services', [(4, ''), (4, 'alt'), (4, '')]), ('Call to action', [(12, '')]), ('Editor note', [(12, 'alt')])]))
# website page: captures of site-sample.html with the overlay on, made by build.sh
kd = 385.3 / 1440
km = 119.1 / 375
SITE = (f'<div class="thumb" style="width:100%;aspect-ratio:1440/1000"><img src="shots/site-1440.png" alt="Home page at 1440px with the 12 column overlay" style="width:100%;display:block">'
f'<span class="mk mk-s" style="left:{60*kd:.1f}pt;top:{32*kd:.1f}pt">1</span><span class="mk mk-s" style="left:{60*kd:.1f}pt;top:{250*kd:.1f}pt">2</span>'
f'<span class="mk mk-s" style="left:{60*kd:.1f}pt;top:{630*kd:.1f}pt">3</span><span class="mk mk-s" style="left:{60*kd:.1f}pt;top:{880*kd:.1f}pt">4</span></div>')
MOB = (f'<div class="thumb" style="width:100%;aspect-ratio:375/1000"><img src="shots/site-375.png" alt="Home page at 375px with the 4 column overlay" style="width:100%;display:block">'
f'<span class="mk mk-s" style="left:{10*km:.1f}pt;top:{330*km:.1f}pt">5</span></div>')
P8 = page(8, head('08 · Worked layout', 'The website on the screen grid', 'The same page at 1440px and at 375px, captured from site-sample.html with the overlay switched on. Both use the same grid.css.', split=True) + f"""
<div class="mc-doc-grid">
<div class="mc-doc-span-9"><p class="eyebrow">1440px, 12 columns</p>{SITE}</div>
<div class="mc-doc-span-3"><p class="eyebrow">375px, 4 columns</p>{MOB}</div>
<div class="mc-doc-span-12" style="margin-top:4pt"><p class="eyebrow">How it sits on the grid</p><ol class="notes notes2">
<li><b>Header</b><span class="sp">mc-container.</span> Logo on column 1, the CTA ends on column 12. Under 1024px the nav folds into one Menu button.</li>
<li><b>Hero copy</b><span class="sp">mc-md-span-6 mc-lg-span-7.</span> The photo is full bleed, the words stay inside seven columns, so the right of the photo stays clear.</li>
<li><b>Proof strip</b><span class="sp">mc-span-2 mc-md-span-4 mc-lg-span-3.</span> Four across on desktop, two by two on tablet and phone.</li>
<li><b>Service cards</b><span class="sp">mc-md-span-4 mc-lg-span-3.</span> Four across, then two, then one. Two cramped cards on a phone read worse than one clear one.</li>
<li><b>Phone</b><span class="sp">4 columns, 16px gutter, 20px margins.</span> The scrim flips to bottom-up so the headline sits on the darkest part of the photo. Tap targets stay 44px.</li>
</ol></div>
</div>""")
# ---------- page 9 ----------
CODE_DOC = '''<span class="c"><!-- head, in this order --></span>
<link rel="stylesheet" href="/brand/tokens.css">
<link rel="stylesheet" href="/brand/grid.css">
<span class="c"><!-- one US Letter page --></span>
<section class="<span class="k">mc-doc-page</span>">
<div class="<span class="k">mc-doc-grid</span>">
<div class="<span class="k">mc-doc-span-8</span>">Eyebrow, H1</div>
<div class="<span class="k">mc-doc-span-4</span>">Stat</div>
<div class="<span class="k">mc-doc-span-12</span>">Table</div>
</div>
<footer class="<span class="k">mc-doc-footer</span>">
<span>Quote Q-2026-0418</span>
<span>Page 1 of 2</span>
</footer>
</section>'''
CODE_SCR = '''<span class="c"><!-- mobile first: no class means full width --></span>
<div class="<span class="k">mc-container</span>">
<div class="<span class="k">mc-grid</span>">
<div class="<span class="k">mc-md-span-6 mc-lg-span-7</span>">
Hero copy
</div>
<div class="<span class="k">mc-span-2 mc-md-span-4</span>
<span class="k">mc-lg-span-3</span>">Card</div>
</div>
</div>
<span class="c"><!-- while building only, see the columns --></span>
<body class="<span class="k">mc-show-grid</span>">
<span class="c">Both partials are String.raw safe: no backticks,
no dollar-brace, no build step.</span>'''
cls_rows = [
('mc-container', 'Centres content, applies margins, caps at 1180px'),
('mc-grid', '4, 8, or 12 columns by viewport, with the matching gutter'),
('mc-span-1 to 4', 'Span on phones. No class means all four'),
('mc-md-span-1 to 8', 'Span from 768px'),
('mc-lg-span-1 to 12', 'Span from 1024px'),
('mc-start-n, mc-md-start-n, mc-lg-start-n', 'Start a block on column n. Pair it with a span'),
('mc-doc-page', 'One US Letter page with the document margins'),
('mc-doc-grid, mc-doc-span-1 to 12, mc-doc-start-n', '12 columns, 14pt gutter'),
('mc-doc-bleed, mc-doc-bleed-top', 'Pull a photo or fill out to the trim'),
('mc-doc-footer', 'Name left, page right, 0.4in from the bottom'),
('mc-show-grid', 'Red column overlay while building. Never ships'),
]
P9 = page(9, head('09 · Using grid.css', 'Copy two files, then use classes', 'grid.css goes in the same /brand/ folder as tokens.css in every app and document template. Copy it in, never link to another Marathon app for it.', split=True) + f'''
<div class="mc-doc-grid">
<div class="mc-doc-span-6"><p class="eyebrow">A document page</p><pre class="code">{CODE_DOC}</pre></div>
<div class="mc-doc-span-6"><p class="eyebrow">A screen layout</p><pre class="code">{CODE_SCR}</pre></div>
<div class="mc-doc-span-7" style="margin-top:6pt"><p class="eyebrow">Classes</p><table class="tight"><thead><tr><th>Class</th><th>What it does</th></tr></thead><tbody>
{''.join(f'<tr><td><code>{a}</code></td><td>{b}</td></tr>' for a, b in cls_rows)}</tbody></table></div>
<div class="mc-doc-span-5" style="margin-top:6pt"><p class="eyebrow">What never happens</p><ul class="dont">
<li><b>No custom widths.</b> If a block needs 5.3 columns, it gets 5 or 6.</li>
<li><b>No narrower gutters to fit copy.</b> Cut the copy or move it to the next page.</li>
<li><b>No type in the margins</b> except the footer. Bleeds carry photos and fills only.</li>
<li><b>No body copy wider than eight columns</b> on paper or seven on a 1440px screen.</li>
<li><b>No numbers typed into a layout.</b> Widths come from grid.css, colours from tokens.css.</li>
<li><b>No overlay in a file that ships.</b> Remove mc-show-grid before a client sees it.</li>
</ul></div>
</div>''')
HTML = f'''<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon Creative, Grid and Layout v1.0</title>
<link rel="stylesheet" href="{TOK}tokens.css">
<link rel="stylesheet" href="grid.css">
<link rel="stylesheet" href="book.css">
</head>
<body>
<main class="book">
{P1}
{P2}
{P3}
{P4}
{P5}
{P6}
{P7}
{P8}
{P9}
</main>
</body>
</html>
'''
open(os.path.join(HERE, 'grid-layout.html'), 'w').write(HTML)
print('wrote grid-layout.html')
build.sh18 lines, 1.0 KB
#!/bin/sh
# Rebuilds the grid and layout spec book and every render. Run from the repo root:
# sh build/grid-layout/v/r01/build.sh
set -e
D=$(cd "$(dirname "$0")" && pwd)
R=$(cd "$D/../../../.." && pwd)
cd "$R"
node build/_shared/render.mjs png "$D/site-sample.html?grid=1" "$D/shots/site-1440.png" 1440 1000 0 1
node build/_shared/render.mjs png "$D/site-sample.html?grid=1" "$D/shots/site-375.png" 375 1000 0 3
python3 "$D/gen.py"
node build/_shared/render.mjs pdf "$D/grid-layout.html" "$D/renders/grid-layout.pdf"
rm -rf "$D/renders/pages"
python3 build/_shared/raster.py "$D/renders/grid-layout.pdf" "$D/renders/pages" 150
cp "$D/renders/pages/p02.png" "$D/renders/primary.png"
node build/_shared/render.mjs png "$D/site-sample.html?grid=1" "$D/renders/site-desktop-1440-grid.png" 1440 900 1 1
node build/_shared/render.mjs png "$D/site-sample.html?grid=1" "$D/renders/site-mobile-375-grid.png" 375 812 1 2
node build/_shared/render.mjs png "$D/site-sample.html" "$D/renders/site-desktop-1440.png" 1440 900 1 1












