.detective-board {
  --board-paper: #fbf6e7;
  --board-ink: #34382e;
  background: #ece7db;
  color: #34382e;
}
.detective-board .masthead {
  height: 92px;
  width: min(1280px, 100% - 80px);
  border-bottom: 0;
}

.board-shell {
  width: min(1320px, 100% - 52px);
  margin: 0 auto 55px;
  border: 12px solid #725a43;
  border-radius: 4px;
  box-shadow:
    0 18px 50px #36261822,
    inset 0 0 0 2px #e3caa744;
  position: relative;
  background: #b29b7e;
}
.board-shell:before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.47' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.65;
}
.board-surface {
  position: relative;
  height: 1160px;
  isolation: isolate;
  box-shadow: inset 0 0 55px #46311d22;
}
.board-topline {
  position: absolute;
  top: 23px;
  left: 29px;
  right: 29px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: #4d422e;
}
.board-threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.board-piece {
  position: absolute;
  color: var(--board-ink);
  background: var(--board-paper);
  border: 0;
  box-shadow: 3px 7px 11px #392c1e30;
  z-index: 2;
}
button.board-piece {
  cursor: pointer;
  text-align: left;
  transition:
    translate 0.2s,
    box-shadow 0.2s;
}
button.board-piece:hover {
  translate: 0 -5px;
  box-shadow: 5px 14px 18px #392c1e38;
}
.board-piece:focus-visible {
  outline: 3px solid #752d28;
  outline-offset: 6px;
}
.board-pin {
  position: absolute;
  left: calc(50% - 5px);
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #f2b5a1 0,
    #b95743 30%,
    #752a25 70%,
    #57231d 100%
  );
  box-shadow: 1px 3px 3px #31190c66;
  z-index: 5;
  pointer-events: none;
}
.board-kicker {
  display: block;
  font: 9px/1.5 var(--mono);
  letter-spacing: 1px;
  color: #77715e;
}
.board-profile {
  left: 5%;
  top: 106px;
  width: 330px;
  padding: 32px 27px 27px;
  transform: rotate(-3deg);
}
.board-profile h1 {
  font: 43px/1.08 var(--display);
  letter-spacing: -1.6px;
  margin: 13px 0 19px;
}
.board-profile h1 em {
  font-family: var(--serif);
  font-size: 48px;
}
.board-profile p {
  font-size: 13px;
  line-height: 1.8;
  margin: 15px 0;
  color: #6a6d5d;
}
.board-profile a {
  display: inline-block;
  font: 10px var(--mono);
  border-bottom: 2px solid #cfb345;
  padding-bottom: 4px;
  margin-top: 5px;
}
.board-profile .start-note {
  position: absolute;
  top: -31px;
  left: -2px;
  font:
    25px Caveat,
    cursive;
  transform: rotate(-4deg);
  color: #572e24;
}
.board-photo {
  left: 43%;
  top: 91px;
  width: 270px;
  padding: 12px 12px 16px;
  transform: rotate(6deg);
  z-index: 3;
}
.board-photo:before {
  content: "";
  position: absolute;
  top: -13px;
  left: 91px;
  width: 85px;
  height: 31px;
  background: #f6c5007a;
  transform: rotate(-9deg);
  z-index: 4;
}
.board-photo img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
}
.board-photo figcaption {
  font:
    18px/1.3 Caveat,
    cursive;
  text-align: center;
  margin-top: 10px;
}
.board-music {
  left: auto !important;
  right: 4%;
  top: 88px;
  width: 230px;
  padding: 28px 19px 20px;
  transform: rotate(-4deg);
  background: #f1e9d5;
}
.board-music .music-eyebrow {
  font-size: 9px;
  letter-spacing: 0.5px;
  margin-bottom: 9px;
}
.board-music h2 {
  font-size: 25px;
}
.board-music .music-record {
  grid-template-columns: 46px minmax(0, 1fr);
  margin-top: 18px;
  gap: 10px;
}
.board-music .music-artwork {
  width: 46px;
  height: 46px;
}
.board-music .music-status {
  font-size: 9px;
}
.board-music .music-track {
  font-size: 14px !important;
  line-height: 1.4;
}
.board-music .music-artist {
  font-size: 11px;
}
.board-music .music-link {
  font-size: 11px;
  margin-top: 12px;
}
.board-book {
  left: 72%;
  top: 338px;
  width: 160px;
  background: #686044;
  color: #fff3cd;
  padding: 25px 20px 29px;
  transform: rotate(8deg);
}
.board-book .board-kicker {
  color: #ddd0a9;
}
.board-book strong {
  display: block;
  font: 25px/1.15 var(--serif);
  margin-top: 10px;
}
.board-book em {
  font-size: 31px;
}
.board-book p {
  font:
    17px/1.2 Caveat,
    cursive;
  margin-top: 9px;
}
.board-terminal {
  left: 5%;
  top: 500px;
  width: 320px;
  transform: rotate(2deg);
  background: #21362b;
  color: #c7ddb4;
  padding: 0 24px 23px;
}
.board-terminal .board-pin {
  top: 12px;
}
.board-terminal .terminal-top {
  font-size: 8px;
}
.board-terminal .terminal-top span {
  margin-left: 10px;
}
.board-terminal strong {
  display: block;
  font: 30px var(--mono);
  letter-spacing: -1.6px;
  margin-top: 28px;
}
.board-terminal p {
  font: italic 17px var(--serif);
  margin-top: 9px;
}
.board-terminal .terminal-output {
  font-size: 10px;
  margin-top: 19px;
}
.board-terminal .desk-open {
  margin-top: 24px;
}
.board-clinic {
  left: auto;
  right: 4%;
  top: 594px;
  width: 310px;
  padding: 0;
  transform: rotate(-4deg);
}
.board-clinic .browser-top {
  font-size: 8px;
  padding-top: 23px;
  gap: 15px;
  background: #fffaf0;
}
.board-clinic .browser-top span {
  font-size: 8px;
}
.board-clinic img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
  object-position: top;
}
.board-clinic .clinic-title {
  display: block;
  padding: 15px 17px;
  font: 18px/1.2 var(--serif);
}
.board-clinic .clinic-title small {
  display: block;
  font: 9px var(--mono);
  margin-top: 9px;
  color: #787566;
}
.board-cancer {
  left: 37%;
  top: 580px;
  width: 320px;
  padding: 42px 5px 9px;
  background: #f2dfa0;
  transform: rotate(-5deg);
}
.board-cancer .board-pin {
  left: calc(50% - 5px);
}
.board-cancer .board-cancer-title {
  position: absolute;
  top: 22px;
  left: 20px;
  font:
    600 26px Caveat,
    cursive;
}
.board-cancer img {
  width: 100%;
  height: 218px;
  object-fit: contain;
  display: block;
}
.board-reader {
  left: 7%;
  top: 861px;
  width: 270px;
  padding: 30px 24px 23px;
  transform: rotate(-5deg);
}
.board-reader:after {
  content: "?";
  position: absolute;
  right: 18px;
  top: 31px;
  font: italic 48px var(--serif);
  color: #8e4437;
  opacity: 0.7;
}
.board-reader h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-top: 16px;
  max-width: 170px;
}
.board-reader p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 200px;
  color: #6a6c5d;
}
.board-reader .play {
  display: block;
  margin-top: 16px;
  font: 11px var(--mono);
}
.board-more {
  left: auto;
  right: 5%;
  top: 944px;
  width: 315px;
  padding: 28px 22px 17px;
  transform: rotate(2deg);
}
.board-more .board-kicker {
  margin-bottom: 11px;
}
.board-more button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  background: none;
  border-bottom: 1px solid #d9d3bf;
  font-size: 12px;
}
.board-more button:last-child {
  border-bottom: 0;
}
.board-more button span {
  float: right;
  color: #8a5b44;
}
.board-annotation {
  position: absolute;
  font:
    24px/1.1 Caveat,
    cursive;
  color: #562d26;
  z-index: 1;
  pointer-events: none;
}
.annotation-research {
  left: 41%;
  top: 529px;
  transform: rotate(-8deg);
}
.annotation-build {
  right: 5%;
  top: 540px;
  transform: rotate(3deg);
}

.detective-board .desk-lower {
  background: var(--paper);
  padding: 40px;
  border: 1px solid var(--line);
}
.detective-board .end-footer {
  color: var(--ink);
}
[data-theme="night"] .detective-board {
  background: #292a24;
  color: #f3eddd;
}
@media (max-width: 1100px) and (min-width: 701px) {
  .board-surface {
    height: 1440px;
  }
  .board-profile {
    left: 4%;
    top: 105px;
    width: 31%;
    padding: 30px 20px 22px;
  }
  .board-profile h1 {
    font-size: 34px;
  }
  .board-profile h1 em {
    font-size: 39px;
  }
  .board-profile p {
    font-size: 12px;
  }
  .board-photo {
    left: 40%;
    top: 135px;
    width: 28%;
  }
  .board-photo img {
    height: 275px;
  }
  .board-photo figcaption {
    font-size: 16px;
  }
  .board-photo:before {
    left: 34%;
    width: 75px;
  }
  .board-music {
    right: 3%;
    width: 24%;
    top: 65px;
    padding: 27px 14px 18px;
  }
  .board-music h2 {
    font-size: 20px;
  }
  .board-music .music-record {
    grid-template-columns: 1fr;
  }
  .board-music .music-artwork {
    display: none;
  }
  .board-book {
    left: auto;
    right: 4%;
    top: 375px;
    width: 155px;
  }
  .board-terminal {
    left: 4%;
    top: 600px;
    width: 39%;
    padding: 0 18px 22px;
  }
  .board-terminal strong {
    font-size: 26px;
  }
  .board-cancer {
    left: auto;
    right: 5%;
    top: 690px;
    width: 41%;
  }
  .board-clinic {
    left: 5%;
    right: auto;
    top: 960px;
    width: 40%;
  }
  .board-reader {
    left: auto;
    right: 5%;
    top: 1100px;
    width: 40%;
  }
  .board-more {
    left: 5%;
    right: auto;
    top: 1240px;
    width: 40%;
  }
  .annotation-research {
    top: 575px;
    left: 48%;
  }
  .annotation-build {
    top: 910px;
    left: 8%;
    right: auto;
  }
}
@media (max-width: 700px) {
  .detective-board .masthead {
    width: calc(100% - 40px);
    height: 82px;
  }

  .board-shell {
    width: calc(100% - 22px);
    border-width: 7px;
  }
  .board-surface {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 27px 20px 35px;
  }
  .board-topline {
    position: static;
    font-size: 8px;
    line-height: 1.7;
  }
  .board-topline span:last-child {
    display: none;
  }
  .board-piece {
    position: relative;
    inset: auto !important;
    max-width: 100%;
    margin: 0;
  }
  .board-threads,
  .board-annotation {
    display: none;
  }
  .board-profile {
    width: 94%;
    align-self: start;
    margin-top: 17px;
    padding: 29px 23px 23px;
  }
  .board-profile h1 {
    font-size: 37px;
  }
  .board-profile h1 em {
    font-size: 43px;
  }
  .board-profile .start-note {
    font-size: 22px;
  }
  .board-photo {
    width: 80%;
    align-self: end;
    margin-top: 4px;
  }
  .board-photo img {
    height: 280px;
  }
  .board-photo:before {
    left: 33%;
  }
  .board-photo figcaption {
    font-size: 17px;
  }
  .board-music {
    width: 85%;
    align-self: start;
  }
  .board-book {
    display: none;
  }
  .board-terminal {
    width: 94%;
    align-self: end;
    padding: 0 19px 23px;
  }
  .board-terminal strong {
    font-size: 27px;
  }
  .board-clinic {
    width: 93%;
    align-self: start;
  }
  .board-cancer {
    width: 94%;
    align-self: end;
  }
  .board-cancer img {
    height: 210px;
  }
  .board-reader {
    width: 89%;
    align-self: start;
  }
  .board-more {
    width: 96%;
    align-self: end;
  }
  .detective-board .desk-lower {
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.board-piece {
    transition: none;
  }
  button.board-piece:hover {
    translate: none;
  }
}
.board-music .board-source-link {
  display: inline-block;
  margin-top: 17px;
  padding-bottom: 3px;
  border-bottom: 1px solid #c8bda4;
  font: 10px var(--mono);
  color: #625d4d;
}

/* Location belongs with the person, on its own small pinned slip. */
.board-location {
  left: 65%;
  top: 455px;
  width: 205px;
  padding: 25px 18px 15px;
  transform: rotate(-4deg);
  background: #f6f0dc;
  z-index: 4;
}
.board-location .board-kicker {
  font-size: 8px;
  letter-spacing: 0.7px;
}
.board-location h3 {
  font: 21px/1.12 var(--display);
  letter-spacing: -0.5px;
  margin-top: 11px;
}
.board-location p {
  font:
    19px/1.1 Caveat,
    cursive;
  margin-top: 8px;
  color: #71644d;
}
.board-book {
  left: auto;
  right: 3%;
  width: 150px;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .board-location {
    left: 48%;
    top: 545px;
    width: 210px;
  }
  .annotation-research {
    top: 660px;
    left: 48%;
    font-size: 21px;
  }
}
@media (max-width: 700px) {
  .board-location {
    position: relative;
    inset: auto !important;
    width: 82%;
    align-self: start;
    margin-top: -8px;
    margin-left: 10px;
  }
}

.board-trail {
  left: 39%;
  top: 875px;
  width: 295px;
  padding: 27px 22px 18px;
  background: #fbf5e5;
  transform: rotate(-2deg);
}
.board-trail .board-kicker {
  font-size: 8px;
}
.board-trail h3 {
  font:
    600 29px/1.1 Caveat,
    cursive;
  letter-spacing: 0;
  margin-top: 8px;
}
.trail-stops {
  list-style: none;
  padding: 0 0 0 12px;
  margin: 15px 0 0 3px;
  border-left: 1px solid #a34d3d66;
}
.trail-stops li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
}
.trail-stops li:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: -15px;
  top: 6px;
  border: 1px solid #a34d3d;
  border-radius: 50%;
  background: #fbf5e5;
}
.trail-stops strong {
  font: 600 12px/1.25 var(--display);
}
.trail-stops span {
  font-size: 10px;
  line-height: 1.4;
  color: #77715e;
}
.trail-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #d8cdb8;
}
.trail-links a {
  font: 10px var(--mono);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .board-trail {
    left: auto;
    right: 5%;
    top: 1360px;
    width: 40%;
  }
  .board-surface {
    height: 1660px;
  }
}
@media (max-width: 700px) {
  .board-trail {
    position: relative;
    inset: auto !important;
    width: 95%;
    align-self: start;
  }
}
/* Keep the light paper motion on the two web project pins. */
.detective-board .board-terminal {
  --paper-angle: 2deg;
}
.detective-board .board-clinic {
  --paper-angle: -4deg;
}
.detective-board .board-terminal,
.detective-board .board-clinic {
  transform: perspective(900px) rotate(var(--paper-angle))
    rotateX(var(--paper-rx, 0deg)) rotateY(var(--paper-ry, 0deg));
  transition:
    transform 0.22s ease-out,
    translate 0.2s,
    box-shadow 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .board-terminal:hover .cursor {
    animation: desk-cursor 1s steps(2, start) infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .detective-board .board-terminal,
  .detective-board .board-clinic {
    transform: rotate(var(--paper-angle));
    transition: none;
  }
  .board-terminal:hover .cursor {
    animation: none;
  }
}
