/* Native Convert and embedded writing use identical cells and optical geometry.
 * Lux signs are set like capitals of the surrounding Latin text: each sign's
 * ink is exactly one cap height tall and sits on the baseline. Signs are filled
 * broad-nib outlines (lux-glyphs.js); a 1 px centre line keeps every stroke at
 * least one CSS pixel thick. Within a spelled word signs are 0.14 cap height
 * apart; words are separated by plain space of about one cap height. */
[data-lux-writing] {
  --lux-cap: .72em;
  --lux-sign-gap: calc(var(--lux-cap) * .14);
  --lux-word-space: calc(var(--lux-cap) * .86);
  --lux-mark-lead: calc(var(--lux-cap) * .3);
  display: block; white-space: normal; letter-spacing: normal; overflow-wrap: normal;
}
@supports (height: 1cap) { [data-lux-writing] { --lux-cap: 1cap; } }
/* A word moves to the next line whole; only a word wider than the line wraps inside itself. */
[data-lux-writing] .lux-word { display: inline-block; max-width: 100%; }
[data-lux-writing] .lux-cell { display: inline-block; vertical-align: baseline; margin-right: var(--lux-sign-gap); }
[data-lux-writing] .lux-cell.lux-mark { margin-left: var(--lux-mark-lead); }
[data-lux-writing] .lux-cell.lux-unwritten { margin-right: 0; }
[data-lux-writing] .lux-cell.lux-space { width: var(--lux-word-space); height: var(--lux-cap); margin-right: 0; }
[data-lux-writing] .lux-cell.lux-break { display: block; width: auto; height: calc((var(--lux-breaks, 1) - 1) * var(--lux-line, 1.5em)); margin: 0; }
/* The viewBox spans the ink exactly, so the box is one cap height on the baseline. */
[data-lux-writing] .lux-cell svg {
  display: inline-block; vertical-align: baseline; overflow: visible;
  height: var(--lux-cap); width: calc(var(--lux-cap) * var(--lux-aspect, .72));
}
[data-lux-writing] .lux-cell svg .lux-fill { fill: currentColor; stroke: none; }
[data-lux-writing] .lux-cell svg .lux-line { fill: none; stroke: currentColor; stroke-width: 1px; vector-effect: non-scaling-stroke; }
[data-lux-writing] .lux-cell.lux-literal { display: block; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #aaa; }
