/* What the Birds Leave: only what this piece draws. The plate, the frame, the keycaps,
   the key strip and the wall label are the site's (/assets/main.css, _readings.scss).
   In the frame the sky is cobalt and the birds are cream; the Simorgh's dots are yellow,
   the one thing the poem is looking for. */

@font-face {
  font-family: "Amiri Attar";
  src: url("data/naskh/hand.woff2") format("woff2");
  font-display: block;
}

/* the piece's own Persian (its verse, its section titles, the words quoted in the
   wall label) stays in its hand; Persian that labels the controls is the site's */
.ro-label [lang="fa"], .ro-panel .where [lang="fa"] { font-family: "Amiri Attar", var(--serif); unicode-bidi: isolate; font-size: 1.15em; }
.bk-readout .bk-fa { font-family: "Amiri Attar", var(--fa-serif); }

#letters, #sky { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#sky { cursor: crosshair; }
#sky.dragging { cursor: grabbing; }

/* ---- the couplet under the pointer, or under j / k: the site's verse form (_readings.scss);
   the hand is set on #couplet as it changes (naskh, nastaliq) ---- */
.ro-panel { --ro-hand: "Amiri Attar"; }

/* the line j / k is reading: a cream hairline under it */
.sel-rule {
  position: absolute; left: 0; top: 0; z-index: 1;
  height: 1px; background: var(--ro-mark); opacity: .75;
  pointer-events: none; transform-origin: 0 0;
}

/* ---- layers and one layer alone: the site's (_readings.scss) ---- */
body.hand-english #layers { display: none; }

.fallback { margin: 2rem 0; font: 400 .8rem/1.5 var(--mono); }

/* ---- in Persian (../lang.js): what the piece writes is set in the site's Persian face,
   without the mono's spacing and capitals; the verse keeps its hand ---- */
html[data-lang="fa"] :is(.layer-label, .solo, .ro-panel .count, .ro-panel .line .n, .bk-readout, .bk-map__cap, .bk-valleys__t, .bk-bar__n),
html[data-lang="fa"] :is(.layer-label, .solo, .bk-readout) :not(.fp-k):not(kbd):not(.bk-fa) {
  font-family: var(--fa); letter-spacing: 0; text-transform: none; font-style: normal;
}
.bk-readout[dir="rtl"] .bk-bk { direction: ltr; }   /* the bars and their ticks are measured from the left */
.bk-readout[dir="rtl"] .bk-fa { text-align: right; }

@media (max-width: 720px) {
}
