/* SporePrint tokens, sampled off assets/avatar.png (PIL corner probe ~rgb(159,144,117))
   paper #EFE7D2, taupe panel #9F9075, ink #2B2013, chalk #F4EFE2, tape/accent lime #CCFF00
   type: Courier Prime (typed case-log copy, CA) + Kalam (handwritten field notes)
   spacing scale: 4 8 12 16 24 40px. corner radius: 0 (case-file paper has no rounding). */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #efe7d2;
  color: #2b2013;
  font-family: 'Courier Prime', 'Courier New', monospace;
}

body {
  background-image:
    linear-gradient(rgba(43,32,19,0.035) 1px, transparent 1px);
  background-size: 100% 28px;
}

a { color: inherit; }

.case-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #2b2013;
  color: #efe7d2;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.case-title {
  font-weight: 700;
  margin-right: auto;
}

.status {
  font-size: 11px;
  color: #cfc6ab;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.board {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}

.photo-frame {
  position: relative;
  margin: 0;
  background: #f4efe2;
  padding: 10px 10px 30px;
  border: 1px solid rgba(43,32,19,0.18);
  box-shadow: 0 10px 22px rgba(43,32,19,0.22);
  transform: rotate(-1.1deg);
  max-width: min(440px, 82vw);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40vh;
  object-fit: contain;
  background: #9f9075;
}

.photo-frame figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-align: center;
  color: #5a4d34;
}

.tape {
  position: absolute;
  width: 46px;
  height: 18px;
  background: rgba(204,255,0,0.55);
  border: 1px solid rgba(43,32,19,0.15);
  top: -9px;
  z-index: 2;
}

.tape-l { left: 10px; transform: rotate(-8deg); }
.tape-r { right: 10px; transform: rotate(7deg); }

.evidence-tag {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e9c86a;
  border: 1px solid #8a6d1f;
  padding: 7px 14px 7px 22px;
  font-size: 13px;
  transform: rotate(1.4deg);
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 14px rgba(43,32,19,0.25);
  transition: background 120ms ease;
}

.evidence-tag:hover,
.evidence-tag:focus-visible {
  background: #f0d47f;
  outline: none;
}

.tag-hole {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #efe7d2;
  border: 1px solid #6b5314;
}

.tag-label {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag-value {
  font-weight: 700;
  white-space: nowrap;
}

.tag-copied {
  position: absolute;
  right: 6px;
  top: -22px;
  font-size: 10px;
  letter-spacing: 0.06em;
  background: #2b2013;
  color: #ccff00;
  padding: 2px 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.evidence-tag.copied .tag-copied {
  opacity: 1;
  transform: translateY(0);
}

.hero-line {
  margin: 18px 4px 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #3d3120;
  max-width: 56ch;
}

.notes {
  margin: 28px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notes-heading {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #5a4d34;
  margin: 0 4px;
}

.note {
  font-family: 'Kalam', cursive;
  background: #f7f2e4;
  border: 1px solid rgba(43,32,19,0.18);
  padding: 14px 16px 16px;
  font-size: 16px;
  line-height: 1.45;
  color: #2b2013;
  box-shadow: 1px 3px 8px rgba(43,32,19,0.14);
  opacity: 0;
  transform: translateY(16px) rotate(-0.6deg);
  transition: opacity 480ms ease, transform 480ms ease;
}

.note:nth-child(3) { transform: translateY(16px) rotate(0.8deg); }
.note:nth-child(4) { transform: translateY(16px) rotate(-0.4deg); }
.note:nth-child(5) { transform: translateY(16px) rotate(0.5deg); }

.note.seen {
  opacity: 1;
  transform: translateY(0) rotate(-0.3deg);
}

.note:nth-child(3).seen { transform: translateY(0) rotate(0.5deg); }
.note:nth-child(4).seen { transform: translateY(0) rotate(-0.2deg); }
.note:nth-child(5).seen { transform: translateY(0) rotate(0.3deg); }

.note-index {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6b5314;
  margin-bottom: 4px;
}

.chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px 22px;
  max-width: 720px;
  margin: 0 auto;
  font-size: 12px;
  border-top: 1px solid rgba(43,32,19,0.18);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chrome-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(43,32,19,0.4);
  padding-bottom: 1px;
}

.chrome-link.buy {
  background: #2b2013;
  color: #efe7d2;
  border: none;
  padding: 5px 10px;
}

.x-icon {
  width: 14px;
  height: 14px;
  color: #2b2013;
}

.chain-note {
  margin-left: auto;
  color: #6b5b3d;
  font-size: 11px;
}

@media (max-width: 480px) {
  .case-strip { font-size: 11px; }
  .photo-frame img { max-height: 34vh; }
  .hero-line { font-size: 12.5px; }
  .note { font-size: 15px; }
  .chain-note { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .note {
    transition: none;
  }
}
