/* ---------- CH 05: THE NOTES ----------
   Tent indigo (Erghad Afewo, 1:58): the night circle. Each subject is a cassette,
   the way songs travel across the Sahara, drawn as a flat cel prop with an ink
   outline and one lamp-amber label stripe. */
.notes { padding: clamp(3rem, 6vw, 6rem) var(--gutter) calc(var(--section) + var(--land-room)); overflow: hidden; }
.notes__head { position: relative; z-index: 1; }
.notes .h-display { max-width: 14ch; }

/* the shelf of tapes */
.tapes { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.tape { min-width: 0; }
.tape__link { display: grid; gap: .9rem; text-decoration: none; color: var(--fg); }
.tape__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.tape__shell {
  --body: var(--land-far); position: relative; aspect-ratio: 1.58; padding: 7% 7% 0; border-radius: 10px 12px 9px 11px;
  background: var(--body); border: var(--outline) solid var(--land-near);
  box-shadow: 8px 10px 0 var(--land-near);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.tape:nth-child(even) .tape__shell { --body: var(--sky-2); }
.tape__label {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center;
  padding: .55rem .75rem .5rem; border-radius: 4px; background: var(--sun); color: var(--land-near);
  border-top: 7px solid var(--accent);
}
.tape__side { grid-row: 1 / 3; font: 900 2rem/1 var(--font-display); color: var(--land-far); }
.tape__topic { font: 600 .6rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.tape__title { font: italic 700 clamp(1rem, .8rem + .55vw, 1.3rem)/1.08 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tape__window {
  position: relative; margin: 7% auto 0; width: 70%; height: 28%; display: flex; justify-content: space-between; align-items: center;
  padding: 0 6%; border-radius: 999px; background: var(--land-near); border: 2px solid var(--land-near);
}
.tape__ribbon { position: absolute; left: 24%; right: 24%; top: 50%; height: 34%; translate: 0 -50%; background: #5a3a22; border-radius: 2px; }
.tape__reel { position: relative; z-index: 1; width: 28%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); will-change: transform; }
.tape__reel i {
  position: absolute; inset: 16%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--land-near) 0 10%, transparent 10% 33.3%, var(--land-near) 33.3% 43.3%, transparent 43.3% 66.6%, var(--land-near) 66.6% 76.6%, transparent 76.6%);
  mask: radial-gradient(circle, transparent 0 22%, #000 23%);
}
.tape:hover .tape__reel i, .tape__link:focus-visible .tape__reel i { animation: spin .9s linear infinite; }
.tape__foot { position: absolute; left: 18%; right: 18%; bottom: -2.5px; height: 14%; border: 2.5px solid var(--land-near); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--land-near); }

.tape__hook { margin: .4rem 0 0; font-size: .95rem; color: var(--fg-dim); }
.tape__play { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; color: var(--accent); }
.tape__play svg { width: 14px; height: 14px; transition: transform var(--t-quick) var(--ease); }

/* press play: the shell dips toward you, the shadow tightens */
.tape__link:hover .tape__shell, .tape__link:focus-visible .tape__shell { transform: translate(4px, 5px) rotate(-1.2deg); box-shadow: 4px 5px 0 var(--land-near); }
.tape__link:hover .tape__play svg { transform: scale(1.25); }
.tape__link:active .tape__shell { transform: translate(6px, 8px); box-shadow: 0 0 0 var(--land-near); transition-duration: var(--t-quick); }

.notes__foot { position: relative; z-index: 1; max-width: var(--max); margin: clamp(2.5rem, 5vw, 4rem) auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.notes .btn--solid { background: var(--hot); color: var(--land-near); }
.notes .btn--solid::before { background: var(--sun); }
.notes .btn--solid:hover { color: var(--land-near); }
.notes__meta { font-size: .85rem; color: var(--fg-dim); }

@media (max-width: 1100px) { .tapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .tapes { grid-template-columns: 1fr; }
}
