/* Larus interface language: measuring instruments.
   Square, flat, hairline. Engraved labels, wide numerals, graduated scales.
   Fog is the ground, pine the ink, turf the data, gold the moment of impact. */

@font-face { font-family: Archivo; src: url('assets/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  color-scheme: light;
  --pine: #1f3a2a;      /* ink: text, marks, primary actions */
  --turf: #3f7a3a;      /* measured data */
  --gold: #b9a27a;      /* the beak; the moment of impact, used sparingly */
  --fog: #edf0ea;       /* ground */
  --white: #ffffff;     /* plates */
  --ink: #1c1f22;       /* numerals */
  --stone: #8a9096;     /* secondary text, minor ticks */
  --rule: #1f3a2a26;    /* hairlines */
  --rule-strong: #1f3a2a55;
  --font: Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---- type ---- */
.l-engraved { font: 600 13px/1.1 var(--font); font-stretch: 88%; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.l-readout { font: 400 64px/1 var(--font); font-stretch: 125%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.l-readout .unit { font: 600 15px var(--font); font-stretch: 88%; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-left: 10px; vertical-align: 6px; }
.l-title { font: 500 23px/1.1 var(--font); font-stretch: 108%; letter-spacing: .04em; color: var(--pine); }
.l-body { font: 400 17px/1.5 var(--font); color: var(--ink); }

/* ---- plate: hairline, square, corner registration ticks ---- */
.l-plate { position: relative; background: var(--white); border: 1px solid var(--rule); padding: 22px; }
.l-plate::before, .l-plate::after { content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none; }
.l-plate::before { top: -1px; left: -1px; border-top: 1.5px solid var(--pine); border-left: 1.5px solid var(--pine); }
.l-plate::after { bottom: -1px; right: -1px; border-bottom: 1.5px solid var(--pine); border-right: 1.5px solid var(--pine); }

/* ---- selector: labels on a baseline; the active one carries a pine bar ---- */
.l-select { display: flex; gap: 26px; border-bottom: 1px solid var(--rule-strong); }
.l-select button { position: relative; min-height: 44px; padding: 12px 2px 12px; font: 600 14px var(--font); font-stretch: 88%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone); background: none; border: 0; cursor: pointer; }
.l-select button:hover { color: var(--pine); }
.l-select button.on { color: var(--pine); }
.l-select button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--pine); }

/* ---- buttons ---- */
.l-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  font: 600 14px var(--font); font-stretch: 88%; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  background: var(--pine); color: var(--white); border: 1px solid var(--pine); }
.l-button:hover { background: #2b5039; }
.l-button.quiet { background: transparent; color: var(--pine); border-color: var(--rule-strong); }
.l-button.quiet:hover { border-color: var(--pine); }
.l-button.square { width: 44px; padding: 0; }
.l-button svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- scale: a graduated ruler with a needle (used as timeline / slider) ---- */
.l-scale { position: relative; height: 60px; cursor: ew-resize; user-select: none; touch-action: none; }
.l-scale canvas { width: 100%; height: 100%; display: block; }

/* ---- chips of data (session bars) ---- */
.l-bars { display: flex; align-items: flex-end; gap: 3px; height: 88px; border-bottom: 1px solid var(--rule-strong); }
.l-bars i { flex: 1; min-width: 6px; background: var(--turf); opacity: .32; cursor: pointer; }
.l-bars i.alt { background: var(--stone); }
.l-bars i:hover { opacity: .65; }
.l-bars i.on { opacity: 1; }
