Stationery
ConfirmedBusiness cards, letterhead, envelope, and pocket folder with press-ready files.
Primary render. Select it to open full size.
Every render from the champion round




























How to use it, from the piece README
Business card, letterhead, #10 envelope, and a 9 x 12in pocket folder. Each one ships as a press PDF with 0.125in bleed, crop marks, registration targets, and ink chips, plus a dimensioned spec page a vendor can run from without calling. Every colour comes from ../../../tokens/v/best/tokens.css and every ink build from ../../../tokens/v/best/print-tokens.csv. No colour is typed in these files.
What is in here
| File | What it makes |
|---|---|
business-card.html | Card press file, page 1 front, page 2 back. ?person=taylor picks the person. |
letterhead.html | Letterhead press file, page 1 first sheet, page 2 second sheet. Printed blank. |
letter.html | The everyday letter on the same art, for Cmd+P to PDF. Edit the text in it. |
envelope.html | #10 envelope press file, front only, converted envelopes. |
pocket-folder.html | Folder press file, page 1 the art flat, page 2 the die on the same sheet. |
spec.html | Six Letter pages: one per item, the folder die and photo proofs, and the vendor handoff. |
contact.js | The only file you edit for names, titles, emails, phone, and address. |
faces.js, press.js, stationery.css | The art and the press sheet. Press files and spec pages share them. |
spec.js, spec.css, make_data.py | Spec drawings, spec styles, and the ink data and coverage builder. |
print-data.js | Generated by make_data.py. Never edit it. |
photos/ | Copies of the four folder cover photos from brief/real-photos/. |
Make a new business card
- Open
contact.js. Add the person underMC_PEOPLE, for examplehector: { name: "...", title: "...", email: "...", phone: "" }. - Check it: open
business-card.html?person=hector&guides=1in Chrome. Every line must sit inside the dashed red safe line. A title can run to two lines. If it needs three, shorten the title. - Make the press file from the repo root:
node build/_shared/render.mjs pdf "build/stationery/v/best/business-card.html?person=hector" hector-card.pdf - Send the vendor the PDF and spec page 1. The back is shared, they already have it.
An empty field hides its line. Never type a dummy phone number to fill the space.
Write a letter
Open letter.html, change the date, the recipient, and the body inside the <template>. Open Hello <Contact Name>, with the real name. Keep it to one page by cutting words, never by shrinking type. Cmd+P, Save as PDF, margins None, background graphics on. To type on the printed letterhead in Word or Google Docs instead, use the margins on spec page 2.
Change the folder cover photo
Copy the photo from brief/real-photos/ into photos/, add a caption for it in contact.js under MC_PHOTO_CAPTIONS, then open pocket-folder.html?view=cover&photo=mc_rosehill_17.jpg&pos=50% 40%. pos moves the crop. The logo and headline sit on solid navy and never on the photo, so any photo works, including the lot aerials with a red boundary line. Final press art needs a 300ppi file at size, 2775 x 2138px minimum. The files in brief/real-photos/ are previews, about 260ppi for landscape and 160ppi for portrait.
Rebuild everything
From the repo root: sh build/stationery/v/best/build.sh. It renders the four press PDFs, the guides views, Taylor's card, the sample letter, the four cover photo proofs, measures ink coverage, renders the spec, and rasterizes every page at 150dpi into renders/.
Send a job to a vendor
Send the press PDF, renders/spec.pdf, and print-tokens.csv from the token layer. The spec names the stock, the Pantone and CMYK values, the print method, ink coverage, finishing, and the proofs Marathon signs. Taylor checks proofs against the spec. Jacob approves the press check.
For Jacob to confirm
- Phone, street, suite, and ZIP are not in the brief, so
contact.jsleaves them empty. Envelopes cannot run until the return block has a street address. - Taylor's title and email are working values.
- Quantities are working figures: 250 cards per name, 1,000 letterheads, 1,000 envelopes, 500 folders. No run is priced here.
- Stocks and the coated and uncoated CMYK values marked confirm in
print-tokens.csvare pending a vendor drawdown.
Renders
renders/primary.png: spec page 1, the business card.renders/spec/p01.pngtop06.png: the spec pages at 150dpi.renders/spec.pdfis the spec.renders/press-*/: every press PDF page at 150dpi.renders/guides-*/: the same with trim, safe, and bleed shown.renders/photo-interior.png,photo-aerial.png,photo-portrait.png,photo-boundary.png: the folder cover on a tight showroom interior, a wide community aerial, a portrait original, and a lot aerial with a burned-in red boundary line.renders/letter.png: the sample letter.
Files to download and code to copy
- Whole piece, source files20 files, zip, 4.3 MB. Paths inside follow the repo layout, so put tokens.css beside them as the README says.Download
- letter.pdfPDF, 126.3 KBDownload
- press-business-card-taylor.pdfPDF, 130.1 KBDownload
- press-business-card.pdfPDF, 120.9 KBDownload
- press-envelope.pdfPDF, 86.7 KBDownload
- press-letterhead.pdfPDF, 109.5 KBDownload
- press-pocket-folder.pdfPDF, 1.4 MBDownload
- spec.pdfPDF, 5.4 MBDownload
Copy-paste code
stationery.css106 lines, 7.4 KB
/* Marathon Creative stationery, press and face styles, v1.0.
Load after ../../../tokens/v/best/tokens.css. Every colour, weight, and print value is a token.
Faces are drawn in inches and points so the PDF measures true with a ruler. */
/* Stationery-local values, derived from tokens, never retyped. */
:root {
--st-bleed: var(--mc-print-bleed);
--st-safe: var(--mc-print-safe);
--st-slug: calc(var(--mc-print-bleed) * 5); /* 0.625in of slug outside the bleed */
--st-sheet-margin: calc(var(--st-bleed) + var(--st-slug)); /* 0.75in from sheet edge to trim */
--st-mark: var(--mc-text-primary); /* registration, prints on every plate */
--st-bleed-veil: rgb(var(--mc-white-rgb) / 0.62);
--st-safe-line: var(--mc-border-accent);
--st-trim-line: var(--mc-text-heading);
--st-die-cut: var(--mc-text-primary);
--st-die-score: var(--mc-text-secondary);
}
* { 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-page);
-webkit-print-color-adjust: exact; print-color-adjust: exact;
font-kerning: normal;
text-rendering: geometricPrecision;
}
/* Press sheet: trim + bleed + slug. One sheet per PDF page. */
.sheet {
position: relative;
overflow: hidden;
background: var(--mc-surface-page);
break-after: page; page-break-after: always;
}
.sheet:last-child { break-after: auto; page-break-after: auto; }
.sheet > .face { position: absolute; left: var(--st-slug); top: var(--st-slug); }
.sheet > svg.marks { position: absolute; left: 0; top: 0; overflow: visible; }
/* A face is the artwork at trim plus bleed. .trim is the trimmed piece, origin top left. */
.face {
position: relative;
overflow: hidden;
background: var(--mc-surface-page);
font-family: var(--mc-font);
}
.face > .trim { position: absolute; left: var(--st-bleed); top: var(--st-bleed); }
.abs { position: absolute; }
.face img { display: block; }
.face .logo { display: block; height: auto; }
.face .photo { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Marks and slug type */
.marks .cut { stroke: var(--st-mark); fill: none; }
.marks .reg { stroke: var(--st-mark); fill: none; }
.marks .slug { font-family: var(--mc-font); font-weight: var(--mc-weight-semibold); fill: var(--mc-text-primary); font-variant-numeric: var(--mc-numeric-tabular); }
.marks .slug-b { font-weight: var(--mc-weight-bold); }
.marks .chip-navy { fill: var(--mc-surface-inverse); }
.marks .chip-red { fill: var(--mc-accent); }
.marks .chip-k { fill: var(--mc-text-primary); }
.marks .chip-cmyk { fill: var(--mc-text-tertiary); }
.marks .chip-line { stroke: var(--mc-border-strong); fill: none; }
.marks .die-cut { stroke: var(--st-die-cut); fill: none; }
.marks .die-score { stroke: var(--st-die-score); fill: none; }
.marks .die-glue { fill: var(--mc-surface-muted); stroke: none; }
.marks .die-t { font-family: var(--mc-font); font-weight: var(--mc-weight-semibold); fill: var(--mc-text-secondary); }
/* Guides view, ?guides=1. Never in the press PDF. */
.guides .g-trim { stroke: var(--st-trim-line); fill: none; }
.guides .g-safe { stroke: var(--st-safe-line); fill: none; }
.guides .g-veil { fill: var(--st-bleed-veil); }
.guides .g-t { font-family: var(--mc-font); font-weight: var(--mc-weight-bold); fill: var(--mc-text-label); letter-spacing: 0.08em; }
/* Type on the pieces. Sizes in points, weights from the brand scale. */
.st-name { font-size: 11pt; font-weight: var(--mc-weight-extrabold); line-height: 1.1; letter-spacing: -0.01em; color: var(--mc-text-heading); }
.st-title { font-size: 7.5pt; font-weight: var(--mc-weight-semibold); line-height: 1.3; color: var(--mc-text-tertiary); margin-top: 2.5pt; }
.st-contact { font-size: 7pt; font-weight: var(--mc-weight-regular); line-height: 1.45; color: var(--mc-text-primary); font-variant-numeric: var(--mc-numeric-tabular); white-space: nowrap; }
.st-contact-row { display: flex; align-items: flex-start; }
.st-contact div:empty { display: none; }
.st-bar { width: 18pt; height: 2pt; background: var(--mc-accent); }
.st-bar-doc { width: var(--mc-doc-divider-width); height: var(--mc-doc-divider-height); background: var(--mc-border-accent); }
.st-bar-inverse { width: var(--mc-doc-divider-width); height: var(--mc-doc-divider-height); background: var(--mc-accent-on-inverse); }
.st-url-inverse { font-size: 7pt; font-weight: var(--mc-weight-semibold); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mc-text-inverse); text-align: center; }
.st-head-contact { font-size: 7.5pt; font-weight: var(--mc-weight-regular); line-height: 1.5; color: var(--mc-text-secondary); text-align: right; font-variant-numeric: var(--mc-numeric-tabular); }
.st-head-contact div:empty { display: none; }
.st-foot { font-size: 7pt; font-weight: var(--mc-weight-semibold); line-height: 1; color: var(--mc-text-tertiary); display: flex; justify-content: space-between; align-items: baseline; padding-top: 6pt; border-top: 0.5pt solid var(--mc-border-subtle); }
.st-return { font-size: 7.5pt; font-weight: var(--mc-weight-regular); line-height: 1.45; color: var(--mc-text-primary); }
.st-return div:empty { display: none; }
.st-return .co { font-weight: var(--mc-weight-semibold); }
/* Folder type */
.st-cover-h { font-size: 34pt; font-weight: var(--mc-weight-extrabold); line-height: 1.04; letter-spacing: -0.022em; color: var(--mc-text-inverse); margin: 0; }
.st-cover-lede { font-size: 13pt; font-weight: var(--mc-weight-light); line-height: 1.45; color: var(--mc-text-inverse); margin: 12pt 0 0; max-width: 5.4in; }
.st-caption-inverse { font-size: 7pt; font-weight: var(--mc-weight-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mc-text-inverse); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-eyebrow { font-size: var(--mc-print-type-eyebrow-size); font-weight: var(--mc-weight-bold); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mc-text-label); line-height: 1.2; }
.st-eyebrow-inverse { font-size: var(--mc-print-type-eyebrow-size); font-weight: var(--mc-weight-bold); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mc-text-inverse); line-height: 1.2; }
.st-h3 { font-size: var(--mc-print-type-h3-size); font-weight: var(--mc-weight-bold); line-height: 1.25; color: var(--mc-text-heading); margin: 0; }
.st-h3-inverse { font-size: 13pt; font-weight: var(--mc-weight-bold); line-height: 1.25; color: var(--mc-text-inverse); margin: 0; }
.st-body { font-size: var(--mc-print-type-body-size); font-weight: var(--mc-weight-regular); line-height: 1.5; color: var(--mc-text-primary); margin: 0; }
.st-body-inverse { font-size: 9pt; font-weight: var(--mc-weight-semibold); line-height: 1.5; color: var(--mc-text-inverse); margin: 4pt 0 0; }
.st-services { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 0.4in; }
.st-services li { font-size: 10.5pt; font-weight: var(--mc-weight-semibold); line-height: 1.3; color: var(--mc-text-heading); padding: 7pt 0; border-top: 0.5pt solid var(--mc-border-subtle); break-inside: avoid; }
.st-services li span { display: block; font-size: 8pt; font-weight: var(--mc-weight-regular); color: var(--mc-text-secondary); margin-top: 1.5pt; }
.st-pillars { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.45in; row-gap: 0.22in; }
contact.js30 lines, 1.3 KB
/* Marathon Creative stationery, contact data.
This is the ONLY file you edit to change a name, title, email, phone, or address.
Every card, letterhead, envelope, and folder reads from here.
An empty string hides that line. It never prints a blank gap or a dummy value.
For Jacob to confirm before the first run: street, suite, ZIP, and phone are not in the brief,
so they are empty. Taylor's title and email are working values. */
window.MC_CONTACT = {
company: "Marathon Creative",
web: "marathoncreative.co",
region: "Greater Houston, Texas",
street: "",
cityStateZip: "",
phone: ""
};
/* One entry per person. Pick one with ?person=taylor on business-card.html. */
window.MC_PEOPLE = {
jacob: { name: "Jacob Dow", title: "Founder", email: "jacob@marathoncreative.co", phone: "" },
taylor: { name: "Taylor Treybig", title: "Brand and Client Operations", email: "taylor@marathoncreative.co", phone: "" }
};
/* Captions for the folder cover photo. The key is the file name in photos/. */
window.MC_PHOTO_CAPTIONS = {
"mc_retouched_05.jpg": "Cangelosi stone and tile showroom, Houston",
"mc_rosehill_16.jpg": "Rosehill Reserve, drone aerial",
"mc_retouched_08.jpg": "Cangelosi sample tower, Houston",
"mc_fullres_12.jpg": "Golf course lot, drone aerial with lot line"
};
spec.css85 lines, 7.2 KB
/* Marathon Creative stationery spec pages, v1.0. Loads after tokens.css, grid.css, and stationery.css.
Document system: US Letter, 12 columns, 14pt gutter, footer 0.4in from the bottom edge. */
body { background: var(--mc-surface-muted); }
@media print { body { background: var(--mc-surface-page); } }
.mc-doc-page { margin: 0 auto; font-family: var(--mc-font); color: var(--mc-text-primary); font-size: var(--mc-print-type-body-size); line-height: 1.5; }
@media screen { .mc-doc-page { margin: 0.3in auto; box-shadow: var(--mc-shadow-2); } }
.sp-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.24in; }
.sp-head img { width: 1.3in; display: block; }
.sp-head .meta { text-align: right; font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-semibold); color: var(--mc-text-tertiary); line-height: 1.45; }
.sp-eyebrow { font-size: var(--mc-print-type-eyebrow-size); font-weight: var(--mc-weight-bold); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mc-text-label); margin: 0 0 6pt; }
.sp-h1 { font-size: 26pt; font-weight: var(--mc-weight-extrabold); line-height: 1.08; letter-spacing: -0.02em; color: var(--mc-text-heading); margin: 0; }
.sp-lede { font-size: 11.5pt; font-weight: var(--mc-weight-light); line-height: 1.45; color: var(--mc-text-secondary); margin: 7pt 0 0; max-width: 6.4in; }
.sp-h3 { font-size: 10pt; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); margin: 0 0 4pt; line-height: 1.3; }
.sp-divider { width: var(--mc-doc-divider-width); height: var(--mc-doc-divider-height); background: var(--mc-border-accent); margin: 0.2in 0 0.18in; }
.sp-cap { font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-semibold); color: var(--mc-text-secondary); margin: 2pt 0 0; line-height: 1.35; }
.sp-cap b { color: var(--mc-text-heading); font-weight: var(--mc-weight-bold); }
/* Spec list: label over value, hairline between */
.sp-dl { margin: 0; }
.sp-dl > div { padding: 4pt 0 4.5pt; border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); break-inside: avoid; }
.sp-dl > div:first-child { border-top: 0; padding-top: 0; }
.sp-dl dt { font-size: 7pt; font-weight: var(--mc-weight-bold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mc-text-tertiary); margin: 0 0 1.5pt; }
.sp-dl dd { margin: 0; font-size: 8pt; line-height: 1.42; color: var(--mc-text-primary); font-variant-numeric: var(--mc-numeric-tabular); }
.sp-dl dd b { font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); }
.sp-cols-3 { columns: 3; column-gap: var(--mc-doc-gutter); }
.sp-cols-2 { columns: 2; column-gap: var(--mc-doc-gutter); }
.sp-cols-3 .sp-dl > div:first-child, .sp-cols-2 .sp-dl > div:first-child { border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); padding-top: 4.5pt; }
/* Tables: red header bar, white type, alternating rows, 1px grey dividers, no vertical rules */
.sp-table { width: 100%; border-collapse: collapse; font-size: 7.75pt; line-height: 1.35; }
.sp-table th { background: var(--mc-surface-table-header); color: var(--mc-text-on-accent); font-weight: var(--mc-weight-bold); font-size: 6.75pt; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; padding: 4.5pt 6pt; }
.sp-table td { padding: 4.5pt 6pt; border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); vertical-align: top; }
.sp-table tbody tr:nth-child(even) td { background: var(--mc-surface-row-alt-print); }
.sp-table td:first-child { white-space: nowrap; }
.sp-table .num { font-variant-numeric: var(--mc-numeric-tabular); white-space: nowrap; }
.sp-table td b { font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); }
.sp-swatch { display: inline-block; width: 8pt; height: 8pt; vertical-align: -1pt; margin-right: 4pt; outline: 0.5pt solid var(--mc-border-strong); }
.sw-navy { background: var(--mc-surface-inverse); }
.sw-red { background: var(--mc-accent); }
.sw-rb { background: var(--mc-accent-on-inverse); outline: 2pt solid var(--mc-surface-inverse); outline-offset: 0; }
.sw-k { background: var(--mc-text-primary); }
.sw-cmyk { background: var(--mc-text-tertiary); }
/* Editor note, internal only, and compliance note */
.sp-editor { background: var(--mc-surface-highlight); border-left: var(--mc-border-width-bar) solid var(--mc-border-accent); padding: 8pt 11pt 8pt; }
.sp-editor h4 { font-size: 7pt; font-weight: var(--mc-weight-bold); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mc-text-label); margin: 0 0 3pt; }
.sp-editor ul { margin: 0; padding-left: 10pt; font-size: 8pt; line-height: 1.42; }
.sp-editor li { margin: 0 0 1.5pt; }
.sp-compliance { background: var(--mc-surface-muted); border-left: var(--mc-border-width-bar) solid var(--mc-surface-inverse); padding: 8pt 11pt; font-size: 8pt; line-height: 1.42; }
.sp-compliance h4 { font-size: 7pt; font-weight: var(--mc-weight-bold); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mc-text-heading); margin: 0 0 3pt; }
/* Dark callout */
.sp-dark { background: var(--mc-surface-inverse); color: var(--mc-text-inverse); padding: 10pt 12pt; }
.sp-dark h4 { font-size: 7pt; font-weight: var(--mc-weight-bold); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mc-text-inverse); margin: 0 0 4pt; }
.sp-dark h4::before { content: ""; display: block; width: 24pt; height: 2pt; background: var(--mc-accent-on-inverse); margin-bottom: 6pt; }
.sp-dark p { margin: 0; font-size: 8.5pt; line-height: 1.45; font-weight: var(--mc-weight-semibold); }
/* Figures */
.fig { position: relative; }
.fig-art { position: absolute; overflow: hidden; }
.fig-art .sheet, .fig-art .face { box-shadow: none; }
.d-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.d-veil { fill: rgb(var(--mc-white-rgb) / 0.6); }
.d-trim { fill: none; stroke: var(--mc-text-heading); }
.d-safe { fill: none; stroke: var(--mc-border-accent); }
.d-l, .d-x { stroke: var(--mc-text-secondary); fill: none; }
.d-x { stroke: var(--mc-border-strong); }
.d-lead { stroke: var(--mc-text-secondary); }
.d-dot { fill: var(--mc-text-secondary); }
.d-t { font-family: var(--mc-font); font-weight: var(--mc-weight-semibold); fill: var(--mc-text-secondary); font-variant-numeric: var(--mc-numeric-tabular); }
.d-ct { font-family: var(--mc-font); font-weight: var(--mc-weight-semibold); fill: var(--mc-text-primary); }
.d-zt { font-family: var(--mc-font); font-weight: var(--mc-weight-bold); fill: var(--mc-text-secondary); letter-spacing: 0.06em; }
.d-zone { fill: rgb(var(--mc-slate-500-rgb) / 0.1); stroke: var(--mc-text-tertiary); stroke-dasharray: 0.02 0.015; }
.d-zone-hard { fill: rgb(var(--mc-red-100-rgb) / 0.08); stroke: var(--mc-border-accent); stroke-dasharray: 0.02 0.015; }
.d-cut { fill: none; stroke: var(--mc-text-primary); }
.d-score { fill: none; stroke: var(--mc-text-primary); }
.d-glue { fill: rgb(var(--mc-slate-500-rgb) / 0.18); stroke: none; }
.d-slit { fill: none; stroke: var(--mc-text-inverse); }
.sp-row { display: flex; gap: 0.25in; align-items: flex-start; }
.sp-thumb { outline: var(--mc-border-width-hairline) solid var(--mc-border-subtle); display: block; }
business-card.html16 lines, 1.1 KB
<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="stationery.css">
<script src="contact.js"></script><script src="faces.js"></script><script src="press.js"></script>
<title>Marathon Creative business card, press file</title>
<!-- Business card, 3.5 x 2in, two pages: front, back. Pick the person with ?person=jacob or ?person=taylor.
Names, titles, and contact lines live in contact.js. Check layout with ?guides=1. -->
</head><body><script>
var F = MC_FACES, who = F.query("person", "jacob"), p = MC_PEOPLE[who] || MC_PEOPLE.jacob;
MC_PRESS.build({ w: 3.5, h: 2, sheets: [
{ face: F.cardFront(p), inks: ["navy", "red", "k"], job: ["Marathon Creative business card, FRONT, " + p.name, "Trim 3.5 x 2in. Bleed 0.125in. 3/2 offset. Superfine Eggshell 130DTC."] },
{ face: F.cardBack(), inks: ["navy", "red"], job: ["Marathon Creative business card, BACK, all names", "Trim 3.5 x 2in. Bleed 0.125in. 5395 flood, double hit."] }
]});
</script></body></html>
envelope.html15 lines, 832 bytes
<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="stationery.css">
<script src="contact.js"></script><script src="faces.js"></script><script src="press.js"></script>
<title>Marathon Creative #10 envelope, press file</title>
<!-- #10 envelope, 4.125 x 9.5in, front only, printed on converted envelopes. Nothing bleeds on purpose.
Check layout with ?guides=1. USPS zones are drawn on spec page 3. -->
</head><body><script>
var F = MC_FACES;
MC_PRESS.build({ w: 9.5, h: 4.125, inks: ["navy", "red", "k"], sheets: [
{ face: F.envelopeFront(), job: ["Marathon Creative #10 envelope, FRONT, square flap", "Trim 9.5 x 4.125in converted. Bleed 0.125in in file, no art in it. 3/0 envelope press."] }
]});
</script></body></html>
letter.html52 lines, 3.4 KB
<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="stationery.css">
<script src="contact.js"></script><script src="faces.js"></script>
<title>Marathon Creative letter, digital letterhead</title>
<!-- The everyday letter. Same art as the printed letterhead, so a PDF letter and a printed one match.
Edit the letter text below, then Cmd+P, Save as PDF, margins None, background graphics on.
Keep the letter to one page. If it runs long, cut words, do not shrink the type. -->
<style>
@page { size: 8.5in 11in; margin: 0; }
.letter-page { position: relative; width: 8.5in; height: 11in; overflow: hidden; }
.letter-page > .face { position: absolute; left: calc(-1 * var(--mc-print-bleed)); top: calc(-1 * var(--mc-print-bleed)); }
.letter { position: absolute; font-family: var(--mc-font); font-size: var(--mc-print-type-body-size); line-height: 1.55; color: var(--mc-text-primary); }
.letter p { margin: 0 0 10pt; }
.letter .nb { white-space: nowrap; }
.letter .meta { font-variant-numeric: var(--mc-numeric-tabular); margin-bottom: 24pt; }
.letter .meta div { line-height: 1.45; }
.letter .re { font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); margin: 0 0 14pt; }
.letter .sign { margin-top: 22pt; }
.letter .sign .n { font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); }
.letter .sign .t { color: var(--mc-text-secondary); }
</style>
</head><body>
<section class="letter-page" id="page"></section>
<template id="body">
<div class="meta">
<div>October 17, 2026</div>
<div style="margin-top:10pt">Cangelosi Stone and Tile</div>
<div>Houston, Texas</div>
</div>
<p class="re">Your showroom shoot, delivered, and what I would do next</p>
<p>Hello <Contact Name>,</p>
<p>Your showroom set is edited and in your gallery: 40 stills of the slab wall, the sample towers, the design tables, and the monument sign. Each frame is blended by hand so the stone reads true to colour, which matters when a buyer is choosing between two whites on a phone screen. Web sizes and <span class="nb">full-resolution</span> files are both in the folder.</p>
<p>Here is what I would do next. Put the slab close-ups on your product pages first, because that is where buyers compare stone. Then we shoot a <span class="nb">30-second</span> <span class="nb">walk-through</span> of the showroom floor for Instagram, Facebook, and your Google Business Profile. We can shoot it the same morning as your next delivery so the floor is full, and Philip will have the edit back to you within five business days.</p>
<p>The video is priced on the attached quote. If you approve it by Friday at 5pm, I will hold the first open shoot date in November and handle the scheduling with your team directly.</p>
<div class="sign">
<p style="margin:0 0 30pt">Thank you,</p>
<div class="n">Jacob Dow</div>
<div class="t">Founder, Marathon Creative</div>
<div class="t">jacob@marathoncreative.co</div>
</div>
</template>
<script>
var F = MC_FACES, L = F.LH;
var page = document.getElementById("page");
page.innerHTML = F.letterheadFirst() +
'<div class="letter" style="left:' + L.textLeft + 'in;top:' + L.textTop + 'in;width:' + L.textWidth + 'in">' +
document.getElementById("body").innerHTML + '</div>';
</script>
</body></html>
letterhead.html16 lines, 1.0 KB
<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="stationery.css">
<script src="contact.js"></script><script src="faces.js"></script><script src="press.js"></script>
<title>Marathon Creative letterhead, press file</title>
<!-- Letterhead, 8.5 x 11in, two pages: first sheet, second sheet. Printed blank, letters are laser printed on it after.
Office margins for typing on it are on spec page 2. Check layout with ?guides=1. -->
</head><body><script>
var F = MC_FACES;
MC_PRESS.build({ w: 8.5, h: 11, inks: ["navy", "red", "k"], sheets: [
{ face: F.letterheadFirst(), job: ["Marathon Creative letterhead, FIRST SHEET", "Trim 8.5 x 11in. Bleed 0.125in. 3/0 offset. Superfine Eggshell 80lb Text. Laser safe inks."] },
{ face: F.letterheadSecond(), job: ["Marathon Creative letterhead, SECOND SHEET", "Trim 8.5 x 11in. Bleed 0.125in. 3/0 offset. Same stock and lot as the first sheet."] }
]});
</script></body></html>
pocket-folder.html51 lines, 3.6 KB
<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="stationery.css">
<script src="contact.js"></script><script src="faces.js"></script><script src="press.js"></script>
<title>Marathon Creative pocket folder, press file</title>
<!-- Pocket folder, 9 x 12in finished, two 4in pockets, card slits on the right pocket.
Page 1 is the art, flat, outside face. Page 2 is the die on the same sheet so the two register.
Swap the cover photo with ?photo=mc_rosehill_16.jpg&pos=50% 60%. Photos must be in photos/.
?view=cover shows the front cover alone at trim, the view used for photo proofs. -->
</head><body><script>
var F = MC_FACES, D = F.F, P = MC_PRESS;
var photo = F.query("photo", "mc_retouched_05.jpg"), pos = F.query("pos", "50% 50%");
function dieSVG() {
var M = P.M, s = "", cut = 1 / 72, score = 0.75 / 72;
function pts(a) { return a.map(function (p) { return (M + p[0]) + "," + (M + p[1]); }).join(" "); }
D.glue().forEach(function (g) { s += '<polygon class="die-glue" points="' + pts(g) + '"/>'; });
s += '<polyline class="die-cut" stroke-width="' + cut + '" points="' + pts(D.outline()) + '"/>';
D.scores().forEach(function (l) {
s += '<line class="die-score" stroke-width="' + score + '" stroke-dasharray="0.12 0.06" x1="' + (M + l[0]) + '" y1="' + (M + l[1]) + '" x2="' + (M + l[2]) + '" y2="' + (M + l[3]) + '"/>';
});
D.slits().forEach(function (l) {
s += '<line class="die-cut" stroke-width="' + cut + '" x1="' + (M + l[0]) + '" y1="' + (M + l[1]) + '" x2="' + (M + l[2]) + '" y2="' + (M + l[3]) + '"/>';
});
var fs = 9 / 72;
function t(x, y, txt, rot) {
s += '<text class="die-t" font-size="' + fs + '" text-anchor="middle" x="' + (M + x) + '" y="' + (M + y) + '"' + (rot ? ' transform="rotate(' + rot + ' ' + (M + x) + ' ' + (M + y) + ')"' : "") + '>' + txt + '</text>';
}
t(4.75, 6, "BACK COVER, OUTSIDE"); t(14, 6, "FRONT COVER, OUTSIDE");
t(4.94, 15.0, "POCKET, BECOMES INSIDE RIGHT, CARD SLITS", 180); t(14.06, 15.0, "POCKET, BECOMES INSIDE LEFT", 180);
t(0.25, 14, "GLUE, NO INK", -90); t(18.75, 14, "GLUE, NO INK", 90);
t(10.3, 0.45, "SPINE SCORE"); t(4.94, 12.32, "POCKET SCORE"); t(14.06, 12.32, "POCKET SCORE");
s += '<text class="die-t" font-size="' + fs + '" text-anchor="end" x="' + (M + 19) + '" y="0.33">Solid line: cut. Dashed line: score, fold toward the unprinted side. Grey: glue tab, keep free of ink and coating.</text>';
return s;
}
if (F.query("view", "") === "cover") {
var st = document.createElement("style");
/* Cover at trim, the way it reads in the hand. The bleed is cropped off for the proof. */
st.textContent = "@page { size: " + D.cover + "in " + D.coverH + "in; margin: 0; } .cv { position: relative; width: " + D.cover + "in; height: " + D.coverH + "in; overflow: hidden; } .cv > .face { position: absolute; left: -" + F.B + "in; top: -" + F.B + "in; }";
document.head.appendChild(st);
document.body.innerHTML = '<div class="cv">' + F.folderCover(photo, pos) + '</div>';
} else {
P.build({ w: D.w, h: D.h, sheets: [
{ face: F.folderOutside(photo, pos), inks: ["cmyk", "navy", "red"], job: ["Marathon Creative pocket folder, 9 x 12in, ART, outside face, flat", "Flat 19 x 16in. Bleed 0.125in. 6/0: CMYK plus PMS 5395 C and PMS 7621 C. Sappi McCoy Silk 120lb Cover. Aqueous satin."] },
{ face: "", extra: dieSVG(), inks: ["k"], job: ["Marathon Creative pocket folder, 9 x 12in, DIE LINE, registers to page 1", "Do not print. Cut, score, and glue only."] }
]});
}
</script></body></html>
spec.html364 lines, 25.6 KB
<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<title>Marathon Creative stationery, press spec v1.0</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="../../../grid-layout/v/best/grid.css">
<link rel="stylesheet" href="stationery.css">
<link rel="stylesheet" href="spec.css">
<script src="contact.js"></script><script src="faces.js"></script><script src="spec.js"></script><script src="print-data.js"></script>
<!-- Six US Letter pages a print vendor can run from without calling. Every drawing is the real press art.
Cmd+P, Save as PDF, margins None, background graphics on. Print at 100% so page 1 measures true. -->
</head><body>
<!-- PAGE 1, BUSINESS CARD -->
<section class="mc-doc-page">
<header class="sp-head"><img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"><div class="meta">Stationery system, press spec v1.0<br>Tier 1, print and promo</div></header>
<p class="sp-eyebrow">01, Business card</p>
<h1 class="sp-h1">Business card, 3.5 x 2in</h1>
<p class="sp-lede">White Superfine front, navy flood back. Shown at 100%, so a printed copy measures true.</p>
<div class="mc-doc-grid" style="margin-top:0.1in">
<div class="mc-doc-span-8">
<div id="fig-card-front"></div>
<p class="sp-cap"><b>Front.</b> One name per run, read from contact.js. Empty lines collapse.</p>
<div id="fig-card-back" style="margin-top:0.06in"></div>
<p class="sp-cap"><b>Back.</b> One shared back for every name.</p>
</div>
<div class="mc-doc-span-4">
<dl class="sp-dl">
<div><dt>Trim, bleed, safe</dt><dd><b>3.5 x 2in</b>, 88.9 x 50.8mm, square corners. File 3.75 x 2.25in. Safe 0.125in, type sits 0.1875in in.</dd></div>
<div><dt>Stock</dt><dd><b>Mohawk Superfine Ultrawhite, Eggshell, 130lb Double Thick Cover</b>, 352 gsm, uncoated.</dd></div>
<div><dt>Front, 3 inks</dt><dd>PMS 5395 wordmark and name. PMS 7621 logo bars and rule. Black contact lines.</dd></div>
<div><dt>Back, 2 inks</dt><dd>PMS 5395 flood, double hit. PMS 7621 logo bars. Lockup and URL knock out to paper.</dd></div>
<div><dt>Method</dt><dd>Sheetfed offset, 3/2, spot inks. Digital toner only under 250 cards, after a flood proof.</dd></div>
<div><dt>Finish</dt><dd>No coating. Trim, box 250 per name, label each box.</dd></div>
</dl>
<div class="sp-editor" style="margin-top:0.08in">
<h4>For Jacob to confirm</h4>
<ul>
<li>Phone, street, and ZIP are not in the brief. Cards print without them until they go in contact.js.</li>
<li>Taylor's title and email, and 250 per name, are working values.</li>
</ul>
</div>
</div>
</div>
<div id="ink-card" style="margin-top:0.1in"></div>
<footer class="mc-doc-footer"><span>Marathon Creative, stationery press spec v1.0</span><span>Page 1 of 6</span></footer>
</section>
<!-- PAGE 2, LETTERHEAD -->
<section class="mc-doc-page">
<header class="sp-head"><img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"><div class="meta">Stationery system, press spec v1.0<br>Tier 1, print and promo</div></header>
<p class="sp-eyebrow">02, Letterhead</p>
<h1 class="sp-h1">Letterhead, 8.5 x 11in</h1>
<p class="sp-lede">Printed blank in three inks, then run through the office laser printer.</p>
<div class="mc-doc-grid" style="margin-top:0.12in">
<div class="mc-doc-span-8">
<div id="fig-lh"></div>
<p class="sp-cap"><b>First sheet, shown at 42%.</b> Grey: the letter text area, grid columns 3 to 11.</p>
</div>
<div class="mc-doc-span-4">
<dl class="sp-dl">
<div><dt>Trim</dt><dd><b>8.5 x 11in</b>, 215.9 x 279.4mm. File 8.75 x 11.25in with bleed.</dd></div>
<div><dt>Stock</dt><dd><b>Mohawk Superfine Ultrawhite, Eggshell, 80lb Text</b>, 118 gsm. Order the laser guaranteed lot.</dd></div>
<div><dt>Inks, 3/0</dt><dd>PMS 5395 wordmark. PMS 7621 bars and divider. Black contact and footer. Back stays blank.</dd></div>
<div><dt>Method</dt><dd>Sheetfed offset with laser safe inks, rated to 200C fuser heat. No varnish, it stops toner bonding.</dd></div>
</dl>
<div class="sp-dark" style="margin-top:0.1in">
<h4>Typing on it, Word or Google Docs</h4>
<p>Margins: top 2.0in, left 1.88in, right 1.27in, bottom 1.25in. Second sheet top 1.25in. Montserrat 10pt, 1.55 spacing.</p>
</div>
<div style="display:flex;gap:0.12in;margin-top:0.12in;align-items:flex-start">
<div><img class="sp-thumb" src="renders/letter.png" style="width:1.0in" alt="Sample letter"><p class="sp-cap">Sample letter</p></div>
<div id="fig-lh2"></div>
</div>
</div>
</div>
<div id="ink-lh" style="margin-top:0.14in"></div>
<footer class="mc-doc-footer"><span>Marathon Creative, stationery press spec v1.0</span><span>Page 2 of 6</span></footer>
</section>
<!-- PAGE 3, ENVELOPE -->
<section class="mc-doc-page">
<header class="sp-head"><img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"><div class="meta">Stationery system, press spec v1.0<br>Tier 1, print and promo</div></header>
<p class="sp-eyebrow">03, #10 envelope</p>
<h1 class="sp-h1">#10 envelope, 4.125 x 9.5in</h1>
<p class="sp-lede">Printed on converted envelopes, so nothing bleeds.</p>
<div id="fig-env" style="margin-top:0.1in"></div>
<p class="sp-cap"><b>Front, shown at 68%.</b> Grey zones are USPS keep-out areas. Nothing Marathon prints may enter them.</p>
<div class="sp-cols-3" style="margin-top:0.14in">
<dl class="sp-dl">
<div><dt>Trim</dt><dd><b>9.5 x 4.125in</b>, 241.3 x 104.8mm, #10 commercial, square flap, gummed.</dd></div>
<div><dt>File</dt><dd>9.75 x 4.375in with 0.125in bleed. The bleed is empty on purpose.</dd></div>
<div><dt>Stock</dt><dd><b>Mohawk Superfine Ultrawhite, Eggshell, 70lb Text</b>, 104 gsm, matches the letterhead.</dd></div>
<div><dt>Inks, 3/0</dt><dd>PMS 5395 wordmark. PMS 7621 bars. Black return lines.</dd></div>
<div><dt>Method</dt><dd>Offset on an envelope press, front only. Keep all art 0.375in from every edge for the feeder.</dd></div>
</dl>
</div>
<div class="sp-row" style="margin-top:0.08in">
<div class="sp-compliance" style="flex:1">
<h4>USPS, Domestic Mail Manual 202</h4>
Barcode clear zone: bottom 0.625in, 4.75in from the right edge, no ink. OCR read area: 0.5in from each side, 0.625in to 2.75in above the bottom edge, delivery address only. Postage upper right.
</div>
<div class="sp-editor" style="flex:1">
<h4>Editor note, for Jacob to confirm</h4>
<ul>
<li>The return block needs a street, suite, and ZIP before any run. Until then it reads company and region only.</li>
<li>Stock weight pending the vendor's converted envelope list.</li>
</ul>
</div>
</div>
<div id="ink-env" style="margin-top:0.1in"></div>
<footer class="mc-doc-footer"><span>Marathon Creative, stationery press spec v1.0</span><span>Page 3 of 6</span></footer>
</section>
<!-- PAGE 4, POCKET FOLDER ART -->
<section class="mc-doc-page">
<header class="sp-head"><img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"><div class="meta">Stationery system, press spec v1.0<br>Tier 1, print and promo</div></header>
<p class="sp-eyebrow">04, Pocket folder</p>
<h1 class="sp-h1">Pocket folder, 9 x 12in</h1>
<p class="sp-lede">One flat sheet, outside face only. Two 4in pockets fold up to the inside, so their art prints upside down on the flat.</p>
<div id="fig-folder" style="margin-top:0.06in"></div>
<p class="sp-cap"><b>Flat, outside face, shown at 33%, die line over the art.</b> Solid: cut. Dashed: score. Grey: glue, no ink.</p>
<div class="sp-cols-3" style="margin-top:0.12in">
<dl class="sp-dl">
<div><dt>Finished</dt><dd><b>9 x 12in</b> closed. Flat 19 x 16in, file 19.25 x 16.25in.</dd></div>
<div><dt>Stock</dt><dd><b>Sappi McCoy Silk, 120lb Cover</b>, 325 gsm, coated two sides.</dd></div>
<div><dt>Inks, 6/0</dt><dd>CMYK for the photo, plus PMS 5395 C for every navy area and PMS 7621 C for red.</dd></div>
<div><dt>Method</dt><dd>Sheetfed offset, 6 units or 4 plus 2 passes. Aqueous satin coat on the outside.</dd></div>
<div><dt>Converting</dt><dd>Steel rule die, score, two glue tabs, business card slits on the right pocket.</dd></div>
<div><dt>Photo</dt><dd>Swap with ?photo= in the file. Final art needs 300ppi at size: 2775 x 2138px minimum.</dd></div>
</dl>
</div>
<footer class="mc-doc-footer"><span>Marathon Creative, stationery press spec v1.0</span><span>Page 4 of 6</span></footer>
</section>
<!-- PAGE 5, POCKET FOLDER DIE, ASSEMBLY, PHOTO PROOFS -->
<section class="mc-doc-page">
<header class="sp-head"><img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"><div class="meta">Stationery system, press spec v1.0<br>Tier 1, print and promo</div></header>
<p class="sp-eyebrow">04, Pocket folder, continued</p>
<h1 class="sp-h1">Die, assembly, and photo proofs</h1>
<div class="mc-doc-grid" style="margin-top:0.14in">
<div class="mc-doc-span-7">
<div id="fig-inside"></div>
<p class="sp-cap"><b>Inside, assembled, shown at 21.5%.</b> The card sits in two 0.75in slits, 1.75in below the pocket mouth.</p>
</div>
<div class="mc-doc-span-5">
<table class="sp-table">
<thead><tr><th>Die feature</th><th>Size</th></tr></thead>
<tbody>
<tr><td>Spine score</td><td class="num">At 9in, no capacity</td></tr>
<tr><td>Pocket depth</td><td class="num">4in, scored at 12in</td></tr>
<tr><td>Gap at the spine</td><td class="num">0.25in, 0.125in per pocket</td></tr>
<tr><td>Mouth chamfer</td><td class="num">0.25 x 0.25in, spine side</td></tr>
<tr><td>Glue tab</td><td class="num">0.5in, tapered 0.25in</td></tr>
<tr><td>Card slits</td><td class="num">0.75in at 45 degrees</td></tr>
<tr><td>Slit spacing</td><td class="num">3.5in, card centred</td></tr>
<tr><td>Navy onto glue tab</td><td class="num">0.0625in, then stops</td></tr>
</tbody>
</table>
<div class="sp-dark" style="margin-top:0.12in">
<h4>Where type is allowed</h4>
<p>The logo and the headline sit on solid navy, never on the photo. Any photo can go on top. Red sits on navy, never on the image.</p>
</div>
</div>
</div>
<div class="sp-divider" style="margin:0.14in 0 0.1in"></div>
<p class="sp-h3">The cover, proven on four real Marathon photos</p>
<div class="sp-row" id="proofs" style="gap:0.16in"></div>
<div id="ink-folder" style="margin-top:0.1in"></div>
<footer class="mc-doc-footer"><span>Marathon Creative, stationery press spec v1.0</span><span>Page 5 of 6</span></footer>
</section>
<!-- PAGE 6, VENDOR HANDOFF -->
<section class="mc-doc-page">
<header class="sp-head"><img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"><div class="meta">Stationery system, press spec v1.0<br>Tier 1, print and promo</div></header>
<p class="sp-eyebrow">05, Vendor handoff</p>
<h1 class="sp-h1">What the vendor gets</h1>
<p class="sp-lede">Four press files, this spec, and print-tokens.csv. Nothing else.</p>
<table class="sp-table" style="margin-top:0.1in">
<thead><tr><th>Press file</th><th>Pages</th><th>Sheet with marks</th><th>Trim</th><th>Stock</th><th>Inks</th></tr></thead>
<tbody>
<tr><td><b>press-business-card.pdf</b></td><td>1 front, 2 back</td><td class="num">5 x 3.5in</td><td class="num">3.5 x 2in</td><td>Superfine Eggshell 130DTC</td><td>3/2 spot</td></tr>
<tr><td><b>press-letterhead.pdf</b></td><td>1 first, 2 second</td><td class="num">10 x 12.5in</td><td class="num">8.5 x 11in</td><td>Superfine Eggshell 80T</td><td>3/0 spot</td></tr>
<tr><td><b>press-envelope.pdf</b></td><td>1 front</td><td class="num">11 x 5.625in</td><td class="num">9.5 x 4.125in</td><td>Superfine Eggshell 70T</td><td>3/0 spot</td></tr>
<tr><td><b>press-pocket-folder.pdf</b></td><td>1 art, 2 die</td><td class="num">20.5 x 17.75in</td><td class="num">19 x 16in flat</td><td>McCoy Silk 120C</td><td>6/0</td></tr>
</tbody>
</table>
<div id="ink-all" style="margin-top:0.1in"></div>
<div class="mc-doc-grid" style="margin-top:0.1in">
<div class="mc-doc-span-6">
<p class="sp-h3">Preflight, before plates</p>
<dl class="sp-dl">
<div><dt>Colour</dt><dd>Navy and red map to PMS 5395 and PMS 7621, never a RIP conversion from RGB. Small type is single plate black.</dd></div>
<div><dt>Red on navy</dt><dd>On spot jobs, knock the red out of the navy and trap 0.25pt. No overprint.</dd></div>
<div><dt>Logo and type</dt><dd>Logo placed from the shipped SVG, never redrawn or recoloured. Montserrat embedded. Nothing white on navy below 7pt.</dd></div>
</dl>
</div>
<div class="mc-doc-span-6">
<p class="sp-h3">Proofs Marathon signs</p>
<dl class="sp-dl">
<div><dt>Drawdown</dt><dd>PMS 5395 and PMS 7621 on Superfine and on McCoy Silk, next to the swatch book.</dd></div>
<div><dt>Hard proof</dt><dd>One card, one letterhead, one envelope on the real stock, cut to trim.</dd></div>
<div><dt>Folder</dt><dd>A plotted, scored, and folded blank. A card must sit in the slits without bowing.</dd></div>
<div><dt>Laser test</dt><dd>Run 10 letterheads through the office printer. No smear, no offset, no curl.</dd></div>
</dl>
</div>
</div>
<div class="sp-editor" style="margin-top:0.06in">
<h4>Editor note, for Jacob to confirm before the first run</h4>
<ul>
<li>Coated and uncoated CMYK values marked confirm in print-tokens.csv are pending a vendor drawdown.</li>
<li>Quantities are working figures: 250 cards per name, 1,000 letterheads, 1,000 envelopes, 500 folders. No run is priced here. Taylor checks proofs, Jacob approves the press check.</li>
</ul>
</div>
<footer class="mc-doc-footer"><span>Marathon Creative, stationery press spec v1.0</span><span>Page 6 of 6</span></footer>
</section>
<script>
(function () {
var F = MC_FACES, D = MC_DRAW, B = F.B, P = MC_PRINT, COV = MC_COVERAGE || {};
function put(id, html) { document.getElementById(id).innerHTML = html; }
var person = MC_PEOPLE.jacob, c = F.CARD, m = c.m;
/* Card front, 100% */
put("fig-card-front", D.figure({ face: F.cardFront(person), w: 3.5, h: 2, s: 1, safe: 0.125, pad: [0.42, 0.56, 0.06, 0.42],
dims: [
{ h: 1, x1: 0, x2: 3.5, y: -0.125, ly: -0.37, label: "3.5in trim" },
{ h: 1, x1: m, x2: m + c.logoW, y: m, ly: -0.2, label: "Logo 1.35in wide" },
{ v: 1, y1: 0, y2: 2, x: -0.125, lx: -0.27, label: "2in trim" },
{ v: 1, y1: 0, y2: c.nameTop, x: 3.5, lx: 3.72, flat: 1, right: 1, label: "0.74in" },
{ v: 1, y1: 2 - m, y2: 2, x: 3.5, lx: 3.72, flat: 1, right: 1, label: "0.1875in" }
] }));
/* Card back, 100% */
var lw = 2.0, lt = (2 - lw / F.LOGO_RATIO) / 2 - 0.08;
put("fig-card-back", D.figure({ face: F.cardBack(), w: 3.5, h: 2, s: 1, safe: 0.125, pad: [0.28, 0.56, 0.06, 0.42],
dims: [
{ h: 1, x1: 0.75, x2: 2.75, y: lt, ly: -0.2, label: "Logo 2in wide, centred" },
{ v: 1, y1: 0, y2: lt, x: 3.5, lx: 3.72, flat: 1, right: 1, label: (Math.round(lt * 100) / 100) + "in" },
{ v: 1, y1: 2 - m, y2: 2, x: 3.5, lx: 3.72, flat: 1, right: 1, label: "0.1875in" }
] }));
/* Letterhead, 50% */
var L = F.LH;
put("fig-lh", D.figure({ face: F.letterheadFirst(), w: 8.5, h: 11, s: 0.42, safe: 0.125, pad: [0.4, 0.62, 0.12, 0.4], fs: 6,
zones: [{ x: L.textLeft, y: L.textTop, w: L.textWidth, h: 11 - L.textTop - L.bottom, label: "LETTER TEXT, LASER PRINTED" }],
dims: [
{ h: 1, x1: 0, x2: 8.5, y: -0.125, ly: -0.62, label: "8.5in trim" },
{ h: 1, x1: L.side, x2: L.side + L.logoW, y: L.top, ly: 0.3, label: "Logo 1.75in" },
{ v: 1, y1: 0, y2: 11, x: -0.125, lx: -0.55, label: "11in trim" },
{ v: 1, y1: 0, y2: L.top, x: L.side + L.logoW, lx: 2.75, flat: 1, right: 1, label: "0.6in", ty: 0.42 },
{ v: 1, y1: 0, y2: 1.3, x: 2.0, lx: 3.6, flat: 1, right: 1, label: "Divider 60 x 3pt at 1.3in", ty: 1.1 },
{ v: 1, y1: 0, y2: L.textTop, x: L.textLeft, lx: 6.1, flat: 1, right: 1, label: "Text 2.0in", ty: 1.75 },
{ h: 1, x1: 0, x2: L.textLeft, y: L.textTop, ly: 1.75, label: "1.88in" },
{ h: 1, x1: 0, x2: L.side, y: 10.2, ly: 10.2, label: "0.65in", below: 1 },
{ h: 1, x1: L.textLeft, x2: L.textLeft + L.textWidth, y: 9.75, ly: 9.55, label: "Letter column 5.35in" },
{ v: 1, y1: 11 - 0.4, y2: 11, x: 8.5, lx: 8.75, flat: 1, right: 1, label: "Footer 0.4in" }
] }));
put("fig-lh2", D.figure({ face: F.letterheadSecond(), w: 8.5, h: 11, s: 0.1135, pad: [0, 0, 0, 0], veil: false }) + '<p class="sp-cap">Second sheet, logo 1.25in</p>');
/* Envelope, 68%, USPS zones from DMM 202 */
var E = F.ENV;
put("fig-env", D.figure({ face: F.envelopeFront(), w: 9.5, h: 4.125, s: 0.68, safe: 0.375, pad: [0.42, 0.42, 0.3, 0.42], fs: 6.5,
zones: [
{ x: 9.5 - 4.75, y: 4.125 - 0.625, w: 4.75, h: 0.625, label: "BARCODE CLEAR ZONE, NO INK", cls: "d-zone-hard" },
{ x: 0.5, y: 4.125 - 2.75, w: 8.5, h: 2.75 - 0.625, label: "OCR READ AREA, DELIVERY ADDRESS ONLY" },
{ x: 9.5 - 1.75, y: 0.25, w: 1.5, h: 1.0, label: "POSTAGE" }
],
dims: [
{ h: 1, x1: 0, x2: 9.5, y: -0.125, ly: -0.45, label: "9.5in trim" },
{ v: 1, y1: 0, y2: 4.125, x: -0.125, lx: -0.4, label: "4.125in" },
{ h: 1, x1: E.m, x2: E.m + E.logoW, y: E.m, ly: -0.2, label: "Logo 1.5in" },
{ v: 1, y1: 0, y2: E.m, x: E.m, lx: 2.1, flat: 1, right: 1, label: "0.375in feeder margin, all edges" },
{ v: 1, y1: 0, y2: 4.125 - 2.75, x: 3.6, lx: 3.6, flat: 1, right: 1, label: "Return block ends above 1.375in", ty: 1.0 }
] }));
/* Folder flat, 33%, with die over the art */
var FD = F.F, sF = 0.33;
function dieOverlay(X, Y, s) {
var g = "", sw = 0.75 / 72;
g += FD.glue().map(function (p) { return '<polygon class="d-glue" points="' + p.map(function (q) { return X(q[0]) + "," + Y(q[1]); }).join(" ") + '"/>'; }).join("");
g += '<polyline class="d-cut" stroke-width="' + sw + '" points="' + FD.outline().map(function (q) { return X(q[0]) + "," + Y(q[1]); }).join(" ") + '"/>';
g += FD.scores().map(function (l) { return '<line class="d-score" stroke-width="' + sw + '" stroke-dasharray="0.04 0.03" x1="' + X(l[0]) + '" y1="' + Y(l[1]) + '" x2="' + X(l[2]) + '" y2="' + Y(l[3]) + '"/>'; }).join("");
g += FD.slits().map(function (l) { return '<line class="d-cut" stroke-width="' + sw + '" x1="' + X(l[0]) + '" y1="' + Y(l[1]) + '" x2="' + X(l[2]) + '" y2="' + Y(l[3]) + '"/>'; }).join("");
return g;
}
put("fig-folder", D.figure({ face: F.folderOutside("mc_retouched_05.jpg", "50% 50%"), w: 19, h: 16, s: sF, pad: [0.34, 0.12, 0.08, 0.36], fs: 6.5, veil: true,
svg: dieOverlay,
dims: [
{ h: 1, x1: 0, x2: 19, y: -0.125, ly: -0.85, label: "19in flat, tab to tab" },
{ h: 1, x1: FD.backX, x2: FD.spineX, y: -0.125, ly: -0.4, label: "Back cover 9in" },
{ h: 1, x1: FD.spineX, x2: FD.spineX + 9, y: -0.125, ly: -0.4, label: "Front cover 9in" },
{ v: 1, y1: 0, y2: 16, x: -0.125, lx: -0.85, label: "16in flat" },
{ v: 1, y1: 0, y2: 12, x: 0.5, lx: -0.35, label: "Cover 12in" },
{ v: 1, y1: 12, y2: 16, x: 0, lx: -0.35, label: "Pocket 4in" }
] }));
/* Inside assembled, 25% */
put("fig-inside", D.figure({ face: F.folderInside(person), w: 18, h: 12, s: 0.215, pad: [0.05, 0.05, 0.05, 0.05], veil: false,
svg: function (X, Y, s) {
var g = '<line class="d-score" stroke-width="' + (0.75 / 72) + '" stroke-dasharray="0.04 0.03" x1="' + X(9) + '" y1="' + Y(0) + '" x2="' + X(9) + '" y2="' + Y(12) + '"/>';
g += '<rect class="d-trim" x="' + X(0) + '" y="' + Y(0) + '" width="' + 18 * s + '" height="' + 12 * s + '" stroke-width="' + (0.5 / 72) + '"/>';
g += '<rect class="d-trim" x="' + X(9.125) + '" y="' + Y(8) + '" width="' + 8.875 * s + '" height="' + 4 * s + '" stroke-width="' + (0.5 / 72) + '"/>';
var ci = FD.cardInside(), u1 = 9.125 + ci.u, u2 = u1 + 3.5, v = 8 + FD.cardDrop, d = FD.slitLen / 2 / Math.SQRT2;
[[u1 - d, v - d, u1 + d, v + d], [u2 - d, v + d, u2 + d, v - d]].forEach(function (q) {
g += '<line class="d-cut" stroke-width="' + (0.75 / 72) + '" x1="' + X(q[0]) + '" y1="' + Y(q[1]) + '" x2="' + X(q[2]) + '" y2="' + Y(q[3]) + '"/>';
});
return g;
} }));
/* Cover proofs on four photos: tight interior, wide aerial, portrait original, lot with red boundary */
var proofs = [["mc_retouched_05.jpg", "50% 50%", "Tight interior"], ["mc_rosehill_16.jpg", "50% 50%", "Wide aerial"],
["mc_retouched_08.jpg", "50% 35%", "Portrait original"], ["mc_fullres_12.jpg", "50% 50%", "Red lot line"]];
put("proofs", proofs.map(function (p) {
return '<div>' + D.figure({ face: F.folderCover(p[0], p[1]), w: 9, h: 12, s: 0.128, pad: [0, 0, 0, 0], veil: false }) +
'<p class="sp-cap"><b>' + p[2] + '.</b> ' + F.esc(p[0]) + '</p></div>';
}).join(""));
/* Ink tables, values pulled from the token layer's print-tokens.csv */
var NAV = P["--mc-navy-100"], RED = P["--mc-red-100"], K = P["--mc-charcoal"], RB = P["--mc-accent-on-inverse"];
function cv(k, ink) { var v = COV[k]; return v ? v[ink] + "%" : "n/a"; }
function inkTable(rows, cols) {
return '<table class="sp-table"><thead><tr><th>Ink</th><th>Used for</th><th>Pantone</th><th>CMYK coated</th><th>CMYK uncoated</th>' +
cols.map(function (c) { return "<th>" + c + "</th>"; }).join("") + "</tr></thead><tbody>" +
rows.map(function (r) { return "<tr><td><span class=\"sp-swatch " + r[0] + "\"></span><b>" + r[1] + "</b></td><td>" + r[2] + "</td><td class=\"num\">" + r[3] + '</td><td class="num">' + r[4] + '</td><td class="num">' + r[5] + "</td>" +
r.slice(6).map(function (x) { return '<td' + (String(x).length < 12 ? ' class="num"' : "") + '>' + x + "</td>"; }).join("") + "</tr>"; }).join("") + "</tbody></table>";
}
function pms(t) { return "PMS " + t.pantone_coated + " / " + t.pantone_uncoated; }
put("ink-card", inkTable([
["sw-navy", "Marathon Navy", "Wordmark, name, back flood", pms(NAV), NAV.cmyk_coated, NAV.cmyk_uncoated, cv("cardFront", "navy"), cv("cardBack", "navy")],
["sw-red", "Marathon Red", "Logo bars, rule", pms(RED), RED.cmyk_coated, RED.cmyk_uncoated, cv("cardFront", "red"), cv("cardBack", "red")],
["sw-k", "Black", "Contact lines, title", "Process Black", K.cmyk_coated, K.cmyk_uncoated, cv("cardFront", "k"), "0%"]
], ["Front area", "Back area"]) +
'<p class="sp-cap" style="margin-top:4pt"><b>Ink coverage,</b> measured from the press file at trim. The back is a near solid on uncoated stock: double hit the 5395, print the back first, and let it set overnight. One spot per area keeps total ink at 100%, under the 260% uncoated limit.</p>');
put("ink-lh", inkTable([
["sw-navy", "Marathon Navy", "Wordmark", pms(NAV), NAV.cmyk_coated, NAV.cmyk_uncoated, cv("lhFirst", "navy")],
["sw-red", "Marathon Red", "Logo bars, divider", pms(RED), RED.cmyk_coated, RED.cmyk_uncoated, cv("lhFirst", "red")],
["sw-k", "Black", "Contact, footer, footer rule as a 12% screen", "Process Black", K.cmyk_coated, K.cmyk_uncoated, cv("lhFirst", "k")]
], ["Area"]) +
'<p class="sp-cap" style="margin-top:4pt"><b>Ink coverage.</b> Under 2% of the sheet. Light coverage dries fast, but the sheets still need 24 hours before they go through a laser printer, or the fuser lifts the ink.</p>');
put("ink-env", inkTable([
["sw-navy", "Marathon Navy", "Wordmark", pms(NAV), NAV.cmyk_coated, NAV.cmyk_uncoated, cv("envelope", "navy")],
["sw-red", "Marathon Red", "Logo bars", pms(RED), RED.cmyk_coated, RED.cmyk_uncoated, cv("envelope", "red")],
["sw-k", "Black", "Return lines", "Process Black", K.cmyk_coated, K.cmyk_uncoated, cv("envelope", "k")]
], ["Area"]) +
'<p class="sp-cap" style="margin-top:4pt"><b>Ink coverage.</b> Under 1% of the face, no solids, no drying hold.</p>');
put("ink-folder", inkTable([
["sw-navy", "Marathon Navy", "Cover panel, left pocket", pms(NAV), NAV.cmyk_coated, NAV.cmyk_uncoated, cv("folder", "navy")],
["sw-red", "Marathon Red", "Logo bars, rules on navy", pms(RED), RED.cmyk_coated, RED.cmyk_uncoated, cv("folder", "red")],
["sw-cmyk", "Process CMYK", "Photo, grey and black type", "None", "Photo, 300% max", "n/a", (function () { var v = COV.folder; return v ? (Math.round((+v.photo + +v.k + +v.grey) * 10) / 10) + "%" : "n/a"; })()]
], ["Area"]) +
'<p class="sp-cap" style="margin-top:4pt"><b>Ink coverage.</b> Navy runs as one spot at 100%. The photo separates to 300% total ink. A process navy is ' + NAV.cmyk_coated + ', 279%. Red on navy prints as PMS 7621 C, knocked out.</p>');
put("ink-all", inkTable([
["sw-navy", "Marathon Navy", "Wordmark, every navy", pms(NAV), NAV.cmyk_coated, NAV.cmyk_uncoated, F.esc(NAV.press_note)],
["sw-red", "Marathon Red", "Logo bars, rules, eyebrows", pms(RED), RED.cmyk_coated, RED.cmyk_uncoated, F.esc(RED.press_note)],
["sw-k", "Black", "Small type", "Process Black", K.cmyk_coated, K.cmyk_uncoated, F.esc(K.press_note)],
["sw-rb", "Red Bright", "Red on navy, screen only", "None", RB.cmyk_coated, RB.cmyk_uncoated, F.esc(RB.press_note)]
], ["Press note, from print-tokens.csv"]));
})();
</script>
</body></html>
faces.js245 lines, 14.1 KB
/* Marathon Creative stationery faces, v1.0.
Each function returns one face as HTML: the trimmed piece plus 0.125in of bleed on every side.
Coordinates are inches from the TRIM top left. Type sizes are points.
The press files and the spec pages call the same functions, so a spec drawing is the real art.
No colour is typed here. Every fill is a token in stationery.css or tokens.css. */
(function () {
var B = 0.125; /* bleed, matches --mc-print-bleed */
var LOGO_RATIO = 181.09 / 33.42; /* lockup viewBox, width over height */
var M_HEIGHT = 14.45 / 33.42; /* M of MARATHON over lockup height, the clear space unit */
var LOGOS = "../../../tokens/v/best/logos/";
function esc(s) { return String(s == null ? "" : s).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); }
function face(w, h, inner, cls) {
return '<div class="face ' + (cls || "") + '" style="width:' + (w + 2 * B) + 'in;height:' + (h + 2 * B) + 'in">' +
'<div class="trim" style="width:' + w + 'in;height:' + h + 'in">' + inner + '</div></div>';
}
function box(x, y, w, h, html, style) {
return '<div class="abs" style="left:' + x + 'in;top:' + y + 'in;' + (w != null ? 'width:' + w + 'in;' : '') +
(h != null ? 'height:' + h + 'in;' : '') + (style || "") + '">' + (html || "") + '</div>';
}
function logo(file, w) {
return '<img class="logo" src="' + LOGOS + file + '" alt="Marathon Creative" style="width:' + w + 'in">';
}
function lines(arr) { return arr.map(function (t) { return "<div>" + esc(t) + "</div>"; }).join(""); }
function C() { return window.MC_CONTACT; }
/* ---------- Business card, 3.5 x 2in ---------- */
var CARD = { w: 3.5, h: 2, m: 0.1875, logoW: 1.35, nameTop: 0.74 };
function cardFront(p) {
var c = C(), m = CARD.m;
var contactL = [p.email, p.phone || c.phone];
var contactR = [c.web, c.region];
var inner =
box(m, m, null, null, logo("marathon-logo-dark.svg", CARD.logoW)) +
box(m, CARD.nameTop - 0.09, null, null, '<div class="st-bar"></div>') +
box(m, CARD.nameTop, CARD.w - 2 * m, null,
'<div class="st-name">' + esc(p.name) + '</div><div class="st-title" style="max-width:2.4in">' + esc(p.title) + '</div>') +
'<div class="abs st-contact-row" style="left:' + m + 'in;right:' + m + 'in;bottom:' + m + 'in">' +
'<div class="st-contact" style="width:1.8in">' + lines(contactL) + '</div>' +
'<div class="st-contact">' + lines(contactR) + '</div></div>';
return face(CARD.w, CARD.h, inner, "card-front");
}
function cardBack() {
var lw = 2.0, lh = lw / LOGO_RATIO;
var inner =
box(-B, -B, CARD.w + 2 * B, CARD.h + 2 * B, "", "background:var(--mc-surface-inverse)") +
box((CARD.w - lw) / 2, (CARD.h - lh) / 2 - 0.08, null, null, logo("marathon-logo-white.svg", lw)) +
'<div class="abs st-url-inverse" style="left:0;right:0;bottom:' + CARD.m + 'in">' + esc(C().web) + '</div>';
return face(CARD.w, CARD.h, inner, "card-back");
}
/* ---------- Letterhead, 8.5 x 11in ---------- */
/* Letter text column: columns 3 to 11 of the 12 column document grid. */
var LH = { w: 8.5, h: 11, side: 0.65, top: 0.6, logoW: 1.75, logoW2: 1.25, gutter: 14 / 72, textTop: 2.0, bottom: 1.25 };
LH.col = (LH.w - 2 * LH.side - 11 * LH.gutter) / 12;
LH.textLeft = LH.side + 2 * (LH.col + LH.gutter);
LH.textWidth = 9 * LH.col + 8 * LH.gutter;
LH.textRight = LH.w - LH.textLeft - LH.textWidth;
function lhFooter() {
return '<div class="abs st-foot" style="left:' + LH.side + 'in;right:' + LH.side + 'in;bottom:0.4in">' +
'<span>Marathon Creative. Strategy, production, and print, one team in-house.</span><span>' + esc(C().web) + '</span></div>';
}
function letterheadFirst() {
var c = C();
var inner =
box(LH.side, LH.top, null, null, logo("marathon-logo-dark.svg", LH.logoW)) +
'<div class="abs st-head-contact" style="right:' + LH.side + 'in;top:' + (LH.top - 0.015) + 'in">' +
lines([c.web, c.street, c.cityStateZip || c.region, c.phone]) + '</div>' +
box(LH.side, 1.3, null, null, '<div class="st-bar-doc"></div>') +
lhFooter();
return face(LH.w, LH.h, inner, "lh-first");
}
function letterheadSecond() {
var inner = box(LH.side, LH.top, null, null, logo("marathon-logo-dark.svg", LH.logoW2)) + lhFooter();
return face(LH.w, LH.h, inner, "lh-second");
}
/* ---------- #10 envelope, 9.5 x 4.125in ---------- */
var ENV = { w: 9.5, h: 4.125, m: 0.375, logoW: 1.5 };
function envelopeFront() {
var c = C(), lh = ENV.logoW / LOGO_RATIO;
var inner =
box(ENV.m, ENV.m, null, null, logo("marathon-logo-dark.svg", ENV.logoW)) +
'<div class="abs st-return" style="left:' + ENV.m + 'in;top:' + (ENV.m + lh + 0.13) + 'in">' +
'<div class="co">' + esc(c.company) + '</div>' + lines([c.street, c.cityStateZip || c.region]) + '</div>';
return face(ENV.w, ENV.h, inner, "env-front");
}
/* ---------- Pocket folder, 9 x 12in finished, 4in pockets ---------- */
var F = {
w: 19, h: 16, tab: 0.5, cover: 9, coverH: 12, pocketH: 4, spineGap: 0.125, chamfer: 0.25, tabInset: 0.25,
slitLen: 0.75, cardW: 3.5, cardH: 2, cardDrop: 1.75
};
F.spineX = F.tab + F.cover; /* 9.5 */
F.backX = F.tab; /* back cover x 0.5 to 9.5 */
F.frontX = F.spineX; /* front cover x 9.5 to 18.5 */
F.pocketW = F.cover - F.spineGap; /* 8.875 */
F.lpX = F.tab; /* flat left pocket, becomes inside RIGHT pocket */
F.rpX = F.spineX + F.spineGap; /* flat right pocket, becomes inside LEFT pocket */
/* Card slits on the inside right pocket, given in pocket coordinates (inside view, mouth at top),
then turned 180 degrees into flat coordinates. */
function slits() {
var u1 = (F.pocketW - F.cardW) / 2, u2 = u1 + F.cardW, v = F.cardDrop, d = F.slitLen / 2 / Math.SQRT2;
var inside = [[u1 - d, v - d, u1 + d, v + d], [u2 - d, v + d, u2 + d, v - d]];
return inside.map(function (s) {
return [F.lpX + F.pocketW - s[0], F.coverH + F.pocketH - s[1], F.lpX + F.pocketW - s[2], F.coverH + F.pocketH - s[3]];
});
}
F.slits = slits;
F.cardInside = function () { var u1 = (F.pocketW - F.cardW) / 2; return { u: u1, v: F.cardDrop - F.cardH }; };
/* Die outline, flat, as a list of points. Cut lines. */
F.outline = function () {
var t = F.tab, ti = F.tabInset, y0 = F.coverH, y1 = F.coverH + F.pocketH, ch = F.chamfer, R = F.tab + 2 * F.cover;
return [
[t, 0], [R, 0], [R, y0 + ti], [R + t, y0 + 2 * ti], [R + t, y1 - 2 * ti], [R, y1 - ti], [R, y1],
[F.rpX + ch, y1], [F.rpX, y1 - ch], [F.rpX, y0], [F.lpX + F.pocketW, y0], [F.lpX + F.pocketW, y1 - ch],
[F.lpX + F.pocketW - ch, y1], [t, y1], [t, y1 - ti], [0, y1 - 2 * ti], [0, y0 + 2 * ti], [t, y0 + ti], [t, 0]
];
};
F.scores = function () {
var t = F.tab, y0 = F.coverH, ti = F.tabInset, y1 = F.coverH + F.pocketH, R = F.tab + 2 * F.cover;
return [
[F.spineX, 0, F.spineX, y0],
[F.lpX, y0, F.lpX + F.pocketW, y0], [F.rpX, y0, R, y0],
[t, y0 + ti, t, y1 - ti], [R, y0 + ti, R, y1 - ti]
];
};
F.glue = function () {
var t = F.tab, ti = F.tabInset, y0 = F.coverH, y1 = F.coverH + F.pocketH, R = F.tab + 2 * F.cover;
return [
[[t, y0 + ti], [0, y0 + 2 * ti], [0, y1 - 2 * ti], [t, y1 - ti]],
[[R, y0 + ti], [R + t, y0 + 2 * ti], [R + t, y1 - 2 * ti], [R, y1 - ti]]
];
};
function photoBlock(photo, pos) {
return '<img class="photo" src="photos/' + esc(photo) + '" alt="" style="object-position:' + esc(pos) + '">';
}
/* Front cover, local coordinates, spine at x 0. Photo on top, navy below, logo never on the photo. */
var COVER = { photoH: 7.0, pad: 0.75 };
function frontCover(photo, pos) {
var cap = (window.MC_PHOTO_CAPTIONS || {})[photo] || "Photography by Marathon Creative";
var lw = 2.6;
return box(0, -B, F.cover + B, COVER.photoH + B, photoBlock(photo, pos), "overflow:hidden") +
box(0, COVER.photoH, F.cover + B, F.coverH - COVER.photoH, "", "background:var(--mc-surface-inverse)") +
box(COVER.pad, COVER.photoH + 0.22, F.cover - 2 * COVER.pad, null, '<div class="st-caption-inverse">On the cover: ' + esc(cap) + '</div>') +
box(COVER.pad, COVER.photoH + 0.78, null, null, '<div class="st-bar-inverse"></div>') +
box(COVER.pad, COVER.photoH + 0.98, F.cover - 2 * COVER.pad, null,
'<h1 class="st-cover-h">One team.<br>Nothing referred out.</h1>' +
'<p class="st-cover-lede">Photo, video, marketing, CRM, web, and print, built in-house in Greater Houston.</p>') +
box(COVER.pad, F.coverH - COVER.pad - lw / LOGO_RATIO, null, null, logo("marathon-logo-white.svg", lw)) +
'<div class="abs st-eyebrow-inverse" style="right:' + COVER.pad + 'in;bottom:' + (COVER.pad + 0.03) + 'in">' + esc(C().web) + '</div>';
}
var SERVICES = [
["Photography and drone", "Listings, land, showrooms, headshots"],
["Video and post", "Shot and edited in DaVinci Resolve"],
["3D tours and floor plans", "Zillow Showcase certified"],
["Marketing strategy", "The plan comes before production"],
["Social management", "Posting, community, monthly reporting"],
["Paid advertising", "Meta and Google, built and run"],
["Email and SMS", "Campaigns and drips on PaceCRM"],
["CRM buildouts", "Pipelines and automations on PaceCRM"],
["Branding and design", "Identity, collateral, and signage"],
["Websites and print", "Built, hosted, and printed in-house"]
];
function backCover() {
var p = 0.75, lw = 1.5;
return box(p, 4.55, F.cover - 2 * p, null, '<div class="st-eyebrow">What we do in-house</div>') +
box(p, 4.85, F.cover - 2 * p, null, '<h2 class="st-h3" style="font-size:20pt;letter-spacing:-0.015em;line-height:1.15">Every service under one roof, so nothing is handed to a vendor you never met.</h2>') +
box(p, 6.05, F.cover - 2 * p, null, '<ul class="st-services">' + SERVICES.map(function (s) {
return "<li>" + esc(s[0]) + "<span>" + esc(s[1]) + "</span></li>";
}).join("") + "</ul>") +
box(p, F.coverH - p - lw / LOGO_RATIO, null, null, logo("marathon-logo-dark.svg", lw)) +
'<div class="abs st-head-contact" style="right:' + p + 'in;bottom:' + p + 'in">' + lines([C().web, C().region]) + '</div>';
}
var PILLARS = [
["Strategic first", "The plan comes before the shoot, the post, or the print order."],
["Fully in-house", "Photo, video, design, web, CRM, and print. Nothing referred out."],
["Operationally sticky", "We build the systems you run on, then we run them with you."],
["Long game", "Built to compound your reputation, your pipeline, and your revenue."]
];
/* Inside left pocket, upright pocket coordinates, mouth at top. */
function pocketLeft() {
var p = 0.6;
/* Navy runs 0.125in past the mouth and the fold, and only 1/16in onto the glue tab. */
return box(-B / 2, -B, F.pocketW + B / 2 + B, F.pocketH + 2 * B, "", "background:var(--mc-surface-inverse)") +
box(p, 0.5, null, null, '<div class="st-bar-inverse"></div>') +
box(p, 0.7, F.pocketW - 2 * p, null, '<div class="st-eyebrow-inverse">How Marathon works</div>') +
box(p, 1.08, F.pocketW - 2 * p, null, '<div class="st-pillars">' + PILLARS.map(function (q) {
return '<div><h3 class="st-h3-inverse">' + esc(q[0]) + '</h3><p class="st-body-inverse">' + esc(q[1]) + "</p></div>";
}).join("") + "</div>");
}
/* Inside right pocket, holds the business card. Nothing printed where the card sits. */
function pocketRight() {
var p = 0.6;
return '<div class="abs st-eyebrow" style="left:' + p + 'in;bottom:0.55in">Your Marathon team</div>' +
'<div class="abs st-head-contact" style="right:' + p + 'in;bottom:0.55in">' + lines([C().web]) + '</div>';
}
function rotated(x, y, w, h, html) {
return box(x, y, w, h, html, "transform:rotate(180deg);transform-origin:50% 50%");
}
function folderOutside(photo, pos) {
var y0 = F.coverH;
var inner =
box(F.backX, 0, F.cover, F.coverH, backCover()) +
box(F.frontX, 0, F.cover, F.coverH, frontCover(photo, pos)) +
rotated(F.rpX, y0, F.pocketW, F.pocketH, pocketLeft()) +
rotated(F.lpX, y0, F.pocketW, F.pocketH, pocketRight());
return face(F.w, F.h, inner, "folder-flat");
}
/* The front cover alone at trim plus bleed, used for photo proofs. */
function folderCover(photo, pos) {
return face(F.cover, F.coverH, frontCover(photo, pos), "folder-cover");
}
/* Inside view as assembled, for the spec page. Pockets upright, card in the slits. */
function folderInside(person) {
var y0 = F.coverH - F.pocketH, ci = F.cardInside();
var rx = F.cover + F.spineGap;
var inner =
box(0, 0, 2 * F.cover, F.coverH, "", "background:var(--mc-surface-page)") +
box(0, y0, F.pocketW, F.pocketH, pocketLeft(), "overflow:hidden") +
box(rx, y0, F.pocketW, F.pocketH, pocketRight(), "background:var(--mc-surface-page);overflow:hidden") +
box(rx + ci.u, y0 + ci.v, F.cardW, F.cardH,
'<div style="position:absolute;left:' + (-B) + 'in;top:' + (-B) + 'in">' + cardFront(person) + '</div>',
"overflow:hidden;box-shadow:var(--mc-shadow-2);outline:0.5pt solid var(--mc-border-strong)");
return face(2 * F.cover, F.coverH, inner, "folder-inside");
}
window.MC_FACES = {
B: B, LOGO_RATIO: LOGO_RATIO, M_HEIGHT: M_HEIGHT,
CARD: CARD, LH: LH, ENV: ENV, F: F, COVER: COVER,
cardFront: cardFront, cardBack: cardBack,
letterheadFirst: letterheadFirst, letterheadSecond: letterheadSecond,
envelopeFront: envelopeFront,
folderOutside: folderOutside, folderCover: folderCover, folderInside: folderInside,
esc: esc, query: function (k, d) { var v = new URLSearchParams(location.search).get(k); return v == null || v === "" ? d : v; }
};
})();
press.js77 lines, 5.0 KB
/* Marathon Creative stationery, press sheet builder, v1.0.
Wraps a face in a press sheet: 0.125in bleed, 0.625in slug, crop marks outside the bleed,
registration targets, ink chips, and a job line. ?guides=1 adds trim, safe area, and a bleed veil
for checking on screen. Guides never go to press. */
(function () {
var B = 0.125, SLUG = 0.625, M = B + SLUG; /* trim sits 0.75in in from the sheet edge */
var HAIR = 0.25 / 72; /* 0.25pt registration hairline */
var MARK_GAP = 0.1875, MARK_LEN = 0.3125; /* marks start 1/16in outside the bleed */
var INKS = {
navy: { cls: "chip-navy", label: "PMS 5395" },
red: { cls: "chip-red", label: "PMS 7621" },
k: { cls: "chip-k", label: "Black" },
cmyk: { cls: "chip-cmyk", label: "CMYK" }
};
function pt(n) { return n / 72; }
function marksSVG(w, h, job, inks, extra) {
var SW = w + 2 * M, SH = h + 2 * M, x0 = M, y0 = M, x1 = M + w, y1 = M + h, s = "";
function L(a, b, c, d, cls, sw) { s += '<line class="' + cls + '" x1="' + a + '" y1="' + b + '" x2="' + c + '" y2="' + d + '" stroke-width="' + (sw || HAIR) + '"/>'; }
/* Crop marks at the four trim corners */
[[x0, y0, -1, -1], [x1, y0, 1, -1], [x0, y1, -1, 1], [x1, y1, 1, 1]].forEach(function (c) {
L(c[0] + c[2] * MARK_GAP, c[1], c[0] + c[2] * (MARK_GAP + MARK_LEN), c[1], "cut");
L(c[0], c[1] + c[3] * MARK_GAP, c[0], c[1] + c[3] * (MARK_GAP + MARK_LEN), "cut");
});
/* Registration targets, centre of left, right, and bottom slug */
function reg(cx, cy) {
var r = 0.07; s += '<circle class="reg" cx="' + cx + '" cy="' + cy + '" r="' + r + '" stroke-width="' + HAIR + '"/>';
s += '<circle class="reg" cx="' + cx + '" cy="' + cy + '" r="' + (r / 2.2) + '" stroke-width="' + HAIR + '"/>';
L(cx - r * 1.6, cy, cx + r * 1.6, cy, "reg"); L(cx, cy - r * 1.6, cx, cy + r * 1.6, "reg");
}
reg(M / 2, SH / 2); reg(SW - M / 2, SH / 2);
/* Ink chips, top slug, left */
var cx = x0, cy = 0.2, chip = 0.16, fs = pt(5);
inks.forEach(function (k) {
var ink = INKS[k];
s += '<rect class="' + ink.cls + '" x="' + cx + '" y="' + cy + '" width="' + chip + '" height="' + chip + '"/>';
s += '<rect class="chip-line" x="' + cx + '" y="' + cy + '" width="' + chip + '" height="' + chip + '" stroke-width="' + HAIR + '"/>';
s += '<text class="slug slug-b" x="' + (cx + chip + 0.05) + '" y="' + (cy + chip * 0.72) + '" font-size="' + fs + '">' + ink.label + '</text>';
cx += chip + 0.05 + ink.label.length * fs * 0.62 + 0.14;
});
/* Job line, bottom slug, left of centre target */
var jy = y1 + B + 0.24;
s += '<text class="slug" x="' + x0 + '" y="' + jy + '" font-size="' + pt(5) + '">' + MC_FACES.esc(job[0]) + '</text>';
s += '<text class="slug" x="' + x0 + '" y="' + (jy + pt(7)) + '" font-size="' + pt(5) + '">' + MC_FACES.esc(job[1]) + '</text>';
s += extra || "";
return '<svg class="marks" width="' + SW + 'in" height="' + SH + 'in" viewBox="0 0 ' + SW + ' ' + SH + '">' + s + '</svg>';
}
function guidesSVG(w, h) {
var SW = w + 2 * M, SH = h + 2 * M, sf = 0.125, fs = pt(5);
var outer = 'M' + (M - B) + ' ' + (M - B) + 'h' + (w + 2 * B) + 'v' + (h + 2 * B) + 'h' + (-(w + 2 * B)) + 'z';
var inner = 'M' + M + ' ' + M + 'v' + h + 'h' + w + 'v' + (-h) + 'z';
return '<svg class="marks guides" width="' + SW + 'in" height="' + SH + 'in" viewBox="0 0 ' + SW + ' ' + SH + '">' +
'<path class="g-veil" fill-rule="evenodd" d="' + outer + inner + '"/>' +
'<rect class="g-trim" x="' + M + '" y="' + M + '" width="' + w + '" height="' + h + '" stroke-width="' + pt(0.5) + '"/>' +
'<rect class="g-safe" x="' + (M + sf) + '" y="' + (M + sf) + '" width="' + (w - 2 * sf) + '" height="' + (h - 2 * sf) + '" stroke-width="' + pt(0.5) + '" stroke-dasharray="' + pt(2) + ' ' + pt(1.5) + '"/>' +
'<text class="g-t" x="' + (M + w - sf) + '" y="' + (M + sf - 0.03) + '" text-anchor="end" font-size="' + fs + '">SAFE 0.125IN</text>' +
'<text class="g-t" x="' + (M - B + 0.02) + '" y="' + (M - B - 0.04) + '" font-size="' + fs + '">BLEED 0.125IN</text>' +
'</svg>';
}
/* sheets: [{ face: html, job: [line1, line2], extra: svg string in sheet inches }] */
window.MC_PRESS = {
M: M, B: B, HAIR: HAIR,
build: function (opts) {
var w = opts.w, h = opts.h, guides = MC_FACES.query("guides", "0") === "1", out = "";
var style = document.createElement("style");
style.textContent = "@page { size: " + (w + 2 * M) + "in " + (h + 2 * M) + "in; margin: 0; } .sheet { width: " + (w + 2 * M) + "in; height: " + (h + 2 * M) + "in; }";
document.head.appendChild(style);
opts.sheets.forEach(function (sh) {
out += '<section class="sheet">' + (sh.face || "") + marksSVG(w, h, sh.job, sh.inks || opts.inks, sh.extra) + (guides && sh.face ? guidesSVG(w, h) : "") + "</section>";
});
document.body.innerHTML = out;
}
};
})();
print-data.js214 lines, 5.7 KB
/* GENERATED by make_data.py from tokens/v/best/print-tokens.csv and the press PDFs. Do not edit. */
window.MC_PRINT = {
"--mc-navy-100": {
"token": "--mc-navy-100",
"name": "Marathon Navy",
"cmyk_coated": "88 65 56 70",
"cmyk_uncoated": "80 58 50 62",
"pantone_coated": "5395 C",
"pantone_uncoated": "5395 U",
"confirm": "uncoated",
"press_note": "Rich black build. K70 carries the depth, C88 M65 Y56 turn it navy. Total ink 279%. See press note."
},
"--mc-navy-soft": {
"token": "--mc-navy-soft",
"name": "Navy Soft",
"cmyk_coated": "84 62 50 45",
"cmyk_uncoated": "78 56 46 38",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated and uncoated",
"press_note": "Process build only. Never request a spot for it."
},
"--mc-red-100": {
"token": "--mc-red-100",
"name": "Marathon Red",
"cmyk_coated": "22 100 92 17",
"cmyk_uncoated": "15 100 88 10",
"pantone_coated": "7621 C",
"pantone_uncoated": "7621 U",
"confirm": "uncoated",
"press_note": "Solid M100 keeps it clean. Never let a RIP convert it from RGB."
},
"--mc-red-shade": {
"token": "--mc-red-shade",
"name": "Red Shade",
"cmyk_coated": "n/a",
"cmyk_uncoated": "n/a",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "approved",
"press_note": "Screen interaction state. Not a print colour."
},
"--mc-accent-on-inverse": {
"token": "--mc-accent-on-inverse",
"name": "Red Bright",
"cmyk_coated": "12 98 88 3",
"cmyk_uncoated": "6 100 86 0",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated and uncoated",
"press_note": "Process build, on navy only. On a two-spot job use 7621 C over 5395 C instead."
},
"--mc-red-tint": {
"token": "--mc-red-tint",
"name": "Red Tint",
"cmyk_coated": "0 7 3 0",
"cmyk_uncoated": "0 6 2 0",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated and uncoated",
"press_note": "Light tint. Drops out on uncoated stock below 5%, proof it."
},
"--mc-charcoal": {
"token": "--mc-charcoal",
"name": "Charcoal",
"cmyk_coated": "0 0 0 90",
"cmyk_uncoated": "0 0 0 88",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "approved",
"press_note": "Single K plate so small type never misregisters."
},
"--mc-slate-700": {
"token": "--mc-slate-700",
"name": "Slate 700",
"cmyk_coated": "0 0 0 78",
"cmyk_uncoated": "0 0 0 75",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "approved",
"press_note": "Printed as single K for text. The cool cast is a screen nuance and is dropped on press on purpose."
},
"--mc-slate-500": {
"token": "--mc-slate-500",
"name": "Slate 500",
"cmyk_coated": "0 0 0 58",
"cmyk_uncoated": "0 0 0 55",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "approved",
"press_note": "Single K for text."
},
"--mc-gray-300": {
"token": "--mc-gray-300",
"name": "Gray 300",
"cmyk_coated": "20 12 8 0",
"cmyk_uncoated": "18 10 6 0",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated and uncoated",
"press_note": "Hairlines in this colour print as K25 single plate when under 1pt."
},
"--mc-gray-200": {
"token": "--mc-gray-200",
"name": "Gray 200",
"cmyk_coated": "10 6 3 0",
"cmyk_uncoated": "9 5 2 0",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated and uncoated",
"press_note": "1px rules print as K12 single plate."
},
"--mc-gray-100": {
"token": "--mc-gray-100",
"name": "Gray 100",
"cmyk_coated": "4 2 1 0",
"cmyk_uncoated": "0 0 0 5",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated and uncoated",
"press_note": "On uncoated, run as K5 so the tint holds."
},
"--mc-gray-50": {
"token": "--mc-gray-50",
"name": "Gray 50",
"cmyk_coated": "0 0 0 3",
"cmyk_uncoated": "0 0 0 0",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated",
"press_note": "Too light to hold on press. On uncoated it is paper white, use Gray 100 for printed row banding."
},
"--mc-white": {
"token": "--mc-white",
"name": "White",
"cmyk_coated": "0 0 0 0",
"cmyk_uncoated": "0 0 0 0",
"pantone_coated": "paper",
"pantone_uncoated": "paper",
"confirm": "approved",
"press_note": "No ink. White on navy is a knockout, minimum 7pt at 600."
},
"--mc-green": {
"token": "--mc-green",
"name": "Status Green",
"cmyk_coated": "80 22 80 12",
"cmyk_uncoated": "76 18 76 6",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated and uncoated",
"press_note": "Reports and dashboards only."
},
"--mc-amber": {
"token": "--mc-amber",
"name": "Status Amber",
"cmyk_coated": "20 45 95 5",
"cmyk_uncoated": "16 40 92 0",
"pantone_coated": "none",
"pantone_uncoated": "none",
"confirm": "coated and uncoated",
"press_note": "Reports and dashboards only."
}
};
window.MC_COVERAGE = {
"cardFront": {
"navy": 1.0,
"red": 0.3,
"k": 0.8,
"paper": 95.1,
"grey": 1.2,
"photo": 1.6
},
"cardBack": {
"navy": 96.0,
"red": 0.5,
"k": 0.9,
"paper": 1.2,
"grey": 0.6,
"photo": 0.8
},
"lhFirst": {
"navy": "under 0.1",
"red": "under 0.1",
"k": "under 0.1",
"paper": 99.3,
"grey": 0.3,
"photo": 0.2
},
"lhSecond": {
"navy": "under 0.1",
"red": "under 0.1",
"k": "under 0.1",
"paper": 99.5,
"grey": 0.2,
"photo": "under 0.1"
},
"envelope": {
"navy": 0.1,
"red": "under 0.1",
"k": 0.1,
"paper": 99.4,
"grey": 0.1,
"photo": 0.2
},
"folder": {
"navy": 25.5,
"red": "under 0.1",
"k": 5.6,
"paper": 50.5,
"grey": 5.9,
"photo": 12.5
}
};
spec.js72 lines, 4.9 KB
/* Marathon Creative stationery, dimensioned drawing helper for the spec pages, v1.0.
MC_DRAW.figure(opts) returns the real face at a stated scale with an SVG overlay in page inches:
bleed veil, trim line, dashed safe line, dimension lines with extension lines, leader callouts, and zones.
Item coordinates are inches from the trim top left, the same system faces.js draws in. */
(function () {
var B = 0.125;
function pt(n) { return n / 72; }
function fmt(n) { return (Math.round(n * 10000) / 10000).toString().replace(/^0\./, "0.") + "in"; }
function figure(o) {
var s = o.s, pad = o.pad || [0.35, 0.35, 0.35, 0.35];
var fw = (o.w + 2 * B) * s, fh = (o.h + 2 * B) * s;
var CW = pad[3] + fw + pad[1], CH = pad[0] + fh + pad[2];
function X(x) { return pad[3] + (x + B) * s; }
function Y(y) { return pad[0] + (y + B) * s; }
var fs = pt(o.fs || 6.5), hair = pt(0.5), g = "";
function line(a, b, c, d, cls, extra) { g += '<line class="' + cls + '" x1="' + a + '" y1="' + b + '" x2="' + c + '" y2="' + d + '" stroke-width="' + hair + '"' + (extra || "") + '/>'; }
function text(x, y, t, anchor, cls, rot) {
g += '<text class="' + (cls || "d-t") + '" font-size="' + fs + '" x="' + x + '" y="' + y + '" text-anchor="' + (anchor || "middle") + '"' +
(rot ? ' transform="rotate(' + rot + ' ' + x + ' ' + y + ')"' : "") + '>' + t + '</text>';
}
function tick(x, y) { var k = pt(2.2); line(x - k, y + k, x + k, y - k, "d-l"); }
if (o.veil !== false) {
var ob = 'M' + X(-B) + ' ' + Y(-B) + 'H' + X(o.w + B) + 'V' + Y(o.h + B) + 'H' + X(-B) + 'Z';
var ib = 'M' + X(0) + ' ' + Y(0) + 'V' + Y(o.h) + 'H' + X(o.w) + 'V' + Y(0) + 'Z';
g += '<path class="d-veil" fill-rule="evenodd" d="' + ob + ib + '"/>';
g += '<rect class="d-trim" x="' + X(0) + '" y="' + Y(0) + '" width="' + o.w * s + '" height="' + o.h * s + '" stroke-width="' + hair + '"/>';
}
if (o.safe) {
g += '<rect class="d-safe" x="' + X(o.safe) + '" y="' + Y(o.safe) + '" width="' + (o.w - 2 * o.safe) * s + '" height="' + (o.h - 2 * o.safe) * s +
'" stroke-width="' + hair + '" stroke-dasharray="' + pt(2) + ' ' + pt(1.5) + '"/>';
}
(o.zones || []).forEach(function (z) {
g += '<rect class="' + (z.cls || "d-zone") + '" x="' + X(z.x) + '" y="' + Y(z.y) + '" width="' + z.w * s + '" height="' + z.h * s + '" stroke-width="' + hair + '"/>';
if (z.label) text(X(z.x) + pt(3), Y(z.y) + fs + pt(3), z.label, "start", "d-zt");
});
(o.paths || []).forEach(function (p) {
var d = p.pts.map(function (q, i) { return (i ? "L" : "M") + X(q[0]) + " " + Y(q[1]); }).join("");
g += '<path class="' + p.cls + '" d="' + d + '" stroke-width="' + pt(p.sw || 0.75) + '"' + (p.dash ? ' stroke-dasharray="' + pt(3) + ' ' + pt(2) + '"' : "") + '/>';
});
(o.dims || []).forEach(function (d) {
var lab = d.label || fmt(Math.abs((d.h ? d.x2 - d.x1 : d.y2 - d.y1)));
if (d.h) {
var ly = Y(d.ly);
if (d.y != null && d.y !== d.ly) { line(X(d.x1), Y(d.y), X(d.x1), ly + (d.ly < d.y ? -pt(2) : pt(2)), "d-x"); line(X(d.x2), Y(d.y), X(d.x2), ly + (d.ly < d.y ? -pt(2) : pt(2)), "d-x"); }
line(X(d.x1), ly, X(d.x2), ly, "d-l"); tick(X(d.x1), ly); tick(X(d.x2), ly);
var tx = d.tx != null ? X(d.tx) : (X(d.x1) + X(d.x2)) / 2;
text(tx, ly - pt(2.5) + (d.below ? fs + pt(4) : 0), lab, d.anchor || "middle");
} else {
var lx = X(d.lx);
if (d.x != null && d.x !== d.lx) { line(X(d.x), Y(d.y1), lx + (d.lx < d.x ? -pt(2) : pt(2)), Y(d.y1), "d-x"); line(X(d.x), Y(d.y2), lx + (d.lx < d.x ? -pt(2) : pt(2)), Y(d.y2), "d-x"); }
line(lx, Y(d.y1), lx, Y(d.y2), "d-l"); tick(lx, Y(d.y1)); tick(lx, Y(d.y2));
var ty = d.ty != null ? Y(d.ty) : (Y(d.y1) + Y(d.y2)) / 2;
if (d.flat) text(lx + (d.right ? pt(3) : -pt(3)), ty + fs / 3, lab, d.right ? "start" : "end");
else text(lx - pt(2.5), ty, lab, "middle", null, -90);
}
});
(o.callouts || []).forEach(function (c, i) {
var px = X(c.x), py = Y(c.y), tx = X(c.tx), ty = Y(c.ty);
g += '<circle class="d-dot" cx="' + px + '" cy="' + py + '" r="' + pt(1.4) + '"/>';
line(px, py, tx, ty, "d-lead");
text(tx + (c.anchor === "end" ? -pt(2) : pt(2)), ty + fs / 3, c.text, c.anchor || "start", "d-ct");
});
var svg = '<svg class="d-svg" width="' + CW + 'in" height="' + CH + 'in" viewBox="0 0 ' + CW + ' ' + CH + '">' + g + (o.svg ? o.svg(X, Y, s) : "") + '</svg>';
return '<div class="fig" style="width:' + CW + 'in;height:' + CH + 'in">' +
'<div class="fig-art" style="left:' + pad[3] + 'in;top:' + pad[0] + 'in;width:' + fw + 'in;height:' + fh + 'in">' +
'<div style="transform:scale(' + s + ');transform-origin:0 0">' + o.face + '</div></div>' + svg + '</div>';
}
window.MC_DRAW = { figure: figure, fmt: fmt };
})();
make_data.py57 lines, 3.1 KB
# Marathon Creative stationery, spec data builder, v1.0.
# Reads the token layer's print-tokens.csv (the one source of ink builds) and measures ink coverage
# from the rendered press PDFs, then writes print-data.js for spec.html. Run by build.sh.
# Usage: python3 make_data.py <renders dir>
import csv, json, os, sys
import fitz
HERE = os.path.dirname(os.path.abspath(__file__))
RENDERS = sys.argv[1] if len(sys.argv) > 1 else os.path.join(HERE, 'renders')
CSV = os.path.join(HERE, '..', '..', '..', 'tokens', 'v', 'best', 'print-tokens.csv')
MARGIN_IN = 0.75 # trim sits 0.75in in from the press sheet edge, see press.js
DPI = 120 # small items; the folder is measured at 40 to keep the run short
rows = {r['token']: r for r in csv.DictReader(open(CSV, encoding='utf-8'))}
def rgb(tok): return tuple(int(v) for v in rows[tok]['rgb'].split())
# Ink families measured on the sheet. Each is a set of screen colours that print on that plate.
FAMILIES = {
'navy': ['--mc-navy-100'],
'red': ['--mc-red-100', '--mc-accent-on-inverse'],
'k': ['--mc-charcoal', '--mc-slate-700', '--mc-slate-500'],
'paper': ['--mc-white'],
'grey': ['--mc-gray-200', '--mc-gray-300', '--mc-gray-100'],
}
PALETTE = [(fam, rgb(t)) for fam, toks in FAMILIES.items() for t in toks]
def measure(pdf, page=0, dpi=DPI):
doc = fitz.open(pdf); pg = doc[page]
pix = pg.get_pixmap(dpi=dpi)
m = int(round(MARGIN_IN * dpi)); w, h, n = pix.width, pix.height, pix.n
s = pix.samples; counts = {k: 0 for k in list(FAMILIES) + ['photo']}; total = 0
for y in range(m, h - m):
row = y * w * n
for x in range(m, w - m):
i = row + x * n; c = (s[i], s[i + 1], s[i + 2]); total += 1
best, bd = None, 1e9
for fam, p in PALETTE:
d = (c[0] - p[0]) ** 2 + (c[1] - p[1]) ** 2 + (c[2] - p[2]) ** 2
if d < bd: best, bd = fam, d
counts[best if bd < 900 else 'photo'] += 1
return {k: (round(100 * v / total, 1) if 100 * v / total >= 0.1 else ('under 0.1' if v else 0)) for k, v in counts.items()}
cov = {}
for key, pdf, page in [('cardFront', 'press-business-card.pdf', 0), ('cardBack', 'press-business-card.pdf', 1),
('lhFirst', 'press-letterhead.pdf', 0), ('lhSecond', 'press-letterhead.pdf', 1),
('envelope', 'press-envelope.pdf', 0), ('folder', 'press-pocket-folder.pdf', 0)]:
p = os.path.join(RENDERS, pdf)
if os.path.exists(p): cov[key] = measure(p, page, 40 if key == 'folder' else DPI)
keep = ['token', 'name', 'cmyk_coated', 'cmyk_uncoated', 'pantone_coated', 'pantone_uncoated', 'confirm', 'press_note']
inks = {t: {k: rows[t][k] for k in keep} for t in rows}
out = '/* GENERATED by make_data.py from tokens/v/best/print-tokens.csv and the press PDFs. Do not edit. */\n'
out += 'window.MC_PRINT = ' + json.dumps(inks, indent=1) + ';\n'
out += 'window.MC_COVERAGE = ' + json.dumps(cov, indent=1) + ';\n'
open(os.path.join(HERE, 'print-data.js'), 'w', encoding='utf-8').write(out)
print('print-data.js written', json.dumps(cov))
build.sh43 lines, 2.1 KB
#!/bin/sh
# Marathon Creative stationery, full rebuild. Run from the repo root:
# sh build/stationery/v/r01/build.sh
# Renders every press PDF, measures ink coverage, renders the spec, and rasterizes it all at 150dpi.
set -e
# Run from the repo root. Paths stay relative because the repo path contains a space.
D=$(dirname "$0")
[ -f build/_shared/render.mjs ] || { echo "Run this from the repo root"; exit 1; }
R="$D/renders"
RENDER="node build/_shared/render.mjs"
RASTER="python3 build/_shared/raster.py"
mkdir -p "$R"
for f in business-card letterhead envelope pocket-folder; do
$RENDER pdf "$D/$f.html" "$R/press-$f.pdf"
rm -rf "$R/press-$f"; $RASTER "$R/press-$f.pdf" "$R/press-$f" 150
$RENDER pdf "$D/$f.html?guides=1" "$R/guides-$f.pdf"
rm -rf "$R/guides-$f"; $RASTER "$R/guides-$f.pdf" "$R/guides-$f" 150
rm "$R/guides-$f.pdf"
done
# Taylor's card, the long name and long title case
$RENDER pdf "$D/business-card.html?person=taylor" "$R/press-business-card-taylor.pdf"
rm -rf "$R/press-business-card-taylor"; $RASTER "$R/press-business-card-taylor.pdf" "$R/press-business-card-taylor" 150
# Sample letter on the digital letterhead
$RENDER pdf "$D/letter.html" "$R/letter.pdf"
$RASTER "$R/letter.pdf" "$R/letter-pages" 150
cp "$R/letter-pages/p01.png" "$R/letter.png"
# Folder cover photo proofs: tight interior, wide aerial, portrait original, red lot line
proof() {
$RENDER pdf "$D/pocket-folder.html?view=cover&photo=$1&pos=$2" "$R/_cover.pdf"
python3 -c "import fitz,sys; d=fitz.open(sys.argv[1]); d[0].get_pixmap(dpi=150).save(sys.argv[2])" "$R/_cover.pdf" "$R/$3"
rm "$R/_cover.pdf"
}
proof mc_retouched_05.jpg "50%25%2050%25" photo-interior.png
proof mc_rosehill_16.jpg "50%25%2050%25" photo-aerial.png
proof mc_retouched_08.jpg "50%25%2035%25" photo-portrait.png
proof mc_fullres_12.jpg "50%25%2050%25" photo-boundary.png
# Coverage and ink data, then the spec
python3 "$D/make_data.py" "$R"
$RENDER pdf "$D/spec.html" "$R/spec.pdf"
rm -rf "$R/spec"; $RASTER "$R/spec.pdf" "$R/spec" 150
cp "$R/spec/p01.png" "$R/primary.png"
echo "stationery build done"
