@font-face {
  font-family:Book;
  src:url(fonts/naskh.woff) format("woff");
  font-display:swap;
}

@font-face {
  font-family:Book;
  src:url(fonts/naskh-bold.woff) format("woff");
  font-style:normal;
  font-weight:700;
  font-display:swap;
}

@font-face {
  font-family:Interface;
  src:url(fonts/sans.woff) format("woff");
  font-display:swap;
}

:root {
  --plum:#201624;
  --night:#17131d;
  --cream:#f7f4ee;
  --ink:#2a202d;
  --muted:#68616a;
  --gold:#f3c67c;
  --line:#e2dbd2;
  --paper:#fffdf8;
  --warm:#755930;
  color:var(--ink);
  background:var(--cream);
  font:15px/1.65 Interface,Tahoma,Arial,sans-serif;
  scroll-behavior:smooth;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select {
  font:inherit;
  color:inherit;
}

button,select {
  cursor:pointer;
}

button {
  border:0;
}

button:disabled {
  opacity:.38;
  cursor:default;
}

a {
  color:inherit;
  text-decoration:none;
}

button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #ad7436;
  outline-offset:4px;
}

[hidden] {
  display:none!important;
}

svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  flex:none;
}

.shell {
  width:min(1260px,calc(100% - 100px));
  margin-inline:auto;
}

.skip {
  position:absolute;
  inset:6px 8px auto auto;
  padding:10px;
  background:var(--paper);
  z-index:20;
  transform:translateY(-160%);
}

.skip:focus {
  transform:none;
}

.site-head {
  position:relative;
  z-index:2;
  background:#19141e;
  color:#eee6db;
  border-bottom:1px solid #ffffff16;
}

.nav,.nav nav,.finder,.summary,.opening-actions,.spot-switch,.archive-top,.controls,.field,.tabs,.list-head,.pagination,footer .shell,.bar,.turn-controls,.links {
  display:flex;
  align-items:center;
}

.nav {
  height:75px;
  gap:48px;
}

.brand {
  display:flex;
  align-items:center;
}

.brand img {
  width:150px;
  height:auto;
  display:block;
}

.nav nav {
  gap:32px;
  font-size:13px;
}

.nav nav a,.gallery-link {
  transition:color .18s;
}

.nav nav a:hover,.gallery-link:hover {
  color:var(--gold);
}

.finder {
  margin-inline-start:auto;
  gap:9px;
  border:1px solid #ffffff38;
  border-radius:99px;
  padding:6px 15px;
  font-size:12px;
}

.finder:hover {
  border-color:var(--gold);
}

.hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  color:#fff9ee;
  background:radial-gradient(ellipse at 32% 40%,#493346 0%,#33253a 29%,transparent 62%),linear-gradient(118deg,#251b2b 0%,#241927 47%,#191420 100%);
}

.aurora,.horse-echo {
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
}

.aurora {
  background:radial-gradient(ellipse at 6% 55%,#af795524 0%,transparent 43%);
}

.horse-echo {
  inset:auto -4% -19% auto;
  width:min(40vw,560px);
  height:108%;
  background:url(exhibit/horse.webp) 50% 50%/contain no-repeat;
  opacity:.045;
  filter:grayscale(.5);
}

.hero-inner {
  min-height:480px;
  display:grid;
  grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);
  align-items:center;
  column-gap:3.4%;
  position:relative;
}

.opening {
  padding:32px 0 46px;
  position:relative;
  z-index:1;
}

.summary {
  gap:12px;
  color:#e7d7bd;
  font-size:12px;
  letter-spacing:.01em;
}

.summary i {
  width:34px;
  height:1px;
  background:linear-gradient(90deg,#b18143,#f7d094);
}

.summary b {
  color:#ac8d65;
  font-weight:400;
}

.opening h1 {
  margin:22px 0 29px;
  font:700 clamp(67px,6.15vw,98px)/1.1 Book,serif;
  letter-spacing:-.025em;
}

.opening h1 em {
  font:inherit;
  display:inline-block;
  background:linear-gradient(100deg,#d8a661,#ffdf9f 60%,#e8b771);
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.opening-actions {
  gap:23px;
}

.primary {
  display:inline-flex;
  align-items:center;
  gap:25px;
  padding:10px 22px;
  color:#2a1e20;
  font:700 16px/1.65 Interface,sans-serif;
  background:linear-gradient(115deg,#edb961,#f9d799);
  border:1px solid #ffe2a5;
  border-radius:100px;
  box-shadow:0 6px 24px #120b1540;
  transition:transform .24s,box-shadow .24s;
}

.primary span,.gallery-link span {
  font:20px/1 Arial;
  display:inline-block;
}

.primary:hover {
  transform:translateY(-2px);
  box-shadow:0 9px 32px #09030e66;
}

.gallery-link {
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-size:13px;
  color:#f4e9d9;
  border-bottom:1px solid #e6c88e66;
  padding:4px 0;
}

.gallery-link span {
  font-size:15px;
  color:var(--gold);
}

.showcase {
  height:455px;
  position:relative;
  direction:ltr;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  isolation:isolate;
  min-width:0;
}

.art-orbit {
  position:absolute;
  z-index:-1;
  left:48%;
  top:51%;
  width:115%;
  height:46%;
  transform:translate(-50%,-50%) rotate(-17deg);
  border-radius:50%;
  border:1px solid #dcb57545;
  pointer-events:none;
}

.art-orbit::before {
  content:"";
  position:absolute;
  inset:15% -7% -18% -2%;
  border-radius:50%;
  border:1px solid #f6d69919;
}

.art-orbit i,.art-orbit b {
  position:absolute;
  border-radius:50%;
  background:#f1c982;
  box-shadow:0 0 10px #eab87899;
  width:5px;
  height:5px;
  top:42%;
  left:0;
}

.art-orbit b {
  top:63%;
  left:auto;
  right:1%;
  width:4px;
  height:4px;
}

.stack {
  position:relative;
  width:min(67%,350px);
  height:335px;
  margin-top:5px;
  margin-inline:3% 0;
  perspective:1000px;
  touch-action:pan-y;
  animation:float 7s ease-in-out infinite;
}

.stack-sheet,.spotlight {
  position:absolute;
  inset:0;
  padding:0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid #eacfa288;
  background:#342a35;
  box-shadow:0 18px 35px #0b07183b;
  transform-origin:50% 95%;
}

.stack-sheet img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:50% 58%;
}

.stack-far {
  transform:translate(22%,-2%) rotate(11deg) scale(.82);
  filter:brightness(.68) saturate(.85);
}

.stack-near {
  transform:translate(-21%,4%) rotate(-12deg) scale(.88);
  filter:brightness(.82) saturate(.94);
}

.spotlight {
  width:100%;
  height:100%;
  isolation:isolate;
  transform:rotate(-3deg);
  color:#fff7ea;
  direction:rtl;
  cursor:pointer;
  transition:box-shadow .25s;
  display:block;
  text-align:start;
  box-shadow:0 28px 47px #0c071c82;
}

.spotlight:disabled {
  opacity:1;
}

.spotlight:hover {
  box-shadow:0 30px 52px #0c071ca6;
}

.spotlight:focus-visible {
  outline-offset:4px;
  outline-color:var(--gold);
}

.spot-art {
  position:absolute;
  inset:0;
  overflow:hidden;
}

.spot-art>img:first-child {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 61%;
  display:block;
}

.spot-art::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#120e19f0 0%,#120e199c 15%,transparent 42%);
}

.spot-art .cover-mark {
  position:absolute;
  z-index:1;
  left:12px;
  top:12px;
  width:58px;
  height:auto;
  filter:drop-shadow(0 1px 3px #140d17);
}

.spot-caption {
  display:block;
  position:absolute;
  bottom:15px;
  left:19px;
  right:19px;
  z-index:2;
  pointer-events:none;
  text-shadow:0 1px 8px #000;
}

.spot-credit {
  display:block;
  font-size:11px;
  color:#f4d39b;
}

.spot-caption strong {
  font:700 clamp(19px,1.75vw,28px)/1.55 Book,serif;
  display:block;
  padding-top:2px;
}

.spot-switch {
  direction:rtl;
  position:relative;
  z-index:2;
  color:#f6e7cd;
  gap:13px;
  justify-content:center;
  margin-top:18px;
  height:41px;
}

.spot-switch button,.turn-controls button,.bar #close {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:41px;
  height:41px;
  border-radius:50%;
  font:21px/1 Arial;
  background:#302635;
  border:1px solid #d6bd932e;
  color:#f5dfb5;
  transition:background .18s,transform .18s;
}

.spot-switch button:hover,.turn-controls button:not(:disabled):hover,.bar #close:hover {
  background:#504052;
  transform:translateY(-1px);
}

.spot-switch span {
  font-size:12px;
  min-width:42px;
  text-align:center;
  direction:rtl;
}

.stack:focus-within,.showcase:hover .stack {
  animation-play-state:paused;
}

@keyframes float {
  0%,100% {
    transform:translateY(1px);
  }
  50% {
    transform:translateY(-5px);
  }
}

.archive {
  padding:39px 0 54px;
  scroll-margin-top:10px;
  background:radial-gradient(ellipse at 90% 0%,#f0eae6 0,transparent 36%),var(--cream);
}

.archive-top {
  justify-content:space-between;
  gap:24px;
}

.archive h2 {
  font:700 clamp(32px,3.3vw,47px)/1.4 Book,serif;
  margin:0;
  color:var(--ink);
}

.controls {
  gap:8px;
  min-width:0;
}

.field,.controls select,.pagination select {
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #d9d2c9;
  background:#ffffffb3;
  border-radius:12px;
  font-size:12px;
}

.field {
  padding:0 12px;
}

.field input {
  border:0;
  background:transparent;
  padding:9px 0;
  width:clamp(105px,17vw,230px);
  outline:0;
}

.field input:focus-visible {
  outline:0;
}

.field:focus-within {
  border-color:#9c794e;
  box-shadow:0 0 0 2px #b3946729;
}

.controls select,.pagination select {
  padding:9px;
  max-width:142px;
  min-height:40px;
}

.tabs {
  flex-wrap:wrap;
  gap:7px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}

.tabs button,.more-genres summary {
  border:1px solid #dcd4ca;
  border-radius:100px;
  background:#fffcf7;
  color:#453744;
  min-height:34px;
  font-size:12px;
  padding:4px 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

.tabs button:hover,.more-genres summary:hover {
  border-color:#a38b70;
}

.tabs button span {
  font-size:10px;
  color:#766d69;
}

.tabs button[aria-pressed=true] {
  background:var(--plum);
  color:white;
  border-color:var(--plum);
}

.tabs button[aria-pressed=true] span {
  color:var(--gold);
}

.more-genres {
  display:contents;
}

.more-genres summary {
  cursor:pointer;
  list-style:none;
}

.more-genres summary::-webkit-details-marker {
  display:none;
}

.more-genres summary::after {
  content:"+";
  font:17px Arial;
}

.more-genres[open] summary::after {
  content:"−";
}

.extra-genres {
  flex-basis:100%;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding-top:6px;
}

.more-genres:not([open]) .extra-genres {
  display:none;
}

.list-head {
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
  padding:14px 0;
}

.grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:25px 20px;
}

.card {
  display:flex;
  flex-direction:column;
  min-width:0;
  text-align:start;
  padding:0;
  border:0;
  background:transparent;
  position:relative;
}

.card .mat {
  width:100%;
  display:grid;
  position:relative;
  place-items:center;
  aspect-ratio:4/5;
  overflow:hidden;
  background:#eae2d8;
  border:1px solid #59422d22;
  border-radius:14px;
  box-shadow:0 4px 12px #33253510;
  transition:transform .28s,box-shadow .28s;
}

.card img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.card .card-open {
  position:absolute;
  left:10px;
  top:10px;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#211627d6;
  border:1px solid #edd6b266;
  color:#ffedc7;
  opacity:0;
  transform:translateY(3px);
  transition:opacity .2s,transform .22s;
  font:17px/1 Arial;
}

.card:focus-visible .card-open {
  opacity:1;
}

.card .poet {
  display:flex;
  gap:8px;
  align-items:baseline;
  justify-content:space-between;
  width:100%;
  margin-top:9px;
  font-size:12px;
  color:var(--warm);
}

.card .poet span {
  font-size:10px;
  color:var(--muted);
}

.card .line {
  display:block;
  max-width:100%;
  font:700 clamp(19px,1.6vw,24px)/1.65 Book,serif;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(hover:hover) {
  .card:hover .mat {
    transform:translateY(-5px) rotate(-.45deg);
    box-shadow:0 11px 24px #33253525;
  }
  .card:hover .card-open {
    opacity:1;
    transform:none;
  }
}

.pagination {
  justify-content:center;
  gap:18px;
  margin-top:37px;
  font-size:13px;
}

.pagination button,.plain {
  padding:9px 15px;
  border:1px solid #d9cfc1;
  border-radius:100px;
  background:#fffdf8;
}

.pagination label {
  display:flex;
  align-items:center;
  gap:8px;
}

.pagination select {
  padding:7px;
}

.plain {
  background:var(--plum);
  color:#fff;
}

.pagination button:disabled {
  opacity:.45;
}

#empty,#error {
  text-align:center;
  padding:45px 20px;
}

footer {
  background:var(--night);
  color:#d1c4b3;
  font-size:12px;
}

footer .shell {
  height:87px;
  justify-content:space-between;
}

footer img {
  width:122px;
  height:auto;
  display:block;
}

#viewer {
  margin:auto;
  padding:0;
  width:min(1160px,95vw);
  max-width:none;
  max-height:min(93dvh,980px);
  border:1px solid #e6ce9d4d;
  border-radius:24px;
  color:var(--ink);
  background:var(--night);
  box-shadow:0 32px 110px #0c071a88;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#877888 #201824;
}

#viewer::backdrop {
  background:#120c19bd;
  backdrop-filter:blur(7px);
}

body:has(#viewer[open]) {
  overflow:hidden;
}

.bar {
  position:sticky;
  top:0;
  z-index:5;
  justify-content:space-between;
  padding:9px 18px;
  gap:14px;
  color:#f5e7cc;
  background:#201724f5;
  border-bottom:1px solid #ffffff14;
  backdrop-filter:blur(12px);
  min-height:59px;
}

.bar #close {
  width:auto;
  padding:0 10px;
  gap:5px;
  border-radius:99px;
  font-size:25px;
}

.bar #close small {
  font:11px Interface,sans-serif;
}

.viewer-wordmark {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  pointer-events:none;
}

.viewer-wordmark img {
  width:94px;
  display:block;
}

.turn-controls {
  gap:9px;
}

.turn-controls button {
  height:38px;
  min-width:38px;
}

.turn-controls #position {
  font-size:11px;
  text-align:center;
}

.view {
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
  align-items:start;
  padding:18px;
  gap:18px;
}

.studio {
  min-width:0;
  position:sticky;
  top:78px;
}

.image-area {
  height:clamp(300px,calc(86dvh - 165px),760px);
  min-width:0;
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  isolation:isolate;
  border:1px solid #ffffff17;
  border-radius:15px;
  touch-action:pan-y;
  background:radial-gradient(ellipse at 48% 38%,#554253,#2b212e 56%,#1c1720);
  perspective:1100px;
  user-select:none;
  cursor:grab;
}

.image-area.dragging {
  cursor:grabbing;
}

.image-area img {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  transform-origin:50% 58%;
  backface-visibility:hidden;
  user-select:none;
  -webkit-user-drag:none;
}

.image-area .outgoing {
  z-index:1;
  pointer-events:none;
}

.image-area #picture-state {
  position:absolute;
  z-index:3;
  bottom:10px;
  left:10px;
  margin:0;
  padding:4px 9px;
  border-radius:20px;
  font-size:11px;
  background:#211626e6;
  color:white;
}

.filmstrip {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  min-height:60px;
  padding:8px 4px 0;
}

.filmstrip button {
  display:block;
  flex:0 1 48px;
  width:48px;
  height:42px;
  position:relative;
  overflow:hidden;
  padding:0;
  border:1px solid #ffffff38;
  border-radius:6px;
  background:#3d323d;
  opacity:.7;
  transition:transform .2s,opacity .2s;
}

.filmstrip button img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 52%;
}

.filmstrip button[aria-current=true] {
  opacity:1;
  border:2px solid #f6cf88;
  transform:translateY(-3px);
}

.filmstrip button:hover {
  opacity:1;
}

.detail {
  position:relative;
  border-radius:15px;
  background:var(--paper);
  padding:clamp(17px,2.3vw,33px);
  min-width:0;
  line-height:1.85;
}

.reader-top .eyebrow {
  font-size:11px;
  color:var(--warm);
}

.detail h2 {
  font:700 clamp(28px,3vw,43px)/1.4 Book,serif;
  margin:6px 0;
}

.detail .verse {
  font:700 clamp(22px,2vw,30px)/1.8 Book,serif;
  white-space:pre-line;
  margin:8px 0;
  color:#2d1e31;
}

.detail #context {
  font-size:12px;
  color:var(--muted);
  margin:5px 0 18px;
}

.reading {
  padding:12px 0 0;
  margin-top:12px;
  border-top:1px solid var(--line);
}

.reading h3,#lexicon summary {
  font:700 21px/1.65 Book,serif;
  margin:0;
}

.reading p,#gloss {
  font:400 19px/1.75 Book,serif;
  margin:2px 0;
}

.reading#meaning-box {
  border:1px solid #ddccb1;
  border-inline-start:3px solid #b58c50;
  background:#f4ecdf;
  border-radius:10px;
  padding:12px 15px;
}

.reading a,.links a,.links button,.text-link {
  color:#694c32;
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:4px;
}

#lexicon {
  border-top:1px solid var(--line);
  margin-top:16px;
  padding-top:9px;
}

#lexicon summary {
  cursor:pointer;
}

.links {
  gap:12px 16px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  margin-top:19px;
  padding-top:13px;
}

.links button {
  background:transparent;
  padding:0;
}

.links a:first-child {
  background:var(--plum);
  color:#f5dfb9;
  padding:5px 12px;
  border-radius:100px;
  text-decoration:none;
}

@media(min-width:1500px) {
  .hero-inner {
    min-height:535px;
  }
  .showcase {
    height:500px;
  }
  .stack {
    width:390px;
    height:373px;
  }
}

@media(max-width:1050px) {
  .shell {
    width:calc(100% - 58px);
  }
  .hero-inner {
    min-height:421px;
    column-gap:2%;
  }
  .showcase {
    height:405px;
  }
  .stack {
    height:285px;
  }
  .opening h1 {
    font-size:67px;
  }
  .grid {
    gap:20px 14px;
  }
  .archive-top {
    gap:12px;
  }
  .controls select {
    max-width:113px;
  }
  .field input {
    width:16vw;
  }
  .opening-actions {
    gap:15px;
  }
}

@media(max-width:760px) {
  .shell {
    width:calc(100% - 36px);
  }
  .nav {
    height:61px;
    gap:23px;
  }
  .brand img {
    width:117px;
  }
  .nav nav {
    gap:15px;
    font-size:11px;
  }
  .finder {
    width:37px;
    height:37px;
    justify-content:center;
    padding:0;
  }
  .finder span {
    display:none;
  }
  .hero-inner {
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
    min-height:345px;
    column-gap:1%;
  }
  .showcase {
    height:330px;
  }
  .stack {
    width:70%;
    height:219px;
  }
  .spot-caption {
    left:10px;
    right:10px;
    bottom:10px;
  }
  .spot-caption strong {
    font-size:17px;
  }
  .spot-credit {
    font-size:10px;
  }
  .spot-art .cover-mark {
    width:42px;
  }
  .spot-switch {
    gap:8px;
    margin-top:12px;
  }
  .spot-switch button {
    height:36px;
    min-width:36px;
  }
  .opening {
    padding:25px 0;
  }
  .opening h1 {
    font-size:51px;
    margin:18px 0;
  }
  .summary {
    gap:7px;
    font-size:10px;
  }
  .summary i {
    width:18px;
  }
  .opening-actions {
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .primary {
    font-size:14px;
    padding:7px 15px;
  }
  .gallery-link {
    font-size:12px;
  }
  .archive {
    padding-top:23px;
  }
  .archive-top {
    align-items:flex-start;
    flex-direction:column;
    gap:13px;
  }
  .controls {
    width:100%;
  }
  .field {
    flex:1;
    min-width:0;
  }
  .field input {
    width:100%;
    min-width:0;
  }
  .grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:19px 11px;
  }
  .card .poet {
    align-items:flex-start;
    flex-direction:column;
    gap:0;
  }
  .card .line {
    font-size:19px;
  }
  .view {
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
    gap:10px;
    padding:10px;
  }
  .detail {
    padding:16px;
  }
  .detail .verse {
    font-size:22px;
  }
  .viewer-wordmark img {
    width:77px;
  }
}

@media(max-width:580px) {
  .nav nav {
    gap:14px;
    font-size:11px;
  }
  .hero-inner {
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .opening {
    align-self:stretch;
    padding:24px 1px 0;
  }
  .summary {
    font-size:10.5px;
  }
  .opening h1 {
    font-size:clamp(43px,9.2vw,53px);
    line-height:1.4;
    margin:5px 0 7px;
  }
  .opening h1 br {
    display:none;
  }
  .opening h1 em::before {
    content:" ";
  }
  .opening-actions {
    flex-direction:row;
    align-items:center;
    gap:17px;
  }
  .primary {
    font-size:13px;
    padding:6px 15px;
    gap:16px;
  }
  .showcase {
    width:100%;
    height:296px;
    margin:3px 0 5px;
  }
  .stack {
    width:min(63%,248px);
    height:213px;
  }
  .stack-near {
    transform:translate(-22%,4%) rotate(-10deg) scale(.89);
  }
  .spot-caption strong {
    font-size:18px;
  }
  .spot-switch {
    height:35px;
    margin-top:13px;
  }
  .art-orbit {
    width:110%;
    height:41%;
  }
  .horse-echo {
    width:72vw;
    height:70%;
    right:-27%;
    bottom:34%;
  }
  .controls {
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
    gap:7px;
  }
  .field {
    grid-column:1/-1;
  }
  .controls select {
    width:100%;
    max-width:none;
  }
  .tabs {
    gap:6px;
    padding:12px 0;
  }
  .tabs button,.more-genres summary {
    padding:3px 8px;
    gap:4px;
    font-size:11px;
    min-height:31px;
  }
  .list-head {
    padding:11px 0;
  }
  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .card .mat {
    border-radius:10px;
  }
  .card .poet {
    font-size:11px;
  }
  .pagination {
    gap:9px;
  }
  .pagination button {
    padding:7px 10px;
  }
  #viewer {
    width:100%;
    height:100dvh;
    max-height:100dvh;
    border:0;
    border-radius:0;
    overflow:auto;
  }
  .bar {
    padding:6px 10px;
    min-height:53px;
  }
  .bar #close {
    height:36px;
  }
  .viewer-wordmark img {
    width:65px;
  }
  .view {
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:8px 9px max(16px,env(safe-area-inset-bottom));
  }
  .studio {
    position:static;
    width:100%;
  }
  .image-area {
    height:clamp(215px,51svh,530px);
    border-radius:12px;
  }
  .filmstrip {
    padding-top:5px;
    min-height:47px;
  }
  .filmstrip button {
    height:33px;
    flex-basis:40px;
  }
  .detail {
    width:100%;
  }
  .detail h2 {
    font-size:30px;
  }
  .detail .verse {
    font-size:23px;
  }
  .turn-controls {
    gap:5px;
  }
  .turn-controls button {
    min-width:34px;
    height:34px;
  }
  .bar #close small {
    display:none;
  }
  .bar #close {
    width:36px;
    min-width:36px;
  }
  .turn-controls #position {
    font-size:10px;
  }
}

@media(max-width:350px) {
  .shell {
    width:calc(100% - 22px);
  }
  .brand img {
    width:88px;
  }
  .nav {
    gap:12px;
  }
  .nav nav {
    gap:10px;
  }
  .viewer-wordmark {
    display:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
  }
}
