/* Letterhead, the sheet. Portrait Letter by default, A4 under html.a4 (the
   runtime swaps the @page rule). A header with the business, a rule, a
   blank page with faint lines on a switch, and a footer line. The header
   sits left or centered as a variant. Colors only through --t-*; static
   font instances only. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: block; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/intertight-400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/intertight-500.woff2") format("woff2"); font-weight: 500; font-display: block; }

@page { size: Letter; margin: 0; }

:root { --t-paper: #ffffff; --t-ink: #1a1a1a; --t-accent: #1f4e79; --t-muted: #5b6b7a; }
html, body { margin: 0; padding: 0; background: #fff; }
[hidden] { display: none !important; }

.sheet {
  width: 8.5in; height: 11in; padding: 0.5in 0.7in 0.7in; box-sizing: border-box; position: relative; overflow: hidden;
  background: var(--t-paper); color: var(--t-ink);
  font: 400 10.5pt/1.45 "Inter Tight", system-ui, sans-serif;
  display: flex; flex-direction: column;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  --line: color-mix(in srgb, var(--t-muted) 35%, transparent);
}
html.a4 .sheet { width: 210mm; height: 297mm; }

.head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 0.3in; border-bottom: 1.5pt solid var(--t-accent); padding-bottom: 0.16in; }
.biz { display: flex; gap: 0.16in; align-items: flex-start; min-width: 0; }
.logo { height: 0.6in; width: auto; max-width: 1.8in; flex: none; }
.mark { width: 0.55in; height: 0.55in; flex: none; border: 1pt solid var(--t-accent); border-radius: 50%; display: grid; place-items: center; color: var(--t-accent); font: 500 17pt/1 "Newsreader", Georgia, serif; }
.biz-text { min-width: 0; }
.biz h1 { font: 500 20pt/1.1 "Newsreader", Georgia, serif; margin: 0; color: var(--t-ink); white-space: nowrap; overflow: hidden; max-width: 4.8in; height: 1.1em; }
.biz .tag { margin: 3pt 0 0; font: italic 500 10.5pt/1.3 "Newsreader", Georgia, serif; color: var(--t-muted); white-space: nowrap; overflow: hidden; max-width: 4.8in; height: 1.3em; }
.where { flex: none; text-align: right; font-size: 8.5pt; color: var(--t-muted); max-width: 2.3in; }
.where p { margin: 0 0 2pt; white-space: nowrap; overflow: hidden; height: 1.45em; }

/* Centered: the business block stacks in the middle and the address sits under it. */
.sheet[data-v-layout="Centered"] .head { flex-direction: column; align-items: center; text-align: center; }
.sheet[data-v-layout="Centered"] .biz { flex-direction: column; align-items: center; }
.sheet[data-v-layout="Centered"] .where { text-align: center; max-width: 6in; }

.body { flex: 1; min-height: 0; padding-top: 0.3in; display: flex; flex-direction: column; }
.rules { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.rules i { display: block; flex: 1; min-height: 0.32in; border-bottom: 0.5pt solid var(--line); }

.pagefoot { flex: none; border-top: 0.5pt solid var(--t-accent); padding-top: 6pt; font-size: 8pt; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-muted); text-align: center; white-space: nowrap; overflow: hidden; }

.foot { position: absolute; left: 0.7in; right: 0.7in; bottom: 0.3in; font-size: 7.5pt; color: var(--t-muted); display: flex; justify-content: space-between; align-items: flex-end; }
.ruler { width: 1in; border-top: 0.5pt solid var(--t-muted); font-size: 6.5pt; color: var(--t-muted); text-align: center; line-height: 1.6; }
