/* Parts: the slip, stamps, the board, idea rows, the record. */

/* The canary slip: the one loud thing on the site. Its side edges are perforated. */
.slip {
  --hole: 7px;
  position: relative;
  background: var(--canary);
  padding: 1.5rem calc(1.5rem + var(--hole)) 1.35rem;
  max-width: 44rem;
}
/* Perforations: half circles in the paper colour along both side edges. */
.slip::before,
.slip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(2 * var(--hole));
  background: radial-gradient(
      circle at center,
      var(--paper) var(--hole),
      transparent calc(var(--hole) + 0.5px)
    )
    0 4px / 100% 22px repeat-y;
}
.slip::before {
  left: calc(-1 * var(--hole));
}
.slip::after {
  right: calc(-1 * var(--hole));
}
.slip h2 {
  font-size: var(--step-1);
  font-stretch: 88%;
}
.slip .command {
  display: block;
  margin-block: 0.9rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 2.3vw, 1rem);
  overflow-wrap: anywhere;
  user-select: all;
}
.slip .row {
  display: flex;
  gap: 0.75rem 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.slip ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  font-size: var(--step--1);
  max-width: 56ch;
}
.slip li + li {
  margin-top: 0.2rem;
}
/* The slip feeds out of the desk once. It only moves, so it is never hidden if the animation stalls. */
@keyframes feed {
  from {
    transform: translateY(-1rem);
  }
}
.slip.feeds {
  animation: feed 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Stamps: a verdict or a state, in stamp ink. */
.stamp {
  display: inline-block;
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  line-height: 1;
  padding: 0.28rem 0.45rem 0.22rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(-2deg);
  white-space: nowrap;
  color: var(--ink);
}
.stamp.good {
  color: var(--stamp-green);
}
.stamp.bad {
  color: var(--stamp-red);
}
.stamp.idle {
  color: var(--ink-soft);
}

/* Ruled sections, like a ledger page. */
.sheet {
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}
.section {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.section > h2 {
  margin-bottom: 0.4rem;
}
.section > .lead {
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* The board: one ruled row per function. */
.board {
  width: 100%;
  border-collapse: collapse;
}
.board th {
  text-align: left;
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--ink-soft);
  padding: 0.6rem 1rem;
  border-bottom: 1.5px solid var(--ink);
}
.board td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.board tr:last-child td {
  border-bottom: 0;
}
.board .name {
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 700;
  font-size: 1.15rem;
}
.board .name a {
  text-decoration: none;
}
.board .name a:hover {
  text-decoration: underline;
}
.fuel {
  min-width: 9rem;
}
.fuel .track {
  height: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 1px;
}
.fuel .fill {
  display: block;
  height: 100%;
  background: var(--ink);
}
@media (max-width: 44rem) {
  .board thead {
    display: none;
  }
  .board tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .board td {
    padding: 0;
    border: 0;
  }
  .board td.fuel {
    grid-column: 1 / -1;
  }
}
