/* The word clock: a minimal type piece on black. A grid of capitals in a variable grotesque (Archivo, width 62 to
   125 and weight 100 to 900): the letters that say the time are wide, heavy and light-coloured, the others narrow,
   thin and nearly black. Four corner marks, like crop marks, count the minutes between one word and the next. */
:root {
  --night: #0f0e0d;    /* the page */
  --lit: #f2eee6;      /* the letters that say the time */
  --unlit: #34312d;    /* the other letters */
  --minute: #ff5a1f;   /* the corner marks of the minutes in between, the only accent */
  --mark: #4a4640;     /* the corner marks still off, and the notes */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  overflow: hidden;
  background: var(--night);
  color: var(--lit);
  font-family: 'Archivo Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.clock {
  position: relative;
  padding: var(--pad, 28px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(11, var(--cell, 56px));
  grid-auto-rows: var(--cell, 56px);
  font-size: var(--type, 32px);
  line-height: 1;
}

.c {
  display: grid;
  place-items: center;
  color: var(--unlit);
  opacity: 0;
}

.corner {
  position: absolute;
  width: var(--arm, 14px);
  height: var(--arm, 14px);
  border-color: var(--mark);
  border-style: solid;
  border-width: 0;
  opacity: 0;
}

.corner--tl {
  left: 0;
  top: 0;
  border-left-width: 1px;
  border-top-width: 1px;
}

.corner--tr {
  right: 0;
  top: 0;
  border-right-width: 1px;
  border-top-width: 1px;
}

.corner--br {
  right: 0;
  bottom: 0;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.corner--bl {
  left: 0;
  bottom: 0;
  border-left-width: 1px;
  border-bottom-width: 1px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  margin: 0;
}

.foot {
  position: absolute;
  left: max(20px, 4vw);
  right: max(20px, 4vw);
  bottom: max(20px, 4vh);
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-variation-settings: 'wdth' 100, 'wght' 420;
  color: var(--mark);
  opacity: 0;
}

.foot__time {
  color: var(--lit);
  font-variant-numeric: tabular-nums;
  font-variation-settings: 'wdth' 100, 'wght' 560;
}
