/* Text sizes and title follow the CV page (#single in single.css). */
#guestbook {
  max-width: 44rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

#guestbook h1 {
  font-family: Alata, sans-serif;
  font-size: 3em;
  line-height: 1;
  color: var(--text-title-color);
  opacity: 0.8;
}

@media (max-width: 575px) {
  #guestbook {
    font-size: 1rem;
  }

  #guestbook h1 {
    font-size: 2.2em;
  }
}

#guestbook form {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

#guestbook label {
  display: grid;
  gap: 0.25rem;
}

#guestbook input,
#guestbook textarea,
#guestbook button {
  font: inherit;
  color: var(--text-color);
  background: transparent;
  border: 1px solid var(--text-secondary-color);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

#guestbook button {
  justify-self: start;
  cursor: pointer;
}

#guestbook button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Honeypot: visually hidden, still filled in by bots. */
.gb-trap {
  position: absolute;
  left: -999rem;
}

/* Drawings, both on the pad and on the wall. */
#guestbook svg {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--text-secondary-color);
  border-radius: 0.25rem;
}

#guestbook path {
  fill: none;
  stroke: var(--text-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#gb-pad {
  display: grid;
  gap: 0.5rem;
  max-width: 24rem;
}

#gb-pad[hidden] {
  display: none;
}

#gb-pad svg {
  cursor: crosshair;
  touch-action: none; /* draw instead of scrolling on touch screens */
}

.gb-wall {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.5rem;
}

.gb-wall p {
  margin: 0.5rem 0 0;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.gb-wall small {
  color: var(--text-secondary-color);
  font-size: 0.75em;
}
