/* The ribbon with one side: a paper ribbon with half a twist on warm paper. The canvas fills the page; the colours
   below are read by the script for the ribbon and the letters. */
:root {
  --paper: #f3f0e8;    /* the page */
  --ribbon: #fbfaf6;   /* the paper of the ribbon */
  --ink: #141414;      /* the word on the right side, the edge and the ticks */
  --accent: #e8431f;   /* the word that comes round on the wrong side */
}

* {
  box-sizing: border-box;
}

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

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

.stage {
  position: fixed;
  inset: 0;
  touch-action: none;
}

.canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}

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

/* the one line of help, small and quiet at the bottom */
.hint {
  position: absolute;
  left: 50%;
  bottom: max(28px, 5vh);
  margin: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 450;
  font-variation-settings: 'wdth' 112;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
}

/* without WebGL: the two words, flat */
.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.2em;
  text-align: center;
  font-size: clamp(40px, 9vw, 96px);
  font-weight: 520;
  font-variation-settings: 'wdth' 112;
  letter-spacing: 0.06em;
  line-height: 1;
}

.fallback span:last-child {
  color: var(--accent);
}
