/* The folding rule logo: a warm white page, a carpenter's folding rule drawn in thin vermilion lines that unfolds
   joint by joint, and the name that rises from it. */
:root {
  --ground: #f3f0e8;        /* the page, and the face of the rule */
  --ink: #141414;           /* the name */
  --accent: #e2462b;        /* the rule: its edges, its marks and its numbers */
  --hint: #9b968b;          /* the replay button */
  --screen: 100vh;
}
@supports (height: 100lvh) {
  :root { --screen: 100lvh; }
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--ground);
  overflow: hidden;
}

.scena {
  position: relative;
  height: var(--screen);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.palco {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: 'Instrument Sans Variable', 'Helvetica Neue', Arial, sans-serif;
}

.lettera { fill: var(--ink); }
.stecca {
  fill: var(--ground);
  stroke: var(--accent);
  stroke-linejoin: round;
}
.tacca {
  stroke: var(--accent);
  stroke-linecap: butt;
}
.cifra {
  fill: var(--accent);
  font-variant-numeric: tabular-nums;
}
.perno {
  fill: var(--ground);
  stroke: var(--accent);
}

/* the replay button: small, quiet, it shows up when the logo is done */
.ancora {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 8px 14px;
  border: 0;
  background: none;
  font-family: 'Instrument Sans Variable', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--hint);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: color 0.2s;
}
@media (hover: hover) {
  .ancora:hover { color: var(--ink); }
}
.ancora:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}
