/* * The demo documents' look: each company's palette, the fonts, and US Letter pages. * * The fonts are fixed weights, never a variable font: Chrome prints a variable font's text as Type3 * glyph drawings, which select and search worse than the TrueType text a fixed weight prints as. * They hold the Latin characters only, so draw arrows and other symbols as SVG. */ @font-face { font-family: 'Inter'; font-weight: 400; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); } @font-face { font-family: 'Inter'; font-weight: 500; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); } @font-face { font-family: 'Inter'; font-weight: 600; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); } @font-face { font-family: 'Inter'; font-weight: 700; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); } @font-face { font-family: 'Manrope'; font-weight: 400; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); } @font-face { font-family: 'Manrope'; font-weight: 500; src: url('fonts/manrope-latin-500-normal.woff2') format('woff2'); } @font-face { font-family: 'Manrope'; font-weight: 600; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); } @font-face { font-family: 'Manrope'; font-weight: 700; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); } @font-face { font-family: 'Manrope'; font-weight: 800; src: url('fonts/manrope-latin-800-normal.woff2') format('woff2'); } @font-face { font-family: 'JetBrains Mono'; font-weight: 400; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); } @font-face { font-family: 'JetBrains Mono'; font-weight: 500; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); } /* The colours by role: `ink` for headings and solid shapes, the `accent` family for links, highlights and tinted panels, then text and borders. These are EmbedPDF's and CloudPDF's, for the welcome; a made-up company's document puts the company's class on ``. */ :root { --color-ink: #0a1a4d; --color-accent: #1677ff; --color-accent-strong: #006ffd; --color-accent-soft: #7db6ff; --color-accent-tint: #e6f0ff; --color-bg-soft: #fafbff; --color-fg: #031e50; --color-fg-muted: #515b7e; --color-border: #cfd5e1; --color-border-soft: #e4edfd; --font-display: 'Manrope', sans-serif; --font-body: 'Inter', sans-serif; --font-mono: 'JetBrains Mono', monospace; } /* Fernquill Ltd, which builds a document portal: fern green. */ .fernquill { --color-ink: #0f3324; --color-accent: #1b7a4b; --color-accent-strong: #13683f; --color-accent-soft: #86c4a2; --color-accent-tint: #e3f2ea; --color-bg-soft: #f7fbf9; --color-fg: #10291e; --color-fg-muted: #4c6157; --color-border: #ccd9d2; --color-border-soft: #e1ede7; } /* Lanternfield, which sells support and licences: lantern amber. */ .lanternfield { --color-ink: #3d1d06; --color-accent: #b5500e; --color-accent-strong: #9a430a; --color-accent-soft: #f2b27c; --color-accent-tint: #fdefe1; --color-bg-soft: #fffaf5; --color-fg: #2b1c12; --color-fg-muted: #6e5848; --color-border: #e3d5c9; --color-border-soft: #f3e7dc; } @page { size: letter; margin: 0; } html, body { margin: 0; } /* One sheet per page: its content is laid out to fill the page exactly. */ .page { box-sizing: border-box; width: 8.5in; height: 11in; overflow: hidden; background: #ffffff; break-after: page; } a { color: var(--color-accent); text-decoration: none; } /* On screen, the pages stack like a PDF app shows them. */ @media screen { body { padding: 32px 0; background: #eef1f6; } .page { margin: 0 auto 32px; box-shadow: 0 1px 3px rgba(10, 26, 77, 0.12); } } /* An arrow after a label, or before one: the fonts have no arrow characters. */ .arrow { width: 0.9em; height: 0.9em; margin-left: 0.25em; vertical-align: -0.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .arrow.before { margin-left: 0; margin-right: 0.3em; } /* ── Ordinary documents ──────────────────────────────────────────────────── */ /* A page of an ordinary document (a report, a proposal, a letter): the letterhead, the body, and a footer at the bottom. Documents read like the ones your users open: they never mention the viewer. */ .page.sheet { display: flex; flex-direction: column; position: relative; padding: 56px 80px 48px; font: 400 13.5px/1.65 var(--font-body); color: var(--color-fg); } .letterhead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); } .letterhead img { display: block; height: 26px; } .letterhead .kind { font: 700 11.5px/1.2 var(--font-display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-fg-muted); } .sheet .title { margin: 40px 0 0; font: 800 32px/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); text-wrap: balance; } .sheet .meta { margin: 10px 0 0; font-size: 12.5px; color: var(--color-fg-muted); } .sheet .status { display: inline-block; margin-left: 8px; padding: 4px 9px; border-radius: 999px; font: 700 10.5px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #8a4b00; background: #fff1d6; vertical-align: 1px; } .sheet .lead { margin: 24px 0 0; font-size: 15.5px; line-height: 1.6; } .sheet h2 { margin: 28px 0 0; font: 700 16px/1.3 var(--font-display); color: var(--color-ink); } .sheet p { margin: 10px 0 0; } /* A table of figures: numbers line up on the right. */ .sheet table { width: 100%; margin: 14px 0 0; border-collapse: collapse; font-size: 13px; } .sheet th { padding: 8px 10px; border-bottom: 1px solid var(--color-border); font: 700 11px/1.2 var(--font-display); letter-spacing: 0.07em; text-transform: uppercase; text-align: left; color: var(--color-fg-muted); } .sheet td { padding: 9px 10px; border-bottom: 1px solid var(--color-border-soft); } .sheet th.number, .sheet td.number { text-align: right; font-variant-numeric: tabular-nums; } /* A paragraph with room for a note in the right margin. */ .with-note { position: relative; } .note-slot { position: absolute; top: 2px; right: -50px; width: 27px; height: 27px; } .page-footer { flex: none; display: flex; justify-content: space-between; gap: 24px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-border); font-size: 11.5px; color: var(--color-fg-muted); }