/* station 6: where to stay (uses .info and .feature from base.css).
   The keys sway from the branch (stay.js); the hotels hang as luggage tags on a twine cord. */

/* the branch and its keys: a little wider than the other objects, so the keys read on a phone */
#st-stay .st-art{width:min(400px,94%);margin-bottom:-22px}
#st-stay .st-art img{display:block}
#st-stay .sk-rig{position:relative}
#st-stay .sk-key{position:absolute;inset:0;will-change:transform;pointer-events:none}

/* ---------- the hotels: luggage tags on a cord hanging from a twig ---------- */
#st-stay .info ul{position:relative;padding:34px 0 4px 28px;margin-top:4px}
/* the twine cord */
#st-stay .info ul::before{content:"";position:absolute;left:10px;top:20px;bottom:22px;width:2px;border-radius:1px;
  background:repeating-linear-gradient(170deg,#A48E6A 0 3px,#CDBD9C 3px 5px)}
/* the twig it hangs from, in the same fine ink and wash as the paintings */
#st-stay .info ul::after{content:"";position:absolute;left:-6px;top:0;width:150px;height:30px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 30'%3E%3Cpath d='M2 20C30 17 52 22 78 16S122 11 148 14' fill='none' stroke='%237E6A55' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M2 20C30 17 52 22 78 16S122 11 148 14' fill='none' stroke='%23B9A487' stroke-width='.8' stroke-linecap='round' opacity='.8'/%3E%3Cpath d='M40 19c3-8 12-12 20-11-3 7-11 11-20 11z' fill='%23B7C3A4' stroke='%236F7F5E' stroke-width='.7' opacity='.9'/%3E%3Cpath d='M92 14c5 6 13 9 20 7-4-6-12-9-20-7z' fill='%23C3CDB1' stroke='%236F7F5E' stroke-width='.7' opacity='.9'/%3E%3Cpath d='M124 12c2-7 9-11 16-10-2 6-9 10-16 10z' fill='%23B7C3A4' stroke='%236F7F5E' stroke-width='.7' opacity='.85'/%3E%3Ccircle cx='70' cy='12' r='3.2' fill='%23F4F1EA' stroke='%238C8273' stroke-width='.6'/%3E%3Ccircle cx='70' cy='12' r='1' fill='%23E2C98F'/%3E%3C/svg%3E") no-repeat 0 0/150px 30px}

/* each hotel is an ivory card tag: notched end, a brass eyelet, a twist of twine to the cord */
#st-stay .info li{position:relative;margin:0 0 9px;padding:3px 4px 3px 16px;background:none;
  border:solid transparent;border-width:11px 10px 11px 20px;
  border-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M18 .6H59.4V59.4H18L.6 47.4V12.6Z' fill='%23FCF9F2' stroke='%23A3967F' stroke-width='1.1'/%3E%3Cpath d='M19.4 3.4H56.6V56.6H19.4L3.4 46V14Z' fill='none' stroke='%23DED4C1' stroke-width='.8'/%3E%3C/svg%3E") 12 10 12 20 fill / 11px 10px 11px 20px;
  transform:rotate(var(--tilt,0deg));transform-origin:12px 50%;will-change:transform;
  filter:drop-shadow(0 2px 2px rgba(27,42,74,.08))}
#st-stay .info li:last-child{border-bottom:solid transparent;border-bottom-width:11px;margin-bottom:0}
#st-stay .info li a{color:var(--navy);text-decoration-color:rgba(27,42,74,.35);text-underline-offset:3px;
  /* a 44px+ tap height without making the tags any taller: the padding reaches into the tag's own border */
  display:inline-block;padding:10px 0;margin:-10px 0;position:relative;z-index:1}
#st-stay .info li .meta{font-family:var(--serif);font-style:italic;color:var(--ink-soft)}
/* the brass eyelet (the paper shows through its hole) */
#st-stay .info li::after{content:"";position:absolute;left:-14px;top:50%;width:11px;height:11px;margin-top:-5.5px;border-radius:50%;
  background:radial-gradient(circle,transparent 0 2.6px,#9C7B43 2.9px 3.6px,#E4CF98 3.9px 4.6px,#A58550 5px)}
/* the twine from the eyelet to the cord */
#st-stay .info li::before{content:"";position:absolute;left:-38px;top:50%;width:30px;height:1.6px;margin-top:-1px;border-radius:1px;
  background:repeating-linear-gradient(90deg,#A48E6A 0 3px,#CDBD9C 3px 5px);transform:rotate(-3deg);transform-origin:100% 50%}

@media (max-width:360px){
  #st-stay .info ul{padding-left:24px}
  #st-stay .info li{padding-left:12px}
  #st-stay .info li::before{left:-34px;width:26px}
}
@media (prefers-reduced-motion: reduce){#st-stay .sk-key{transform:none!important}}
