/* Stupid Little Things: orange junk drawer of taped notes */

.things-title {
  font-size: clamp(3rem, 6.6vw, 7rem);
  transform: rotate(-1.6deg);
  transform-origin: left bottom;
}
.room-head:has(.things-title) {
  margin-bottom: clamp(2rem, 6vh, 3.5rem);
}
.things-sub {
  max-width: 34ch;
  font-weight: 600;
}

.board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 76rem;
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
}

.note {
  --tilt: -1.4deg;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 21rem;
  padding: 1.75rem 1.5rem 1.4rem;
  background: var(--cream);
  color: var(--soot);
  border-radius: 3px;
  box-shadow: 0 18px 30px -18px rgb(26 14 8 / 0.65);
  transform: rotate(var(--tilt));
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.note::before,
.note::after {
  content: "";
  position: absolute;
  width: 5.5rem;
  height: 1.6rem;
  background: rgb(236 214 170 / 0.85);
  box-shadow: 0 1px 2px rgb(26 14 8 / 0.15);
}
.note::before {
  left: -1.4rem;
  top: 0.6rem;
  transform: rotate(-38deg);
}
.note::after {
  right: -1.4rem;
  bottom: 0.7rem;
  transform: rotate(-38deg);
}
.note:hover,
.note:focus-within {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 28px 40px -20px rgb(26 14 8 / 0.7);
}
.note h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  color: var(--soot);
}
.note-art {
  display: grid;
  gap: 0.35rem;
  margin: 1.1rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 2px solid var(--soot);
  border-radius: 6px;
  font-family: var(--type);
  font-size: 0.98rem;
  line-height: 1.35;
}
.note-art.is-spell {
  border: 0;
  padding: 0;
  font-size: 1.45rem;
}
.note-art u {
  text-decoration: underline wavy #d23a1c;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
.note-art s {
  opacity: 0.55;
}
.note-kind {
  margin: 0;
  font-weight: 800;
}
.note-blurb {
  margin: 0.35rem 0 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
}
.note-open {
  justify-self: start;
  font-weight: 700;
  text-decoration: none;
}
.note-open::after {
  content: " →";
}
.note-open::before {
  content: "";
  position: absolute;
  inset: 0;
}
.note-open:hover,
.note:hover .note-open {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.note-open:focus-visible {
  outline: none;
}
.note:has(.note-open:focus-visible) {
  outline: 3px solid var(--soot);
  outline-offset: 4px;
}

.note.is-empty {
  place-content: center;
  grid-template-rows: none;
  background: rgb(255 241 224 / 0.55);
  outline: 2px dashed var(--soot);
  outline-offset: -10px;
  box-shadow: none;
}
.note.is-empty p {
  margin: 0;
  font-family: var(--type);
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
}

.drawer-note {
  position: relative;
  z-index: 2;
  max-width: 46ch;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  font-weight: 600;
}
.drawer-note code {
  font-family: var(--type);
  font-weight: 700;
}

@media (max-width: 640px) {
  .board {
    gap: 2.5rem;
    padding-inline: 0.75rem;
  }
  .note {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .note,
  .note:hover,
  .note:focus-within {
    transform: rotate(var(--tilt));
  }
}
