Skip to content
Design system
v1.0
Tier 1, Marathon to the world

Direct mail

Confirmed

Postcards and door hangers with bleed, safe area, and CMYK press proofs.

Champion r02Confirmed in r02Repo folder build/direct-mail/v/best/
Direct mail, primary render

Primary render. Select it to open full size.

Renders

Every render from the champion round

Rules

How to use it, from the piece README

Three press-ready pieces Marathon uses to promote its own services. Every colour and type size comes from ../../../tokens/v/best/tokens.css. Do not type a colour into these files.

What is in here

FileWhat it makes
postcard-6x11.htmlEDDM postcard, 6 x 11in trim, front and back
postcard-6x9.htmlEDDM postcard, 6x9 class, 6.25 x 9in trim, front and back
door-hanger.htmlDoor hanger, 4.25 x 11in, front, back, and die line on page 3
spec.htmlSix Letter pages of measurements, stocks, ink builds, USPS rules, and preflight
mail.css, mail.js, spec.css, spec.jsShared styles and behaviour
photo-credits.jsThe photo credit register. One line per photo file, the caption every card prints
job-shoot-0412.jpgTest fixture, a copy of mc_retouched_06 under an unlisted name, used to prove a missing credit hides the caption
qr.js, build_qr.pyThe QR code. Rerun python3 build_qr.py <url> to point it somewhere else

Why the 6x9 is 6.25 x 9in

EDDM only accepts flats: longer than 10.5in, taller than 6.125in, or thicker than 0.25in. A true 6 x 9in card is letter size and the post office will reject it as EDDM. If a client insists on a true 6 x 9, it goes as addressed mail from a list. See spec page 3.

Make a press file

  1. Edit the copy in the HTML. Each headline has a comment saying how long it can be.
  2. To swap the hero photo without editing, add ?photo=mc_rosehill_16.jpg&pos=50% 40%. The caption changes with it. You never type a caption into a card.
  3. Check it with ?guides=1. Type must stay inside the dashed safe line and out of every red zone.
  4. Render: node build/_shared/render.mjs pdf build/direct-mail/v/r02/postcard-6x11.html out.pdf
  5. Send the vendor the PDF, print-tokens.csv from the token layer, and spec pages 1 to 6.

Photo credits

The small caption on the photo is looked up in photo-credits.js by the file name of the photo the card is showing. Swap the photo and the credit swaps with it.

  • Photo listed in the register: its credit prints.
  • Photo not listed: no caption prints at all. Nothing is better than a wrong credit.
  • New shoot for a drop: add one line to photo-credits.js, file name on the left, true credit on the right, 38 characters or fewer. Or pass &credit=Your credit on the URL for a one-off. ?credit= is ignored for any photo already in the register, so it cannot overwrite a true credit.

Rules that keep it on brand

  • Type never sits on the photo. It goes on the navy band or the white field.
  • If a headline clips with an ellipsis, cut words. Do not shrink the type.
  • Service lists hold five lines. A sixth is hidden on purpose.
  • The right side of every postcard back is the USPS mail panel. Only the indicia, return block, and Local Postal Customer go there.
  • Door hangers never go in or on a mailbox. Federal law, 18 U.S.C. 1725.

For Jacob to confirm before a run

  • Offers: 30-minute strategy call, free 30-minute audit, route price in two business days.
  • QR target is marathoncreative.co. A landing page per drop would count scans.
  • EDDM Retail postage working figure is $0.25 a piece. Check the current USPS price.
  • The return block has no street address. Add one for any permit or BMEU run.
  • Stocks and coatings pending a vendor drawdown.
  • Photos are preview fixtures from brief/real-photos/. Final runs need 300ppi shoot files at size, see the spec pages for pixel counts.

Renders

renders/press-*.pdf are the press files at trim plus 0.125in bleed. renders/press-*-cmyk-proof.pdf are Ghostscript CMYK conversions for proofing only, the vendor still maps navy and red to the builds on spec page 5. renders/press-*/ and renders/spec/ hold 150dpi page PNGs. renders/guides-*.png show the guides view. renders/photo-interior.png, photo-aerial.png, photo-portrait.png, and photo-boundary.png show all three fronts on each test photo. renders/caption-check.png shows a listed photo, an unlisted photo, and an unlisted photo with ?credit=.

Use it

Files to download and code to copy

  • Whole piece, source files13 files, zip, 372.0 KB. Paths inside follow the repo layout, so put tokens.css beside them as the README says.
    Download
  • press-door-hanger-cmyk-proof.pdfPDF, 10.9 MB
    Download
  • press-door-hanger.pdfPDF, 2.7 MB
    Download
  • press-postcard-6x9-cmyk-proof.pdfPDF, 1.1 MB
    Download
  • press-postcard-6x9.pdfPDF, 1.4 MB
    Download
  • press-postcard-6x11-cmyk-proof.pdfPDF, 1.6 MB
    Download
  • press-postcard-6x11.pdfPDF, 1.7 MB
    Download
  • spec.pdfPDF, 10.5 MB
    Download

Copy-paste code

mail.css177 lines, 9.4 KB
/* Marathon direct mail, press artwork styles.
   Every colour, weight, and type size comes from tokens.css. Product geometry (trim, bleed,
   mail panel) is set per product file as --dm-* variables in inches.
   No hex values in this file. If a colour is missing, it is a token decision for Jacob. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--mc-surface-page); }
body {
  font-family: var(--mc-font);
  color: var(--mc-text-primary);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  font-kerning: normal;
}

/* Geometry. Trim plus bleed on every side. */
.sheet {
  --dm-b: var(--mc-print-bleed);
  --dm-safe: calc(var(--mc-print-safe) * 2);      /* 0.25in text safe inside trim */
  --dm-sw: calc(var(--dm-w) + var(--dm-b) * 2);
  --dm-sh: calc(var(--dm-h) + var(--dm-b) * 2);
  position: relative; overflow: hidden;
  width: var(--dm-sw); height: var(--dm-sh);
  background: var(--mc-surface-page);
  page-break-after: always; break-after: page;
}
.sheet:last-of-type { page-break-after: auto; break-after: auto; }
/* Everything inside .trim is placed in trim coordinates, 0,0 is the trim corner. */
.trim { position: absolute; left: var(--dm-b); top: var(--dm-b); width: var(--dm-w); height: var(--dm-h); }
.abs { position: absolute; }

/* Photo. Runs to the bleed edge of whatever box it sits in. */
.dm-photo {
  position: absolute; background-color: var(--mc-surface-inverse-raised);
  background-size: cover; background-position: var(--dm-pos, 50% 50%);
}
.dm-caption {
  position: absolute; font-size: var(--mc-print-type-appname-size); font-weight: var(--mc-weight-semibold);
  line-height: 1.3; color: var(--mc-text-inverse); background: var(--mc-scrim-photo-strong);
  padding: 0.06in 0.1in; max-width: 2.6in;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* No credit for the photo shown means no caption box. Never an empty scrim chip. */
.dm-caption[hidden], .dm-caption:empty { display: none; }

/* Navy band. The only place type meets the photo side. */
.dm-band { position: absolute; background: var(--mc-surface-inverse); color: var(--mc-text-inverse); }

/* Logo. Width is set per use. Clear space is the M height, 0.43 of the lockup height. */
.dm-logo { position: absolute; display: block; height: auto; }

/* Type roles, print sizes from tokens. */
.dm-eyebrow {
  font-size: var(--mc-print-type-eyebrow-size); font-weight: var(--mc-type-eyebrow-weight);
  letter-spacing: var(--mc-type-eyebrow-tracking); text-transform: uppercase;
  color: var(--mc-text-label); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-band .dm-eyebrow { color: var(--mc-text-inverse-secondary); }
.dm-rule { display: block; width: var(--mc-doc-divider-width); height: var(--mc-doc-divider-height); background: var(--mc-border-accent); }
.dm-band .dm-rule { background: var(--mc-accent-on-inverse); }

.dm-display {
  font-weight: var(--mc-type-h1-weight); letter-spacing: var(--mc-type-h1-tracking);
  line-height: 1.04; color: var(--mc-text-heading);
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  text-wrap: balance;
}
.dm-band .dm-display { color: var(--mc-text-inverse); }
.dm-h2 {
  font-size: var(--mc-print-type-h2-size); font-weight: var(--mc-type-h2-weight);
  letter-spacing: var(--mc-type-h2-tracking); line-height: 1.12; color: var(--mc-text-heading);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  text-wrap: balance;
}
.dm-lede {
  font-size: 11pt; font-weight: var(--mc-type-lede-weight); line-height: 1.4;
  color: var(--mc-text-secondary);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.dm-band .dm-lede { color: var(--mc-text-inverse-secondary); font-weight: var(--mc-weight-regular); }
.dm-body { font-size: var(--mc-print-type-small-size); line-height: 1.42; color: var(--mc-text-primary); }

/* Service columns. Red rule on top, five lines each, the sixth is cut so it cannot crowd the CTA. */
.dm-cols { position: absolute; display: grid; column-gap: 0.2in; }
.dm-col { border-top: var(--mc-border-width-bar) solid var(--mc-border-accent); padding-top: 0.09in; }
.dm-col h3 {
  font-size: 9.5pt; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading);
  line-height: 1.2; margin-bottom: 0.06in;
}
.dm-col { min-width: 0; }
.dm-col ul { list-style: none; font-size: 8pt; line-height: 1.38; max-height: calc(5 * 1.38em); overflow: hidden; }
.dm-col li { font-size: 8pt; line-height: 1.38; color: var(--mc-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-col li b { font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); }

/* Numbered steps, used on the EDDM card. */
.dm-steps { position: absolute; display: grid; column-gap: 0.18in; }
.dm-step { border-top: var(--mc-border-width-hairline) solid var(--mc-border-strong); padding-top: 0.08in; }
.dm-step .n {
  font-size: 16pt; font-weight: var(--mc-weight-extrabold); color: var(--mc-text-label);
  line-height: 1; font-variant-numeric: var(--mc-numeric-tabular); margin-bottom: 0.05in;
}
.dm-step h3 { font-size: 9pt; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); line-height: 1.2; margin-bottom: 0.04in; }
.dm-step p {
  font-size: 7.5pt; line-height: 1.38; color: var(--mc-text-secondary);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

/* Stat blocks. Numerals are tabular. */
.dm-stats { position: absolute; display: grid; column-gap: 0.18in; }
.dm-stat .v {
  font-size: 20pt; font-weight: var(--mc-weight-extrabold); color: var(--mc-text-heading);
  letter-spacing: var(--mc-type-stat-tracking); line-height: 1; font-variant-numeric: var(--mc-numeric-tabular);
  white-space: nowrap;
}
.dm-stat .l { font-size: 7.5pt; font-weight: var(--mc-weight-semibold); color: var(--mc-text-secondary); line-height: 1.3; margin-top: 0.04in; }

/* Call to action row. */
.dm-cta { position: absolute; display: flex; align-items: center; gap: 0.16in; }
.dm-cta .qr-slot { flex: none; }
.dm-cta .t { min-width: 0; }
.dm-cta .t strong {
  display: block; font-size: 12pt; font-weight: var(--mc-weight-extrabold); color: var(--mc-text-heading);
  letter-spacing: var(--mc-type-h2-tracking); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-cta .t span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 8pt; line-height: 1.4; color: var(--mc-text-secondary); margin-top: 0.03in;
}
.dm-cta .t em { font-style: normal; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); }
.dm-url { font-weight: var(--mc-weight-bold); font-size: 11pt; letter-spacing: 0.01em; white-space: nowrap; }
.dm-fine { font-size: 6.5pt; line-height: 1.4; color: var(--mc-text-tertiary); }

/* QR. Ink in heading navy, quiet zone in white, never on a photo. */
.qr-slot svg { display: block; width: 100%; height: 100%; }
.mc-qr-bg { fill: var(--mc-surface-page); }
.mc-qr-ink { fill: var(--mc-text-heading); }

/* USPS mail panel. Unprinted white. Only the indicia and the address block live here. */
.dm-mailpanel { position: absolute; background: var(--mc-surface-page); }
.dm-mailrule { position: absolute; width: var(--mc-border-width-hairline); background: var(--mc-border-strong); }
.dm-indicia {
  position: absolute; width: 1.0in; height: 0.78in;
  border: 1pt solid var(--mc-text-primary);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-size: 7pt; font-weight: var(--mc-weight-bold); line-height: 1.22; letter-spacing: 0.04em;
  color: var(--mc-text-primary); text-align: center; text-transform: uppercase;
}
.dm-address {
  position: absolute; font-size: 10pt; font-weight: var(--mc-weight-semibold);
  color: var(--mc-text-primary); line-height: 1.3; letter-spacing: 0.02em;
}
.dm-return { position: absolute; font-size: 7pt; line-height: 1.35; color: var(--mc-text-primary); }
.dm-return b { font-weight: var(--mc-weight-bold); }

/* Guides, shown with ?guides=1. Never printed in the press file. */
.g { display: none; position: absolute; pointer-events: none; }
body.guides .g { display: block; }
.g-bleed { inset: 0; outline: 1pt solid var(--mc-accent); outline-offset: -1pt; }
.g-trim { left: var(--dm-b); top: var(--dm-b); width: var(--dm-w); height: var(--dm-h); outline: 1pt solid var(--mc-text-heading); }
.g-safe {
  left: calc(var(--dm-b) + var(--dm-safe)); top: calc(var(--dm-b) + var(--dm-safe));
  width: calc(var(--dm-w) - var(--dm-safe) * 2); height: calc(var(--dm-h) - var(--dm-safe) * 2);
  outline: 1pt dashed var(--mc-status-info);
}
.g-zone { outline: 1.25pt dashed var(--mc-accent); background: rgb(var(--mc-red-100-rgb) / 0.06); }
.g-zone i {
  position: absolute; left: 0.05in; bottom: 0.04in; font-style: normal;
  font-size: 6pt; font-weight: var(--mc-weight-bold); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mc-accent); white-space: nowrap;
}
.g-die { fill: none; stroke: var(--mc-accent); stroke-width: 1.25pt; }

/* Side selection, ?side=front or ?side=back. */
body.side-front .sheet.back, body.side-back .sheet.front, body.side-die .sheet:not(.die),
body.side-front .sheet.die, body.side-back .sheet.die { display: none; }
mail.js42 lines, 2.3 KB
/* Marathon direct mail, page behaviour. Plain JS, no build step.
   ?side=front|back|die   show one face only (used by the spec pages and for proofs)
   ?guides=1              draw bleed, trim, safe, mail panel, and die guides
   ?photo=file.jpg        swap the hero photo, file must sit in brief/real-photos or the job folder
   ?pos=50% 40%           move the photo focal point
   ?credit=Text           credit for a NEW photo that is not yet in photo-credits.js.
                          Ignored for any photo already listed, the register always wins.
   Photo credit rule: the caption is never typed into a card. It is looked up from
   photo-credits.js by the file name of the photo the card is actually showing. A photo with
   no listed credit, and no ?credit=, prints with no caption at all. */
(function () {
  var q = new URLSearchParams(location.search);
  var side = q.get('side');
  if (side) document.body.classList.add('side-' + side);
  if (q.get('guides') === '1') document.body.classList.add('guides');
  var photo = q.get('photo'), pos = q.get('pos'), credit = q.get('credit');
  var register = window.MC_PHOTO_CREDITS || {};
  function fileName(p) { return p.split('?')[0].split('/').pop(); }
  function src(p) { return p.indexOf('/') < 0 ? '../../../../brief/real-photos/' + p : p; }

  document.querySelectorAll('.dm-photo[data-photo]').forEach(function (el) {
    var swap = el.hasAttribute('data-swap');
    var file = (swap && photo) ? photo : el.getAttribute('data-photo');
    el.setAttribute('data-photo', file);
    el.style.backgroundImage = 'url("' + src(file) + '")';
    if (swap && pos) el.style.setProperty('--dm-pos', pos);

    // The caption belongs to the face this photo sits on.
    var face = el.closest('.trim') || document;
    var cap = face.querySelector('.dm-caption[data-caption]');
    if (!cap) return;
    var name = fileName(file);
    var text = Object.prototype.hasOwnProperty.call(register, name) ? register[name]
      : (swap && photo && credit ? credit : '');
    text = (text || '').trim();
    cap.textContent = text;
    cap.hidden = !text;
    cap.setAttribute('data-credit-for', name);
  });
  document.querySelectorAll('.qr-slot').forEach(function (el) { el.innerHTML = window.MC_QR || ''; });
})();
spec.css83 lines, 7.3 KB
/* Direct mail spec pages. US Letter document system, every value from tokens.css. */
@page { size: 8.5in 11in; margin: 0; }
* { box-sizing: border-box; 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-size: var(--mc-print-type-body-size); line-height: 1.5; }

.page { position: relative; width: var(--mc-doc-page-width); height: var(--mc-doc-page-height); overflow: hidden;
  padding: var(--mc-doc-margin-top) var(--mc-doc-margin-side) var(--mc-doc-margin-bottom);
  page-break-after: always; break-after: page; }
.page:last-child { page-break-after: auto; break-after: auto; }
.foot { 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; font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-semibold);
  color: var(--mc-text-tertiary); border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); padding-top: 6pt;
  font-variant-numeric: var(--mc-numeric-tabular); }
.top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22pt; }
.top img { width: 1.6in; display: block; }
.top .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.5; }

.eyebrow { font-size: var(--mc-print-type-eyebrow-size); font-weight: var(--mc-type-eyebrow-weight); letter-spacing: var(--mc-type-eyebrow-tracking);
  text-transform: uppercase; color: var(--mc-text-label); }
h1 { font-size: var(--mc-print-type-h1-size); font-weight: var(--mc-type-h1-weight); letter-spacing: var(--mc-type-h1-tracking);
  line-height: 1.08; color: var(--mc-text-heading); margin-top: 6pt; }
h2 { font-size: var(--mc-print-type-h2-size); font-weight: var(--mc-type-h2-weight); letter-spacing: var(--mc-type-h2-tracking);
  line-height: 1.15; color: var(--mc-text-heading); margin-top: 5pt; }
h3 { font-size: var(--mc-print-type-h3-size); font-weight: var(--mc-type-h3-weight); color: var(--mc-text-heading); line-height: 1.25; }
h4 { font-size: 9.5pt; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); line-height: 1.3; }
.lede { font-size: var(--mc-print-type-lede-size); font-weight: var(--mc-type-lede-weight); color: var(--mc-text-secondary); line-height: 1.45; margin-top: 10pt; max-width: 6.2in; }
.divider { width: var(--mc-doc-divider-width); height: var(--mc-doc-divider-height); background: var(--mc-border-accent); margin: 16pt 0 12pt; }
p + p { margin-top: 6pt; }
.small { font-size: var(--mc-print-type-small-size); }
.muted { color: var(--mc-text-secondary); }
b, strong { font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); }
.num { font-variant-numeric: var(--mc-numeric-tabular); }

/* 12 column grid, 14pt gutter. */
.grid { display: grid; grid-template-columns: repeat(var(--mc-doc-columns), 1fr); column-gap: var(--mc-doc-gutter); row-gap: 12pt; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }

/* Tables. Red header bar, white type, banding, hairlines, no vertical rules. */
table { width: 100%; border-collapse: collapse; font-size: 8pt; line-height: 1.35; }
thead th { background: var(--mc-surface-table-header); color: var(--mc-text-on-accent); font-weight: var(--mc-weight-bold);
  text-align: left; padding: 4.5pt 6pt; font-size: 7pt; letter-spacing: 0.06em; text-transform: uppercase; }
tbody td { padding: 4pt 6pt; 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 { font-variant-numeric: var(--mc-numeric-tabular); white-space: nowrap; }
td:first-child { font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); }

/* Containers. */
.callout { background: var(--mc-surface-inverse); color: var(--mc-text-inverse); padding: 14pt 16pt; }
.callout .eyebrow { color: var(--mc-text-inverse-secondary); }
.callout .bar { width: 40pt; height: var(--mc-doc-divider-height); background: var(--mc-accent-on-inverse); margin-bottom: 8pt; }
.callout p { color: var(--mc-text-inverse-secondary); font-size: 9pt; margin-top: 5pt; }
.callout b { color: var(--mc-text-inverse); }
.note { border-left: var(--mc-border-width-bar) solid var(--mc-border-accent); background: var(--mc-surface-highlight); padding: 8pt 11pt; font-size: 8pt; line-height: 1.4; }
.note .eyebrow { margin-bottom: 4pt; }
.note ul { padding-left: 12pt; } .note li + li { margin-top: 2pt; }
.compliance { border: var(--mc-border-width-hairline) solid var(--mc-border-strong); padding: 8pt 11pt; font-size: 8pt; line-height: 1.42; }
.compliance .eyebrow { color: var(--mc-text-heading); margin-bottom: 4pt; }
ul.list { list-style: none; } ul.list li { padding: 3pt 0 3pt 12pt; position: relative; font-size: 9pt; }
ul.list li::before { content: ""; position: absolute; left: 0; top: 8.5pt; width: 6pt; height: 1.5pt; background: var(--mc-border-accent); }
ol.check { list-style: none; counter-reset: c; } ol.check li { counter-increment: c; position: relative; padding: 4pt 0 4pt 20pt;
  border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); font-size: 8.5pt; }
ol.check li::before { content: counter(c); position: absolute; left: 0; top: 4pt; font-weight: var(--mc-weight-extrabold); color: var(--mc-text-label); font-variant-numeric: var(--mc-numeric-tabular); }

/* Figures. The live press file is framed at a stated scale, dimension lines drawn around it. */
.fig { position: relative; }
.fig .frame { position: absolute; overflow: hidden; box-shadow: var(--mc-shadow-2); background: var(--mc-surface-page); }
.fig iframe { border: 0; transform-origin: 0 0; display: block; background: var(--mc-surface-page); }
.fig svg.dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dims line { stroke: var(--mc-text-heading); stroke-width: 0.75; }
.dims line.ext { stroke: var(--mc-border-strong); stroke-width: 0.5; }
.dims text { font-family: var(--mc-font); font-size: 7.5px; font-weight: 600; fill: var(--mc-text-heading); font-variant-numeric: tabular-nums; }
.dims path.tick { fill: var(--mc-text-heading); }
.figcap { font-size: var(--mc-print-type-caption-size); color: var(--mc-text-tertiary); font-weight: var(--mc-weight-semibold); }
.legend { display: flex; gap: 14pt; flex-wrap: wrap; font-size: 7.5pt; color: var(--mc-text-secondary); font-weight: var(--mc-weight-semibold); }
.legend span::before { content: ""; display: inline-block; width: 14pt; height: 0; vertical-align: middle; margin-right: 5pt; border-top: 1.5pt solid var(--k); }
.legend .dash::before { border-top-style: dashed; }
.k-bleed { --k: var(--mc-accent); } .k-trim { --k: var(--mc-text-heading); } .k-safe { --k: var(--mc-status-info); } .k-zone { --k: var(--mc-accent); }

.thumbs { display: flex; gap: 16pt; align-items: flex-end; }
td.tok { white-space: nowrap; font-size: 7.5pt; color: var(--mc-text-secondary); font-weight: var(--mc-weight-regular); }
door-hanger.html118 lines, 8.6 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon door hanger, 4.25 x 11in, press file with die line</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="mail.css">
<style>
  /* 4.25 x 11in trim, 0.125in bleed, sheet 4.5 x 11.25in.
     Die: 1.25in hole, centre 2.125in across and 1.0in down from the top trim.
     Slit leaves the hole at 7:30 and runs down and left at 30 degrees to the left trim, exits 2.414in down.
     Keep-out: no type or logo above 2.75in from the top trim on either face. Page 3 is the die line. */
  @page { size: 4.5in 11.25in; margin: 0; }
  .sheet { --dm-w: 4.25in; --dm-h: 11in; }
  .dh .photo { left: calc(var(--dm-b) * -1); top: calc(var(--dm-b) * -1); width: calc(var(--dm-w) + var(--dm-b) * 2); height: calc(5.1in + var(--dm-b)); }
  .dh .strip { left: calc(var(--dm-b) * -1); top: 9.7in; width: calc(var(--dm-w) + var(--dm-b) * 2); height: calc(1.3in + var(--dm-b)); }
  .dh .copy { position: absolute; left: 0.375in; top: 5.45in; width: 3.5in; height: 4.0in; display: flex; flex-direction: column; }
  .dh .dm-h2 { -webkit-line-clamp: 3; font-size: 24pt; }
  .dh .facts { list-style: none; margin-top: auto; }
  .dh .facts li { position: relative; padding: 0.07in 0 0.07in 0.3in; border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle);
    font-size: 8.5pt; font-weight: var(--mc-weight-semibold); color: var(--mc-text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dh .facts li::before { content: ""; position: absolute; left: 0; top: 50%; width: 0.18in; height: var(--mc-border-width-bar); margin-top: -1.5px; background: var(--mc-border-accent); }
  .dhb .photo { left: calc(var(--dm-b) * -1); top: calc(var(--dm-b) * -1); width: calc(var(--dm-w) + var(--dm-b) * 2); height: calc(2.75in + var(--dm-b)); }
  .dhb .copy { position: absolute; left: 0.375in; top: 3.05in; width: 3.5in; bottom: calc(var(--dm-b) * -1); display: flex; flex-direction: column; }
  .dhb .grp { border-top: var(--mc-border-width-bar) solid var(--mc-border-accent); padding-top: 0.08in; margin-top: 0.2in; }
  .dhb .grp h3 { font-size: 10pt; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); }
  .dhb .grp p { font-size: 8.5pt; line-height: 1.42; color: var(--mc-text-primary); margin-top: 0.04in;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .dhb .callout { margin-top: auto; background: var(--mc-surface-inverse); color: var(--mc-text-inverse); padding: 0.24in 0.22in calc(0.375in + var(--dm-b));
    margin-left: calc(-0.375in - var(--dm-b)); margin-right: calc(-0.375in - var(--dm-b)); padding-left: calc(0.375in + var(--dm-b)); padding-right: calc(0.375in + var(--dm-b)); }
  .dhb .callout .dm-eyebrow { color: var(--mc-text-inverse-secondary); }
  .dhb .callout h3 { font-size: 13pt; font-weight: var(--mc-weight-extrabold); letter-spacing: var(--mc-type-h2-tracking); line-height: 1.15; margin-top: 0.06in;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .dhb .callout .row { display: flex; gap: 0.16in; align-items: center; margin-top: 0.12in; }
  .dhb .callout p { font-size: 8pt; line-height: 1.42; color: var(--mc-text-inverse-secondary);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .dhb .callout .dm-rule { background: var(--mc-accent-on-inverse); }
  .dhb .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.2in; }
  .die svg { position: absolute; inset: 0; width: 100%; height: 100%; }
</style>
</head>
<body>

<!-- FRONT -->
<section class="sheet front dh">
  <div class="trim">
    <div class="dm-photo photo" data-swap data-photo="mc_rosehill_18.jpg" style="--dm-pos: 50% 55%"></div>
    <!-- CAPTION SLOT. Leave it empty. mail.js fills it from photo-credits.js for the photo actually shown, and hides it when that photo has no credit. -->
    <div class="dm-caption" data-caption style="right:0.25in; top:4.7in"></div>
    <div class="copy">
      <span class="dm-rule"></span>
      <div class="dm-eyebrow" style="margin-top:0.12in">We stopped by</div>
      <!-- HEADLINE SLOT. 45 characters is ideal, three lines is the hard stop. -->
      <h1 class="dm-h2" style="margin-top:0.07in">One team for your photos, ads, and print.</h1>
      <p class="dm-body" style="margin-top:0.14in; font-size:9.5pt; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden">We left this instead of a business card. Marathon plans, shoots, runs, and prints marketing for real estate teams and local service businesses across Greater Houston. Nothing gets referred out.</p>
      <ul class="facts">
        <li>Zillow Showcase certified listing media</li>
        <li>Campaigns run and reported every month</li>
        <li>Print, signs, and wraps from the same team</li>
      </ul>
    </div>
    <div class="dm-band strip">
      <img class="dm-logo" src="../../../tokens/v/best/logos/marathon-logo-white.svg" alt="Marathon Creative" style="left:calc(var(--dm-b) + 0.375in); top:0.42in; width:1.5in">
      <div class="dm-url" style="position:absolute; right:calc(var(--dm-b) + 0.375in); top:0.5in; font-size:9pt">marathoncreative.co</div>
    </div>
  </div>
  <div class="g g-bleed"></div><div class="g g-trim"></div><div class="g g-safe"></div>
  <div class="g g-zone" style="left:var(--dm-b); top:var(--dm-b); width:var(--dm-w); height:2.75in"><i>Hole and slit keep-out, no type</i></div>
  <svg class="g" style="inset:0; width:100%; height:100%" viewBox="0 0 450 1125"><g transform="translate(12.5 12.5)">
    <circle class="g-die" cx="212.5" cy="100" r="62.5"/><line class="g-die" x1="168.3" y1="144.2" x2="0" y2="241.4"/></g></svg>
</section>

<!-- BACK. Mirror of the die: the slit exits on the right edge when the sheet is turned over. -->
<section class="sheet back dhb">
  <div class="trim">
    <!-- Back photo sits inside the hole keep-out, so the die cuts through image, never through type. -->
    <div class="dm-photo photo" data-photo="mc_fullres_10.jpg" style="--dm-pos: 50% 60%"></div>
    <div class="copy">
      <img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative" style="width:1.35in; display:block">
      <div class="dm-eyebrow" style="margin-top:0.28in">What one team covers</div>
      <h2 class="dm-h2" style="margin-top:0.07in; font-size:17pt; -webkit-line-clamp:3">Pick one service, or hand us the whole plan.</h2>
      <div class="grp"><h3>Media</h3><p>Zillow Showcase listing media, commercial photo, video cut in DaVinci, drone, 3D tours, floorplans, headshots.</p></div>
      <div class="grp"><h3>Marketing</h3><p>Strategy first, then social management, paid ads, email and SMS, and CRM builds on PaceCRM.</p></div>
      <div class="grp"><h3>Print</h3><p>Postcards and EDDM, door hangers like this one, yard signs, banners, vehicle wraps.</p></div>
      <div class="callout">
        <span class="dm-rule"></span>
        <div class="dm-eyebrow" style="margin-top:0.1in">Keep this hanger</div>
        <h3>Free 30-minute marketing audit.</h3>
        <div class="row">
          <div class="qr-slot" style="width:0.8in; height:0.8in; flex:none"></div>
          <p>We review your listing media, ads, and social, then tell you the first three things we would fix. Scan or visit marathoncreative.co.</p>
        </div>
      </div>
    </div>
  </div>
  <div class="g g-bleed"></div><div class="g g-trim"></div><div class="g g-safe"></div>
  <div class="g g-zone" style="left:var(--dm-b); top:var(--dm-b); width:var(--dm-w); height:2.75in"><i>Hole and slit keep-out, no type</i></div>
  <svg class="g" style="inset:0; width:100%; height:100%" viewBox="0 0 450 1125"><g transform="translate(12.5 12.5)">
    <circle class="g-die" cx="212.5" cy="100" r="62.5"/><line class="g-die" x1="256.7" y1="144.2" x2="425" y2="241.4"/></g></svg>
</section>

<!-- DIE LINE. Page 3, same size as the artwork, registered to it. Cut path only, never printed. -->
<section class="sheet die">
  <svg viewBox="0 0 450 1125" aria-label="Door hanger die line">
    <g transform="translate(12.5 12.5)">
      <rect class="g-die" x="0" y="0" width="425" height="1100"/>
      <circle class="g-die" cx="212.5" cy="100" r="62.5"/>
      <line class="g-die" x1="168.3" y1="144.2" x2="0" y2="241.4"/>
    </g>
  </svg>
</section>

<script src="qr.js"></script>
<script src="photo-credits.js"></script>
<script src="mail.js"></script>
</body>
</html>
postcard-6x9.html96 lines, 6.2 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon EDDM postcard, 6x9 class, 6.25 x 9in trim, press file</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="mail.css">
<style>
  /* 6x9 class. Trim is 6.25 x 9in because USPS EDDM needs a flat taller than 6.125in.
     A true 6 x 9in card is letter size and cannot go EDDM. Sheet 9.25 x 6.5in with bleed. */
  @page { size: 9.25in 6.5in; margin: 0; }
  .sheet { --dm-w: 9in; --dm-h: 6.25in; }
  .p6x9 .band { left: calc(var(--dm-b) * -1); top: calc(var(--dm-b) * -1); width: calc(3.25in + var(--dm-b)); height: calc(var(--dm-h) + var(--dm-b) * 2); }
  .p6x9 .band-in { position: absolute; left: calc(var(--dm-b) + 0.375in); top: calc(var(--dm-b) + 0.375in); width: 2.55in; bottom: calc(var(--dm-b) + 0.375in); display: flex; flex-direction: column; }
  .p6x9 .photo { left: 3.25in; top: calc(var(--dm-b) * -1); width: calc(5.75in + var(--dm-b)); height: calc(var(--dm-h) + var(--dm-b) * 2); }
  .p6x9 .dm-display { font-size: calc(var(--mc-print-type-h1-size) * 0.85); -webkit-line-clamp: 4; margin-top: 0.12in; }
  .p6x9 .dm-lede { font-size: 9.5pt; -webkit-line-clamp: 4; }
  .back .col { position: absolute; left: 0.375in; top: 0.375in; width: 4.6in; height: 5.5in; display: flex; flex-direction: column; }
  .back .dm-h2 { font-size: 19pt; }
  .back .dm-steps, .back .dm-stats { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .back .dm-stats { border-top: var(--mc-border-width-hairline) solid var(--mc-border-subtle); border-bottom: var(--mc-border-width-hairline) solid var(--mc-border-subtle); padding: 0.1in 0; }
</style>
</head>
<body>

<!-- FRONT -->
<section class="sheet front p6x9">
  <div class="trim">
    <div class="dm-photo photo" data-swap data-photo="mc_retouched_05.jpg" style="--dm-pos: 55% 50%"></div>
    <div class="dm-band band">
      <img class="dm-logo" src="../../../tokens/v/best/logos/marathon-logo-white.svg" alt="Marathon Creative" style="left:calc(var(--dm-b) + 0.375in); top:calc(var(--dm-b) + 0.375in); width:1.6in">
      <div class="band-in">
        <div style="margin-top:0.95in">
          <span class="dm-rule"></span>
          <div class="dm-eyebrow" style="margin-top:0.12in">Every Door Direct Mail</div>
          <!-- HEADLINE SLOT. 40 characters is ideal, four lines is the hard stop. -->
          <h1 class="dm-display">Reach every door in a ZIP Code.</h1>
        </div>
        <div style="margin-top:auto">
          <p class="dm-lede">No list to buy. We pick the routes, design and print the card, and drop it at the post office.</p>
          <div class="dm-url" style="margin-top:0.12in">marathoncreative.co</div>
        </div>
      </div>
    </div>
    <!-- CAPTION SLOT. Leave it empty. mail.js fills it from photo-credits.js for the photo actually shown, and hides it when that photo has no credit. -->
    <div class="dm-caption" data-caption style="right:0.25in; bottom:0.25in"></div>
  </div>
  <div class="g g-bleed"></div><div class="g g-trim"></div><div class="g g-safe"></div>
</section>

<!-- BACK. The right 3.75in is the USPS mail panel and stays unprinted. -->
<section class="sheet back p6x9">
  <div class="trim">
    <div class="col">
      <img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative" style="width:1.4in; display:block">
      <div class="dm-eyebrow" style="margin-top:0.3in">How EDDM works with Marathon</div>
      <h2 class="dm-h2" style="margin-top:0.07in">You pick the routes. We handle the rest.</h2>
      <div class="dm-steps" style="margin-top:0.2in">
        <div class="dm-step"><div class="n">1</div><h3>Pick routes</h3><p>We pull USPS carrier routes by household count, age, and income.</p></div>
        <div class="dm-step"><div class="n">2</div><h3>Design and print</h3><p>Written, designed, and printed to USPS flat size rules.</p></div>
        <div class="dm-step"><div class="n">3</div><h3>Drop and track</h3><p>We bundle and drop it. Every scan lands in your PaceCRM pipeline.</p></div>
      </div>
      <div class="dm-stats" style="margin-top:0.2in">
        <div class="dm-stat"><div class="v">200</div><div class="l">pieces minimum per drop</div></div>
        <div class="dm-stat"><div class="v">5,000</div><div class="l">daily cap per ZIP Code</div></div>
        <div class="dm-stat"><div class="v">6.25 x 9</div><div class="l">inches, the EDDM flat size</div></div>
      </div>
      <div class="dm-cta" style="position:static; margin-top:auto">
        <div class="qr-slot" style="width:0.8in; height:0.8in"></div>
        <div class="t">
          <strong>Get a route map for your ZIP.</strong>
          <span>Send us a ZIP Code. We send back routes, door counts, and a price within two business days.</span>
          <div class="dm-url" style="font-size:9pt; color:var(--mc-text-heading); margin-top:0.04in">marathoncreative.co</div>
        </div>
      </div>
    </div>

    <div class="dm-mailrule" style="left:5.1in; top:0.375in; height:5.5in"></div>
    <div class="dm-mailpanel" style="left:5.25in; top:0; width:3.75in; height:6.25in">
      <div class="dm-return" style="left:0.2in; top:0.25in"><b>Marathon Creative</b><br>Greater Houston, TX</div>
      <div class="dm-indicia" style="right:0.25in; top:0.25in">ECRWSS<br>U.S. Postage<br>Paid<br>EDDM Retail</div>
      <div class="dm-address" style="left:0.5in; top:2.6in">Local Postal Customer</div>
    </div>
  </div>
  <div class="g g-bleed"></div><div class="g g-trim"></div><div class="g g-safe"></div>
  <div class="g g-zone" style="left:calc(var(--dm-b) + 5.25in); top:var(--dm-b); width:3.75in; height:6.25in"><i>USPS mail panel 3.75 x 6.25in, no ink</i></div>
  <div class="g g-zone" style="left:calc(var(--dm-b) + 7.75in); top:calc(var(--dm-b) + 0.25in); width:1.0in; height:0.78in"><i style="bottom:-0.14in">Indicia</i></div>
  <div class="g g-zone" style="left:calc(var(--dm-b) + 5.6in); top:calc(var(--dm-b) + 2.4in); width:3.0in; height:1.0in"><i>Address block 3.0 x 1.0in</i></div>
</section>

<script src="qr.js"></script>
<script src="photo-credits.js"></script>
<script src="mail.js"></script>
</body>
</html>
postcard-6x11.html105 lines, 6.4 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon EDDM postcard, 6 x 11in, press file</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="mail.css">
<style>
  /* 6 x 11in trim, 0.125in bleed, sheet 11.25 x 6.25in. */
  @page { size: 11.25in 6.25in; margin: 0; }
  .sheet { --dm-w: 11in; --dm-h: 6in; }
  .p6x11 .band { left: calc(var(--dm-b) * -1); top: calc(var(--dm-b) * -1); width: calc(3.75in + var(--dm-b)); height: calc(var(--dm-h) + var(--dm-b) * 2); }
  .p6x11 .band-in { position: absolute; left: calc(var(--dm-b) + 0.375in); top: calc(var(--dm-b) + 0.375in); width: 3.0in; bottom: calc(var(--dm-b) + 0.375in); display: flex; flex-direction: column; }
  .p6x11 .photo { left: 3.75in; top: calc(var(--dm-b) * -1); width: calc(7.25in + var(--dm-b)); height: calc(var(--dm-h) + var(--dm-b) * 2); }
  .p6x11 .dm-display { font-size: var(--mc-print-type-h1-size); -webkit-line-clamp: 4; margin-top: 0.12in; }
  .p6x11 .dm-lede { font-size: 9.5pt; -webkit-line-clamp: 3; }
  .back .col { position: absolute; left: 0.375in; top: 0.375in; width: 6.25in; height: 5.25in; display: flex; flex-direction: column; }
  .back .dm-cols { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
</style>
</head>
<body>

<!-- FRONT. Photo is the hero. Type lives on the navy band only, never on the photo. -->
<section class="sheet front p6x11">
  <div class="trim">
    <div class="dm-photo photo" data-swap data-photo="mc_fullres_12.jpg" style="--dm-pos: 50% 45%"></div>
    <div class="dm-band band">
      <img class="dm-logo" src="../../../tokens/v/best/logos/marathon-logo-white.svg" alt="Marathon Creative" style="left:calc(var(--dm-b) + 0.375in); top:calc(var(--dm-b) + 0.375in); width:1.75in">
      <div class="band-in">
        <div style="margin-top:1.0in">
          <span class="dm-rule"></span>
          <div class="dm-eyebrow" style="margin-top:0.12in">Photo, video, marketing, print</div>
          <!-- HEADLINE SLOT. 40 characters is ideal, four lines is the hard stop. -->
          <h1 class="dm-display">We shoot it, market it, and print it.</h1>
        </div>
        <div style="margin-top:auto">
          <p class="dm-lede">One Houston team for real estate and local service businesses. No vendor handoffs.</p>
          <div class="dm-url" style="margin-top:0.12in">marathoncreative.co</div>
        </div>
      </div>
    </div>
    <!-- CAPTION SLOT. Leave it empty. mail.js fills it from photo-credits.js for the photo actually shown, and hides it when that photo has no credit. -->
    <div class="dm-caption" data-caption style="right:0.25in; bottom:0.25in"></div>
  </div>
  <div class="g g-bleed"></div><div class="g g-trim"></div><div class="g g-safe"></div>
</section>

<!-- BACK. Mail side. The right 4in is the USPS mail panel and stays unprinted. -->
<section class="sheet back p6x11">
  <div class="trim">
    <div class="col">
      <img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative" style="width:1.45in; display:block">
      <div class="dm-eyebrow" style="margin-top:0.32in">One team, Greater Houston</div>
      <h2 class="dm-h2" style="margin-top:0.07in">One team owns it, from the plan to the press.</h2>
      <p class="dm-lede" style="margin-top:0.09in; font-size:10pt; -webkit-line-clamp:2">Most agencies split your work across three vendors. We plan it, shoot it, run it, and print it in-house, so nothing gets lost in a handoff.</p>
      <div class="dm-cols" style="margin-top:0.24in">
        <div class="dm-col"><h3>Media</h3><ul>
          <li><b>Zillow Showcase</b> certified</li>
          <li>Listing and commercial photo</li>
          <li>Video, cut in DaVinci</li>
          <li>Drone and aerial</li>
          <li>3D tours and floorplans</li></ul></div>
        <div class="dm-col"><h3>Marketing</h3><ul>
          <li>Strategy before production</li>
          <li>Social management</li>
          <li>Paid ads</li>
          <li>Email and SMS</li>
          <li>CRM builds on PaceCRM</li></ul></div>
        <div class="dm-col"><h3>Print</h3><ul>
          <li>Postcards and EDDM</li>
          <li>Door hangers</li>
          <li>Yard signs and banners</li>
          <li>Vehicle wraps</li>
          <li>Cards and brochures</li></ul></div>
      </div>
      <p class="dm-body" style="margin-top:0.26in; font-size:8pt; color:var(--mc-text-secondary)"><b style="font-weight:var(--mc-weight-bold); color:var(--mc-text-heading)">Who we work for.</b> Real estate teams and builders, roofers, public adjusters, and contractors across Greater Houston.</p>
      <div class="dm-cta" style="position:static; margin-top:auto">
        <div class="qr-slot" style="width:0.82in; height:0.82in"></div>
        <div class="t">
          <strong>Book a 30-minute strategy call.</strong>
          <span>We tell you what we would do first and what it costs. Scan, or go to <em>marathoncreative.co</em></span>
          <div class="dm-fine" style="margin-top:0.05in">You are holding our work. Marathon wrote, designed, and produced this card.</div>
        </div>
      </div>
    </div>

    <div class="dm-mailrule" style="left:6.85in; top:0.375in; height:5.25in"></div>
    <div class="dm-mailpanel" style="left:7.0in; top:0; width:4.0in; height:6in">
      <div class="dm-return" style="left:0.2in; top:0.25in"><b>Marathon Creative</b><br>Greater Houston, TX</div>
      <div class="dm-indicia" style="right:0.25in; top:0.25in">ECRWSS<br>U.S. Postage<br>Paid<br>EDDM Retail</div>
      <div class="dm-address" style="left:0.6in; top:2.55in">Local Postal Customer</div>
    </div>
  </div>
  <div class="g g-bleed"></div><div class="g g-trim"></div><div class="g g-safe"></div>
  <div class="g g-zone" style="left:calc(var(--dm-b) + 7.0in); top:var(--dm-b); width:4.0in; height:6in"><i>USPS mail panel 4.0 x 6.0in, no ink</i></div>
  <div class="g g-zone" style="left:calc(var(--dm-b) + 9.75in); top:calc(var(--dm-b) + 0.25in); width:1.0in; height:0.78in"><i style="bottom:-0.14in">Indicia</i></div>
  <div class="g g-zone" style="left:calc(var(--dm-b) + 7.5in); top:calc(var(--dm-b) + 2.35in); width:3.0in; height:1.0in"><i>Address block 3.0 x 1.0in</i></div>
</section>

<script src="qr.js"></script>
<script src="photo-credits.js"></script>
<script src="mail.js"></script>
</body>
</html>
spec.html266 lines, 18.2 KB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Marathon direct mail kit, press spec</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="spec.css">
</head>
<body>

<!-- PAGE 1. Overview -->
<section class="page">
  <div class="top">
    <img src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative">
    <div class="meta">Design system, Tier 1, print and promo<br>Direct mail kit, press spec v1.0</div>
  </div>
  <div class="eyebrow">Postcards, EDDM, and door hangers</div>
  <h1>Three pieces a vendor can run without calling us</h1>
  <p class="lede">Two Every Door Direct Mail postcards and a die-cut door hanger. Each ships as a press PDF with 0.125in bleed, a guides view, and the measurements on these pages.</p>

  <div class="thumbs" style="margin-top:18pt">
    <div><div class="fig" data-src="postcard-6x11.html?side=front" data-sw="11.25" data-sh="6.25" data-scale="0.25" data-pad="0.02"></div><div class="figcap" style="margin-top:4pt">EDDM postcard, 6 x 11in</div></div>
    <div><div class="fig" data-src="postcard-6x9.html?side=front" data-sw="9.25" data-sh="6.5" data-scale="0.24" data-pad="0.02"></div><div class="figcap" style="margin-top:4pt">EDDM postcard, 6x9 class</div></div>
    <div><div class="fig" data-src="door-hanger.html?side=front" data-sw="4.5" data-sh="11.25" data-scale="0.139" data-pad="0.02"></div><div class="figcap" style="margin-top:4pt">Door hanger</div></div>
  </div>

  <div class="divider"></div>
  <table>
    <thead><tr><th>Piece</th><th class="num">Trim</th><th class="num">Sheet with bleed</th><th>Stock</th><th>Delivery</th><th>Press file</th></tr></thead>
    <tbody>
      <tr><td>EDDM postcard, large</td><td class="num">6 x 11in</td><td class="num">6.25 x 11.25in</td><td>16pt C2S</td><td>EDDM Retail flat</td><td>press-postcard-6x11.pdf</td></tr>
      <tr><td>EDDM postcard, 6x9 class</td><td class="num">6.25 x 9in</td><td class="num">6.5 x 9.25in</td><td>16pt C2S</td><td>EDDM Retail flat</td><td>press-postcard-6x9.pdf</td></tr>
      <tr><td>Door hanger</td><td class="num">4.25 x 11in</td><td class="num">4.5 x 11.25in</td><td>14pt C2S</td><td>Hand hung, never in a mailbox</td><td>press-door-hanger.pdf, page 3 is the die</td></tr>
    </tbody>
  </table>

  <div class="grid" style="margin-top:16pt">
    <div class="c6">
      <h4>Why the 6x9 is 6.25 x 9in</h4>
      <p class="small muted" style="margin-top:3pt">EDDM only takes flats: longer than 10.5in, taller than 6.125in, or thicker than 0.25in. A true 6 x 9in card is letter size, so the counter turns it away. The extra 0.25in makes it legal.</p>
    </div>
    <div class="c6">
      <div class="note">
        <div class="eyebrow">Editor note, for Jacob to confirm</div>
        <ul>
          <li>Offers: 30-minute call, free 30-minute audit, route price in two business days.</li>
          <li>QR points to marathoncreative.co. A page per drop would count scans.</li>
          <li>EDDM Retail postage, working figure $0.25 a piece. Check USPS before quoting.</li>
          <li>Return block has no street. Add one for a permit or BMEU run.</li>
          <li>Stocks and coatings pending a vendor drawdown.</li>
        </ul>
      </div>
    </div>
  </div>
  <div class="foot"><span>Marathon Creative · Direct mail kit, press spec v1.0</span><span>Page 1 of 6</span></div>
</section>

<!-- PAGE 2. 6 x 11 EDDM -->
<section class="page">
  <div class="eyebrow">EDDM postcard, large</div>
  <h2>6 x 11in, mail side</h2>
  <div class="legend" style="margin-top:8pt">
    <span class="k-bleed">Bleed edge, 0.125in past trim</span><span class="k-trim">Trim</span><span class="k-safe dash">Text safe, 0.25in inside trim</span><span class="k-zone dash">USPS zone, no ink</span>
  </div>
  <div class="fig" style="margin-top:4pt" data-src="postcard-6x11.html?side=back&guides=1" data-sw="11.25" data-sh="6.25" data-scale="0.56"
    data-dims='[[0.125,0.125,11.125,0.125,"11.0in trim",-0.17],[0,0,11.25,0,"11.25in with bleed",-0.34],[0.125,0.125,0.125,6.125,"6.0in",-0.14],[7.125,6.125,11.125,6.125,"Mail panel 4.0in",0.18],[0.125,6.125,7.125,6.125,"Copy side 7.0in",0.18],[11.125,0.125,11.125,0.375,"0.25in",0.12],[11.125,0.375,11.125,2.475,"Address 2.35in down",0.12]]'></div>
  <p class="figcap">Scale 56%. Shown with ?guides=1. Guides never print.</p>

  <div class="grid" style="margin-top:14pt">
    <div class="c5">
      <div class="fig" data-src="postcard-6x11.html?side=front&guides=1" data-sw="11.25" data-sh="6.25" data-scale="0.24" data-pad="0.3"
        data-dims='[[3.875,6.125,11.125,6.125,"Photo 7.25in plus bleed",0.14],[0.125,6.125,3.875,6.125,"Band 3.75in",0.14]]'></div>
      <p class="figcap">Front, scale 24%. Type sits on the navy band only.</p>
      <p class="small muted" style="margin-top:8pt">Photo at this crop: 288ppi effective from a 2400px fixture. Final shoot files need 1875px on the short side for 300ppi.</p>
    </div>
    <div class="c7">
      <table>
        <thead><tr><th>Element</th><th>Spec</th></tr></thead>
        <tbody>
          <tr><td>Indicia</td><td>1.0 x 0.78in box, 1pt rule, 7pt Montserrat 700, 0.25in from top and right trim. Reads ECRWSS, U.S. POSTAGE, PAID, EDDM RETAIL.</td></tr>
          <tr><td>Address block</td><td>Local Postal Customer, 10pt 600, single K. Zone 2.35in down, type set 2.55in down and 7.6in across.</td></tr>
          <tr><td>Return block</td><td>7pt, top left of mail panel, 0.25in down.</td></tr>
          <tr><td>Mail panel</td><td>Right 4.0in, full height, unprinted white. A 1px Gray 300 rule sits 0.15in outside it.</td></tr>
          <tr><td>Logo</td><td>White lockup 1.75in wide on the band, dark lockup 1.45in on the back. Never on the photo.</td></tr>
          <tr><td>Headline</td><td>32pt 800, four lines maximum, then it clips.</td></tr>
          <tr><td>QR</td><td class="num">0.82in square with a four module quiet zone.</td></tr>
          <tr><td>Weight</td><td class="num">About 0.5oz on 16pt. EDDM Retail limit is 3.3oz.</td></tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="foot"><span>Marathon Creative · Direct mail kit, press spec v1.0</span><span>Page 2 of 6</span></div>
</section>

<!-- PAGE 3. 6.25 x 9 EDDM -->
<section class="page">
  <div class="eyebrow">EDDM postcard, 6x9 class</div>
  <h2>6.25 x 9in, mail side</h2>
  <div class="legend" style="margin-top:8pt">
    <span class="k-bleed">Bleed edge</span><span class="k-trim">Trim</span><span class="k-safe dash">Text safe</span><span class="k-zone dash">USPS zone, no ink</span>
  </div>
  <div class="fig" style="margin-top:4pt" data-src="postcard-6x9.html?side=back&guides=1" data-sw="9.25" data-sh="6.5" data-scale="0.6"
    data-dims='[[0.125,0.125,9.125,0.125,"9.0in trim",-0.17],[0,0,9.25,0,"9.25in with bleed",-0.34],[0.125,0.125,0.125,6.375,"6.25in",-0.14],[5.375,6.375,9.125,6.375,"Mail panel 3.75in",0.18],[0.125,6.375,5.375,6.375,"Copy side 5.25in",0.18],[9.125,0.125,9.125,0.375,"0.25in",0.12],[9.125,0.375,9.125,2.525,"Address 2.4in down",0.12]]'></div>
  <p class="figcap">Scale 60%. Shown with ?guides=1.</p>

  <div class="grid" style="margin-top:14pt">
    <div class="c5">
      <div class="fig" data-src="postcard-6x9.html?side=front&guides=1" data-sw="9.25" data-sh="6.5" data-scale="0.27" data-pad="0.3"
        data-dims='[[3.375,6.375,9.125,6.375,"Photo 5.75in",0.14],[0.125,6.375,3.375,6.375,"Band 3.25in",0.14]]'></div>
      <p class="figcap">Front, scale 27%.</p>
      <p class="small muted" style="margin-top:8pt">Photo at this crop: 247ppi from the 1606px fixture. Final files need 1950px on the short side.</p>
    </div>
    <div class="c7">
      <table>
        <thead><tr><th>Element</th><th>Spec</th></tr></thead>
        <tbody>
          <tr><td>Indicia</td><td>Same box as the 6 x 11, 0.25in from top and right trim.</td></tr>
          <tr><td>Address block</td><td>Local Postal Customer, 10pt 600, single K, 2.6in down, 5.75in across.</td></tr>
          <tr><td>Steps</td><td>Three, 9pt title, 7.5pt body, three lines, then it clips.</td></tr>
          <tr><td>Stats</td><td>20pt 800 tabular numerals. USPS facts only, never a price.</td></tr>
          <tr><td>Headline</td><td>27pt 800 front, 19pt 700 back, two lines maximum on the back.</td></tr>
        </tbody>
      </table>
      <div class="compliance" style="margin-top:10pt">
        <div class="eyebrow">If someone asks for a true 6 x 9in</div>
        It mails only as addressed letter-size mail from a list, First-Class or Marketing Mail. Keep the bottom 0.625in of the rightmost 4.75in clear for the USPS barcode, and run the back with no UV so inkjet addressing dries.
      </div>
    </div>
  </div>
  <div class="foot"><span>Marathon Creative · Direct mail kit, press spec v1.0</span><span>Page 3 of 6</span></div>
</section>

<!-- PAGE 4. Door hanger -->
<section class="page">
  <div class="eyebrow">Door hanger</div>
  <h2>4.25 x 11in with die line</h2>
  <div class="legend" style="margin-top:8pt">
    <span class="k-bleed">Bleed edge and die</span><span class="k-trim">Trim</span><span class="k-safe dash">Text safe</span><span class="k-zone dash">Hole keep-out</span>
  </div>
  <div style="display:flex; justify-content:space-between; margin-top:2pt; align-items:flex-start">
    <div><div class="fig" data-src="door-hanger.html?side=front&guides=1" data-sw="4.5" data-sh="11.25" data-scale="0.38" data-pad="0.33"
      data-dims='[[0.125,0.125,4.375,0.125,"4.25in trim",-0.15],[0.125,0.125,0.125,11.125,"11.0in",-0.1]]'></div>
      <p class="figcap" style="padding-left:0.33in">Front with die overlay, 38%</p></div>
    <div><div class="fig" data-src="door-hanger.html?side=back&guides=1" data-sw="4.5" data-sh="11.25" data-scale="0.38" data-pad="0.33"
      data-dims='[[0.125,0.125,0.125,2.875,"2.75in",-0.1]]'></div>
      <p class="figcap" style="padding-left:0.33in">Back, keep-out shown, 38%</p></div>
    <div><div class="fig" data-src="door-hanger.html?side=die" data-sw="4.5" data-sh="11.25" data-scale="0.38" data-pad="0.33"
      data-dims='[[1.625,1.125,2.875,1.125,"1.25in",0],[0.125,0.125,0.125,2.539,"2.414in",-0.1],[4.375,0.125,4.375,1.125,"1.0in",0.08]]'></div>
      <p class="figcap" style="padding-left:0.33in">Die line, page 3, 38%</p></div>
  </div>
  <div class="grid" style="margin-top:12pt">
    <div class="c6">
      <table>
        <thead><tr><th>Die</th><th class="num">Value</th></tr></thead>
        <tbody>
          <tr><td>Hole diameter</td><td class="num">1.25in</td></tr>
          <tr><td>Hole centre, from left trim</td><td class="num">2.125in</td></tr>
          <tr><td>Hole centre, from top trim</td><td class="num">1.0in</td></tr>
          <tr><td>Slit leaves the hole at</td><td class="num">7:30, front view</td></tr>
          <tr><td>Slit angle below horizontal</td><td class="num">30 degrees</td></tr>
          <tr><td>Slit meets left trim at</td><td class="num">2.414in down</td></tr>
          <tr><td>Type keep-out from top trim</td><td class="num">2.75in</td></tr>
          <tr><td>Die tolerance</td><td class="num">0.0625in</td></tr>
        </tbody>
      </table>
    </div>
    <div class="c6">
      <p class="small muted">The die ships as page 3 of the press PDF, front view, same size as the art, cut path only. Turned over, the slit exits on the right. A vendor house die within 0.0625in is fine.</p>
      <p class="small muted">No type, logo, or QR in the keep-out. A photo runs through it on both faces, so the cut lands in image and never in a word.</p>
      <p class="small muted">Photo at this crop: 400ppi front, 533ppi back.</p>
    </div>
  </div>
  <div class="foot"><span>Marathon Creative · Direct mail kit, press spec v1.0</span><span>Page 4 of 6</span></div>
</section>

<!-- PAGE 5. Substrates and colour -->
<section class="page">
  <div class="eyebrow">Substrates and colour</div>
  <h2>Stock, coating, and ink builds</h2>
  <p class="lede" style="font-size:11pt">Send print-tokens.csv from the token layer with every job. The builds below are copied from it for these three pieces.</p>
  <div class="divider"></div>
  <h3>Substrates</h3>
  <table style="margin-top:6pt">
    <thead><tr><th>Piece</th><th>Stock</th><th class="num">Caliper</th><th>Coating</th><th>Why</th></tr></thead>
    <tbody>
      <tr><td>Postcards</td><td>16pt C2S cover</td><td class="num">0.016in</td><td>Gloss AQ front, matte AQ back</td><td>Stiff in the carrier tray. Matte back takes a pen. No UV on the mail side.</td></tr>
      <tr><td>Postcards, uncoated run</td><td>130lb uncoated cover</td><td class="num">0.018in</td><td>None</td><td>Use the uncoated builds. Navy prints lighter, hard proof it.</td></tr>
      <tr><td>Door hanger</td><td>14pt C2S cover</td><td class="num">0.014in</td><td>Gloss AQ both sides</td><td>Holds its shape on a knob, die cuts clean.</td></tr>
    </tbody>
  </table>

  <h3 style="margin-top:16pt">Ink builds</h3>
  <table style="margin-top:6pt">
    <thead><tr><th>Colour</th><th>Token</th><th class="num">CMYK coated</th><th class="num">CMYK uncoated</th><th>Pantone</th><th>Used for</th></tr></thead>
    <tbody>
      <tr><td>Marathon Navy</td><td class="tok">--mc-surface-inverse</td><td class="num">88 65 56 70</td><td class="num">80 58 50 62</td><td>5395 C</td><td>Front bands, strip, callout. 279% total ink, never K100.</td></tr>
      <tr><td>Marathon Red</td><td class="tok">--mc-accent</td><td class="num">22 100 92 17</td><td class="num">15 100 88 10</td><td>7621 C</td><td>Rules and eyebrows on white.</td></tr>
      <tr><td>Red Bright</td><td class="tok">--mc-accent-on-inverse</td><td class="num">12 98 88 3</td><td class="num">6 100 86 0</td><td>Process only</td><td>The 60pt rule on navy. Nowhere else.</td></tr>
      <tr><td>Charcoal</td><td class="tok">--mc-text-primary</td><td class="num">0 0 0 90</td><td class="num">0 0 0 88</td><td>Single K</td><td>Body, indicia, address block.</td></tr>
      <tr><td>Slate 700</td><td class="tok">--mc-text-secondary</td><td class="num">0 0 0 78</td><td class="num">0 0 0 75</td><td>Single K</td><td>Ledes and step copy.</td></tr>
      <tr><td>Slate 500</td><td class="tok">--mc-text-tertiary</td><td class="num">0 0 0 58</td><td class="num">0 0 0 55</td><td>Single K</td><td>Fine print.</td></tr>
      <tr><td>Gray 300</td><td class="tok">--mc-border-strong</td><td class="num">0 0 0 25</td><td class="num">0 0 0 25</td><td>Single K</td><td>Mail panel rule, step rules.</td></tr>
      <tr><td>White</td><td class="tok">--mc-text-inverse</td><td class="num">0 0 0 0</td><td class="num">0 0 0 0</td><td>Paper</td><td>Knockouts on navy, 7pt at 600 minimum.</td></tr>
    </tbody>
  </table>

  <div class="grid" style="margin-top:16pt">
    <div class="c6 callout">
      <div class="bar"></div>
      <div class="eyebrow">Two-spot runs</div>
      <p><b>5395 C and 7621 C only.</b> Photos then print as a navy duotone. On a two-spot job, the Red Bright rule prints as 7621 C over 5395 C. Never ask for a third spot.</p>
    </div>
    <div class="c6">
      <h4>Colour conversion</h4>
      <p class="small muted" style="margin-top:3pt">The press PDFs come out of the browser in RGB. The renders folder also carries a CMYK version converted to GRACoL coated for proofing. Before the job ships, the vendor maps navy and red to the builds above, then sends a hard proof of the first run.</p>
    </div>
  </div>
  <div class="foot"><span>Marathon Creative · Direct mail kit, press spec v1.0</span><span>Page 5 of 6</span></div>
</section>

<!-- PAGE 6. USPS, distribution, preflight -->
<section class="page">
  <div class="eyebrow">USPS, distribution, and preflight</div>
  <h2>Rules that stop a drop at the counter</h2>
  <div class="divider"></div>
  <div class="grid">
    <div class="c6">
      <h3>EDDM Retail</h3>
      <ul class="list" style="margin-top:4pt">
        <li>Flat size: longer than 10.5in, taller than 6.125in, or thicker than 0.25in. Max 15 x 12in and 0.75in thick.</li>
        <li>Max weight 3.3oz a piece.</li>
        <li>Minimum 200 pieces, or every address on the route.</li>
        <li>Maximum 5,000 pieces a day per ZIP Code.</li>
        <li>Bundles of 50 to 100, all facing one way, with a facing slip on each bundle.</li>
        <li>Drop at the post office that serves the routes.</li>
        <li>Indicia upper right of the address side, exactly as printed on these cards.</li>
      </ul>
      <h3 style="margin-top:14pt">EDDM BMEU</h3>
      <p class="small muted" style="margin-top:4pt">For drops over 5,000 a day. The indicia changes to PRSRT STD, ECRWSS, U.S. POSTAGE PAID, EDDM, city and state, and the permit number. Edit the indicia box only. Add the street return address.</p>
      <div class="compliance" style="margin-top:12pt">
        <div class="eyebrow">Door hangers, federal law</div>
        Never put a door hanger in, on, or hanging from a mailbox. 18 U.S.C. 1725 reserves the box for postage-paid mail. Hang it on the door knob. Skip any door with a no solicitation sign, and check the HOA or city handbill rules before a run.
      </div>
    </div>
    <div class="c6">
      <h3>Preflight, every job</h3>
      <ol class="check" style="margin-top:4pt">
        <li>Page size equals the sheet with bleed: 11.25 x 6.25, 9.25 x 6.5, or 4.5 x 11.25in.</li>
        <li>Open with ?guides=1. No type crosses the dashed safe line or enters a red zone.</li>
        <li>Photos at 300ppi at size. Use real shoot files, never a screenshot.</li>
        <li>Headline fits in its line count. If it clips, cut words. Do not shrink the type.</li>
        <li>Indicia and address block are single K on bare paper.</li>
        <li>Scan the QR from 12in with two phones. It lands on the right page.</li>
        <li>Navy and red checked against the builds on page 5.</li>
        <li>Door hanger: page 3 die sent as its own file, flagged not to print.</li>
        <li>Hard proof approved by Taylor. Jacob signs off on any new offer or price.</li>
      </ol>
    </div>
  </div>
  <div class="foot"><span>Marathon Creative · Direct mail kit, press spec v1.0</span><span>Page 6 of 6</span></div>
</section>

<script src="spec.js"></script>
</body>
</html>
photo-credits.js26 lines, 1.6 KB
/* Marathon direct mail, photo credit register. One line per photo, keyed by file name.
   The caption on every card is looked up here from the photo the card is actually showing.
   You never type a caption into a card. A photo that is not listed here prints with no caption.
   New shoot for a drop: add one line, file name on the left, the true credit on the right.
   Keep it under 38 characters so it fits the caption slot on one line. */
window.MC_PHOTO_CREDITS = {
  'mc_fullres_10.jpg': 'Lot aerial and lot line by Marathon',
  'mc_fullres_11.jpg': 'Lot aerial and lot line by Marathon',
  'mc_fullres_12.jpg': 'Lot aerial and lot line by Marathon',
  'mc_fullres_13.jpg': 'Lot aerial and lot line by Marathon',
  'mc_fullres_14.jpg': 'Golf course lot aerial by Marathon',
  'mc_fullres_15.jpg': 'Golf course lot aerial by Marathon',
  'mc_retouched_01.jpg': 'Cangelosi team portrait by Marathon',
  'mc_retouched_02.jpg': 'Cangelosi monument sign by Marathon',
  'mc_retouched_03.jpg': 'Cangelosi showroom by Marathon',
  'mc_retouched_04.jpg': 'Cangelosi showroom wall by Marathon',
  'mc_retouched_05.jpg': 'Cangelosi showroom by Marathon',
  'mc_retouched_06.jpg': 'Cangelosi slab detail by Marathon',
  'mc_retouched_07.jpg': 'Cangelosi showroom art by Marathon',
  'mc_retouched_08.jpg': 'Cangelosi sample racks by Marathon',
  'mc_retouched_09.jpg': 'Cangelosi sample racks by Marathon',
  'mc_rosehill_16.jpg': 'Rosehill Reserve aerial by Marathon',
  'mc_rosehill_17.jpg': 'Rosehill Reserve entry by Marathon',
  'mc_rosehill_18.jpg': 'Rosehill Reserve aerial by Marathon'
};
qr.js4 lines, 3.3 KB
/* Generated by build_qr.py for https://marathoncreative.co. Rerun it to change the URL. */
window.MC_QR = '<svg class="mc-qr" viewBox="-4 -4 37 37" role="img" aria-label="QR code to https://marathoncreative.co"><rect class="mc-qr-bg" x="-4" y="-4" width="37" height="37"/><path class="mc-qr-ink" d="M0 0h7v1h-7zM13 0h1v1h-1zM15 0h1v1h-1zM18 0h3v1h-3zM22 0h7v1h-7zM0 1h1v1h-1zM6 1h1v1h-1zM13 1h1v1h-1zM15 1h5v1h-5zM22 1h1v1h-1zM28 1h1v1h-1zM0 2h1v1h-1zM2 2h3v1h-3zM6 2h1v1h-1zM8 2h1v1h-1zM11 2h1v1h-1zM13 2h3v1h-3zM17 2h1v1h-1zM19 2h2v1h-2zM22 2h1v1h-1zM24 2h3v1h-3zM28 2h1v1h-1zM0 3h1v1h-1zM2 3h3v1h-3zM6 3h1v1h-1zM9 3h5v1h-5zM15 3h1v1h-1zM18 3h3v1h-3zM22 3h1v1h-1zM24 3h3v1h-3zM28 3h1v1h-1zM0 4h1v1h-1zM2 4h3v1h-3zM6 4h1v1h-1zM8 4h1v1h-1zM11 4h1v1h-1zM18 4h1v1h-1zM22 4h1v1h-1zM24 4h3v1h-3zM28 4h1v1h-1zM0 5h1v1h-1zM6 5h1v1h-1zM8 5h2v1h-2zM12 5h1v1h-1zM15 5h1v1h-1zM18 5h2v1h-2zM22 5h1v1h-1zM28 5h1v1h-1zM0 6h7v1h-7zM8 6h1v1h-1zM10 6h1v1h-1zM12 6h1v1h-1zM14 6h1v1h-1zM16 6h1v1h-1zM18 6h1v1h-1zM20 6h1v1h-1zM22 6h7v1h-7zM9 7h1v1h-1zM15 7h1v1h-1zM17 7h1v1h-1zM1 8h1v1h-1zM4 8h1v1h-1zM6 8h1v1h-1zM8 8h3v1h-3zM16 8h1v1h-1zM18 8h4v1h-4zM23 8h2v1h-2zM26 8h1v1h-1zM1 9h1v1h-1zM3 9h2v1h-2zM7 9h3v1h-3zM14 9h2v1h-2zM18 9h1v1h-1zM21 9h8v1h-8zM1 10h4v1h-4zM6 10h2v1h-2zM9 10h2v1h-2zM12 10h2v1h-2zM15 10h1v1h-1zM17 10h1v1h-1zM20 10h2v1h-2zM26 10h1v1h-1zM28 10h1v1h-1zM0 11h2v1h-2zM3 11h2v1h-2zM7 11h4v1h-4zM12 11h1v1h-1zM15 11h1v1h-1zM17 11h3v1h-3zM21 11h1v1h-1zM23 11h3v1h-3zM27 11h2v1h-2zM0 12h2v1h-2zM3 12h1v1h-1zM5 12h4v1h-4zM10 12h1v1h-1zM14 12h2v1h-2zM17 12h1v1h-1zM19 12h2v1h-2zM23 12h1v1h-1zM25 12h1v1h-1zM28 12h1v1h-1zM0 13h1v1h-1zM2 13h1v1h-1zM4 13h1v1h-1zM9 13h4v1h-4zM17 13h1v1h-1zM22 13h1v1h-1zM24 13h1v1h-1zM26 13h3v1h-3zM0 14h2v1h-2zM4 14h1v1h-1zM6 14h4v1h-4zM12 14h1v1h-1zM15 14h1v1h-1zM18 14h1v1h-1zM20 14h1v1h-1zM22 14h1v1h-1zM24 14h1v1h-1zM28 14h1v1h-1zM0 15h3v1h-3zM5 15h1v1h-1zM7 15h1v1h-1zM9 15h2v1h-2zM12 15h3v1h-3zM20 15h2v1h-2zM23 15h1v1h-1zM25 15h1v1h-1zM0 16h1v1h-1zM2 16h6v1h-6zM9 16h1v1h-1zM11 16h1v1h-1zM13 16h1v1h-1zM15 16h2v1h-2zM20 16h2v1h-2zM0 17h1v1h-1zM2 17h3v1h-3zM7 17h2v1h-2zM11 17h3v1h-3zM18 17h1v1h-1zM22 17h3v1h-3zM26 17h1v1h-1zM28 17h1v1h-1zM6 18h1v1h-1zM8 18h2v1h-2zM13 18h3v1h-3zM17 18h2v1h-2zM23 18h1v1h-1zM25 18h1v1h-1zM28 18h1v1h-1zM2 19h3v1h-3zM7 19h3v1h-3zM11 19h1v1h-1zM15 19h3v1h-3zM19 19h2v1h-2zM25 19h1v1h-1zM0 20h2v1h-2zM3 20h4v1h-4zM8 20h1v1h-1zM12 20h2v1h-2zM17 20h1v1h-1zM20 20h6v1h-6zM28 20h1v1h-1zM8 21h1v1h-1zM11 21h1v1h-1zM15 21h2v1h-2zM18 21h3v1h-3zM24 21h1v1h-1zM26 21h1v1h-1zM28 21h1v1h-1zM0 22h7v1h-7zM10 22h3v1h-3zM14 22h2v1h-2zM17 22h1v1h-1zM19 22h2v1h-2zM22 22h1v1h-1zM24 22h1v1h-1zM28 22h1v1h-1zM0 23h1v1h-1zM6 23h1v1h-1zM10 23h4v1h-4zM17 23h4v1h-4zM24 23h2v1h-2zM27 23h1v1h-1zM0 24h1v1h-1zM2 24h3v1h-3zM6 24h1v1h-1zM8 24h1v1h-1zM10 24h2v1h-2zM14 24h2v1h-2zM18 24h7v1h-7zM27 24h2v1h-2zM0 25h1v1h-1zM2 25h3v1h-3zM6 25h1v1h-1zM12 25h3v1h-3zM16 25h2v1h-2zM23 25h1v1h-1zM25 25h3v1h-3zM0 26h1v1h-1zM2 26h3v1h-3zM6 26h1v1h-1zM10 26h2v1h-2zM14 26h1v1h-1zM16 26h2v1h-2zM19 26h3v1h-3zM25 26h1v1h-1zM27 26h2v1h-2zM0 27h1v1h-1zM6 27h1v1h-1zM8 27h1v1h-1zM12 27h2v1h-2zM17 27h1v1h-1zM20 27h1v1h-1zM22 27h2v1h-2zM25 27h1v1h-1zM27 27h2v1h-2zM0 28h7v1h-7zM10 28h3v1h-3zM15 28h1v1h-1zM17 28h1v1h-1zM19 28h3v1h-3zM24 28h1v1h-1zM27 28h1v1h-1z"/></svg>';
window.MC_QR_URL = 'https://marathoncreative.co';
spec.js41 lines, 2.9 KB
/* Spec figures. Each .fig carries the press file, the sheet size in inches, a scale, and its
   dimension lines in sheet inches. 96 CSS px is one inch. Nothing here sets a colour. */
(function () {
  var PX = 96, NS = 'http://www.w3.org/2000/svg';
  function el(n, a, p) { var e = document.createElementNS(NS, n); for (var k in a) e.setAttribute(k, a[k]); if (p) p.appendChild(e); return e; }
  document.querySelectorAll('.fig').forEach(function (fig) {
    var sw = +fig.dataset.sw, sh = +fig.dataset.sh, s = +fig.dataset.scale, pad = +(fig.dataset.pad || 0.42);
    var W = sw * s * PX, H = sh * s * PX, P = pad * PX;
    fig.style.width = (W + P * 2) + 'px'; fig.style.height = (H + P * 2) + 'px';
    var frame = document.createElement('div'); frame.className = 'frame';
    frame.style.cssText = 'left:' + P + 'px;top:' + P + 'px;width:' + W + 'px;height:' + H + 'px';
    var f = document.createElement('iframe'); f.src = fig.dataset.src;
    f.style.width = sw * PX + 'px'; f.style.height = sh * PX + 'px'; f.style.transform = 'scale(' + s + ')';
    f.setAttribute('scrolling', 'no'); frame.appendChild(f); fig.appendChild(frame);
    var svg = el('svg', { 'class': 'dims' }, fig);
    var X = function (x) { return P + x * s * PX; }, Y = function (y) { return P + y * s * PX; };
    JSON.parse(fig.dataset.dims || '[]').forEach(function (d) {
      // [x1, y1, x2, y2, label, offset in inches, outward sign]
      var x1 = X(d[0]), y1 = Y(d[1]), x2 = X(d[2]), y2 = Y(d[3]), off = (d[5] || 0.2) * PX, horiz = Math.abs(y2 - y1) < 0.5;
      if (horiz) {
        var yy = y1 + off;
        el('line', { 'class': 'ext', x1: x1, y1: y1, x2: x1, y2: yy + (off > 0 ? 3 : -3) }, svg);
        el('line', { 'class': 'ext', x1: x2, y1: y2, x2: x2, y2: yy + (off > 0 ? 3 : -3) }, svg);
        el('line', { x1: x1, y1: yy, x2: x2, y2: yy }, svg);
        el('path', { 'class': 'tick', d: 'M' + x1 + ' ' + yy + 'l5 -2.2v4.4z' }, svg);
        el('path', { 'class': 'tick', d: 'M' + x2 + ' ' + yy + 'l-5 -2.2v4.4z' }, svg);
        var t = el('text', { x: (x1 + x2) / 2, y: yy + (off > 0 ? 10 : -3.5), 'text-anchor': 'middle' }, svg); t.textContent = d[4];
      } else {
        var xx = x1 + off;
        el('line', { 'class': 'ext', x1: x1, y1: y1, x2: xx + (off > 0 ? 3 : -3), y2: y1 }, svg);
        el('line', { 'class': 'ext', x1: x2, y1: y2, x2: xx + (off > 0 ? 3 : -3), y2: y2 }, svg);
        el('line', { x1: xx, y1: y1, x2: xx, y2: y2 }, svg);
        el('path', { 'class': 'tick', d: 'M' + xx + ' ' + y1 + 'l-2.2 5h4.4z' }, svg);
        el('path', { 'class': 'tick', d: 'M' + xx + ' ' + y2 + 'l-2.2 -5h4.4z' }, svg);
        var cx = xx + (off > 0 ? 4 : -4), cy = (y1 + y2) / 2;
        var t2 = el('text', { x: cx, y: cy, 'text-anchor': off > 0 ? 'start' : 'end', 'dominant-baseline': 'middle' }, svg); t2.textContent = d[4];
      }
    });
  });
})();
build_qr.py26 lines, 1.2 KB
# Builds qr.js from a URL. Usage: python3 build_qr.py https://marathoncreative.co
# The QR is drawn as one SVG path. Its colour comes from the page CSS (class mc-qr), never from this file.
import sys, segno, os
url = sys.argv[1] if len(sys.argv) > 1 else 'https://marathoncreative.co'
q = segno.make(url, error='m', micro=False)
rows = list(q.matrix)
n = len(rows)
d = []
for y, row in enumerate(rows):
    x = 0
    while x < n:
        if row[x]:
            s = x
            while x < n and row[x]: x += 1
            d.append(f'M{s} {y}h{x - s}v1h-{x - s}z')
        else:
            x += 1
q4 = 4  # quiet zone, four modules, the ISO minimum
svg = (f'<svg class="mc-qr" viewBox="-{q4} -{q4} {n + 2 * q4} {n + 2 * q4}" role="img" aria-label="QR code to {url}">'
       f'<rect class="mc-qr-bg" x="-{q4}" y="-{q4}" width="{n + 2 * q4}" height="{n + 2 * q4}"/>'
       f'<path class="mc-qr-ink" d="{"".join(d)}"/></svg>')
out = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'qr.js')
open(out, 'w').write('/* Generated by build_qr.py for ' + url + '. Rerun it to change the URL. */\n'
                     'window.MC_QR = ' + repr(svg) + ';\nwindow.MC_QR_URL = ' + repr(url) + ';\n')
print('wrote', out, n, 'modules')