/* Coat on the Door, kit round 13: lettering and colour tokens for the interface.
   Fonts are local Latin subsets (SIL Open Font License 1.1, licence files beside them in fonts/).
   Andika and Lexend carry Reserved Font Names, so their subsets are renamed "Cotd Reader" and "Cotd Plain". */
@font-face { font-family: 'Cotd Reader'; src: url('fonts/cotd-reader-400.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Cotd Reader'; src: url('fonts/cotd-reader-700.woff2') format('woff2'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Patrick Hand'; src: url('fonts/patrick-hand-400.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Cotd Plain'; src: url('fonts/cotd-plain-var.woff2') format('woff2'); font-weight: 100 900; font-display: block; }

:root {
  --ui-texel: 3px;               /* css px per texel at 1440 css width; scale with the view */
  --ui-panel-h: 105px;           /* 35 texels */
  --ui-ink: #221e19;             /* on paper, cards and the clock's label */
  --ui-ink-soft: #433c33;
  --ui-cream: #f2e8d2;           /* on the snooze bar, the duvet, felt and the dark */
  --ui-cream-dim: #d6cdb8;
  --ui-night: #141925;
  --ui-title: 'Cotd Reader', sans-serif;   /* lettering A (recommended); B: 'Patrick Hand'; C: 'Cotd Plain' */
  --ui-body: 'Cotd Reader', sans-serif;
}
.ui-font-B { --ui-title: 'Patrick Hand', sans-serif; --ui-body: 'Cotd Reader', sans-serif; }
.ui-font-C { --ui-title: 'Cotd Plain', sans-serif; --ui-body: 'Cotd Plain', sans-serif; }

.ui-pix { image-rendering: pixelated; image-rendering: crisp-edges; }
.ui-time { font: 700 30px/1 var(--ui-body); color: var(--ui-ink); letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.ui-alarm { font: 700 14px/1 var(--ui-body); color: var(--ui-ink-soft); }
.ui-choice-label { font: 700 30px/1 var(--ui-title); color: var(--ui-cream); }
.ui-choice-line { font: 400 15px/1.2 var(--ui-body); color: var(--ui-cream); opacity: 0.9; }
.ui-card-label { font: 700 24px/1 var(--ui-title); color: var(--ui-ink); }
.ui-card-line { font: 400 13px/1.2 var(--ui-body); color: var(--ui-ink-soft); }
.ui-h1 { font: 700 54px/1.05 var(--ui-title); color: var(--ui-ink); }
.ui-h2 { font: 700 32px/1.1 var(--ui-title); color: var(--ui-ink); }
.ui-sub { font: 400 22px/1.2 var(--ui-body); color: var(--ui-ink-soft); }
.ui-body { font: 400 18px/1.35 var(--ui-body); color: var(--ui-ink); }
.ui-on-felt .ui-h1, .ui-on-felt .ui-h2, .ui-on-felt .ui-body { color: var(--ui-cream); }
.ui-on-felt .ui-sub { color: var(--ui-cream-dim); }
.ui-btn-label { font: 700 20px/1 var(--ui-title); color: var(--ui-ink); }
.ui-on-dark { color: var(--ui-cream); }
